:root {
  --bg-body: #06090f;
  --bg-topbar: rgba(10, 15, 26, 0.88);
  --bg-surface: #0e1626;
  --bg-card: #131c31;
  --bg-card-hover: #192644;
  --bg-card-active: #1d2e53;
  --border: #1e2c47;
  --border-focus: #3b82f6;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --live-stream: #10b981;
  --live-stream-glow: rgba(16, 185, 129, 0.3);
  --live-score: #f59e0b;
  --live-score-glow: rgba(245, 158, 11, 0.25);
  --live-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------------- Global Top Header ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-title h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
}

.brand-title .tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.searchbox {
  flex: 1;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.searchbox input {
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 2.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.searchbox input:focus {
  border-color: var(--border-focus);
  background: #111b2f;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.searchbox input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  position: absolute;
  right: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.refresh-btn.spinning svg {
  animation: spin 0.8s linear infinite;
}

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

.vip-user-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vip-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.vip-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.5s infinite;
}

.vip-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.vip-logout-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

/* ---------------- Filter Navigation Bar ---------------- */
.filters-nav {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 1.25rem 0.65rem;
  overflow: hidden;
}

.filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: #2e4368;
}

.filter-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.live-dot-mini {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.live-dot-mini.stream {
  background: var(--live-stream);
  box-shadow: 0 0 6px var(--live-stream);
  animation: pulse-dot 1.4s infinite;
}

.live-dot-mini.score {
  background: var(--live-score);
  box-shadow: 0 0 6px var(--live-score);
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ---------------- Main Layout Grid ---------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1.5rem;
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  align-items: start;
  transition: var(--transition);
}

.layout.theater-mode {
  grid-template-columns: 1fr;
}

.layout.theater-mode .match-pane {
  display: none;
}

/* ---------------- Player Section ---------------- */
.player-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.player-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(10, 15, 26, 0.5);
  transition: var(--transition);
}

#video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: radial-gradient(circle at center, #111a2f 0%, #060910 100%);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
  z-index: 5;
}

.player-empty[hidden] {
  display: none !important;
}

.pulse-ring {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.pulse-ring svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: radar 2.2s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
}

@keyframes radar {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.empty-prompt {
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 360px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Scoreboard Overlay inside player */
.scoreboard-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: radial-gradient(circle at center, #131e36 0%, #070a12 100%);
  padding: 2rem;
  text-align: center;
  z-index: 6;
}

/* Player Status & Error Overlay */
.player-status-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 16, 0.9);
  backdrop-filter: blur(4px);
  z-index: 7;
  padding: 1.5rem;
}

.status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 380px;
}

.status-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.status-box.error .status-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.status-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.status-retry-btn {
  margin-top: 0.35rem;
  padding: 0.55rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.status-retry-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.status-retry-btn:active {
  transform: translateY(0);
}

.sb-league {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.sb-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 650px;
}

.sb-team {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.sb-team.home { text-align: right; }
.sb-team.away { text-align: left; }

.sb-score-box {
  padding: 0.6rem 1.4rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #2e4368;
  border-radius: 14px;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sb-notice {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  max-width: 520px;
  line-height: 1.4;
}

/* Player Meta Bar (Now Playing + Controls) */
.player-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  min-height: 58px;
}

.now-playing {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.now-playing:empty::before {
  content: "Tidak ada pertandingan yang sedang diputar";
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.now-playing .np-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.now-playing .np-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.player-controls-extra {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ctrl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.ctrl-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}

/* Channel Selector Bar */
.channel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
}

.channel-bar:empty {
  display: none;
}

.channel-bar .chan {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.channel-bar .chan:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.channel-bar .chan.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.channel-bar .chan-ttl {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 500;
}

.channel-bar .loading {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.channel-bar .error {
  font-size: 0.85rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ---------------- Match Sidebar ---------------- */
.match-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  position: sticky;
  top: 86px;
  height: calc(100vh - 105px);
  min-height: 540px;
}

.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.head-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.head-title h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.count-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.auto-sync-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.degraded-banner {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  flex: 1;
}

/* Custom Scrollbar */
.match-list::-webkit-scrollbar {
  width: 6px;
}
.match-list::-webkit-scrollbar-track {
  background: transparent;
}
.match-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.match-list::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Match Card */
.match-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
  outline: none;
  position: relative;
}

.match-card:hover {
  background: var(--bg-card-hover);
  border-color: #2e4368;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.match-card:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.match-card.active-card {
  background: var(--bg-card-active);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px var(--primary-glow);
}

.match-card.live-stream-active {
  border-left: 3px solid var(--live-stream);
}

.match-card.live-score-active {
  border-left: 3px solid var(--live-score);
}

.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mc-league {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.675rem;
  font-weight: 800;
  color: var(--live-stream);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-stream::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--live-stream);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--live-stream);
  animation: pulse-dot 1.4s infinite;
}

.badge-score {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.675rem;
  font-weight: 800;
  color: var(--live-score);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.badge-score::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--live-score);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--live-score);
  animation: pulse-dot 1.6s infinite;
}

.mc-time {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.mc-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mc-team {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-team.home { text-align: right; }
.mc-team.away { text-align: left; }

.mc-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  min-width: 52px;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.mc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border-subtle);
}

.mc-chan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #60a5fa;
  font-weight: 700;
}

.mc-chan-badge.none {
  color: var(--text-muted);
  font-weight: 500;
}

.mc-sport {
  text-transform: capitalize;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------------- VIP Access Modal ---------------- */
.vip-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vip-modal-overlay[hidden] {
  display: none !important;
}

.vip-modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid #2a3c61;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(37, 99, 235, 0.18);
  animation: modal-appear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-appear {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.vip-lock-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.vip-modal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
  color: #fff;
}

.vip-modal-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

#vipForm {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pwd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#vipPasswordInput {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 2px;
}

#vipPasswordInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.pwd-toggle-btn:hover {
  color: var(--text-primary);
}

#vipSubmitBtn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--primary-glow);
}

#vipSubmitBtn:hover {
  background: var(--primary-hover);
}

#vipSubmitBtn:active {
  transform: scale(0.99);
}

.vip-error-msg {
  margin-top: 1rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}

.vip-error-msg[hidden] {
  display: none !important;
}

/* ---------------- Responsive Optimizations ---------------- */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem 1rem 2rem;
  }

  .match-pane {
    position: static;
    height: 560px;
  }
}

/* Mobile Devices (max 768px) */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .topbar-inner {
    padding: 0.6rem 0.85rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .brand-title h1 {
    font-size: 1.1rem;
  }

  .searchbox {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .filters-nav {
    padding: 0 0.85rem 0.5rem;
  }

  .filter-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  .layout {
    padding: 0.75rem 0.75rem 2rem;
    gap: 1rem;
  }

  /* Sticky player on mobile when playing video */
  .player-pane.mobile-sticky .player-wrap {
    position: sticky;
    top: 55px;
    z-index: 80;
    border-radius: 0;
    margin: -0.75rem -0.75rem 0;
    width: calc(100% + 1.5rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  }

  .player-meta-bar {
    padding: 0.75rem 0.85rem;
  }

  .now-playing .np-title {
    font-size: 0.9rem;
  }

  .match-pane {
    height: 500px;
    padding: 0.85rem;
  }

  .match-card {
    padding: 0.75rem 0.85rem;
  }

  .mc-score {
    font-size: 0.9rem;
  }

  .mc-points {
    min-width: 46px;
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
  }

  .sb-teams {
    gap: 0.85rem;
  }

  .sb-team {
    font-size: 1.05rem;
  }

  .sb-score-box {
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
  }
}

/* Small Smartphone (max 480px) */
@media (max-width: 480px) {
  .brand-title .tag {
    display: none;
  }

  .refresh-btn .btn-text {
    display: none;
  }

  .refresh-btn {
    padding: 0.5rem;
  }

  .sb-teams {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sb-team.home, .sb-team.away {
    text-align: center;
  }
}
