/* ðŸ”¥ TAMBAHIN INI DI BARIS PALING ATAS */
/* CACHE BUSTER - GANTI SETIAP UPDATE CSS */
/* Version: 2025.12.03.02 */

:root{
  --bg: #0c1721;
  --panel: #0f1a27;
  --muted: #97a3ae;
  --accent: #0590ff;
  --live: #ff4444;
  --gold: #ffcc00;
  --card: #0b1420;
  --card-border: rgba(255,255,255,0.06);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #081019 0%, #0c1721 100%);
  color:#e6eef6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
  overflow-x: hidden;
}

/* HEADER */
.site-header{
  border-bottom:1px solid rgba(255,255,255,0.03);
  background: linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter: blur(10px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  gap:12px;
}
.brand{display:flex;align-items:center;gap:12px}
.logo-sample{
  width:36px;height:36px;
  background: linear-gradient(135deg, var(--accent), #00b3ff);
  border-radius:8px;
  box-shadow: 0 4px 12px rgba(5, 144, 255, 0.3);
}
.site-title{font-weight:700;letter-spacing:1px; color: #fff; font-size: 18px;}
.controls{display:flex;align-items:center;gap:12px}
.tz{font-size:14px;color:var(--muted); background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 6px;}
.lang-selector {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius:6px;
  padding:6px 10px;
  color:#cfd7ff;
  font-size:14px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.lang-selector:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
#mobile-menu-btn{
  display:none;
}

/* TOP MENU - SCROLL HORIZONTAL */
.top-nav{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-top:1px solid rgba(255,255,255,0.03);
  max-height: 500px;
  transition: max-height 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.top-nav::-webkit-scrollbar {
  height: 4px;
}

.top-nav::-webkit-scrollbar-track {
  background: transparent;
}

.top-nav::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.top-nav::-webkit-scrollbar-thumb:hover {
  background: #00b3ff;
}

.menu-list{
  display:flex;
  gap:8px;
  list-style:none;
  padding:10px 14px;
  min-width: max-content;
}
.menu-list li{
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  white-space:nowrap;
  font-weight:600;
  background:transparent;
  transition:all .18s ease;
  font-size: 14px;
  flex-shrink: 0;
}
.menu-list li:hover, .menu-list li.active{
  background:rgba(255,255,255,0.06);
  color:var(--accent);
}

/* LAYOUT */
.container{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:24px;
  padding:24px;
  max-width:1450px;
  margin:24px auto;
  min-height: calc(100vh - 200px);
}

/* SIDEBAR */
.sidebar{
  background:rgba(255,255,255,0.015);
  border:1px solid rgba(255,255,255,0.05);
  box-shadow:0 8px 20px rgba(0,0,0,0.45);
  border-radius:16px;
  backdrop-filter:blur(12px);
  height:calc(100vh - 170px);
  overflow-y:auto;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}
.timezone-info {
  color: var(--muted);
  font-size: 11px;
}
.schedule{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  flex: 1;
  overflow-y: auto;
}

/* EVENT CARD */
.event{
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:14px 12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  box-shadow:0 2px 8px rgba(0,0,0,0.35);
  transition:0.25s ease;
}
.event:hover{
  transform:translateY(-4px);
  border-color:rgba(0,144,255,0.45);
  box-shadow:0 8px 16px rgba(0,194,255,0.2);
}
.watch-btn{
  background:var(--accent);
  padding:7px 14px;
  border-radius:10px;
  cursor:pointer;
  border:0;
  font-size:14px;
  color:#fff;
  font-weight: 600;
  transition:.2s;
  white-space: nowrap;
}
.watch-btn:hover{
  background:#00b3ff;
  box-shadow:0 4px 10px rgba(0,194,255,0.4);
}

/* PLAYER AREA */
.main-player{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.video-wrap{
  background:transparent;
  border-radius:12px;
  padding:4px;
}
.video-box{
  background:#000;
  border-radius:12px;
  border:10px solid rgba(0,0,0,0.6);
  min-height:50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,0.65);
}

/* Player container untuk m3u8 */
#m3u8-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  display: block;
}

/* ZOOM M3U8 UNTUK SEMUA DEVICE */
.video-js {
  width: 120% !important;
  height: 120% !important;
  position: relative !important;
  left: -10% !important;
  top: -10% !important;
  max-width: none !important;
  background: #000 !important;
}

/* Untuk fullscreen di semua device */
.video-box:fullscreen .video-js {
  width: 125% !important;
  height: 125% !important;
  left: -12.5% !important;
  top: -12.5% !important;
}

.video-js .vjs-tech {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Player iframe untuk embed dari API */
#liveFrame{ 
  width:100%; 
  height:100%; 
  border:0; 
  border-radius:8px; 
  display:none;
  background:#000; 
}

/* UNTUK LAPTOP/PC SAJA - Player lebih besar & layout fix */
@media (min-width: 901px) {
  #m3u8-player-container,
  #liveFrame {
    height: 520px !important;
    min-height: 520px !important;
    width: 100% !important;
  }
  
  .video-box {
    min-height: 520px !important;
    height: 520px !important;
    border-width: 12px !important;
  }
}

/* LOCK: Hide semua tombol fullscreen */
.vjs-picture-in-picture-control,
.vjs-fullscreen-control,
.vjs-fullscreen-toggle {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* CUSTOM FULLSCREEN BUTTON */
.vjs-custom-fullscreen {
  cursor: pointer;
  font-size: 16px;
}

.vjs-custom-fullscreen .vjs-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.video-js {
  context-menu: none !important;
  -webkit-context-menu: none !important;
}

.video-js {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

.vjs-big-play-button {
  z-index: 10 !important;
  cursor: pointer !important;
  background-color: rgba(0, 179, 255, 0.8) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  width: 80px !important;
  height: 80px !important;
  line-height: 80px !important;
  margin-left: -40px !important;
  margin-top: -40px !important;
}

.vjs-big-play-button:hover {
  background-color: rgba(0, 179, 255, 1) !important;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* PREVIEW TIMER STYLE BARU - di dalam player */
#preview-timer {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.85);
  color: var(--gold);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  z-index: 100;
  border: 1px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  display: none;
  backdrop-filter: blur(10px);
}

#preview-timer.warning {
  background: rgba(255,68,68,0.9);
  border-color: var(--live);
  color: #fff;
  animation: pulse 1s infinite;
}

#preview-timer div:first-child {
  font-size: 10px;
  margin-bottom: 2px;
  opacity: 0.9;
}

#timer-display {
  font-size: 14px;
  font-weight: 800;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.overlay-text{
  position:absolute;
  z-index:5;
  color:#fff;
  background:rgba(0,0,0,0.6);
  padding:6px 10px;
  border-radius:6px;
  top:12px;
  left:12px;
  font-weight:700;
}
.below-player{padding:8px 4px}
.muted{color:var(--muted)}
#current-title{
  font-size:18px;
  font-weight:700;
  margin-top:10px;
  color: #fff;
}

.title{font-size:15px;font-weight:700;color:#fff}
.kicker{font-size:11px;font-weight:800;opacity:.65; margin: 2px 0;}
.time{font-size:13px;opacity:.65}
.live{color:var(--live);font-weight:700;}

/* Loading spinner */
#player-loading {
  text-align: center;
  padding: 20px;
  color: var(--accent);
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border-radius: 10px;
  padding: 20px;
}

.spinner {
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 4px solid var(--accent);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SERVER SELECTOR STYLES - YANG BARU & DIPERBAIKI */
.server-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.server-modal-content {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.server-modal h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 18px;
  flex-shrink: 0;
}

.server-modal p {
  color: var(--muted);
  margin-bottom: 15px;
  font-size: 14px;
  flex-shrink: 0;
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}

/* Scrollbar styling untuk server list */
.server-list::-webkit-scrollbar {
  width: 6px;
}

.server-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.server-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.server-list::-webkit-scrollbar-thumb:hover {
  background: #00b3ff;
}

.server-btn {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  flex-shrink: 0;
}

.server-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.close-server-modal {
  background: #666;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  margin-top: 10px;
  flex-shrink: 0;
}

.close-server-modal:hover {
  background: #777;
}

/* Badge untuk jumlah server */
.server-count-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
  font-weight: bold;
}

/* DATE SEPARATOR */
.date-separator {
  text-align: center;
  margin: 15px 0 10px;
  color: var(--accent);
  font-weight: bold;
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
}

.no-matches {
  text-align: center;
  color: var(--muted);
  padding: 20px;
  font-style: italic;
}

.loading-message {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

.player-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}

/* FEATURES LIST STYLES - DIPERBAIKI */
.features {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  text-align: left;
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.features li {
  padding: 10px 0;
  color: #e6eef6;
  font-size: 14px;
  position: relative;
  padding-left: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.features li:last-child {
  border-bottom: none;
}

.features li:before {
  content: "âœ“";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 16px;
  background: rgba(5, 144, 255, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features li:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Scrollbar styling untuk features list */
.features::-webkit-scrollbar {
  width: 6px;
}

.features::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.features::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.features::-webkit-scrollbar-thumb:hover {
  background: #00b3ff;
}

/* SUBSCRIBE BUTTON STYLES - DIPERBAIKI */
.subscribe-btn {
  background: linear-gradient(135deg, var(--accent), #00b3ff);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  margin: 20px 0 15px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(5, 144, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subscribe-btn:hover {
  background: linear-gradient(135deg, #00b3ff, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(5, 144, 255, 0.6);
}

.subscribe-btn:active {
  transform: translateY(-1px);
}

/* PAYWALL STYLES - DIPERBAIKI */
#paywall-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.98);
  z-index:99999;
  color:#fff;
  padding:20px;
  overflow:auto;
  align-items:center;
  justify-content:center;
}
#paywall-card{
  width:100%;
  max-width:420px;
  margin:auto;
  background:#0b0b0b;
  border:2px solid var(--accent);
  padding:25px 20px;
  border-radius:16px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,0.8);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.pw-title{ 
  color:var(--accent); 
  font-size:20px; 
  margin-bottom:10px; 
  font-weight:700; 
  line-height:1.3; 
}
.pw-desc{ 
  color:#ddd; 
  margin-bottom:20px; 
  font-size:14px; 
  line-height:1.5; 
}
.pw-note{ 
  color:#bbb; 
  font-size:12px; 
  line-height:1.5;
  margin-top: 10px;
}

/* SECURITY LOCK STYLES */
.video-js::-webkit-full-screen {
  display: none !important;
}
.video-js:-moz-full-screen {
  display: none !important;
}
.video-js:-ms-fullscreen {
  display: none !important;
}
.video-js:fullscreen {
  display: none !important;
}
.video-js {
  -webkit-full-screen-enabled: false !important;
  -moz-full-screen-enabled: false !important;
  -ms-full-screen-enabled: false !important;
  fullscreen-enabled: false !important;
}

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.no-scroll-x {
  overflow-x: hidden;
}

/* ====================== */
/* PAYWALL RESPONSIVE - DIPERBAIKI */
/* ====================== */

@media (max-width: 900px) {
  #paywall-overlay{
    padding:15px;
  }
  
  #paywall-card{
    max-width:380px;
    padding:20px 15px;
    max-height: 80vh;
  }
  
  .pw-title{ 
    font-size:18px; 
  }
  
  .pw-desc{ 
    font-size:13px; 
  }
  
  .features {
    max-height: 250px;
    padding: 12px;
  }
  
  .features li {
    font-size: 13px;
    padding: 8px 0;
    padding-left: 25px;
  }
  
  .subscribe-btn {
    padding: 14px 28px;
    font-size: 16px;
    margin: 15px 0 10px;
  }
}

@media (max-width:520px){ 
  #paywall-card{
    max-width:340px;
    padding:18px 12px;
  }
  
  .pw-title{ 
    font-size:16px; 
  }
  
  .pw-desc{ 
    font-size:12px; 
    margin-bottom:15px;
  }
  
  .features {
    max-height: 220px;
    padding: 10px;
  }
  
  .features li {
    font-size: 12px;
    padding: 7px 0;
    padding-left: 22px;
  }
  
  .features li:before {
    font-size: 14px;
    width: 18px;
    height: 18px;
  }
  
  .subscribe-btn {
    padding: 12px 24px;
    font-size: 15px;
    margin: 12px 0 8px;
  }
}

@media (max-width:380px){
  #paywall-card{
    max-width:300px;
    padding:15px 10px;
  }
  
  .pw-title{ 
    font-size:15px; 
  }
  
  .features li {
    font-size: 11px;
  }
  
  .subscribe-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* ====================== */
/* MOBILE & TABLET PORTRAIT - DIPERBAIKI */
/* ====================== */

@media (max-width: 900px) {
  .container{
    grid-template-columns:1fr;
    padding:12px;
    margin:0 auto;
    gap: 16px;
  }
  
  /* ðŸ”¥ PERBAIKAN: Schedule di ATAS player biar keliatan */
  .sidebar{
    order: 1;
    height:auto;
    max-height:45vh;
    border: 2px solid var(--accent);
    background: rgba(255,255,255,0.03);
  }
  
  .main-player{ 
    order: 2;
  }
  
  /* ðŸ”¥ Header schedule lebih menonjol */
  .sidebar-header {
    background: rgba(0, 144, 255, 0.1);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .sidebar-header h3 {
    color: var(--accent);
    font-size: 18px;
    text-align: center;
  }
  
  /* Sports menu langsung muncul & bisa scroll */
  #mobile-menu-btn{
    display:none !important;
  }
  
  .top-nav{
    display: block !important;
    max-height: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .menu-list {
    padding: 10px 12px;
    min-width: max-content;
  }
  
  .menu-list li {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  .video-box{
    min-height:38vh;
    border-width:6px;
  }
  
  .header-inner {
    padding: 10px 12px;
  }
  
  .site-title {
    font-size: 16px;
  }

  #m3u8-player-container,
  #liveFrame {
    height: 280px;
  }
  
  .video-js {
    font-size: 12px !important;
  }
  
  .vjs-big-play-button {
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    margin-left: -30px !important;
    margin-top: -30px !important;
  }
  
  /* Preview timer mobile */
  #preview-timer {
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    font-size: 10px;
  }
  
  #preview-timer div:first-child {
    font-size: 9px;
  }
  
  #timer-display {
    font-size: 12px;
  }
}

@media (max-width:520px){ 
  #m3u8-player-container,
  #liveFrame { 
    height: 250px; 
    width: 100%;
    max-width: 100%;
  } 
  
  .container{ 
    padding:0 10px 30px;
    width: 100%;
  }
  
  .event{ 
    padding:12px;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .watch-btn {
    width: 100%;
    margin-top: 8px;
  }
  
  .header-inner{ 
    padding:8px 10px;
  }
  
  .site-title{ 
    font-size:14px;
  }
  
  #paywall-card{
    max-width:280px;
    padding:12px 10px;
  }
  
  .pw-title{ font-size:14px; }
  .pw-desc{ font-size:11px; margin-bottom:10px; }
  
  .features li {
    font-size: 12px;
    padding: 6px 0;
    padding-left: 18px;
  }
  
  .subscribe-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width:380px){
  #paywall-card{
    margin:5px auto;
    padding:12px 10px;
    max-width:260px;
  }
  
  .pw-title{ font-size:13px; }
  .pw-desc{ font-size:11px; }
  
  .container {
    padding: 0 8px 20px;
  }
  
  #m3u8-player-container,
  #liveFrame {
    height: 220px;
  }
  
  .player-note {
    font-size: 11px;
  }
  
  .features li {
    font-size: 11px;
  }
}

@media (max-width:1100px){
  .container{ 
    max-width:100%;
    padding: 0 15px 40px;
  }
}

img, iframe, video {
  max-width: 100%;
  height: auto;
}