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

: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:#0c1721;
  position:sticky;
  top:0;
  z-index:60;
   
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  gap:12px;

}
.brand{
  display:flex;
  background:transparent;
  align-items:center;
  gap:12px;
}

#mobile-menu-btn{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
#mobile-menu-btn:hover {
  color: var(--accent);
}

.site-title{font-weight:700;letter-spacing:1px; color: #fff; font-size: 18px;}
.controls{display:flex;align-items:center;gap:12px}
.donate-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius:6px;
  padding:6px 10px;
  color:#fff;
  font-size:10px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.donate-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
.login-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius:6px;
  padding:6px 10px;
  color:#fff;
  font-size:10px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.login-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
.tz{font-size:10px;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:10px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.lang-selector:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

/* 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;

  display:block;
  width:100%;
  visibility:visible;
  opacity:1;
}

.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);
}

/* =========================================================
   HEADER 2 — TOP AD + TITLE + NAVIGASI KEDUA
   HEADER 1 TIDAK DISENTUH
   ========================================================= */

.secondary-header {
    width: 100%;
    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: var(--bg);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: relative;
    z-index: 40;
}


/* =========================================================
   IKLAN ATAS
   ========================================================= */

.secondary-ad {
    width: 100%;
    min-height: 90px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px;

    box-sizing: border-box;

    background: rgba(255,255,255,0.02);

    border-bottom: 1px solid rgba(255,255,255,0.05);

    overflow: hidden;
}


/* WADAH SCRIPT IKLAN */

.secondary-ad > * {
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   JUDUL HEADER 2
   ========================================================= */

.secondary-title {
    width: 100%;

    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    box-sizing: border-box;

    text-align: center;

    background: var(--panel);

    border-bottom: 1px solid rgba(255,255,255,0.05);
}


.secondary-title h2 {
    margin: 0;

    color: #fff;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   NAVIGASI KEDUA
   ========================================================= */

.secondary-nav {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;

    background: var(--panel);

    box-sizing: border-box;
}


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


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


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


.secondary-nav ul {
    display: flex;

    align-items: center;

    gap: 8px;

    list-style: none;

    margin: 0;
    padding: 8px 14px;

    min-width: max-content;

    box-sizing: border-box;
}


.secondary-nav li {
    flex-shrink: 0;

    padding: 8px 14px;

    border-radius: 8px;

    color: #e6eef6;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    background: transparent;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


.secondary-nav li:hover,
.secondary-nav li.active {
    background: rgba(255,255,255,0.06);

    color: var(--accent);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .secondary-ad {
        min-height: 70px;
        padding: 8px;
    }

    .secondary-title {
        min-height: 48px;
        padding: 8px 12px;
    }

    .secondary-title h2 {
        font-size: 18px;
    }

    .secondary-nav ul {
        padding: 7px 10px;
        gap: 6px;
    }

    .secondary-nav li {
        padding: 6px 11px;
        font-size: 13px;
    }
}

/* LAYOUT */
/* =========================================================
   5. MAIN LAYOUT — ROADFAX SPORTS
   =========================================================
   CONTAINER 1:
   KIRI   = 1fr
   TENGAH = 2fr
   KANAN  = 1fr

   STRUKTUR:
   PLAYER | NEWS CENTER | SCHEDULE

   CONTAINER 2:
   IKLAN 1
   KOLOM 4 | KOLOM 5 | KOLOM 6
   IKLAN 2
   KOLOM 7 | KOLOM 8 | KOLOM 9
   ========================================================= */
   
.container {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;
  padding: 10px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 2fr)
    minmax(0, 1fr);

  grid-template-areas:
    "player center sidebar";

  gap: 16px;

  align-items: start;

  box-sizing: border-box;
}


/* =========================================================
   BARIS 1 — PLAYER
   ========================================================= */

.main-player {
  grid-area: player;

  width: 100%;
  min-width: 0;
  height: auto;

  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;

  align-self: start;

  box-sizing: border-box;
}


/* =========================================================
   BARIS 1 — NEWS CENTER
   ========================================================= */

.main-content-center {
  grid-area: center;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 24px;

  height: auto;
  min-height: 0;

  align-self: start;

  box-sizing: border-box;

  background: rgba(255,255,255,0.015);

  border: 1px solid rgba(255,255,255,0.05);

  border-radius: 16px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.45);

  backdrop-filter: blur(12px);

  color: #fff;
}


/* =========================================================
   BARIS 1 — SCHEDULE
   ========================================================= */

.sidebar {
  grid-area: sidebar;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  height: auto;
  min-height: 0;
  max-height: none;

  align-self: start;

  box-sizing: border-box;

  background: rgba(255,255,255,0.015);

  border: 1px solid rgba(255,255,255,0.05);

  border-radius: 16px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.45);

  backdrop-filter: blur(12px);

  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* =========================================================
   CONTAINER KEDUA
   ========================================================= */

.bottom-container {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 10px;

    display: block;

    box-sizing: border-box;

    position: relative;
    clear: both;
}


/* =========================================================
   IKLAN 1 & IKLAN 2
   ========================================================= */

.ads-section {
    width: 100%;
    min-height: 90px;

    margin: 16px 0;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    position: relative;
    clear: both;

    overflow: hidden;
}

.ad-box {
    width: 100%;
    max-width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    position: relative;
}

/* =========================================================
   IKLAN 1 — KURANGI JARAK KE KOLOM 4-6
   ========================================================= */

.ads-1 {
    min-height: 0;
    margin: 4px 0 4px;
}


/* =========================================================
   BARIS KOLOM 4-6 & 7-9
   ========================================================= */

.bottom-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 16px 0;
    padding: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 2fr)
        minmax(0, 1fr);

    gap: 16px;

    box-sizing: border-box;

    position: relative;
    clear: both;
}


/* =========================================================
   KOLOM 4-9
   ========================================================= */

.bottom-column {
    width: 100%;
    min-width: 0;

    padding: 16px;

    box-sizing: border-box;

    border: 1px solid #555;
    border-radius: 8px;

    background: rgba(255,255,255,0.015);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .bottom-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HEADER SCHEDULE
   ========================================= */

.sidebar-header {
    padding: 16px 16px 12px;

    margin: 0 !important;

    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;
}


/* =========================================
   DAFTAR SCHEDULE
   ========================================= */

.schedule {
    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 16px;

    max-height: 500px;

    overflow-y: auto;
}


/* =========================================
   PLAYER VIDEO
   ========================================= */

.video-wrap {
    width: 100%;
    background: transparent;
    border-radius: 12px;
    padding: 4px;
    box-sizing: border-box;
}

.video-box {
    width: 100%;
    height: 520px;
    min-height: 520px;
    background: #000;
    border-radius: 12px;
    border: 12px solid rgba(0,0,0,0.6);
    display: block !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    box-sizing: border-box;
}

  
  /* WAJIB: Munculkan Player dan ukurannya */
  #m3u8-player-container,
  #liveFrame {
    height: 520px !important;
    min-height: 520px !important;
    width: 100% !important;
    
  }
  
  .video-box {
    min-height: 520px !important;
    height: 100% !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;
  }
  
  }
  
  .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;
}
