/* style.css - VERSION 2025.12.27.04 */
/* WARNING: WARNA KUNING! #f59e0b */

/* ===== VARIABLES ===== */
:root {
  --bg-primary: #0b1220;
  --bg-secondary: #020617;
  --bg-sidebar: #020617;
  --bg-card: #030712;
  --accent: #f59e0b;        /* ⬅️ KUNING */
  --accent-hover: #d97706;  /* ⬅️ KUNING TUA */
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #1f2937;
  --border-light: #374151;
  --danger: #f87171;
  --success: #10b981;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --radius: 8px;
  --transition: all 0.2s ease;
  --live: #ff4444;
  --gold: #f59e0b;          /* ⬅️ KUNING */
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.top-right {
  display: flex;
  gap: 20px;
  font-size: 14px;
  align-items: center;
}

.top-right span {
  color: var(--text-secondary);
}

#clock {
  color: var(--accent);
  font-weight: 600;
  min-width: 45px;
}

.btn-account {
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-account:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

/* ===== NAV ===== */
.nav {
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}

.nav-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nav-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.nav-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

/* ===== MAIN WRAPPER ===== */
.wrap {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 102px);
}

/* ===== SIDEBAR (DESKTOP) ===== */
.sidebar {
  width: 320px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 15px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar h4 {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* MATCH ITEM */
.match-item {
  padding: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.match-item:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  transform: translateX(2px);
}

.match-item.active {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-color: var(--accent);
}

.live-badge {
  color: var(--live) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  margin-right: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(255, 68, 68, 0.1) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

.live-badge i {
  color: var(--live) !important;
  font-size: 8px !important;
}

.match-sport {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.match-title {
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.match-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ===== MAIN CONTENT ===== */
.main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* PLAYER TITLE */
.player-title {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* PLAYER CONTAINER */
/* DEFAULT UNTUK MOBILE */
.player {
  background: #000;
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

/* DESKTOP ONLY */
@media (min-width: 1200px) {
  .player {
    width: 1570px;
    height: 796px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* DEFAULT PLAYER */
#default-player {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  gap: 15px;
  text-align: center;
  padding: 20px;
}

#default-player i {
  font-size: 64px;
  color: var(--accent);
  opacity: 0.7;
}

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

/* Video.js Styles */
.video-js {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  background: #000 !important;
}

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

/* Big play button styling */
.vjs-big-play-button {
  z-index: 10 !important;
  cursor: pointer !important;
  background-color: rgba(245, 158, 11, 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;
  font-size: 3em !important;
}

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

/* IFRAME PLAYER */
#liveFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

/* ===== SERVER BUTTONS - FIXED UNDER PLAYER ===== */
.servers {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 60px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.servers:empty {
  min-height: 0;
  opacity: 0;
}

.server-btn {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  color: var(--text-secondary);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-family: inherit;
  outline: none;
  position: relative;
  overflow: hidden;
}

/* SHARE BUTTON STYLE - UNTUK DI OVERRIDE SPECIFIC */
.server-btn#share-event-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    border: none !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    position: relative;
    z-index: 1;
}

/* Efek hover untuk SEMUA server button */
.server-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Efek hover khusus untuk share button */
.server-btn#share-event-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Status active untuk SEMUA server button */
.server-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

/* Status disabled khusus untuk share button */
.server-btn#share-event-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
}

/* ANIMASI PULSA untuk share button ketika baru muncul */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.server-btn#share-event-btn {
    animation: slideIn 0.3s ease-out;
}

/* Efek ripple untuk semua button */
.server-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.server-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .servers {
        gap: 8px;
        padding: 10px;
    }
    
    .server-btn {
        padding: 10px 14px;
        font-size: 13px;
        flex: 1;
        min-width: calc(50% - 8px);
        text-align: center;
    }
    
    .server-btn#share-event-btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        flex: 1 0 100%;
        min-width: 100%;
        order: 999; /* Biar share button selalu di bawah */
    }
    
    /* Atur urutan button di mobile */
    .servers {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Responsive untuk tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .servers {
        gap: 8px;
    }
    
    .server-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* STREAM INFO */
.stream-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 15px;
}

.stream-info i {
  color: var(--accent);
}

/* LOADING & EMPTY STATES */
.loading {
  padding: 40px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* PREVIEW TIMER IMPROVED */
#preview-timer {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.9);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 100;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  display: none;
  backdrop-filter: blur(10px);
  min-width: 85px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

#preview-timer div:first-child {
  font-size: 10px;
  margin-bottom: 4px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#timer-display {
  font-size: 16px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

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

#preview-timer.warning #timer-display {
  color: #fff;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Mobile timer adjustment */
@media (max-width: 768px) {
  #preview-timer {
    top: 5px;
    right: 5px;
    padding: 6px 10px;
    min-width: 75px;
  }
  
  #timer-display {
    font-size: 14px;
  }
}

/* ===== MOBILE SIDEBAR - ALWAYS VISIBLE ON MOBILE ===== */
.mobile-sidebar {
  display: none;
  margin-top: 20px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
  flex-shrink: 0;
  order: 2;
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.mobile-sidebar-header h4 {
  color: var(--accent);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#mobile-sport-indicator {
  color: var(--accent);
  font-size: 12px;
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ===== SERVER SELECTOR MODAL ===== */
.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(--bg-card);
  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(--text-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;
}

.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: var(--accent-hover);
}

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

.server-modal .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;
}

.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;
  width: 100%;
}

/* PAYWALL OVERLAY */
#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;
}

/* FEATURES LIST */
.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(245, 158, 11, 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);
}

.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: var(--accent-hover);
}

/* SUBSCRIBE BUTTON */
.subscribe-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  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(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subscribe-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.6);
}

/* ===== SECURITY STYLES ===== */
.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;
}

.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;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

.vjs-control-bar,
.match-item,
.server-btn,
.nav-btn {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* FORCE PAYWALL LAYER */
#force-paywall {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 99998;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
  }
  
  .vjs-big-play-button {
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
    margin-left: -35px !important;
    margin-top: -35px !important;
  }
}

/* ===== MOBILE LAYOUT ===== */
@media (max-width: 900px) {
  .wrap {
    flex-direction: column;
  }
  
  .sidebar.desktop-sidebar {
    display: none;
  }
  
  .mobile-sidebar {
    display: block !important;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .main {
    width: 100%;
    padding: 15px;
    order: 1;
  }
  
  .player {
    height: 350px;
  }
  
  .nav {
    padding: 10px 15px;
    gap: 8px;
  }
  
  .nav-btn {
    padding: 5px 12px;
    font-size: 13px;
  }
  
  .server-modal-content {
    max-width: 90%;
    padding: 15px;
  }
  
  .date-separator {
    font-size: 12px;
    margin: 10px 0 8px;
  }
  
  /* Mobile server buttons */
  .servers {
    padding: 10px;
    gap: 8px;
  }
  
  .server-btn {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1;
    min-width: calc(50% - 8px);
  }
  
  .mobile-sidebar {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 15px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .top-right {
    gap: 12px;
    font-size: 13px;
  }
  
  .btn-account {
    padding: 5px 10px;
    font-size: 13px;
  }
  
  .main {
    padding: 15px;
  }
  
  .player {
    height: 350px;
  }
  
  .player-title {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  #default-player i {
    font-size: 48px;
  }
  
  .vjs-big-play-button {
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    margin-left: -30px !important;
    margin-top: -30px !important;
    font-size: 2em !important;
  }
  
  .video-js {
    font-size: 12px !important;
  }
  
  .match-item {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .top-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .player {
    height: 280px;
  }
  
  .nav {
    padding: 8px 10px;
  }
  
  .nav-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .main {
    padding: 12px;
  }
  
  .player-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  #default-player i {
    font-size: 36px;
  }
  
  .vjs-big-play-button {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    margin-left: -25px !important;
    margin-top: -25px !important;
    font-size: 1.5em !important;
  }
  
  .server-modal-content {
    max-width: 95%;
    padding: 12px;
  }
  
  .server-modal h3 {
    font-size: 16px;
  }
  
  .server-modal .server-btn {
    padding: 10px;
    font-size: 13px;
  }
  
  .servers {
    gap: 6px;
  }
  
  .server-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: calc(50% - 6px);
  }
}

/* Desktop only - Show desktop sidebar */
@media (min-width: 901px) {
  .mobile-sidebar {
    display: none !important;
  }
  
  .sidebar.desktop-sidebar {
    display: block;
  }
  
  .player {
    max-width: 1580px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* FOOTER FIX */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 1;
  order: 3;
}

/* Iklan di footer */
.footer-ad {
  max-width: 728px;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius);
  padding: 10px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--accent);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .back-to-top {
    bottom: 100px;
    right: 15px;
  }
}

/* FOOTER LINKS */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

/* DISCLAIMER TEXT */
.disclaimer-text {
  color: var(--text-muted);
  font-size: 13px;
  margin: 10px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* COPYRIGHT TEXT */
.copyright-text {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .footer-links a {
    text-align: center;
    width: 200px;
  }
  
  .disclaimer-text {
    font-size: 12px;
    padding: 0 15px;
  }
  
  .copyright-text {
    font-size: 11px;
  }
}