/* ============================================================
   xGoalz Pro — Premium Athletic Design System v2
   ============================================================ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'TT Octas';
  src: local('TT Octas Regular'), local('TT Octas');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-void:       #000000;
  --bg-surface:    #0A0A0A;
  --bg-card:       #151515;
  --bg-raised:     #1C1C1C;
  --bg-hover:      #222222;
  --bg-border:     #252525;

  --accent:        #F5C400;
  --accent-dim:    rgba(245, 196, 0, 0.12);
  --accent-glow:   rgba(245, 196, 0, 0.3);
  --accent-mid:    rgba(245, 196, 0, 0.6);
  --accent-soft:   rgba(245, 196, 0, 0.08);

  --home-color:    #F5C400;
  --away-color:    #FF2D55;

  --text-primary:  #FFFFFF;
  --text-secondary:#8A8A8A;
  --text-muted:    #484848;
  --text-label:    #5E5E5E;

  --live-red:      #FF2D55;
  --gold:          #F5C400;
  --green:         #00C97A;

  --font-heading:  'TT Octas', 'Inter', system-ui, sans-serif;
  --font-ui:       'TT Octas', 'Inter', system-ui, sans-serif;
  --font-intro:    'Alegreya SC', 'Archivo Narrow', serif;

  --sidebar-w:     224px;
  --data-sidebar-w:320px;
  --topbar-h:      60px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --transition:    0.22s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.45s cubic-bezier(.4,0,.2,1);
  --spring:        0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  display: flex;
  line-height: 1.5;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-mid); }

/* ─── Layout ─── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-void);
  border-right: 1px solid var(--bg-border);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-surface);
}


.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

.nav-item:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* WorldCup nav item special styling */
.nav-item-wc {
  position: relative;
}
.nav-item-wc::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  opacity: 1;
  transition: opacity 0.2s;
}
.nav-item-wc:hover {
  background: rgba(255, 215, 0, 0.06);
  color: #ffd700;
}
.nav-item-wc.active {
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  box-shadow: inset 2px 0 0 #ffd700;
}
.nav-item-wc.active::before { opacity: 1; }

.nav-item-f1 {
  position: relative;
}
.nav-item-f1::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #E50914, #FF2D55);
  opacity: 1;
  transition: opacity 0.2s;
}
.nav-item-f1:hover {
  background: rgba(229,9,20,0.08);
  color: #FFFFFF;
}
.nav-item-f1.active {
  background: rgba(229,9,20,0.12);
  color: #FFFFFF;
  box-shadow: inset 2px 0 0 #E50914;
}
.nav-item-f1.active::before { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--bg-void);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.6;
}

/* ─── Sidebar Live Section ─── */
.sidebar-live-section {
  padding: 12px 16px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mini-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.mini-match:hover { opacity: 0.8; }
.mini-match:last-child { border-bottom: none; }

.mini-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  flex-shrink: 0;
  animation: livePulse 1.5s ease-in-out infinite;
}

.mini-match-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-teams {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.mini-score {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.mini-time {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Sidebar Footer ─── */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--bg-border);
}

.telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #0088cc;
  border: 1px solid #0088cc;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.telegram-btn:hover {
  background: rgba(0, 136, 204, 0.1);
  color: #0099e6;
  border-color: #0099e6;
}


/* ─── Topbar ─── */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--bg-border);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 5;
}

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

.topbar-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--bg-border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.topbar-back-btn:hover {
  color: var(--accent);
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}

.topbar-back-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.brand-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  padding: 6px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-bar svg { color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12.5px;
  width: 180px;
  font-family: var(--font-ui);
}

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

.topbar-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover { color: var(--accent); border-color: var(--accent-mid); background: var(--accent-dim); }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #00b45c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-void);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.user-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ─── Date Navigation ─── */
.date-nav {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-border);
  background: rgba(0,0,0,0.2);
}

.date-tab {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.date-tab:hover {
  background: var(--bg-raised);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.date-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245,196,0,0.35), 0 0 0 1px rgba(245,196,0,0.15);
  transform: translateY(-1px);
}

/* ─── Content Row ─── */
.content-row {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ─── Player Column ─── */
.player-column {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Player Container ─── */
.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 52vh;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 0 1px var(--bg-border);
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* ─── HLS Player Mount Point ─── */
/* This div is the lazy-mount target. Before stream starts
   it is empty (zero DOM, zero bandwidth). When HLSPlayer.mount()
   is called, a <video> element is injected into this slot.   */
.hls-player-mount {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hls-player-mount .video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.universal-iframe-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-container.iframe-mode .video-controls {
  display: none;
}

/* ─── Player Loading State ─── */
/* Applied to .player-container while hls.js is negotiating
   the manifest and buffering the first segments.           */
.player-container.player-loading {
  box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 0 1px var(--accent-mid);
}

/* ─── Connecting Shimmer ─── */
.hls-loading-shimmer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  z-index: 4;
}

.stream-blocked-message {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(0,0,0,0.78);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.stream-error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.stream-error-title {
  font-size: 14px;
  color: #fff;
}

.stream-retry-btn {
  border: 1px solid rgba(245,196,0,0.45);
  background: var(--accent);
  color: #090909;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.stream-retry-btn:hover {
  background: #fff;
  border-color: #fff;
}

.match-score-header {
  margin: 0 0 10px;
}

.match-score-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.match-score-card {
  margin: 12px 0 10px;
  padding: 10px;
  border-radius: 8px;
}

.match-score-hero {
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.score-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.score-team-away {
  justify-content: flex-end;
}

.score-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 68px;
}

.score-main {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  color: #fff;
}

.score-status {
  font-size: 10px;
  font-weight: 900;
  color: #A3A3A3;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-score-display.live .score-status {
  color: #FF2D55;
}

.match-score-display.halftime .score-status,
.match-score-display.finished .score-status {
  color: #E50914;
}

.score-flag-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #202020;
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-flag-wrap.hero {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.score-flag-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.score-flag-fallback {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}

.score-flag-wrap.flag-missing .score-flag-img {
  display: none;
}

.player-action-bar {
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.player-action-btn,
.embed-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #141414;
  color: #fff;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.player-action-btn:hover,
.embed-copy-btn:hover {
  background: rgba(229,9,20,0.16);
  border-color: rgba(229,9,20,0.55);
  color: #fff;
}

.player-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.embed-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.embed-modal-card {
  width: min(560px, 100%);
  border-radius: 8px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 26px 80px rgba(0,0,0,0.58);
  padding: 16px;
}

.embed-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.embed-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.embed-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1f1f1f;
  color: #fff;
  cursor: pointer;
}

.embed-code-box {
  width: 100%;
  resize: vertical;
  min-height: 148px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #080808;
  color: #fff;
  padding: 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.shimmer-spinner {
  filter: drop-shadow(0 0 12px rgba(0,240,255,0.6));
}

.shimmer-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

.shimmer-sub {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.hls-buffering-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.netflix-spinner {
  width: 60px;
  height: 60px;
  animation: netflixSpin 2s linear infinite;
  transform-origin: center center;
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.5));
}

.netflix-spinner circle {
  stroke: var(--accent);
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: netflixDash 1.5s ease-in-out infinite;
  stroke-linecap: round;
}

.buffering-label {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}

/* ─── HLS Spinner Keyframe ─── */
@keyframes netflixSpin {
  100% { transform: rotate(360deg); }
}

@keyframes netflixDash {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
  100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}



/* Live Badge */
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--live-red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: livePulse 1.2s ease-in-out infinite;
}

/* Video Poster */
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animated Pitch Background */
.poster-pitch {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, #0a2a0a 0%, #0d350d 40%, #0a2a0a 100%);
}

/* Pitch markings */
.poster-pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* center line */
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,0.12) 49.8%, rgba(255,255,255,0.12) 50.2%, transparent 50.2%),
    /* penalty boxes */
    linear-gradient(180deg, transparent 10%, rgba(255,255,255,0.05) 10%, rgba(255,255,255,0.05) 40%, transparent 40%),
    /* grass strips */
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 20px, transparent 20px, transparent 40px);
}

.poster-center-circle {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}

.poster-lines {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}

.poster-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.play-btn-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(0,240,255,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(0,240,255,0.3);
  backdrop-filter: blur(4px);
}

.play-btn-big:hover {
  background: rgba(0,240,255,0.2);
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(0,240,255,0.5);
}

.play-btn-big svg { width: 56px; height: 56px; }

.poster-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 32px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.3s;
}



.controls-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  flex: 1;
  cursor: pointer;
  padding: 6px 0;
}

.progress-bar-bg {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s;
}

.progress-bar-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.2s;
}

.progress-bar-wrap:hover .progress-bar-thumb { transform: translate(-50%, -50%) scale(1); }

.time-display {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right, .controls-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}

.ctrl-btn:hover { color: var(--accent); background: rgba(255,255,255,0.08); }

.volume-group { display: flex; align-items: center; gap: 4px; }

.volume-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.3s;
}

.volume-group:hover .volume-slider-wrap { width: 70px; }

.volume-slider {
  -webkit-appearance: none;
  width: 70px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.quality-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* ─── Quality Control Popup (inside player controls) ─── */
.quality-ctrl-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.quality-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quality-ctrl-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  min-width: 26px;
  text-align: center;
}

.quality-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 10px;
  padding: 10px 8px;
  min-width: 120px;
  z-index: 9999;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: popupFadeIn 0.15s ease;
}

.quality-popup.open {
  display: block;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quality-popup-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 6px;
}

.quality-popup-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quality-popup-list .quality-btn {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.quality-popup-list .quality-btn:hover {
  background: rgba(255,255,255,0.08);
}

.quality-popup-list .quality-btn.active {
  background: rgba(245, 196, 0, 0.12);
  color: var(--accent);
  font-weight: 700;
}

/* Cast button active state */
#ctrl-cast.casting svg path,
#ctrl-cast.casting svg circle,
#ctrl-cast.casting svg rect {
  stroke: var(--accent);
  fill: var(--accent);
}
#ctrl-cast.casting {
  color: var(--accent);
}

.subtitle-ctrl-btn.subtitles-on {
  color: var(--accent);
  border-color: rgba(245,196,0,0.35);
  background: rgba(245,196,0,0.14);
}

.subtitle-ctrl-btn.subtitles-on svg rect,
.subtitle-ctrl-btn.subtitles-on svg path {
  stroke: currentColor;
}

.live-indicator-ctrl {
  font-size: 11px;
  color: var(--live-red);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ─── Match Info Card ─── */
.match-info-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.match-league-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--bg-raised);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-label);
  text-transform: uppercase;
  border-bottom: 1px solid var(--bg-border);
}

.match-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 10px;
}

.team-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.team-away { flex-direction: row-reverse; text-align: right; }

.team-crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  border-radius: 50%;
  background: var(--bg-raised);
  padding: 4px;
}

.team-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-name-right { align-items: flex-end; }

.team-name-full {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.team-name-short {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.scoreboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 120px;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.score-divider {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 300;
  color: var(--text-muted);
}

.match-clock-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.clock-live-dot {
  width: 7px;
  height: 7px;
  background: var(--live-red);
  border-radius: 50%;
  animation: livePulse 1.2s ease-in-out infinite;
}

.match-clock {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--live-red);
  letter-spacing: 1px;
}

.match-ht {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Match Events */
.match-events {
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--bg-border);
  font-size: 12px;
}

.event-item:last-child { border-bottom: none; }

.event-time {
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  font-size: 11px;
}

.event-icon { font-size: 13px; }
.event-desc { flex: 1; color: var(--text-secondary); }
.event-desc em { color: var(--accent); font-style: normal; font-weight: 600; }
.event-team { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; }

/* ─── Home Sections ─── */
.home-section {
  padding: 0 20px 30px;
  animation: fadeSlideUp 0.4s ease both;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.live-count-badge {
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── Match Lists ─── */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Match Cards */
.match-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.4s ease both;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.22s ease;
  border-radius: 3px 0 0 3px;
}

.match-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,196,0,0) 0%, rgba(245,196,0,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.match-card:hover {
  border-color: rgba(245,196,0,0.25);
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,196,0,0.08);
}

.match-card:hover::before { background: var(--accent); }
.match-card:hover::after { opacity: 1; }

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.card-league {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.card-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--live-red);
  letter-spacing: 0.5px;
  background: rgba(255, 45, 85, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-live-dot {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: livePulse 1.2s ease-in-out infinite;
}

.card-teams-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.card-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.card-team.home {
  justify-content: flex-end;
  text-align: right;
}

.card-team.away {
  justify-content: flex-start;
  text-align: left;
}

.card-team-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-void);
  padding: 4px;
  border: 1px solid var(--bg-border);
}

.card-team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-score {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-void);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--bg-border);
  min-width: 64px;
  text-align: center;
}

.card-score.live-score {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.vs-text {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
}

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.card-channel {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-void);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--bg-border);
}

.btn-watch {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-watch:hover {
  background: var(--accent);
  color: #000;
}

.btn-watch svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ─── Data Sidebar ─── */
.data-sidebar {
  width: var(--data-sidebar-w);
  min-width: var(--data-sidebar-w);
  border-left: 1px solid var(--bg-border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Chat Header Pane ─── */
.chat-header-pane {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-void);
}

.chat-live-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: livePulse 1.8s infinite ease-in-out;
}

.chat-header-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Tab Panels ─── */
.tab-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.tab-panel.active { display: flex; flex-direction: column; }

/* ─── Stats Panel ─── */
.stats-section {
  margin-bottom: 18px;
}

.stats-heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-label);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.momentum-chart-wrap {
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid var(--bg-border);
}

/* Stat Bars */
.stat-bar-list { display: flex; flex-direction: column; gap: 10px; }

.stat-bar-item {}

.stat-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.stat-name {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val-left, .stat-val-right {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-bar-track {
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: var(--bg-border);
  gap: 1px;
}

.stat-bar-left {
  height: 100%;
  background: var(--home-color);
  border-radius: 3px 0 0 3px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 6px rgba(0,240,255,0.4);
}

.stat-bar-right {
  height: 100%;
  background: var(--away-color);
  border-radius: 0 3px 3px 0;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.team-legend {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.blue { background: var(--home-color); box-shadow: 0 0 4px var(--home-color); }
.legend-dot.red  { background: var(--away-color); }

/* ─── Chat Panel ─── */
.chat-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 0;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-user {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.chat-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  transition: border-color var(--transition);
}

.chat-input-row:focus-within { border-color: var(--accent-mid); }

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12.5px;
  font-family: var(--font-ui);
}

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

.chat-send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), transform var(--transition);
}

.chat-send:hover { opacity: 0.75; transform: translateX(2px); }

/* ─── Lineups Panel ─── */
.lineups-container { display: flex; flex-direction: column; gap: 14px; }

.mini-pitch {
  background: linear-gradient(180deg, #0d350d 0%, #0a2a0a 100%);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formation-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.formation-gk { margin: 2px 0; }

.player-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0;
}

.player-dot.home {
  background: rgba(0, 240, 255, 0.2);
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.player-dot.away {
  background: rgba(255, 71, 87, 0.2);
  border: 1.5px solid var(--away-color);
  color: var(--away-color);
}

.player-dot.gk {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.player-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px currentColor;
}

.pitch-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2px 0;
}

.lineup-legend {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.lu-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.home-dot { background: var(--home-color); }
.away-dot { background: var(--away-color); }

.lineup-lists {
  display: flex;
  gap: 10px;
}

.lineup-col { flex: 1; }

.lineup-col-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 0;
  margin-bottom: 4px;
  border-bottom: 2px solid;
}

.home-header { color: var(--home-color); border-color: var(--home-color); }
.away-header { color: var(--away-color); border-color: var(--away-color); }

.lineup-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px;
  font-size: 11px;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.lineup-player:hover { background: var(--bg-raised); color: var(--text-primary); }

.lp-num {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 16px;
  font-variant-numeric: tabular-nums;
}

.goal-scorer { color: var(--text-primary); font-weight: 600; }
.yellow-card { color: #ffd700; }

/* ─── Animations ─── */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes scoreGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(0,240,255,0); }
  50% { text-shadow: 0 0 20px rgba(0,240,255,0.5); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.match-info-card { animation: fadeSlideIn 0.5s var(--transition-slow) both; }
.player-container { animation: fadeSlideIn 0.4s ease both; }
.upnext-section { animation: fadeSlideIn 0.6s var(--transition-slow) both; }

.score-num {
  animation: scoreGlow 3s ease-in-out infinite;
}

/* ─── Hover glow on nav ─── */
.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 4px var(--accent));
}

/* ─── Responsive ─── */
@media (max-width: 1280px) {
  :root { --data-sidebar-w: 280px; }
  .search-bar input { width: 140px; }
}

@media (max-width: 1100px) {
  :root { --data-sidebar-w: 260px; }
  .match-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .card-teams-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .card-team.home, .card-team.away {
    text-align: left;
    flex-direction: row;
    justify-content: flex-start;
  }
  .card-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  
  .sidebar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    z-index: 100;
    border-right: none;
    border-top: 1px solid var(--bg-border);
    background: var(--bg-card);
  }

  .sidebar-nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding: 0;
    align-items: center;
  }

  .sidebar-live-section, .sidebar-icon-links, .sidebar-footer { display: none; }
  .main-content { margin-bottom: 60px; }

  .nav-item {
    flex-direction: column;
    padding: 6px;
    font-size: 10px;
    gap: 4px;
    flex: 1;
    border-radius: 0;
  }
  
  .nav-item.active { box-shadow: inset 0 2px 0 var(--accent); background: none; }
  .nav-badge, .brand-text { display: none; }
}

/* ─── API Status Pill ─────────────────────────────────────── */
.api-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.api-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.api-dot.loading {
  background: #ffd700;
  animation: livePulse 1s ease-in-out infinite;
}

.api-dot.live {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: livePulse 2s ease-in-out infinite;
}

.api-dot.error {
  background: var(--live-red);
}

.api-status-label { color: var(--text-muted); }

/* ─── Skeleton Loaders ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.sk-line, .sk-circle, .sk-block {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}

.sk-line { height: 10px; margin-bottom: 6px; }
.sk-full  { width: 100%; }
.sk-mid   { width: 70%; }
.sk-short { width: 45%; }

.sk-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-card {
  pointer-events: none;
  opacity: 0.7;
  padding: 14px 12px;
  gap: 10px;
}

.sk-block {
  padding: 8px 0;
  border-radius: 0;
  background: none;
}

/* ─── Selected Match Card ─────────────────────────────────── */
.match-card.card-selected {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
  box-shadow: 0 0 16px var(--accent-dim) !important;
}

.match-card.card-selected::before {
  background: var(--accent) !important;
}

/* ─── Finished Card ──────────────────────────────────────── */
.card-finished-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  background: var(--bg-raised);
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
}

.card-team-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-text {
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* ─── Empty / Error States ───────────────────────────────── */
.no-fixtures-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
}

.sidebar-no-live {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 0;
  font-style: italic;
}

.events-empty, .stats-error, .stats-loading {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0;
  font-style: italic;
}

/* ─── Toast ─────────────────────────────────────────────── */
.xgoalz-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  z-index: 9999;
  background: #111;
  border: 1px solid var(--accent-mid);
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,240,255,0.15);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}

.xgoalz-toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════
   HOMEPAGE DASHBOARD SURFACES & GRIDS
   (Strictly solid, premium athletic style)
   ════════════════════════════════════════ */

.homepage-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 30px;
  overflow-y: auto;
  height: auto;
  background: var(--bg-surface);
  scroll-behavior: smooth;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.homepage-view .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
  position: relative;
}

.homepage-view .section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.homepage-view #section-live .section-header::after {
  background: var(--live-red);
}

.homepage-view .section-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-pulse {
  width: 7px;
  height: 7px;
  margin: 0;
  display: inline-block;
  background: var(--live-red);
}

.live-count-badge {
  background: var(--live-red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.channel-suggestions-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.channel-suggestion-card {
  min-height: 76px;
}

/* Solid Home Match Cards */
.home-match-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* Premium Neon Glow Card Hover (Solid surfaces) */
.home-match-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-raised);
  box-shadow: 0 12px 28px rgba(0, 240, 255, 0.15), 0 0 0 1px var(--accent);
}

.home-match-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
}

.home-match-card .card-league {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-match-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.home-card-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-card-team .team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg-raised);
  padding: 3px;
  flex-shrink: 0;
}

.home-card-team .team-name {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.home-watch-row {
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
}

.home-match-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 1px solid var(--bg-border);
  padding-top: 12px;
  margin-top: 2px;
}

.badge-live-neon {
  background: var(--live-red);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.badge-upcoming-neon {
  background: #1c1c1c;
  border: 1px solid #333;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.watch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 112px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-raised);
  transition: all 0.2s ease;
}

.home-match-card:hover .watch-pill {
  color: #000;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Solid Home Featured Hero Card */
.home-hero-card {
  background: radial-gradient(circle at right center, rgba(0, 110, 255, 0.25) 0%, #0d0d0d 60%), #050505;
  border: 1px solid var(--bg-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.8);
}

.home-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 240, 255, 0.1);
  pointer-events: none;
}

.home-hero-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.1), 0 12px 36px rgba(0,0,0,0.8);
}

.hero-loading {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  width: 100%;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60%;
  z-index: 2;
}

.hero-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--live-red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-sub {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.hero-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255,255,255,0.6);
}

.hero-scoreboard {
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 2;
  background: #0f0f0f;
  border: 1px solid var(--bg-border);
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100px;
}

.hero-crest {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg-raised);
  padding: 4px;
}

.hero-team-name {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.hero-scores {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero-score-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.hero-score-divider {
  font-weight: 300;
  color: var(--text-muted);
}

.hero-clock {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--live-red);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Transition & Responsive updates */
.view-transition {
  animation: fadeSlideIn 0.35s cubic-bezier(.4,0,.2,1) both;
}

@media (max-width: 900px) {
  .home-hero-card {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    padding: 24px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-scoreboard {
    justify-content: center;
  }
  .hero-title {
    font-size: 26px;
  }
}

/* ════════════════════════════════════════
   ADMIN PANEL WORKSPACE STYLING
   (Strictly solid, premium athletic style)
   ════════════════════════════════════════ */

.admin-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 30px;
  overflow-y: auto;
  height: calc(100vh - var(--topbar-h));
  background: var(--bg-surface);
  scroll-behavior: smooth;
}

.admin-header {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}

.admin-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 320px;
}

.admin-col.flex-2 {
  flex: 1.6;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.admin-card.height-full {
  height: 100%;
  min-height: 500px;
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  line-height: 1.2;
}

.admin-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--bg-border);
  padding-bottom: 12px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-input-row {
  display: flex;
  gap: 14px;
}

.flex-1 {
  flex: 1;
}

.admin-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-input, .admin-select {
  background: var(--bg-void);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 12.5px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-input:focus, .admin-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.admin-help {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.admin-btn {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.admin-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.admin-btn-secondary {
  background: #1c1c1c;
  border: 1px solid #333;
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-secondary:hover {
  background: var(--bg-hover);
  border-color: #555;
}

/* ─── Multi-Source Stream Builder ─── */
.admin-stream-source-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.admin-stream-source-row .admin-input {
  margin-bottom: 0;
}

.admin-stream-source-row textarea.admin-input {
  min-height: 40px;
  resize: vertical;
}

.admin-stream-source-row .admin-btn-secondary {
  min-height: 40px;
  padding: 8px 12px;
}

.admin-btn-icon {
  background: transparent;
  border: 1px solid rgba(255, 45, 85, 0.35);
  color: var(--live-red);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
}

.admin-btn-icon:hover {
  background: rgba(255, 45, 85, 0.12);
  border-color: var(--live-red);
}

/* Admin Match Table styles */
.admin-table-container {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.admin-table th {
  background: var(--bg-void);
  padding: 10px 12px;
  border-bottom: 2px solid var(--bg-border);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--bg-border);
  vertical-align: middle;
  color: var(--text-primary);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Match manager inline inputs */
.admin-table-input {
  background: var(--bg-void);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 12px;
  text-align: center;
  width: 50px;
  outline: none;
  transition: border-color var(--transition);
}

.admin-table-input:focus {
  border-color: var(--accent);
}

.admin-table-input.elapsed {
  width: 74px;
}

.admin-table-crest {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--bg-raised);
  padding: 2px;
}

/* Action buttons in table */
.admin-action-btn-save {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  margin-right: 6px;
}

.admin-action-btn-save:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent-glow);
}

.admin-action-btn-danger {
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid var(--away-color);
  color: var(--away-color);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.admin-action-btn-danger:hover {
  background: var(--away-color);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.35);
}

.admin-badge {
  display: inline-block;
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.25);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table-teams-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* ════════════════════════════════════════
   ADMIN AUTHENTICATION PANEL STYLING
   (Strictly solid, premium dark console)
   ════════════════════════════════════════ */

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  animation: fadeSlideIn 0.3s cubic-bezier(.4,0,.2,1) both;
}

.login-card {
  background: #0d0d0d;
  border: 1px solid var(--bg-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8);
  position: relative;
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.login-hint {
  font-size: 10px;
  color: var(--text-muted);
  background: #080808;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--bg-border);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

.login-hint strong {
  color: var(--accent);
  font-weight: 700;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Channels View ─── */
.channels-view {
  display: none;
  flex-direction: column;
  padding: 24px;
  animation: fadeSlideIn 0.4s ease-out;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.channel-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.channel-logo-placeholder {
  height: 98px;
  background: var(--bg-void);
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  overflow: hidden;
}

.channel-logo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.rail-ch-logo {
  overflow: hidden;
  background: #050505;
}

.rail-ch-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-name {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 15px;
}

.channel-status {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.channel-live-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px var(--accent);
  animation: livePulse 1.8s infinite ease-in-out;
}

/* ─── Admin Tabs ─────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  border-bottom: 1px solid var(--bg-border);
  padding-bottom: 0;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 16px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  letter-spacing: 0.2px;
  gap: 2px;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.admin-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-dim);
}

.admin-tab-panel {
  display: none;
  padding-top: 20px;
}

.admin-tab-panel.active {
  display: block;
}

/* ─── Sidebar Icon Links ─────────────────────────────────── */
.sidebar-icon-links {
  padding: 10px 14px 6px;
  border-top: 1px solid var(--bg-border);
}

.icon-links-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.icon-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.icon-link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--il-color, var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.icon-link-item:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.08);
  transform: translateX(2px);
}

.icon-link-item:hover::before {
  opacity: 0.08;
}

.icon-link-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 4px currentColor);
  opacity: 0.9;
}

.icon-link-item:hover .icon-link-icon {
  opacity: 1;
}

.icon-link-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ─── Admin header flex alignment ───────────────────────── */
.admin-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ─── Stats Summary Section ─── */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 14px;
  animation: fadeSlideUp 0.35s ease both;
}

.stat-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,196,0,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.stat-card-icon.live {
  background: rgba(255,45,85,0.12);
  color: var(--live-red);
}

.stat-card-icon.today {
  background: rgba(0,200,83,0.12);
  color: #00C853;
}

.stat-card-icon.upcoming {
  background: rgba(245,196,0,0.1);
  color: var(--accent);
}

.stat-card-icon.channels {
  background: rgba(100,150,255,0.1);
  color: #6496FF;
}

.stat-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card-val {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #5A5A5A;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ─── Empty States ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--bg-border);
  border-radius: var(--radius-md);
  text-align: center;
  gap: 12px;
  width: 100%;
}

.empty-state-icon {
  font-size: 32px;
  color: var(--text-muted);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.05));
}

.empty-state-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

.empty-state-btn {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-state-btn:hover {
  background: var(--accent);
  color: #000;
}

/* ─── Reusable Outlined / Secondary Button ─── */
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--bg-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-outline:hover {
  background: var(--bg-raised);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ─── Search No Results State ─── */
.search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  margin-top: 14px;
  width: 100%;
}

.search-no-results-icon {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.search-no-results h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.search-no-results p {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 320px;
}

/* ─── Sidebar Stats counts ─── */
.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
}

.sidebar-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.sidebar-stat-item .stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.sidebar-stat-item .stat-dot.live {
  background: var(--live-red);
  box-shadow: 0 0 4px var(--live-red);
}

.sidebar-stat-item .stat-dot.today {
  background: var(--green);
}

.sidebar-stat-item .stat-dot.upcoming {
  background: var(--accent);
}

.sidebar-stat-item .stat-label {
  color: var(--text-secondary);
  flex: 1;
}

.sidebar-stat-item .stat-val {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* ─── Improved Date Tabs ─── */
.date-tab {
  transition: all var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.date-tab .tab-count {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  padding: 1px 5px;
  border-radius: 10px;
  transition: all var(--transition);
}

.date-tab.active .tab-count {
  background: var(--accent);
  color: var(--bg-void);
}

/* ═══════════════════════════════════════════════════════════
   xGoalz v2 — Premium Design Overrides & Animation System
   Gold palette, classy icons, silky micro-interactions
   ═══════════════════════════════════════════════════════════ */

/* ─── Global Keyframes ─── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,196,0,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(245,196,0,0); }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(245,196,0,0.0); }
  50%       { text-shadow: 0 0 20px rgba(245,196,0,0.6); }
}

/* ─── View Transition ─── */
.view-transition {
  animation: fadeSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ─── Body & Scrollbar ─── */
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,196,0,0.35); }

/* ─── Sidebar ─── */
.sidebar {
  background: #000;
  border-right: 1px solid #1C1C1C;
}

.sidebar-nav {
  padding: 16px 10px;
  gap: 3px;
}

/* ─── Nav Items ─── */
.nav-item {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #6E6E6E;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #BDBDBD;
  transform: translateX(2px);
}
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 600;
}
.nav-item .nav-icon {
  width: 17px;
  height: 17px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { opacity: 1; }

/* ─── Sidebar Section Label ─── */
.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3A3A3A;
  padding: 14px 12px 6px;
  text-transform: uppercase;
}

/* ─── Sidebar Footer ─── */
.sidebar-footer { padding: 12px 10px 16px; }
.sidebar-stats { gap: 4px; }
.sidebar-stat-item {
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.sidebar-stat-item:hover { background: rgba(255,255,255,0.03); }
.stat-label { color: #5E5E5E; font-size: 11px; }
.stat-val   { color: #9A9A9A; font-size: 11px; font-weight: 600; }

/* ─── Telegram Button ─── */
.telegram-btn {
  border: 1px solid #2A2A2A;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #8A8A8A;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.telegram-btn:hover {
  border-color: rgba(245,196,0,0.3);
  color: var(--accent);
  background: rgba(245,196,0,0.05);
}

/* ─── Topbar ─── */
.topbar {
  background: #000;
  border-bottom: 1px solid #1C1C1C;
  height: 58px;
  padding: 0 20px;
}
.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #F5C400, #FFD740);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  font-size: 10px;
  color: #484848;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ─── Search Bar ─── */
.search-bar {
  background: #0F0F0F;
  border: 1px solid #252525;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.search-bar:focus-within {
  border-color: rgba(245,196,0,0.3);
  background: #141414;
  box-shadow: 0 0 0 3px rgba(245,196,0,0.06);
}
.search-bar input::placeholder { color: #484848; }

/* ─── Admin / Settings button in topbar ─── */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #111;
  border: 1px solid #252525;
  color: #6E6E6E;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.icon-btn:hover {
  border-color: rgba(245,196,0,0.3);
  color: var(--accent);
  background: rgba(245,196,0,0.05);
  transform: rotate(15deg);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 12px;
  color: #484848;
}
.breadcrumb-item { color: #5E5E5E; transition: color 0.2s; }
.breadcrumb-item:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }
.breadcrumb-sep { color: #333; margin: 0 4px; }

/* ─── Date Nav ─── */
.date-nav { 
  gap: 6px;
  padding: 14px 18px 10px;
}
.date-tab {
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5E5E5E;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.date-tab:hover {
  color: #9A9A9A;
  background: rgba(255,255,255,0.03);
  border-color: #252525;
}
.date-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(245,196,0,0.2);
  box-shadow: 0 2px 12px rgba(245,196,0,0.1);
}

/* ─── Stats Summary Cards ─── */
.stats-summary {
  padding: 10px 18px;
  gap: 10px;
}
.stat-card {
  background: #111;
  border: 1px solid #1C1C1C;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: fadeSlideIn 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
.stat-card:hover {
  border-color: rgba(245,196,0,0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.stat-card-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.stat-card-lbl {
  font-size: 11px;
  color: #5E5E5E;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.stat-card-icon {
  border-radius: 9px;
  padding: 7px;
}
.stat-card-icon.live { background: rgba(255,45,85,0.12); color: #FF2D55; }
.stat-card-icon.today { background: rgba(245,196,0,0.1); color: var(--accent); }
.stat-card-icon.upcoming { background: rgba(0,201,122,0.1); color: #00C97A; }
.stat-card-icon.channels { background: rgba(255,255,255,0.05); color: #8A8A8A; }

/* ─── Section Headings ─── */
.section-heading, .matches-section-header {
  padding: 18px 18px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5E5E5E;
}

/* ─── Live Badge ─── */
.live-badge-section {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,45,85,0.12);
  border: 1px solid rgba(255,45,85,0.2);
  font-size: 9px;
  font-weight: 700;
  color: #FF2D55;
  letter-spacing: 0.1em;
}

/* ─── Match Cards ─── */
.match-card {
  background: #111;
  border: 1px solid #1C1C1C;
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeSlideIn 0.3s ease both;
  cursor: pointer;
}
.match-card:hover {
  border-color: rgba(245,196,0,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,196,0,0.08);
}
.match-card.live-card {
  border-color: rgba(255,45,85,0.22);
  background: linear-gradient(135deg, #111 0%, rgba(255,45,85,0.05) 100%);
}
.match-card.live-card::before {
  background: var(--live-red) !important;
}
.match-card.live-card:hover {
  border-color: rgba(255,45,85,0.4);
  box-shadow: 0 8px 30px rgba(255,45,85,0.15), 0 0 0 1px rgba(255,45,85,0.1);
}

/* ─── Card Live Dot ─── */
.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF2D55;
  display: inline-block;
  animation: livePulseAnim 1.6s ease-in-out infinite;
}
.match-card.finished-card {
  opacity: 0.94;
  cursor: default;
  border-color: rgba(245,196,0,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
}
.match-card.finished-card:hover {
  transform: none;
  border-color: rgba(245,196,0,0.22);
  box-shadow: 0 6px 18px rgba(0,0,0,0.36);
}
@keyframes livePulseAnim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0.6); transform: scale(1); }
  50%       { box-shadow: 0 0 0 5px rgba(255,45,85,0); transform: scale(1.15); }
}

/* ─── Global Card Entry Animation ─── */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* stagger delay on cards */
.matches-list .match-card:nth-child(1)  { animation-delay: 0.04s; }
.matches-list .match-card:nth-child(2)  { animation-delay: 0.08s; }
.matches-list .match-card:nth-child(3)  { animation-delay: 0.12s; }
.matches-list .match-card:nth-child(4)  { animation-delay: 0.16s; }
.matches-list .match-card:nth-child(5)  { animation-delay: 0.20s; }
.matches-list .match-card:nth-child(6)  { animation-delay: 0.24s; }
.matches-list .match-card:nth-child(7)  { animation-delay: 0.28s; }
.matches-list .match-card:nth-child(8)  { animation-delay: 0.32s; }

/* ─── Channel Cards ─── */
.channel-card {
  background: #111;
  border: 1px solid #1C1C1C;
  border-radius: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: scaleIn 0.3s ease both;
  cursor: pointer;
  overflow: hidden;
}
.channel-card:hover {
  border-color: rgba(245,196,0,0.25);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,196,0,0.1);
}
.channel-card .channel-logo-placeholder {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex: 0 0 52px;
  padding: 6px;
  border-radius: 12px;
  background: #050505;
  border-color: #252525;
  font-size: 11px;
  letter-spacing: 0;
}
.channel-card .channel-logo-placeholder img {
  border-radius: 9px;
  object-fit: contain;
  object-position: center;
}
.channel-card .channel-info {
  min-width: 0;
  flex: 1;
  gap: 5px;
}
.channel-name { 
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #00C97A;
  display: flex; align-items: center; gap: 5px;
}
.channel-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #00C97A;
  animation: livePulse 2s ease-in-out infinite;
}

/* ─── Player ─── */
.player-column {
  padding: 20px 24px;
  max-width: 100%;
}
.player-container {
  border-radius: 20px;
  border: 1px solid #252525;
  max-height: 60vh;
  box-shadow: 0 0 0 1px #1A1A1A, 0 20px 60px rgba(0,0,0,0.8);
  transition: box-shadow 0.3s;
}
.player-container:focus-within {
  box-shadow: 0 0 0 1px rgba(245,196,0,0.2), 0 20px 60px rgba(0,0,0,0.8);
}

/* Live Badge in player */
.live-badge {
  background: rgba(255,45,85,0.9);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 5px;
}

/* Play button */
.play-btn-big {
  transition: transform var(--spring), filter 0.2s;
}
.play-btn-big:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 16px rgba(245,196,0,0.5));
}

/* Controls */
.video-controls {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
  padding: 20px 14px 12px;
}
.ctrl-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.ctrl-btn:hover {
  background: rgba(245,196,0,0.12);
  border-color: rgba(245,196,0,0.2);
  transform: scale(1.08);
}
.live-indicator-ctrl {
  color: #FF2D55;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: livePulse 2s ease-in-out infinite;
}
.quality-tag {
  background: rgba(245,196,0,0.1);
  color: var(--accent);
  border: 1px solid rgba(245,196,0,0.2);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Progress Bar */
.progress-bar-fill { background: var(--accent); }
.progress-bar-thumb {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245,196,0,0.6);
}
.volume-slider { accent-color: var(--accent); }

/* ─── Admin Panel ─── */
.admin-view {
  background: #0A0A0A;
}
.admin-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff 60%, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.admin-card {
  background: #111;
  border: 1px solid #1C1C1C;
  border-radius: 14px;
  transition: border-color 0.2s;
}
.admin-card:hover { border-color: #252525; }
.admin-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.admin-input {
  background: #0A0A0A;
  border: 1px solid #252525;
  border-radius: 9px;
  color: var(--text-primary);
  font-size: 13px;
  padding: 9px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input:focus {
  border-color: rgba(245,196,0,0.3);
  box-shadow: 0 0 0 3px rgba(245,196,0,0.06);
  outline: none;
}
.admin-btn {
  background: var(--accent);
  color: #000;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.admin-btn:hover {
  background: #FFD740;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.25);
}
.admin-tab-btn {
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  color: #5E5E5E;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.admin-tab-btn:hover {
  color: #9A9A9A;
  background: rgba(255,255,255,0.03);
}
.admin-tab-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(245,196,0,0.15);
}
.admin-action-btn-save {
  background: rgba(245,196,0,0.1);
  color: var(--accent);
  border: 1px solid rgba(245,196,0,0.2);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-action-btn-save:hover {
  background: rgba(245,196,0,0.18);
  border-color: rgba(245,196,0,0.35);
}
.admin-action-btn-danger {
  background: rgba(255,45,85,0.08);
  color: #FF2D55;
  border: 1px solid rgba(255,45,85,0.15);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-action-btn-danger:hover {
  background: rgba(255,45,85,0.15);
  border-color: rgba(255,45,85,0.3);
}
.admin-table {
  font-size: 12px;
  border-collapse: collapse;
  width: 100%;
}
.admin-table th {
  color: #484848;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid #1C1C1C;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #141414;
  color: #8A8A8A;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.015); }
.admin-table-input {
  background: #0A0A0A;
  border: 1px solid #252525;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 11px;
  padding: 5px 8px;
  transition: border-color 0.2s;
}
.admin-table-input:focus {
  border-color: rgba(245,196,0,0.25);
  outline: none;
}

/* ─── Toast Notification ─── */
.toast-notification {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: slideInLeft 0.3s ease both;
}

/* ─── Login Modal ─── */
.login-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(245,196,0,0.05);
  animation: scaleIn 0.3s ease both;
}
.login-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.login-input {
  background: #0A0A0A;
  border: 1px solid #252525;
  border-radius: 10px;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus {
  border-color: rgba(245,196,0,0.3);
  box-shadow: 0 0 0 3px rgba(245,196,0,0.06);
  outline: none;
}
.login-btn {
  background: var(--accent);
  color: #000;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.login-btn:hover {
  background: #FFD740;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,196,0,0.3);
}

/* ─── Empty States ─── */
.empty-state-card {
  background: #0F0F0F;
  border: 1px dashed #252525;
  border-radius: 16px;
  transition: border-color 0.2s;
}
.empty-state-card:hover { border-color: rgba(245,196,0,0.15); }

/* ─── WC Nav item override (Highlighted) ─── */
.nav-item-wc {
  position: relative;
  border-left: 2px solid var(--accent);
  color: var(--accent) !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(245, 196, 0, 0.2);
  transition: all 0.25s ease;
  background: rgba(245, 196, 0, 0.02);
}
.nav-item-wc::before {
  display: none;
}
.nav-item-wc:hover {
  background: rgba(245, 196, 0, 0.08);
  border-left-width: 4px;
  color: #fff !important;
  transform: translateX(1px);
}
.nav-item-wc.active {
  background: rgba(245, 196, 0, 0.12);
  border-left-width: 4px;
  color: #fff !important;
  box-shadow: none;
}

/* ─── Section heading badge ─── */
.live-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,45,85,0.1);
  border: 1px solid rgba(255,45,85,0.18);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FF2D55;
  text-transform: uppercase;
  animation: fadeIn 0.4s ease both;
}

/* ─── Skeleton Shimmer ─── */
.skeleton {
  background: linear-gradient(90deg, #141414 25%, #1C1C1C 50%, #141414 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 8px;
}

/* ─── Admin reset/danger global btn ─── */
.admin-btn-secondary {
  background: transparent;
  border: 1px solid #252525;
  color: #6E6E6E;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-btn-secondary:hover {
  border-color: rgba(245,196,0,0.2);
  color: var(--accent);
  background: rgba(245,196,0,0.04);
}

/* ─── Channels view ─── */
.channels-view { background: var(--bg-surface); }
.admin-view { background: var(--bg-surface); }
.homepage-view { background: var(--bg-surface); }

.category-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(229,9,20,0.12), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(255,255,255,0.055), transparent 28%),
    var(--bg-surface);
}

.category-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.category-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.category-subtitle {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.category-count-card {
  min-width: 118px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(229,9,20,0.24);
  background: rgba(229,9,20,0.08);
  text-align: right;
}

.category-count {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 0.95;
}

.category-count-label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}

.category-filter-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.category-filter-btn:hover,
.category-filter-btn.active {
  border-color: rgba(229,9,20,0.42);
  background: rgba(229,9,20,0.13);
  color: #fff;
  transform: translateY(-1px);
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  padding-bottom: 34px;
}

.channels-view {
  overflow-y: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(229,9,20,0.1), transparent 32%),
    var(--bg-surface);
}

.channels-view .admin-header {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
}

/* Ensure full-width player after chat removal */
.content-row { gap: 0; }
.player-column { max-width: 100%; width: 100%; transition: width 0.3s; }

/* ─── Layout: 3 Columns Homepage ─── */
.home-layout {
  display: flex;
  gap: 20px;
  padding: 0 20px 20px;
  /* height: 100%; removed */
}
.home-main {
  flex: 1;
  min-width: 0; /* prevent flex blowout */
  overflow-y: auto;
  padding-top: 20px;
  padding-bottom: 80px; /* space for mobile nav */
}
.home-right-rail {
  display: none;
}


/* ─── Right Rail Cards ─── */
.rail-card {
  background: #111;
  border: 1px solid #1C1C1C;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rail-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #1C1C1C;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rail-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.rail-card-badge {
  background: rgba(255,45,85,0.15);
  color: #FF2D55;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.rail-see-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.rail-see-all:hover { text-decoration: underline; }


/* Right Rail Channels/WC lists */
.rail-channels-list, .rail-wc-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
}
.rail-item:hover { background: rgba(255,255,255,0.04); }
.rail-item-thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #1A1A1A;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
  overflow: hidden;
}
.rail-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rail-item-info { flex: 1; display: flex; flex-direction: column; }
.rail-item-title { font-size: 12px; font-weight: 600; color: #fff; }
.rail-item-sub { font-size: 10px; color: #8A8A8A; }

/* ─── Stream View Layout (70/30) ─── */
.stream-view .content-row {
    display: flex;
    flex-direction: row;
    height: 100%;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
    overflow-y: auto;
  }
.player-column {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.player-info-panel {
  width: min(360px, 30vw);
  min-width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - var(--topbar-h) - 40px);
  overflow: hidden;
  position: sticky;
  top: 0;
}
.player-panel-card {
  background: #111;
  border: 1px solid #1C1C1C;
  border-radius: 8px;
  padding: 16px;
}
.player-below-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}
.panel-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-lbl { font-size: 10px; color: #8A8A8A; }
.info-val { font-size: 12px; font-weight: 600; color: #fff; }

.source-list, .quality-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.source-btn, .quality-btn {
  background: #1A1A1A;
  border: 1px solid #252525;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.source-btn:hover, .quality-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: #333;
}
.source-btn.active, .quality-btn.active {
  border-color: var(--accent);
  background: rgba(245,196,0,0.05);
  color: var(--accent);
}
.source-btn.active::after, .quality-btn.active::after {
  content: '●';
  color: var(--accent);
}

.source-format {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

.player-chat-panel .chat-card {
  flex: 1;
  min-height: 0;
}
.chat-card { padding: 0; display: flex; flex-direction: column; }
.chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid #1C1C1C;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.chat-status-pill {
  border: 1px solid rgba(255,45,85,0.35);
  border-radius: 999px;
  color: #FF2D55;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
}
.chat-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
.chat-body .rail-chat-feed {
  flex: 1;
  height: auto;
  min-height: 260px;
  margin-bottom: 0;
}
.quality-popup-list .quality-btn small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

/* ─── MatchCard v2 Enhancements ─── */
.match-card-v2 {
  position: relative;
}
.card-comp-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.card-comp-name {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Status pill — positioned inline in new card layout */
.status-pill {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-pill.live {
  background: rgba(255,45,85,0.15);
  color: #FF2D55;
  border: 1px solid rgba(255,45,85,0.25);
  animation: liveGlow 2s ease-in-out infinite;
}
.status-pill.upcoming {
  background: rgba(255,255,255,0.07);
  color: #A0A0A0;
  border: 1px solid rgba(255,255,255,0.1);
}
.status-pill.finished {
  background: rgba(245,196,0,0.12);
  color: var(--accent);
  border: 1px solid rgba(245,196,0,0.28);
}
@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
  50%       { box-shadow: 0 0 6px 1px rgba(255,45,85,0.3); }
}

.team-flag-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  background: #1a1a1a;
  transition: border-color 0.2s;
}
.match-card:hover .team-flag-wrap { border-color: rgba(245,196,0,0.3); }
.team-flag-img { width: 100%; height: 100%; object-fit: cover; }
.card-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}
.finished-team-row {
  min-height: 34px;
  padding-right: 2px;
}
.card-team-score {
  margin-left: auto;
  min-width: 28px;
  text-align: right;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.finished-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.finished-card-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  border-radius: 4px;
  background: rgba(245,196,0,0.12);
  color: var(--accent);
  border: 1px solid rgba(245,196,0,0.25);
}
.finished-card-label {
  color: var(--text-secondary);
}
.finished-card-time {
  margin-left: auto;
  color: var(--text-muted);
}
.match-card:hover .card-team-row { transform: translateX(3px); }
.card-team-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f0f0f0;
  flex: 1;
  letter-spacing: 0.01em;
}
.card-watch-row {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}

.card-footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.card-channel {
  font-size: 10.5px;
  color: #5A5A5A;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.match-card:hover .card-channel { color: #8A8A8A; }

.card-watch-btn {
  background: rgba(245,196,0,0.08);
  color: var(--accent);
  border: 1px solid rgba(245,196,0,0.2);
  border-radius: 10px;
  min-width: 124px;
  padding: 9px 24px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.match-card:hover .card-watch-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(245,196,0,0.3);
  transform: translateY(-1px);
}

/* ─── Mobile Bottom Navigation ─── */
.mobile-bottom-nav {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #1C1C1C;
  z-index: 100;
  padding: 10px 0 16px; /* extra bottom padding for safe area */
  justify-content: space-around;
  align-items: center;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #6E6E6E;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s;
}
.mob-nav-item span { font-size: 10px; font-weight: 600; }
.mob-nav-item.active { color: var(--accent); }
.mob-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px; height: 8px;
  background: #FF2D55;
  border-radius: 50%;
  border: 2px solid #0A0A0A;
}

/* ─── Media Queries ─── */
@media (max-width: 1024px) {
  .home-right-rail { display: none; }
  .player-info-panel {
    width: 300px;
    min-width: 280px;
  }
  .player-below-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-bottom-nav { display: flex; }
  .home-layout { padding: 0 10px 10px; }
  .stats-summary { grid-template-columns: 1fr 1fr; }
  .stream-view .content-row { flex-direction: column; padding: 10px; padding-bottom: 80px; }
  .player-info-panel {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 320px;
    overflow: visible;
    position: static;
  }
  .player-below-panel { grid-template-columns: 1fr; }
  .chat-body .rail-chat-feed { min-height: 220px; }
  .player-action-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .player-action-btn {
    flex: 0 0 auto;
  }
  .match-score-display {
    gap: 8px;
  }
  .score-team-name {
    font-size: 12px;
  }
  .stream-view.channel-stream .content-row {
    flex-direction: column;
    overflow-y: visible;
    align-items: center;
    padding: 28px 24px;
  }

.stream-view.channel-stream .player-column {
  width: 100%;
  max-width: min(1180px, 100%);
  flex: 0 0 auto;
  overflow: visible;
  gap: 18px;
}

.stream-view.channel-stream .player-info-panel {
  display: none;
}

.stream-view.channel-stream .player-container {
  width: 100%;
  max-width: min(1180px, calc((68vh - 40px) * 16 / 9));
  max-height: min(68vh, 680px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.player-container:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.hls-player-mount .video-el,
.player-container .video-el {
  object-fit: contain;
  background: #000;
}

}

/* ============================================================
   xGoalz Sports Refresh
   Asset-aware landing layout, match filters, and mobile sizing
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   NETFLIX SPORTS THEME — xGoalZ v3
   Deep black cinematic palette · Red live energy
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Netflix Sports Palette */
  --bg:            #0A0A0A;
  --bg-void:       #0A0A0A;
  --bg-surface:    #111111;
  --bg-card:       #141414;
  --bg-raised:     #1A1A1A;
  --bg-hover:      #1A1A1A;
  --bg-border:     rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(229,9,20,0.35);

  /* Netflix Red Accent — replaces old yellow */
  --accent:        #E50914;
  --accent-hover:  #F6121D;
  --accent-dim:    rgba(229,9,20,0.12);
  --accent-glow:   rgba(229,9,20,0.35);
  --accent-mid:    rgba(229,9,20,0.5);
  --accent-soft:   rgba(229,9,20,0.08);

  /* Text */
  --primary:       #FFFFFF;
  --secondary:     #A3A3A3;
  --muted:         #6B7280;
  --text-primary:  #FFFFFF;
  --text-secondary:#A3A3A3;
  --text-muted:    #6B7280;
  --text-label:    #6B7280;

  /* Live / Status */
  --live-red:      #FF2D55;
  --live:          #FF2D55;
  --success:       #22C55E;
  --warning:       #F5C400;
  --green:         #22C55E;
  --gold:          #F5C400;

  /* Legacy compat */
  --home-color:    #E50914;
  --away-color:    #FF2D55;
  --sport-blue:    #A3A3A3;
}

/* ─── Clean dark radial gradient background (no noisy grid) ─── */
.homepage-view {
  padding: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(229,9,20,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(229,9,20,0.04) 0%, transparent 50%),
    var(--bg-surface);
}

.home-layout {
  padding: 16px 22px 28px;
  gap: 0;
}

.home-main {
  padding-top: 0;
  padding-bottom: 72px;
}

.nav-icon-img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.date-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,17,13,0.94);
}

.date-tab {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 13px;
  color: #b8c6bd;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.date-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.075);
  border-color: rgba(18,168,255,0.35);
}

.date-tab.active {
  color: #06100b;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(247,217,40,0.22);
}

.date-tab-action {
  margin-left: auto;
  color: var(--green);
  border-color: rgba(0,212,126,0.32);
  background: rgba(0,212,126,0.09);
}

.date-tab-action.active {
  color: #03150d;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 22px rgba(0,212,126,0.2);
}

.date-tab .tab-count {
  flex-shrink: 0;
  background: rgba(0,0,0,0.22);
  color: currentColor;
}

.stats-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 12px 0 22px;
}

.stat-card {
  min-width: 0;
  min-height: 82px;
  border-radius: 8px;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 30px rgba(0,0,0,0.28);
}

.stat-card:hover {
  border-color: rgba(247,217,40,0.32);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.stat-card-icon.live { background: rgba(255,45,85,0.18); }
.stat-card-icon.today { background: rgba(18,168,255,0.15); color: var(--sport-blue); }
.stat-card-icon.upcoming { background: rgba(0,212,126,0.16); color: var(--green); }
.stat-card-icon.channels { background: rgba(247,217,40,0.13); color: var(--accent); }

.stat-card-info {
  min-width: 0;
}

.stat-card-val {
  font-size: 25px;
  color: var(--accent);
  line-height: 1;
}

.stat-card-lbl {
  color: #91a098;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-section {
  gap: 12px;
  margin-top: 18px;
}

.homepage-view .section-header {
  min-height: 42px;
  padding-bottom: 10px;
  border-bottom-color: rgba(255,255,255,0.09);
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.homepage-view .section-title {
  color: #edf8f1;
  font-size: 14px;
  letter-spacing: 0;
}

.homepage-view .section-header::after {
  width: 64px;
  background: linear-gradient(90deg, var(--green), var(--sport-blue));
}

.homepage-view #section-live .section-header::after {
  background: linear-gradient(90deg, var(--live-red), var(--accent));
}

.matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 318px), 1fr));
  gap: 12px;
  align-items: stretch;
}

.match-card.match-card-v2 {
  display: block;
  min-width: 0;
  min-height: 188px;
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(0,212,126,0.08), rgba(18,168,255,0.045) 48%, rgba(247,217,40,0.035)),
    #0b1510;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.match-card.match-card-v2::before {
  width: 4px;
  background: var(--green);
}

.match-card.match-card-v2.live-card {
  background:
    linear-gradient(135deg, rgba(255,45,85,0.12), rgba(247,217,40,0.06)),
    #120e11;
  border-color: rgba(255,45,85,0.32);
}

.match-card.match-card-v2.upcoming-card {
  border-color: rgba(0,212,126,0.18);
}

.match-card.match-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(247,217,40,0.38);
  box-shadow: 0 18px 42px rgba(0,0,0,0.38), 0 0 0 1px rgba(247,217,40,0.08);
}

.card-comp-badge {
  min-height: 28px;
  padding-right: 116px;
  margin-bottom: 12px;
}

.card-comp-name {
  min-width: 0;
  color: #f7d928;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  top: 15px;
  right: 15px;
  max-width: 108px;
  min-height: 24px;
  justify-content: center;
  border-radius: 6px;
  white-space: nowrap;
}

.status-pill.upcoming {
  color: var(--green);
  border-color: rgba(0,212,126,0.28);
  background: rgba(0,212,126,0.1);
}

.team-flag-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #08100c;
  border-color: rgba(255,255,255,0.16);
}

.card-team-row {
  min-width: 0;
  min-height: 34px;
  margin-bottom: 7px;
}

.card-team-name {
  min-width: 0;
  font-size: 14px;
  color: #f4fff8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-versus-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 2px 0 12px;
  padding-right: 112px;
  font-size: 13px;
  font-weight: 900;
}

.live-versus-team {
  min-width: 0;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255,45,85,0.34);
}

.live-versus-sep {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-card.live-card .card-team-name {
  color: #fff;
  font-weight: 800;
}

.card-watch-row {
  margin: 14px 0 7px;
}

.card-watch-btn {
  min-height: 38px;
  min-width: 128px;
  border-radius: 8px;
  color: #06100b;
  background: var(--accent);
  border-color: var(--accent);
}

.match-card:hover .card-watch-btn {
  background: #fff;
  border-color: #fff;
}

.card-footer-row {
  padding-top: 9px;
  border-top-color: rgba(255,255,255,0.075);
}

.card-channel {
  max-width: 100%;
  color: #9aa8a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state,
.search-no-results,
.no-fixtures-msg {
  border-radius: 8px;
  background: rgba(13,23,18,0.88);
  border-color: rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar {
    min-height: 58px;
    height: auto;
    gap: 10px;
    padding: 8px 10px;
  }

  .brand-img {
    width: 34px;
    height: 34px;
  }

  .search-bar {
    min-width: 0;
    flex: 1;
  }

  .search-bar input {
    width: 100%;
    min-width: 0;
  }

  .homepage-view {
    height: auto;
    padding: 0;
  }

  .category-view,
  .channels-view {
    padding: 12px 10px 92px;
  }

  .category-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .category-count-card {
    text-align: left;
  }

  .home-layout {
    display: block;
    padding: 0 10px 92px;
  }

  .home-main {
    padding-bottom: 0;
  }

  .date-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
  }

  .date-nav::-webkit-scrollbar {
    display: none;
  }

  .date-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    font-size: 11.5px;
  }

  .date-tab-action {
    margin-left: 0;
  }

  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 10px 0 18px;
  }

  .stat-card {
    min-height: 76px;
    padding: 12px;
    gap: 9px;
  }

  .stat-card-icon {
    width: 38px;
    height: 38px;
  }

  .stat-card-val {
    font-size: 22px;
  }

  .stat-card-lbl {
    font-size: 9.5px;
  }

  .matches-list {
    grid-template-columns: 1fr;
  }

  .match-card.match-card-v2 {
    min-height: 174px;
    padding: 13px;
  }

  .card-comp-badge {
    padding-right: 0;
    margin-bottom: 8px;
  }

  .status-pill {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px auto;
  }

  .card-team-row {
    min-height: 32px;
  }

  .card-team-name {
    font-size: 13.5px;
  }

  .card-watch-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar {
    align-items: stretch;
  }

  .topbar-brand {
    min-width: 0;
  }

  .stats-summary {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 70px;
  }
}

body,
body * {
  letter-spacing: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   NETFLIX SPORTS — UI OVERRIDES & POLISH
   Applied on top of base styles. Covers accents, buttons,
   cards, badges, sidebar, and animation brand identity.
   ═══════════════════════════════════════════════════════════ */

/* ─── Sidebar Active State → Netflix Red ─── */
.nav-item.active {
  background: rgba(229,9,20,0.12) !important;
  color: #E50914 !important;
  box-shadow: inset 3px 0 0 #E50914 !important;
}
.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 4px rgba(229,9,20,0.5)) !important;
  opacity: 1 !important;
}
.nav-item:hover {
  background: rgba(255,255,255,0.04) !important;
  color: #FFFFFF !important;
}

/* Nav badge uses red */
.nav-badge {
  background: #E50914 !important;
  color: #fff !important;
}

/* ─── Topbar Brand ─── */
.topbar {
  background: rgba(10,10,10,0.95) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.brand-img {
  border: 1.5px solid rgba(229,9,20,0.5) !important;
  box-shadow: 0 0 12px rgba(229,9,20,0.2) !important;
}

/* Brand name — white text, no colored gradient */
.brand-name {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
.brand-sub {
  color: #E50914 !important;
  font-weight: 600 !important;
}

/* ─── Search Bar → subtle red focus ─── */
.search-bar:focus-within {
  border-color: rgba(229,9,20,0.4) !important;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.08) !important;
}

/* Admin/Settings icon button → red hover */
.icon-btn:hover {
  border-color: rgba(229,9,20,0.35) !important;
  color: #E50914 !important;
  background: rgba(229,9,20,0.06) !important;
}
.topbar-back-btn:hover {
  color: #E50914 !important;
  border-color: rgba(229,9,20,0.4) !important;
  background: rgba(229,9,20,0.08) !important;
}

/* ─── Date Tabs → red active ─── */
.date-nav {
  background: rgba(10,10,10,0.94) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.date-tab.active {
  color: #fff !important;
  background: #E50914 !important;
  border-color: #E50914 !important;
  box-shadow: 0 4px 18px rgba(229,9,20,0.3) !important;
}
.date-tab:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(229,9,20,0.25) !important;
}
/* Keep "Upcoming" tab subtle rather than green */
.date-tab-action {
  color: #A3A3A3 !important;
  border-color: rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.04) !important;
}
.date-tab-action.active {
  color: #fff !important;
  background: #E50914 !important;
  border-color: #E50914 !important;
  box-shadow: 0 4px 18px rgba(229,9,20,0.25) !important;
}

/* ─── Section headers → red underline for live ─── */
.homepage-view .section-header::after {
  background: rgba(229,9,20,0.6) !important;
  width: 48px !important;
}
.homepage-view #section-live .section-header::after {
  background: #FF2D55 !important;
}
.homepage-view .section-title {
  color: #FFFFFF !important;
  font-size: 14px !important;
}

/* ─── Stat Cards → red accent val ─── */
.stat-card-val {
  color: #FFFFFF !important;
}
.stat-card-icon.live    { background: rgba(255,45,85,0.15) !important; color: #FF2D55 !important; }
.stat-card-icon.today   { background: rgba(229,9,20,0.1)  !important; color: #E50914 !important; }
.stat-card-icon.upcoming{ background: rgba(255,255,255,0.06) !important; color: #A3A3A3 !important; }
.stat-card-icon.channels{ background: rgba(255,255,255,0.05) !important; color: #A3A3A3 !important; }
.stat-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
.stat-card:hover {
  border-color: rgba(229,9,20,0.28) !important;
}
.stat-card-lbl { color: #6B7280 !important; }

/* ─── LIVE Badge pill in section header ─── */
.live-badge-pill,
.badge-live-neon,
.live-section-badge {
  background: rgba(255,45,85,0.15) !important;
  color: #FF2D55 !important;
  border: 1px solid rgba(255,45,85,0.25) !important;
}

/* ─── Match Cards — base ─── */
.match-card.match-card-v2 {
  background: #141414 !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}
.match-card.match-card-v2::before {
  background: rgba(229,9,20,0.5) !important;
}
.match-card.match-card-v2:hover {
  background: #1A1A1A !important;
  border-color: rgba(229,9,20,0.35) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(229,9,20,0.12) !important;
}
.match-card:hover .team-flag-wrap {
  border-color: rgba(229,9,20,0.35) !important;
}

/* ─── LIVE Card — red border + dark red gradient bg ─── */
.match-card.match-card-v2.live-card {
  background:
    linear-gradient(160deg, rgba(229,9,20,0.12) 0%, rgba(20,20,20,1) 70%) !important;
  border-color: rgba(229,9,20,0.35) !important;
  box-shadow: 0 8px 28px rgba(229,9,20,0.1), 0 0 0 1px rgba(229,9,20,0.15) !important;
}
.match-card.match-card-v2.live-card:hover {
  border-color: rgba(229,9,20,0.55) !important;
  box-shadow: 0 12px 36px rgba(229,9,20,0.18), 0 0 0 1px rgba(229,9,20,0.2) !important;
}
.match-card.live-card { /* old class too */
  border-color: rgba(229,9,20,0.35) !important;
  background: linear-gradient(160deg, rgba(229,9,20,0.10) 0%, rgba(20,20,20,1) 70%) !important;
}

/* ─── Status pills ─── */
.status-pill.live {
  background: rgba(255,45,85,0.15) !important;
  color: #FF2D55 !important;
  border: 1px solid rgba(255,45,85,0.3) !important;
}
.status-pill.upcoming {
  background: rgba(255,255,255,0.06) !important;
  color: #A3A3A3 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
.status-pill.finished {
  background: rgba(255,255,255,0.06) !important;
  color: #6B7280 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Competition badge text color */
.card-comp-name { color: #A3A3A3 !important; }

/* ─── Watch Button — Netflix Red Gradient ─── */
.card-watch-btn {
  background: linear-gradient(135deg, #E50914 0%, #B20710 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(229,9,20,0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
.card-watch-btn:hover,
.match-card:hover .card-watch-btn {
  background: linear-gradient(135deg, #F6121D 0%, #C00A12 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(229,9,20,0.45), 0 0 12px rgba(229,9,20,0.25) !important;
  filter: brightness(1.08) !important;
}

/* Legacy watch buttons */
.btn-watch {
  background: linear-gradient(135deg, #E50914 0%, #B20710 100%) !important;
  color: #fff !important;
  border: none !important;
}
.btn-watch:hover {
  background: linear-gradient(135deg, #F6121D 0%, #C00A12 100%) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(229,9,20,0.4) !important;
}

/* Upcoming/secondary "watch" pill — dark card style */
.watch-pill {
  background: rgba(255,255,255,0.06) !important;
  color: #A3A3A3 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.home-match-card:hover .watch-pill {
  background: linear-gradient(135deg, #E50914, #B20710) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(229,9,20,0.35) !important;
}

/* Card footer row muted */
.card-footer-row { border-top-color: rgba(255,255,255,0.07) !important; }
.card-channel { color: #6B7280 !important; }
.match-card:hover .card-channel { color: #A3A3A3 !important; }

/* ─── Channel Cards → red hover ─── */
.channel-card:hover {
  border-color: rgba(229,9,20,0.3) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,9,20,0.1) !important;
}
.channel-card { background: #141414 !important; border-color: rgba(255,255,255,0.08) !important; }

/* ─── Telegram Button ─── */
.telegram-btn {
  border-color: rgba(229,9,20,0.25) !important;
  color: #A3A3A3 !important;
}
.telegram-btn:hover {
  background: rgba(229,9,20,0.06) !important;
  border-color: rgba(229,9,20,0.45) !important;
  color: #E50914 !important;
}

/* ─── Sidebar stats dot overrides ─── */
.sidebar-stat-item .stat-dot.today { background: #22C55E !important; }
.sidebar-stat-item .stat-dot.upcoming { background: #A3A3A3 !important; }

/* ─── Admin panel → red accent ─── */
.admin-btn {
  background: #E50914 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(229,9,20,0.3) !important;
}
.admin-btn:hover {
  background: #F6121D !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(229,9,20,0.4) !important;
}
.admin-card-title {
  color: #E50914 !important;
  border-left-color: #E50914 !important;
}
.admin-tab-btn.active {
  color: #E50914 !important;
  border-bottom-color: #E50914 !important;
  background: rgba(229,9,20,0.08) !important;
}
.admin-input:focus, .admin-select:focus {
  border-color: rgba(229,9,20,0.45) !important;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.07) !important;
}
.admin-action-btn-save {
  background: rgba(229,9,20,0.1) !important;
  color: #E50914 !important;
  border: 1px solid rgba(229,9,20,0.25) !important;
}
.admin-action-btn-save:hover {
  background: rgba(229,9,20,0.18) !important;
  border-color: rgba(229,9,20,0.4) !important;
}

/* ─── Player Controls → red accent ─── */
.progress-bar-fill { background: #E50914 !important; }
.progress-bar-thumb {
  background: #E50914 !important;
  box-shadow: 0 0 8px rgba(229,9,20,0.6) !important;
}
.volume-slider { accent-color: #E50914 !important; }
.quality-tag {
  background: rgba(229,9,20,0.1) !important;
  color: #E50914 !important;
  border-color: rgba(229,9,20,0.25) !important;
}
.quality-ctrl-label { color: #E50914 !important; }
.ctrl-btn:hover {
  background: rgba(229,9,20,0.12) !important;
  border-color: rgba(229,9,20,0.25) !important;
}
.subtitle-ctrl-btn.subtitles-on {
  color: #E50914 !important;
  border-color: rgba(229,9,20,0.35) !important;
  background: rgba(229,9,20,0.14) !important;
}
.player-container:focus-within {
  box-shadow: 0 0 0 1px rgba(229,9,20,0.25), 0 20px 60px rgba(0,0,0,0.8) !important;
}
.quality-popup { border-color: rgba(229,9,20,0.2) !important; }
.quality-popup-list .quality-btn.active {
  background: rgba(229,9,20,0.12) !important;
  color: #E50914 !important;
}

/* ─── Source Switcher → red active ─── */
.source-btn.active, .quality-btn.active {
  border-color: #E50914 !important;
  background: rgba(229,9,20,0.06) !important;
  color: #E50914 !important;
}
.source-btn.active::after, .quality-btn.active::after { color: #E50914 !important; }

/* ─── Mini score in sidebar → white ─── */
.mini-score { color: #FFFFFF !important; }

/* ─── Live badge in player ─── */
.live-badge { background: rgba(255,45,85,0.92) !important; }

/* ─── Toast → red accent ─── */
.xgoalz-toast {
  border-color: rgba(229,9,20,0.35) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(229,9,20,0.12) !important;
}

/* ─── Login modal → red accent ─── */
.login-card { border-left-color: #E50914 !important; }

/* ─── Empty State btn → red ─── */
.empty-state-btn {
  background: rgba(229,9,20,0.1) !important;
  color: #E50914 !important;
  border-color: rgba(229,9,20,0.25) !important;
}
.empty-state-btn:hover {
  background: #E50914 !important;
  color: #fff !important;
}

/* ─── Search focus ring ─── */
.search-bar:focus-within {
  border-color: rgba(229,9,20,0.4) !important;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.07) !important;
}

/* ─── Scrollbar → subtle red hover ─── */
::-webkit-scrollbar-thumb:hover { background: rgba(229,9,20,0.4) !important; }

/* ─── Mobile nav active ─── */
.mob-nav-item.active { color: #E50914 !important; }

/* ─── WC nav item — keep gold left border, not accent ─── */
.nav-item-wc {
  border-left: 2px solid #F5C400 !important;
  color: #F5C400 !important;
}
.nav-item-wc.active {
  background: rgba(245,196,0,0.08) !important;
  color: #F5C400 !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════
   NETFLIX SPORTS — ANIMATED BRAND LOGO
   Premium streaming intro: icon scale → title slide → shine
   ═══════════════════════════════════════════════════════════ */

/* ─── Keyframes ─── */
@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.75) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes titleSlideIn {
  0%   { opacity: 0; transform: translateX(-28px); }
  60%  { opacity: 1; transform: translateX(4px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes titleShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes subtitleFade {
  0%   { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes footerLogoPulse {
  0%, 100% { opacity: 0.7; filter: brightness(1); }
  50%       { opacity: 1;   filter: brightness(1.15) drop-shadow(0 0 6px rgba(229,9,20,0.3)); }
}

/* ─── Animated brand container ─── */
.brand-logo-animated {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
  user-select: none;
}

/* Brand icon — logo reveal */
.brand-icon-wrap {
  position: relative;
  flex-shrink: 0;
}
.brand-icon-wrap .brand-img-anim {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(229,9,20,0.45);
  box-shadow: 0 0 12px rgba(229,9,20,0.2);
  animation: logoReveal 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Brand text column */
.brand-text-anim {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  overflow: hidden;
}

/* Main title with shine sweep */
.brand-name-anim {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  animation: titleSlideIn 0.65s 0.2s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

/* Shine overlay — passes once after slide-in */
.brand-name-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.55) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: titleShine 0.7s 0.85s linear both;
  pointer-events: none;
  border-radius: 2px;
}

/* Subtitle "LIVE FOOTBALL" */
.brand-sub-anim {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E50914;
  animation: subtitleFade 0.5s 1.0s ease both;
  opacity: 0;
}

/* ─── Hover micro-interactions ─── */
.brand-logo-animated:hover .brand-img-anim {
  transform: rotate(-3deg) scale(1.06);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  box-shadow: 0 0 18px rgba(229,9,20,0.35);
}

.brand-logo-animated:hover .brand-name-anim {
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  transition: text-shadow 0.3s ease;
}

/* Red underline expands from left on hover */
.brand-name-anim::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  width: 0;
  background: #E50914;
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-logo-animated:hover .brand-name-anim::before {
  width: 100%;
}

/* ─── Footer Logo — softer pulse variant ─── */
.footer-logo-animated {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
}
.footer-logo-animated .brand-img-anim {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid rgba(229,9,20,0.35);
  animation: footerLogoPulse 3s 1.5s ease-in-out infinite;
}
.footer-logo-animated .brand-name-anim {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  animation: none; /* softer — no slide on footer */
}
.footer-logo-animated .brand-name-anim::after {
  animation: none; /* no shine sweep on footer */
}
.footer-logo-animated .brand-sub-anim {
  font-size: 8.5px;
  color: #E50914;
  animation: subtitleFade 0.5s 0.5s ease both;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 36px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-desc {
  font-size: 11.5px;
  color: #6B7280;
  margin-top: 2px;
  max-width: 200px;
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7280;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li a {
  font-size: 12px;
  color: #A3A3A3;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links-list li a:hover { color: #E50914; }

.footer-telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(229,9,20,0.3);
  color: #E50914;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}
.footer-telegram-btn:hover {
  background: rgba(229,9,20,0.1);
  border-color: rgba(229,9,20,0.6);
  box-shadow: 0 4px 14px rgba(229,9,20,0.2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 10.5px;
  color: #4B5563;
  line-height: 1.4;
}

.footer-live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #FF2D55;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Accessibility: Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .brand-img-anim,
  .brand-name-anim,
  .brand-sub-anim {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .brand-name-anim::after {
    animation: none !important;
    display: none;
  }
  .footer-logo-animated .brand-img-anim {
    animation: none !important;
    opacity: 0.85;
  }
  /* Keep live pulse for functional indicator */
  .live-dot-pulse,
  .mini-live-dot,
  .clock-live-dot { animation: livePulse 2s ease-in-out infinite; }
}

/* ─── Footer layout integration ─── */
/* Footer lives inside #view-home (the scrollable homepage-view flex column).
   It scrolls naturally and is shown/hidden with the view itself. */
.site-footer {
  display: flex; /* always visible when homepage-view is shown */
  flex-shrink: 0;
}

/* Mobile: add bottom padding when mobile nav is present */
@media (max-width: 768px) {
  .site-footer {
    padding: 24px 16px 96px; /* extra bottom space for mobile nav */
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}

/* Match-card cleanup: single score row + premium translucent action buttons */
.match-card.match-card-v2 {
  min-height: 154px !important;
}

.match-card.match-card-v2 .match-score-card {
  margin: 12px 0 14px !important;
  background: rgba(255,255,255,0.035) !important;
  border-color: rgba(255,255,255,0.09) !important;
}

.match-card.live-card .match-score-card .score-team-name {
  color: #FF2D55 !important;
  text-shadow: 0 0 14px rgba(255,45,85,0.42);
}

.match-card.live-card .match-score-card .score-flag-wrap {
  border-color: rgba(255,45,85,0.35) !important;
  box-shadow: 0 0 16px rgba(255,45,85,0.18);
}

.card-watch-row {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px !important;
}

.card-watch-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  min-width: 132px;
  padding: 0 18px;
  background: rgba(229,9,20,0.16) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(229,9,20,0.55) !important;
  border-radius: 8px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(229,9,20,0.12),
    0 0 20px rgba(229,9,20,0.26) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
}

.card-watch-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.card-watch-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.card-watch-btn:hover,
.match-card:hover .card-watch-btn {
  background: rgba(229,9,20,0.28) !important;
  color: #FFFFFF !important;
  border-color: rgba(255,45,85,0.75) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(255,45,85,0.18),
    0 8px 24px rgba(229,9,20,0.32),
    0 0 24px rgba(255,45,85,0.34) !important;
  filter: none !important;
}

.home-live-banner {
  width: min(calc(100% - 44px), 548px);
  height: 64px;
  margin: 12px auto 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #141414;
  box-shadow: 0 14px 36px rgba(0,0,0,0.38);
}

.home-live-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-intro {
  margin: 7px auto 0;
  width: min(calc(100% - 44px), 548px);
  color: #FFFFFF;
  font-family: var(--font-intro);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  text-align: center;
  text-transform: none;
  text-shadow: 0 0 18px rgba(229,9,20,0.24);
}

.home-banner-intro::first-letter {
  color: #E50914;
}

.brand-logo-animated {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-animated:focus-visible {
  outline: 2px solid rgba(229,9,20,0.75);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 620px) {
  .home-live-banner {
    height: auto;
    aspect-ratio: 548 / 64;
  }
}

/* Header and scroll experience polish */
.topbar {
  position: relative;
}

.topbar-brand,
.topbar-icons {
  position: relative;
  z-index: 2;
}

.topbar-icons {
  min-width: 38px;
  margin-left: auto;
}

.topbar .search-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42vw, 460px);
  min-width: 280px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.homepage-view > .home-live-banner {
  flex: 0 0 auto;
}

.homepage-view > .home-layout {
  padding-top: 14px;
}

.go-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(229,9,20,0.55);
  border-radius: 999px;
  background: rgba(20,20,20,0.88);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  box-shadow: 0 14px 34px rgba(0,0,0,0.44), 0 0 22px rgba(229,9,20,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.go-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: goTopArrive 0.42s ease both;
}

.go-top-btn:hover {
  background: rgba(229,9,20,0.24);
  border-color: rgba(255,45,85,0.8);
  transform: translateY(-2px) scale(1.02);
}

body.page-bottom-reached .site-footer {
  animation: footerBottomArrival 0.7s ease both;
}

body.embed-mode .go-top-btn {
  display: none;
}

@keyframes goTopArrive {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  70% {
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes footerBottomArrival {
  0% {
    box-shadow: inset 0 1px 0 rgba(229,9,20,0.1), 0 -10px 28px rgba(229,9,20,0);
  }
  45% {
    box-shadow: inset 0 1px 0 rgba(229,9,20,0.22), 0 -16px 34px rgba(229,9,20,0.12);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 -10px 28px rgba(229,9,20,0.04);
  }
}

@media (max-width: 900px) {
  .topbar .search-bar {
    position: static;
    width: auto;
    min-width: 0;
    flex: 1;
    transform: none;
  }

  .topbar-icons {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .home-live-banner {
    width: calc(100% - 20px);
    margin-top: 12px;
  }

  .go-top-btn {
    right: 16px;
    bottom: 86px;
  }
}

.chat-identity-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-username-input {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: #FFFFFF;
  padding: 0 11px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  outline: none;
}

.chat-username-input:focus {
  border-color: rgba(229,9,20,0.55);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}

.chat-username-set {
  height: 36px;
  border: 1px solid rgba(229,9,20,0.55);
  border-radius: 8px;
  background: rgba(229,9,20,0.16);
  color: #FFFFFF;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(229,9,20,0.18);
}

.chat-username-set:hover {
  background: rgba(229,9,20,0.28);
  border-color: rgba(255,45,85,0.75);
}

.chat-user-badge {
  align-self: flex-start;
  border: 1px solid rgba(255,45,85,0.3);
  border-radius: 999px;
  background: rgba(255,45,85,0.1);
  color: #FFFFFF;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 800;
}

.chat-hint {
  margin: -4px 0 0;
  color: #A3A3A3;
  font-size: 11px;
  line-height: 1.4;
}

.chat-input:disabled,
.chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-send:disabled:hover {
  transform: none;
  opacity: 0.45;
}

/* TheSportsDB score/status emphasis */
.match-score-display .score-main {
  color: #22C55E !important;
  text-shadow: 0 0 14px rgba(34,197,94,0.32);
}

.match-score-display .score-minute,
.match-score-display .score-status-value {
  color: #22C55E !important;
  text-shadow: 0 0 10px rgba(34,197,94,0.28);
}

.match-score-display .score-live-label {
  color: #FF2D55 !important;
  text-shadow: 0 0 10px rgba(255,45,85,0.28);
}

.match-score-display .score-kickoff-time {
  color: #A3A3A3;
}

.match-score-display .score-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.match-score-display .score-goals {
  grid-column: 1 / -1;
  text-align: center;
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 2px;
}

.match-score-display .score-goal-minute {
  color: #22C55E !important;
  text-shadow: 0 0 10px rgba(34,197,94,0.28);
}

.match-score-hero .score-goals {
  font-size: 12px;
  margin-top: 4px;
}

.match-score-hero {
  text-align: center;
}

.match-score-hero .score-main {
  font-size: 20px;
}

.match-score-hero .score-status {
  margin-top: 2px;
}

.stat-val-left,
.stat-val-right,
.stat-card-val,
.sidebar-stat-item .stat-val {
  color: #22C55E !important;
}

/* Clearer team-name typography */
.match-score-display .score-team-name,
.card-team-name,
.hero-team-name,
.team-name-full,
.home-card-team .team-name,
.mini-teams,
.rail-up-teams span {
  color: #F8FAFC !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255,255,255,0.12), 0 0 18px rgba(229,9,20,0.10);
}

.match-score-display .score-team-away .score-team-name,
.rail-up-teams span:last-child {
  color: #E5E7EB !important;
}

.match-card.live-card .match-score-card .score-team-name {
  color: #FFFFFF !important;
  text-shadow: 0 0 14px rgba(255,255,255,0.16), 0 0 18px rgba(255,45,85,0.22);
}




.player-source-overlay {
  position: absolute;
  bottom: 60px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}
.player-source-overlay:empty {
  display: none;
}
.player-source-overlay .source-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.player-source-overlay .source-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.player-source-overlay .source-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px rgba(var(--accent-rgb, 10, 132, 255), 0.5);
}
.player-source-overlay .source-format {
  font-size: 9px;
  opacity: 0.7;
  font-weight: 500;
  margin-top: 2px;
}

/* --- Player Source Overlay --- */
.player-source-overlay {
  position: absolute;
  bottom: 60px; /* Above the video controls */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  pointer-events: auto;
}
.player-source-overlay .source-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.player-source-overlay .source-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}
.player-source-overlay .source-btn.active {
  background: rgba(229, 9, 20, 0.8); /* Red highlight */
  border-color: #E50914;
}
.player-source-overlay .source-format {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
/* Also make stream views scrollable */
.stream-view, .channels-view {
  overflow-y: auto;
}

/* Compact landing restore */
.homepage-view {
  padding: 0 !important;
  background: #111111 !important;
}

.homepage-view > .home-live-banner {
  width: min(calc(100% - 44px), 684px) !important;
  height: 78px !important;
  margin: 16px auto 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: block !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.38) !important;
}

.homepage-view > .home-live-banner img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.home-banner-intro {
  width: min(calc(100% - 44px), 684px) !important;
  margin: 50px auto 54px !important;
  text-align: center !important;
  color: #FFFFFF !important;
  font-family: var(--font-intro) !important;
  font-size: clamp(18px, 2vw, 25px) !important;
  font-weight: 500 !important;
  font-style: italic !important;
  line-height: 1 !important;
}

.homepage-view > .home-layout {
  padding: 0 28px 28px !important;
}

.home-main {
  padding-top: 0 !important;
  padding-bottom: 72px !important;
}

.home-hero-card,
.stats-summary {
  display: none !important;
}

.date-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 0 !important;
  margin: 0 0 18px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(17,17,17,0.96) !important;
}

.matches-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.match-card.match-card-v2 {
  min-height: 240px !important;
  padding: 18px !important;
  border-radius: 8px !important;
}

.nav-item .nav-icon-img,
.sidebar .nav-icon-img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  flex: 0 0 22px !important;
  display: inline-block !important;
}

.nav-item {
  min-height: 46px !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .homepage-view > .home-live-banner,
  .home-banner-intro {
    width: calc(100% - 20px) !important;
  }

  .homepage-view > .home-live-banner {
    height: auto !important;
    aspect-ratio: 684 / 78 !important;
  }

  .home-banner-intro {
    margin: 34px auto 38px !important;
  }

  .homepage-view > .home-layout {
    padding: 0 12px 20px !important;
  }
}

/* Screenshot theme restore: red/black xGoalZ landing */
:root {
  --sidebar-w: 278px !important;
  --topbar-h: 62px !important;
  --accent: #E50914 !important;
  --accent-hover: #F6121D !important;
  --accent-dim: rgba(229,9,20,0.16) !important;
  --accent-glow: rgba(229,9,20,0.35) !important;
  --accent-mid: rgba(229,9,20,0.55) !important;
  --bg-void: #000000 !important;
  --bg-surface: #111111 !important;
  --bg-card: #141414 !important;
  --bg-raised: #1A1A1A !important;
  --bg-border: rgba(255,255,255,0.08) !important;
  --text-primary: #FFFFFF !important;
  --text-secondary: #A3A3A3 !important;
  --text-muted: #6B7280 !important;
}

body {
  background: #000000 !important;
  color: #FFFFFF !important;
}

.sidebar {
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  background: #000000 !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
}

.sidebar-nav {
  padding: 8px 12px !important;
  gap: 8px !important;
}

.nav-item {
  min-height: 47px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  color: #7E8793 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  gap: 12px !important;
}

.nav-item:hover {
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.10) !important;
}

.nav-item.active,
#nav-home.active {
  color: #FF1E2D !important;
  background: rgba(229,9,20,0.18) !important;
  box-shadow: inset 3px 0 0 #E50914 !important;
}

.nav-icon {
  width: 19px !important;
  height: 19px !important;
  color: currentColor !important;
}

.nav-badge {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #FF0F1F !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.nav-item .nav-icon-img,
.sidebar .nav-icon-img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  flex: 0 0 24px !important;
}

.nav-item-cricket .nav-icon-img {
  border-radius: 50% !important;
}

.nav-item-wc,
.nav-item-f1 {
  border-left: 0 !important;
  color: #7E8793 !important;
  background: transparent !important;
  text-shadow: none !important;
}

.nav-item-wc::before,
.nav-item-f1::before {
  display: none !important;
}

.sidebar-live-section {
  padding: 50px 20px 12px !important;
}

.sidebar-section-label {
  color: #343A43 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.sidebar-no-live {
  color: #7C879A !important;
  font-size: 14px !important;
  font-style: italic !important;
}

.sidebar-footer {
  padding: 14px 12px 20px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.sidebar-stats {
  border-radius: 8px !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  padding: 14px 16px !important;
  gap: 12px !important;
}

.sidebar-stat-item {
  color: #CBD5E1 !important;
  font-size: 14px !important;
}

.sidebar-stat-item .stat-val {
  color: #22C55E !important;
  font-weight: 900 !important;
}

.telegram-btn {
  height: 48px !important;
  margin-top: 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(229,9,20,0.45) !important;
  background: #050505 !important;
  color: #DCE7F5 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  gap: 10px !important;
}

.telegram-btn svg {
  width: 22px !important;
  height: 22px !important;
  color: #DCE7F5 !important;
}

.telegram-btn img,
.footer-telegram-btn img {
  display: none !important;
}

.main-content {
  background: #111111 !important;
}

.topbar {
  height: var(--topbar-h) !important;
  min-height: var(--topbar-h) !important;
  padding: 0 26px !important;
  background: #0A0A0A !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

.topbar-brand {
  gap: 14px !important;
  min-width: 280px !important;
}

.topbar-back-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  background: #1A1A1A !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #A3A3A3 !important;
}

.brand-logo-animated {
  height: 44px !important;
  gap: 12px !important;
  align-items: center !important;
}

.brand-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
}

.brand-icon-wrap .brand-img-anim,
.brand-img-anim {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 1px solid #E50914 !important;
  box-shadow: 0 0 18px rgba(229,9,20,0.22) !important;
}

.brand-text-anim {
  gap: 1px !important;
  line-height: 1 !important;
}

.brand-name-anim {
  color: #FFFFFF !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 0 14px rgba(255,255,255,0.20) !important;
}

.brand-sub-anim {
  color: #FF0F1F !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.topbar .search-bar {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: min(42vw, 576px) !important;
  min-width: 320px !important;
  height: 38px !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 18px !important;
  background: #0E0E0E !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  padding: 0 18px !important;
}

.topbar .search-bar input {
  color: #D1D5DB !important;
  font-size: 16px !important;
}

.topbar .search-bar input::placeholder {
  color: #4B5563 !important;
}

.homepage-view {
  background:
    radial-gradient(ellipse 55% 42% at 11% 14%, rgba(229,9,20,0.08), transparent 58%),
    #111111 !important;
}

.homepage-view > .home-live-banner {
  width: min(calc(100% - 44px), 684px) !important;
  height: 78px !important;
  margin: 16px auto 0 !important;
}

.home-banner-intro {
  width: min(calc(100% - 44px), 684px) !important;
  margin: 58px auto 58px !important;
  color: #FFFFFF !important;
  font-size: 29px !important;
  font-style: italic !important;
  font-weight: 500 !important;
  text-align: center !important;
  text-shadow: 0 0 18px rgba(229,9,20,0.22) !important;
}

.home-banner-intro::first-letter {
  color: #E50914 !important;
}

.homepage-view > .home-layout {
  padding: 0 28px 28px !important;
}

.date-nav {
  background: #111111 !important;
  padding: 14px 0 16px !important;
  margin-bottom: 18px !important;
}

.date-tab {
  min-height: 47px !important;
  border-radius: 8px !important;
  padding: 0 18px !important;
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #C7D0D9 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.date-tab.active {
  background: #F20D1B !important;
  border-color: #F20D1B !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 28px rgba(229,9,20,0.28) !important;
}

.date-tab-action {
  margin-left: auto !important;
  background: #171717 !important;
  color: #A3A3A3 !important;
}

.date-tab .tab-count {
  color: inherit !important;
  background: transparent !important;
  margin-left: 8px !important;
  font-size: 11px !important;
}

.homepage-view .section-title {
  color: #F5F5F5 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.homepage-view .section-header::after {
  background: #E50914 !important;
  width: 60px !important;
}

.site-footer {
  background: #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding: 34px 32px 24px !important;
}

.footer-logo-animated .brand-img-anim {
  width: 34px !important;
  height: 34px !important;
}

.footer-logo-animated .brand-icon-wrap {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
}

.footer-telegram-btn {
  border-color: rgba(229,9,20,0.45) !important;
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.10) !important;
  border-radius: 8px !important;
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 0px !important;
  }

  .topbar .search-bar {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    transform: none !important;
    flex: 1 !important;
  }

  .topbar-brand {
    min-width: 0 !important;
  }
}

/* Stable layout restore: preserves app features, fixes broken global sizing/flow */
:root {
  --sidebar-w: 260px !important;
  --topbar-h: 64px !important;
  --bg-void: #0A0A0A !important;
  --bg-surface: #0A0A0A !important;
  --bg-card: #141414 !important;
  --bg-raised: #1A1A1A !important;
  --bg-border: rgba(255,255,255,0.08) !important;
  --accent: #E50914 !important;
  --accent-hover: #F6121D !important;
  --accent-dim: rgba(229,9,20,0.16) !important;
  --accent-glow: rgba(229,9,20,0.35) !important;
  --accent-mid: rgba(229,9,20,0.55) !important;
  --live-red: #FF2D55 !important;
  --green: #22C55E !important;
  --text-primary: #FFFFFF !important;
  --text-secondary: #A3A3A3 !important;
  --text-muted: #6B7280 !important;
}

html,
body {
  width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: #0A0A0A !important;
}

body {
  display: block !important;
  color: #FFFFFF !important;
}

img {
  max-width: 100%;
}

.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 260px !important;
  min-width: 260px !important;
  height: 100vh !important;
  z-index: 1000 !important;
  background: #000000 !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
  overflow: hidden !important;
}

.main-content {
  position: relative !important;
  margin-left: 260px !important;
  width: calc(100vw - 260px) !important;
  min-height: 100vh !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #0A0A0A !important;
}

.topbar {
  position: relative !important;
  z-index: 50 !important;
  height: 64px !important;
  min-height: 64px !important;
  flex: 0 0 64px !important;
  padding: 0 24px !important;
  background: #0A0A0A !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.topbar-brand {
  min-width: 280px !important;
}

.topbar .brand-icon-wrap,
.topbar .brand-img-anim,
.brand-img,
.sidebar-logo img,
.sidebar .brand-img-anim {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover !important;
}

.topbar .brand-icon-wrap {
  flex: 0 0 40px !important;
}

.brand-name-anim {
  font-size: 23px !important;
}

.brand-sub-anim {
  color: #FF0F1F !important;
}

.topbar .search-bar {
  height: 38px !important;
  max-width: 576px !important;
  background: #0E0E0E !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

.homepage-view,
.stream-view,
.channels-view,
.category-view,
.admin-view,
#view-dynamic-category {
  height: calc(100vh - 64px) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #0A0A0A !important;
}

.homepage-view {
  display: flex;
  flex-direction: column !important;
  background:
    radial-gradient(ellipse 50% 35% at 12% 12%, rgba(229,9,20,0.08), transparent 58%),
    #111111 !important;
}

.homepage-view > .home-live-banner {
  width: min(684px, calc(100% - 48px)) !important;
  height: 78px !important;
  max-height: 120px !important;
  margin: 16px auto 0 !important;
  position: relative !important;
  inset: auto !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: #141414 !important;
}

.homepage-view > .home-live-banner img {
  width: 100% !important;
  height: 100% !important;
  max-height: 120px !important;
  object-fit: cover !important;
  position: static !important;
  display: block !important;
}

.home-banner-intro {
  width: min(684px, calc(100% - 48px)) !important;
  margin: 54px auto 58px !important;
  color: #FFFFFF !important;
  font-family: var(--font-intro) !important;
  font-size: clamp(22px, 2vw, 29px) !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  font-style: italic !important;
  text-align: center !important;
}

.home-banner-intro::first-letter {
  color: #E50914 !important;
}

.homepage-view > .home-layout {
  display: block !important;
  flex: 1 0 auto !important;
  width: 100% !important;
  padding: 0 24px 24px !important;
}

.home-main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 48px !important;
}

.home-right-rail {
  display: none !important;
}

.date-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 0 16px !important;
  margin: 0 0 18px !important;
  background: rgba(17,17,17,0.96) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.date-tab {
  min-height: 47px !important;
  border-radius: 8px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: #161616 !important;
  color: #C7D0D9 !important;
  font-weight: 900 !important;
}

.date-tab.active {
  background: #F20D1B !important;
  border-color: #F20D1B !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 28px rgba(229,9,20,0.28) !important;
}

.date-tab-action {
  margin-left: auto !important;
}

.matches-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.match-card.match-card-v2 {
  min-height: 240px !important;
  border-radius: 8px !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid #E50914 !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28) !important;
}

.card-watch-btn {
  border-color: rgba(229,9,20,0.65) !important;
  background: rgba(229,9,20,0.15) !important;
  color: #FFFFFF !important;
}

.match-score-display .score-main,
.score-main {
  color: #22C55E !important;
  text-shadow: 0 0 14px rgba(34,197,94,0.30) !important;
}

.score-status-value,
.score-minute {
  color: #22C55E !important;
}

.sidebar-nav {
  padding: 8px 12px !important;
}

.nav-item {
  min-height: 47px !important;
  border-radius: 12px !important;
  color: #7E8793 !important;
}

.nav-item.active {
  background: rgba(229,9,20,0.18) !important;
  color: #FF1E2D !important;
  box-shadow: inset 3px 0 0 #E50914 !important;
}

.nav-icon-img,
.sidebar .nav-icon-img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: cover !important;
}

.sidebar-footer {
  position: static !important;
}

.site-footer {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  margin-top: auto !important;
  background: #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.stream-view {
  display: none;
}

.stream-view .content-row {
  display: flex !important;
  height: auto !important;
  min-height: calc(100vh - 64px) !important;
  overflow: visible !important;
  gap: 24px !important;
  padding: 24px !important;
}

.player-column {
  min-width: 0 !important;
  overflow: visible !important;
}

.player-info-panel {
  min-height: 0 !important;
}

.player-container {
  max-height: min(62vh, 720px) !important;
}

body::before,
body::after,
.homepage-view::before,
.homepage-view::after {
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .sidebar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100vw !important;
  }

  .topbar {
    padding: 0 12px !important;
  }

  .topbar-brand {
    min-width: 0 !important;
  }

  .topbar .search-bar {
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .homepage-view > .home-layout {
    padding: 0 12px 88px !important;
  }

  .stream-view .content-row {
    flex-direction: column !important;
    padding-bottom: 88px !important;
  }
}

/* Header/footer final restore: keep the landing shell stable without changing features */
.topbar {
  position: relative !important;
  inset: auto !important;
  height: 64px !important;
  min-height: 64px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 0 24px !important;
  overflow: visible !important;
  background: #0A0A0A !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  z-index: 30 !important;
}

.topbar-brand {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 360px !important;
  min-width: 0 !important;
  max-width: 360px !important;
  height: 100% !important;
  overflow: hidden !important;
}

.topbar-back-btn {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9CA3AF !important;
  background: #171717 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

.brand-logo-animated {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  height: 44px !important;
  transform: none !important;
}

.topbar .brand-icon-wrap,
.topbar .brand-img-anim {
  position: static !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  object-fit: cover !important;
}

.topbar .brand-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  border: 1px solid rgba(229,9,20,0.70) !important;
  background: #0A0A0A !important;
}

.topbar .brand-text-anim {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  line-height: 1 !important;
}

.topbar .brand-name-anim {
  font-size: 22px !important;
  line-height: 1 !important;
  color: #F5F5F5 !important;
  white-space: nowrap !important;
}

.topbar .brand-sub-anim {
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #FF0A14 !important;
  white-space: nowrap !important;
}

.topbar .search-bar {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(42vw, 576px) !important;
  min-width: 280px !important;
  max-width: 576px !important;
  height: 38px !important;
  margin: 0 !important;
  background: #0E0E0E !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  z-index: 1 !important;
}

.topbar .search-bar input {
  color: #D1D5DB !important;
  font-size: 16px !important;
}

.topbar .search-bar input::placeholder {
  color: #4B5563 !important;
}

.topbar-icons {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  margin-left: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.topbar-icons .icon-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
}

.homepage-view {
  display: flex;
  flex-direction: column !important;
}

.homepage-view > .home-layout {
  flex: 1 0 auto !important;
}

.site-footer {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  margin: 48px 0 0 !important;
  padding: 34px 32px 24px !important;
  background: #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  z-index: auto !important;
}

.footer-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
}

.footer-logo-animated {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transform: none !important;
}

.footer-logo-animated .brand-icon-wrap,
.footer-logo-animated .brand-img-anim {
  position: static !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: cover !important;
}

.footer-logo-animated .brand-icon-wrap {
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid rgba(229,9,20,0.60) !important;
}

.footer-logo-animated .brand-name-anim {
  font-size: 15px !important;
  line-height: 1 !important;
  color: #F5F5F5 !important;
}

.footer-logo-animated .brand-sub-anim {
  font-size: 8.5px !important;
  line-height: 1 !important;
  color: #FF0A14 !important;
}

.footer-links-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-telegram-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 10px 18px !important;
  color: #F5F5F5 !important;
  background: rgba(229,9,20,0.08) !important;
  border: 1px solid rgba(229,9,20,0.42) !important;
  border-radius: 8px !important;
}

@media (max-width: 1100px) {
  .topbar-brand {
    flex-basis: 300px !important;
    max-width: 300px !important;
  }

  .topbar .search-bar {
    width: min(38vw, 500px) !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: auto !important;
    min-height: 64px !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    padding: 10px 14px !important;
  }

  .topbar-brand {
    flex: 1 1 auto !important;
    max-width: calc(100% - 58px) !important;
  }

  .topbar .search-bar {
    position: static !important;
    order: 3 !important;
    transform: none !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .topbar-icons {
    flex: 0 0 44px !important;
  }

  .site-footer {
    margin-top: 36px !important;
    padding: 28px 18px 96px !important;
  }
}

/* Landing header, banner, title, and footer final sizing */
.topbar .brand-icon-wrap,
.topbar .brand-img-anim {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

.topbar .brand-img-anim {
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 9px !important;
}

.homepage-view > .home-live-banner {
  width: min(548px, calc(100% - 48px)) !important;
  height: 83px !important;
  max-width: 548px !important;
  max-height: 83px !important;
  margin: 16px auto 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
}

.homepage-view > .home-live-banner img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 83px !important;
  object-fit: cover !important;
  object-position: center !important;
  position: static !important;
  transform: none !important;
}

.home-banner-intro {
  width: min(548px, calc(100% - 48px)) !important;
  margin: 52px auto 56px !important;
  padding: 0 !important;
  color: #F5F5F5 !important;
  text-align: center !important;
  font-family: "Alegreya SC", Georgia, serif !important;
  font-size: clamp(22px, 2.1vw, 29px) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.home-banner-intro::first-letter {
  color: #E50914 !important;
}

.site-footer {
  position: static !important;
  clear: both !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 48px 0 0 !important;
  padding: 28px 32px 22px !important;
  background: #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  border-bottom: 0 !important;
}

.footer-top {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.footer-bottom {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 22px auto 0 !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

.footer-logo-animated .brand-icon-wrap,
.footer-logo-animated .brand-img-anim {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.footer-logo-animated .brand-img-anim {
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 620px) {
  .homepage-view > .home-live-banner {
    width: calc(100% - 24px) !important;
    height: auto !important;
    aspect-ratio: 548 / 83 !important;
    max-height: 83px !important;
  }

  .homepage-view > .home-live-banner img {
    max-height: none !important;
  }

  .home-banner-intro {
    width: calc(100% - 24px) !important;
    margin: 36px auto 42px !important;
    font-size: 22px !important;
  }

  .site-footer {
    margin-top: 36px !important;
    padding: 24px 18px 92px !important;
  }
}

/* Home/Landing page restore only */
#view-home.homepage-view {
  width: 100% !important;
  min-width: 0 !important;
  min-height: auto !important;
  height: calc(100vh - var(--topbar-h, 64px)) !important;
  display: flex;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(229,9,20,0.07), transparent 34%),
    #0A0A0A !important;
}

#view-home::before,
#view-home::after {
  display: none !important;
  content: none !important;
}

#view-home > .home-live-banner {
  position: static !important;
  width: min(720px, 100%) !important;
  max-width: 720px !important;
  height: 78px !important;
  max-height: 120px !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: #141414 !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.36) !important;
}

#view-home > .home-live-banner img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 120px !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

#view-home > .home-banner-intro {
  width: min(720px, 100%) !important;
  margin: 52px auto 58px !important;
  padding: 0 !important;
  color: #F5F5F5 !important;
  text-align: center !important;
  font-family: "Alegreya SC", Georgia, serif !important;
  font-size: clamp(24px, 2.1vw, 30px) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55) !important;
}

#view-home > .home-banner-intro::first-letter {
  color: #E50914 !important;
}

#view-home > .home-layout {
  width: 100% !important;
  flex: 1 0 auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

#view-home .home-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#view-home .home-right-rail,
#view-home .home-hero-card,
#view-home .stats-summary,
#view-home #section-tomorrow,
#view-home #section-next-day-1,
#view-home #section-next-day-2,
#view-home #section-upcoming {
  display: none !important;
}

#view-home .date-nav {
  position: static !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 0 32px !important;
  padding: 14px 0 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  z-index: auto !important;
}

#view-home .date-tab {
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  color: #D4D4D4 !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

#view-home .date-tab:hover {
  color: #FFFFFF !important;
  border-color: rgba(229,9,20,0.38) !important;
  background: #1A1A1A !important;
}

#view-home .date-tab.active,
#view-home .date-tab-action.active {
  color: #FFFFFF !important;
  background: #E50914 !important;
  border-color: #E50914 !important;
  box-shadow: 0 14px 30px rgba(229,9,20,0.24) !important;
}

#view-home .date-tab-action {
  margin-left: auto !important;
}

#view-home .date-tab .tab-count {
  min-width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  color: currentColor !important;
  background: rgba(255,255,255,0.08) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#view-home .date-tab.active .tab-count,
#view-home .date-tab-action.active .tab-count {
  background: rgba(0,0,0,0.18) !important;
}

#view-home .home-section {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 34px !important;
}

#view-home #section-live:not([style*="display: none"]) {
  margin-bottom: 28px !important;
}

#view-home .section-header {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: linear-gradient(#E50914, #E50914) left bottom / 60px 2px no-repeat !important;
}

#view-home .section-header::after {
  display: none !important;
  content: none !important;
}

#view-home .section-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

#view-home .section-icon {
  color: #8B95A1 !important;
  flex: 0 0 auto !important;
}

#view-home .section-title {
  color: #F5F5F5 !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .matches-list {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

#view-home .match-card.match-card-v2 {
  position: relative !important;
  min-width: 0 !important;
  min-height: 240px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "league status"
    "score score"
    "action action" !important;
  align-content: start !important;
  gap: 16px !important;
  padding: 20px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid #E50914 !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.30) !important;
  transform: none !important;
}

#view-home .match-card.match-card-v2::before {
  display: none !important;
  content: none !important;
}

#view-home .match-card.match-card-v2:hover {
  border-color: rgba(229,9,20,0.45) !important;
  background: #181818 !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.42) !important;
}

#view-home .card-comp-badge {
  grid-area: league !important;
  min-width: 0 !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #A3A3A3 !important;
}

#view-home .card-comp-name {
  min-width: 0 !important;
  color: #A3A3A3 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .status-pill {
  grid-area: status !important;
  position: static !important;
  min-height: 30px !important;
  max-width: 180px !important;
  align-self: start !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 12px !important;
  border-radius: 7px !important;
  color: #A3A3A3 !important;
  background: #222222 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#view-home .status-pill.live {
  color: #FF2D55 !important;
  background: rgba(255,45,85,0.12) !important;
  border-color: rgba(255,45,85,0.28) !important;
}

#view-home .status-pill.finished {
  color: #8B95A1 !important;
  background: #222222 !important;
  border-color: rgba(255,255,255,0.10) !important;
}

#view-home .match-score-display.match-score-card {
  grid-area: score !important;
  min-width: 0 !important;
  min-height: 78px !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 2px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: #1A1A1A !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  overflow: hidden !important;
}

#view-home .score-team {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#view-home .score-team-away {
  justify-content: flex-end !important;
}

#view-home .score-flag-wrap {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 50% !important;
  background: #222222 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  overflow: hidden !important;
}

#view-home .score-team-name {
  min-width: 0 !important;
  color: #F5F5F5 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .score-center {
  min-width: 84px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

#view-home .score-main {
  color: #22C55E !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

#view-home .match-score-display.scheduled .score-main {
  color: #22C55E !important;
}

#view-home .score-status,
#view-home .score-kickoff-time,
#view-home .score-status-value {
  color: #22C55E !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

#view-home .score-live-label {
  color: #FF2D55 !important;
}

#view-home .card-watch-row {
  grid-area: action !important;
  display: flex !important;
  justify-content: center !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}

#view-home .card-watch-btn {
  min-width: 166px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 24px !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.18) !important;
  border: 1px solid #E50914 !important;
  box-shadow: 0 12px 26px rgba(229,9,20,0.18) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

#view-home .card-watch-icon,
#view-home .card-watch-icon svg {
  width: 18px !important;
  height: 18px !important;
}

#view-home .match-card:hover .card-watch-btn {
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.28) !important;
  border-color: #E50914 !important;
  box-shadow: 0 14px 30px rgba(229,9,20,0.25) !important;
  transform: none !important;
}

#view-home .finished-card-footer {
  grid-area: action !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  color: #8B95A1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

#view-home .finished-card-state {
  min-width: 38px !important;
  height: 24px !important;
  color: #E50914 !important;
  background: rgba(229,9,20,0.12) !important;
  border: 1px solid rgba(229,9,20,0.32) !important;
}

#view-home .finished-card-label {
  color: #A3A3A3 !important;
}

#view-home .finished-card-time {
  margin-left: auto !important;
  color: #6B7280 !important;
}

#view-home .empty-state,
#view-home .search-no-results,
#view-home .no-fixtures-msg {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 8px !important;
  color: #A3A3A3 !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#view-home .site-footer {
  position: static !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 48px 0 0 !important;
  padding: 28px 32px 22px !important;
  background: #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

#view-home .footer-top,
#view-home .footer-bottom {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1180px) {
  #view-home .matches-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #view-home.homepage-view {
    height: auto !important;
    min-height: auto !important;
    padding: 16px 12px 92px !important;
  }

  #view-home > .home-live-banner {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 720 / 82 !important;
  }

  #view-home > .home-banner-intro {
    width: 100% !important;
    margin: 34px auto 38px !important;
    font-size: 23px !important;
  }

  #view-home .date-nav {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  #view-home .date-nav::-webkit-scrollbar {
    display: none !important;
  }

  #view-home .date-tab {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  #view-home .date-tab-action {
    margin-left: 0 !important;
  }

  #view-home .section-title {
    font-size: 18px !important;
  }

  #view-home .matches-list {
    grid-template-columns: 1fr !important;
  }

  #view-home .match-card.match-card-v2 {
    min-height: 0 !important;
    padding: 16px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "league"
      "status"
      "score"
      "action" !important;
  }

  #view-home .status-pill {
    justify-self: start !important;
  }

  #view-home .match-score-display.match-score-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #view-home .score-team,
  #view-home .score-team-away {
    justify-content: center !important;
  }

  #view-home .score-center {
    order: 0 !important;
    justify-self: center !important;
  }

  #view-home .score-team-name {
    font-size: 16px !important;
  }

  #view-home .site-footer {
    padding: 24px 18px 92px !important;
  }
}

/* xGoalZ landing screenshot rebuild - scoped to Home only */
#view-home.homepage-view {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  scroll-behavior: smooth !important;
}

#view-home.homepage-view::before,
#view-home.homepage-view::after {
  display: none !important;
  content: none !important;
}

#view-home > .home-live-banner {
  position: static !important;
  flex: 0 0 auto !important;
  width: min(700px, calc(100% - 48px)) !important;
  max-width: 700px !important;
  height: 75px !important;
  max-height: 120px !important;
  margin: 16px auto 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.42) !important;
}

#view-home > .home-live-banner img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 120px !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

#view-home > .home-banner-intro {
  width: min(700px, calc(100% - 48px)) !important;
  min-height: 28px !important;
  margin: 52px auto 56px !important;
  padding: 0 !important;
  color: #FFFFFF !important;
  text-align: center !important;
  font-family: "Alegreya SC", Georgia, serif !important;
  font-size: clamp(24px, 2vw, 30px) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55) !important;
}

#view-home > .home-banner-intro::first-letter {
  color: #E50914 !important;
}

#view-home > .home-layout {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 0 auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#view-home .home-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

#view-home .home-right-rail,
#view-home .home-hero-card,
#view-home .stats-summary,
#view-home #section-tomorrow,
#view-home #section-next-day-1,
#view-home #section-next-day-2,
#view-home #section-upcoming {
  display: none !important;
}

#view-home .date-nav {
  position: static !important;
  z-index: auto !important;
  width: 100% !important;
  min-height: 78px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 16px 24px !important;
  overflow: visible !important;
  background: #111111 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

#view-home .date-tab {
  min-width: 0 !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 0 18px !important;
  border-radius: 9px !important;
  color: #D4D4D4 !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

#view-home .date-tab:hover {
  color: #FFFFFF !important;
  background: #191919 !important;
  border-color: rgba(229,9,20,0.38) !important;
}

#view-home .date-tab.active {
  color: #FFFFFF !important;
  background: #E50914 !important;
  border-color: #E50914 !important;
  box-shadow: 0 12px 28px rgba(229,9,20,0.28) !important;
}

#view-home .date-tab-action {
  margin-left: auto !important;
}

#view-home .date-tab .tab-count {
  min-width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  color: currentColor !important;
  background: rgba(255,255,255,0.08) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#view-home .date-tab.active .tab-count {
  background: rgba(0,0,0,0.18) !important;
}

#view-home .home-section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 34px !important;
  margin: 0 !important;
  padding: 28px 24px 0 !important;
  background: transparent !important;
}

#view-home #section-live:not([style*="display: none"]) {
  padding-bottom: 0 !important;
}

#view-home .section-header {
  position: relative !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  background: linear-gradient(#E50914, #E50914) left bottom / 60px 2px no-repeat !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

#view-home .section-header::after {
  display: none !important;
  content: none !important;
}

#view-home .section-header-left {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#view-home .section-icon {
  flex: 0 0 auto !important;
  color: #8B95A1 !important;
}

#view-home .section-title {
  min-width: 0 !important;
  color: #FFFFFF !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .matches-list {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  overflow: visible !important;
}

#view-home .match-card.match-card-v2 {
  position: relative !important;
  min-width: 0 !important;
  min-height: 220px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "league status"
    "score score"
    "action action" !important;
  align-content: start !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 16px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-left: 4px solid #E50914 !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.34) !important;
  transform: none !important;
}

#view-home .match-card.match-card-v2.finished-card {
  min-height: 220px !important;
}

#view-home .match-card.match-card-v2::before {
  display: none !important;
  content: none !important;
}

#view-home .match-card.match-card-v2:hover {
  transform: none !important;
  background: #171717 !important;
  border-color: rgba(255,255,255,0.10) !important;
  border-left-color: #E50914 !important;
  box-shadow: 0 18px 42px rgba(0,0,0,0.44) !important;
}

#view-home .card-comp-badge {
  grid-area: league !important;
  min-width: 0 !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 8px 0 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

#view-home .card-comp-badge svg {
  flex: 0 0 12px !important;
  color: #E50914 !important;
}

#view-home .card-comp-name {
  min-width: 0 !important;
  color: #A3A3A3 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .status-pill {
  grid-area: status !important;
  position: static !important;
  align-self: start !important;
  justify-self: end !important;
  max-width: 174px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 12px !important;
  border-radius: 7px !important;
  color: #A3A3A3 !important;
  background: #242424 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
  animation: none !important;
}

#view-home .status-pill.live {
  color: #FF2D55 !important;
  background: rgba(255,45,85,0.12) !important;
  border-color: rgba(255,45,85,0.28) !important;
}

#view-home .status-pill.finished {
  color: #8B95A1 !important;
  background: #242424 !important;
  border-color: rgba(255,255,255,0.10) !important;
}

#view-home .match-score-display.match-score-card {
  grid-area: score !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  color: #FFFFFF !important;
  background: #1A1A1A !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

#view-home .score-team {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#view-home .score-team-away {
  justify-content: flex-end !important;
}

#view-home .score-flag-wrap {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #242424 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

#view-home .score-flag-wrap img,
#view-home .score-flag-img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

#view-home .score-team-name {
  min-width: 0 !important;
  color: #FFFFFF !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .score-center {
  min-width: 84px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

#view-home .score-main {
  color: #22C55E !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

#view-home .score-status,
#view-home .score-kickoff-time,
#view-home .score-status-value {
  color: #22C55E !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .score-live-label {
  color: #FF2D55 !important;
}

#view-home .card-watch-row {
  grid-area: action !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
}

#view-home .card-watch-btn {
  min-width: 166px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 24px !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.16) !important;
  border: 1px solid #E50914 !important;
  box-shadow: 0 12px 28px rgba(229,9,20,0.22) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .card-watch-icon,
#view-home .card-watch-icon svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

#view-home .match-card:hover .card-watch-btn {
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.28) !important;
  border-color: #E50914 !important;
  box-shadow: 0 14px 34px rgba(229,9,20,0.28) !important;
  transform: none !important;
}

#view-home .finished-card-footer {
  grid-area: action !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  color: #8B95A1 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .finished-card-state {
  min-width: 38px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #E50914 !important;
  background: rgba(229,9,20,0.12) !important;
  border: 1px solid rgba(229,9,20,0.32) !important;
  border-radius: 5px !important;
}

#view-home .finished-card-label {
  min-width: 0 !important;
  color: #A3A3A3 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .finished-card-time {
  margin-left: auto !important;
  color: #6B7280 !important;
  white-space: nowrap !important;
}

#view-home .empty-state,
#view-home .search-no-results,
#view-home .no-fixtures-msg {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #A3A3A3 !important;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
}

#view-home .site-footer {
  display: none !important;
}

@media (max-width: 1180px) {
  #view-home .matches-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #view-home.homepage-view {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 92px !important;
  }

  #view-home > .home-live-banner {
    width: calc(100% - 24px) !important;
    height: auto !important;
    aspect-ratio: 700 / 75 !important;
    margin-top: 12px !important;
  }

  #view-home > .home-banner-intro {
    width: calc(100% - 24px) !important;
    margin: 34px auto 38px !important;
    font-size: 23px !important;
  }

  #view-home .date-nav {
    min-height: 68px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  #view-home .date-nav::-webkit-scrollbar {
    display: none !important;
  }

  #view-home .date-tab {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  #view-home .date-tab-action {
    margin-left: 0 !important;
  }

  #view-home .home-section {
    padding: 24px 12px 0 !important;
    gap: 24px !important;
  }

  #view-home .section-title {
    font-size: 18px !important;
  }

  #view-home .matches-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-bottom: 0 !important;
  }

  #view-home .match-card.match-card-v2 {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "league"
      "status"
      "score"
      "action" !important;
  }

  #view-home .status-pill {
    justify-self: start !important;
  }

  #view-home .match-score-display.match-score-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #view-home .score-team,
  #view-home .score-team-away {
    justify-content: center !important;
  }

  #view-home .score-team-name {
    font-size: 16px !important;
    text-align: center !important;
  }
}

/* Final landing rebuild: compact premium schedule browser */
#view-home.homepage-view {
  min-height: auto !important;
  height: calc(100vh - var(--topbar-h, 64px)) !important;
  width: 100% !important;
  padding: 14px 22px 48px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  background:
    linear-gradient(180deg, rgba(229,9,20,0.07) 0%, rgba(10,10,10,0) 220px),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.045), transparent 34%),
    #0A0A0A !important;
  color: #FFFFFF !important;
}

#view-home > .home-live-banner {
  width: min(548px, calc(100% - 28px)) !important;
  height: 83px !important;
  max-width: 548px !important;
  max-height: 83px !important;
  margin: 7px auto 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: #141414 !important;
  box-shadow: 0 18px 42px rgba(0,0,0,0.36), 0 0 0 1px rgba(229,9,20,0.08) !important;
}

#view-home > .home-live-banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

#view-home > .home-banner-intro {
  width: min(720px, calc(100% - 28px)) !important;
  margin: 20px auto 22px !important;
  font-family: var(--font-intro) !important;
  font-size: clamp(25px, 2.15vw, 34px) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  color: #F7F7F7 !important;
  text-align: center !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55) !important;
}

#view-home > .home-banner-intro::first-letter {
  color: #E50914 !important;
}

#view-home > .home-layout {
  width: min(1500px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

#view-home .home-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

#view-home .home-right-rail,
#view-home .home-hero-card,
#view-home .stats-summary {
  display: none !important;
}

#view-home #section-live[style*="display: none"],
#view-home #section-tomorrow[style*="display: none"],
#view-home #section-next-day-1[style*="display: none"],
#view-home #section-next-day-2[style*="display: none"],
#view-home #section-upcoming[style*="display: none"] {
  display: none !important;
}

#view-home #section-live:not([style*="display: none"]),
#view-home #section-tomorrow:not([style*="display: none"]),
#view-home #section-next-day-1:not([style*="display: none"]),
#view-home #section-next-day-2:not([style*="display: none"]),
#view-home #section-upcoming:not([style*="display: none"]) {
  display: flex !important;
}

#view-home .date-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  width: min(1120px, 100%) !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 auto 16px !important;
  padding: 7px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  background: rgba(17,17,17,0.86) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28) !important;
  backdrop-filter: blur(14px) !important;
}

#view-home .date-tab,
#view-home .date-tab-action {
  min-height: 36px !important;
  min-width: 108px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background: rgba(255,255,255,0.035) !important;
  color: #D7DCE3 !important;
  font-family: var(--font-ui) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

#view-home .date-tab:hover,
#view-home .date-tab-action:hover {
  color: #FFFFFF !important;
  border-color: rgba(229,9,20,0.46) !important;
  background: rgba(229,9,20,0.12) !important;
}

#view-home .date-tab.active,
#view-home .date-tab-action.active {
  color: #FFFFFF !important;
  background: rgba(229,9,20,0.92) !important;
  border-color: rgba(229,9,20,0.95) !important;
  box-shadow: 0 0 18px rgba(229,9,20,0.25) !important;
}

#view-home .date-tab-action {
  margin-left: 0 !important;
}

#view-home .home-section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 18px 0 4px !important;
  background: transparent !important;
}

#view-home .section-header {
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(255,255,255,0.075) !important;
  background: linear-gradient(#E50914, #E50914) left bottom / 52px 2px no-repeat !important;
}

#view-home .section-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

#view-home .section-title {
  color: #F9FAFB !important;
  font-family: var(--font-ui) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .section-icon {
  width: 15px !important;
  height: 15px !important;
  color: #E50914 !important;
}

#view-home .matches-list {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

#view-home .match-card.match-card-v2 {
  position: relative !important;
  min-width: 0 !important;
  min-height: 178px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "league status"
    "score score"
    "action action" !important;
  align-content: start !important;
  gap: 10px !important;
  padding: 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.085) !important;
  border-left: 3px solid rgba(229,9,20,0.82) !important;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.07), rgba(255,255,255,0.018) 36%, rgba(0,0,0,0) 74%),
    #141414 !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.30) !important;
  overflow: hidden !important;
  animation: landing-card-in 0.46s ease both !important;
  transform: translateZ(0) !important;
}

#view-home .match-card.match-card-v2.finished-card {
  min-height: 170px !important;
  border-left-color: rgba(148,163,184,0.45) !important;
}

#view-home .match-card.match-card-v2.live-card {
  border-color: rgba(255,45,85,0.22) !important;
  border-left-color: #FF2D55 !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.34), 0 0 28px rgba(255,45,85,0.08) !important;
}

#view-home .match-card.match-card-v2:hover {
  background:
    linear-gradient(135deg, rgba(229,9,20,0.12), rgba(255,255,255,0.03) 42%, rgba(0,0,0,0) 78%),
    #181818 !important;
  border-color: rgba(229,9,20,0.34) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,0.44), 0 0 24px rgba(229,9,20,0.10) !important;
  transform: translateY(-2px) !important;
}

#view-home .match-card.match-card-v2::before,
#view-home .match-card.match-card-v2::after {
  display: none !important;
  content: none !important;
}

#view-home .card-comp-badge {
  grid-area: league !important;
  min-width: 0 !important;
  min-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

#view-home .card-comp-badge svg {
  width: 11px !important;
  height: 11px !important;
  flex: 0 0 11px !important;
  color: #E50914 !important;
}

#view-home .card-comp-name {
  min-width: 0 !important;
  color: #AEB4BD !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .status-pill {
  grid-area: status !important;
  position: static !important;
  justify-self: end !important;
  align-self: start !important;
  min-height: 24px !important;
  max-width: 154px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.045) !important;
  color: #AEB4BD !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-home .status-pill.live {
  color: #FF2D55 !important;
  border-color: rgba(255,45,85,0.34) !important;
  background: rgba(255,45,85,0.11) !important;
  box-shadow: 0 0 18px rgba(255,45,85,0.12) !important;
}

#view-home .status-pill.finished {
  color: #CBD5E1 !important;
  background: rgba(148,163,184,0.08) !important;
}

#view-home .match-score-display.match-score-card {
  grid-area: score !important;
  width: 100% !important;
  min-height: 66px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(68px, auto) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.075) !important;
  background: rgba(5,5,5,0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

#view-home .score-team {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#view-home .score-team-away {
  justify-content: flex-end !important;
}

#view-home .score-flag-wrap {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: #202020 !important;
  overflow: hidden !important;
}

#view-home .score-team-name {
  min-width: 0 !important;
  color: #F8FAFC !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45) !important;
}

#view-home .match-card.live-card .score-team-name {
  color: #FFE1E7 !important;
  text-shadow: 0 0 14px rgba(255,45,85,0.28), 0 1px 8px rgba(0,0,0,0.55) !important;
}

#view-home .score-center {
  min-width: 68px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
}

#view-home .score-main {
  color: #22C55E !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

#view-home .score-status,
#view-home .score-minute,
#view-home .score-status-value,
#view-home .score-kickoff-time {
  color: #22C55E !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .score-live-label {
  color: #FF2D55 !important;
}

#view-home .card-watch-row {
  grid-area: action !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

#view-home .card-watch-btn {
  min-width: 136px !important;
  min-height: 39px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(229,9,20,0.74) !important;
  background: rgba(229,9,20,0.12) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(229,9,20,0.20), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#view-home .card-watch-icon,
#view-home .card-watch-icon svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
}

#view-home .match-card:hover .card-watch-btn {
  background: rgba(229,9,20,0.24) !important;
  border-color: #FF2D55 !important;
  box-shadow: 0 0 26px rgba(229,9,20,0.32), 0 12px 24px rgba(0,0,0,0.28) !important;
}

#view-home .finished-card-footer {
  grid-area: action !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,0.075) !important;
  color: #AEB4BD !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

#view-home .finished-card-state {
  min-width: 34px !important;
  height: 22px !important;
  color: #22C55E !important;
  background: rgba(34,197,94,0.10) !important;
  border: 1px solid rgba(34,197,94,0.28) !important;
  border-radius: 999px !important;
}

#view-home .empty-state,
#view-home .search-no-results,
#view-home .no-fixtures-msg {
  grid-column: 1 / -1 !important;
  min-height: 118px !important;
  padding: 22px !important;
  color: #AEB4BD !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(20,20,20,0.92) !important;
}

#view-home .site-footer {
  display: none !important;
}

body.page-bottom-reached #view-home.homepage-view::after {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 118px !important;
  pointer-events: none !important;
  background: linear-gradient(to top, rgba(229,9,20,0.13), rgba(229,9,20,0)) !important;
  animation: bottom-glow-rise 0.52s ease both !important;
  z-index: 6 !important;
}

@keyframes landing-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bottom-glow-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  #view-home .matches-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #view-home.homepage-view {
    height: auto !important;
    min-height: auto !important;
    padding: 12px 12px 92px !important;
  }

  #view-home > .home-live-banner {
    width: min(548px, calc(100% - 8px)) !important;
    height: auto !important;
    aspect-ratio: 548 / 83 !important;
    margin-top: 6px !important;
  }

  #view-home > .home-banner-intro {
    margin: 16px auto 18px !important;
    font-size: 23px !important;
  }

  #view-home .date-nav {
    position: static !important;
    width: 100% !important;
    min-height: 50px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 7px !important;
    scrollbar-width: none !important;
  }

  #view-home .date-nav::-webkit-scrollbar {
    display: none !important;
  }

  #view-home .date-tab,
  #view-home .date-tab-action {
    flex: 0 0 auto !important;
    min-width: 94px !important;
    min-height: 36px !important;
    font-size: 12px !important;
  }

  #view-home .home-section {
    padding-top: 16px !important;
  }

  #view-home .matches-list {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 11px !important;
  }

  #view-home .match-card.match-card-v2,
  #view-home .match-card.match-card-v2.finished-card {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "league"
      "status"
      "score"
      "action" !important;
  }

  #view-home .status-pill {
    justify-self: start !important;
  }

  #view-home .match-score-display.match-score-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 0 !important;
  }

  #view-home .score-team,
  #view-home .score-team-away {
    justify-content: center !important;
  }

  #view-home .score-team-name {
    font-size: 15px !important;
    text-align: center !important;
  }

  #view-home .score-center {
    min-width: 0 !important;
  }
}

/* Screenshot-matched compact polish: landing scale + footer/sidebar finish */
:root {
  --sidebar-w: 278px !important;
  --topbar-h: 64px !important;
}

.sidebar {
  width: 278px !important;
  min-width: 278px !important;
  background: #000000 !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
}

.main-content {
  margin-left: 278px !important;
  width: calc(100vw - 278px) !important;
}

.topbar {
  height: 64px !important;
  min-height: 64px !important;
  flex: 0 0 64px !important;
  padding: 0 26px !important;
  background: #0A0A0A !important;
}

.topbar-brand {
  min-width: 286px !important;
}

.topbar-back-btn {
  width: 42px !important;
  height: 42px !important;
}

.sidebar-nav {
  padding: 8px 12px !important;
  gap: 8px !important;
}

.nav-item {
  min-height: 47px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  gap: 12px !important;
  color: #828B98 !important;
  font-size: 16px !important;
  font-weight: 650 !important;
}

.nav-item.active,
#nav-home.active {
  color: #FF1E2D !important;
  background: rgba(229,9,20,0.18) !important;
  box-shadow: inset 3px 0 0 #E50914 !important;
}

.nav-badge {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #FF0F1F !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

.sidebar-live-section {
  padding: 52px 20px 12px !important;
}

.sidebar-section-label {
  margin-bottom: 28px !important;
  color: #343A43 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.sidebar-no-live {
  color: #7C879A !important;
  font-size: 14px !important;
  font-style: italic !important;
}

.sidebar-footer {
  padding: 14px 12px 20px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.sidebar-stats {
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 13px 16px !important;
  gap: 12px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018)), #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

.sidebar-stat-item {
  min-height: 26px !important;
  color: #CBD5E1 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.sidebar-stat-item .stat-dot {
  width: 8px !important;
  height: 8px !important;
  margin-right: 8px !important;
}

.sidebar-stat-item .stat-label {
  color: #CBD5E1 !important;
}

.sidebar-stat-item .stat-val {
  color: #22C55E !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

.telegram-btn {
  width: 100% !important;
  height: 47px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(229,9,20,0.44) !important;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.12), rgba(255,255,255,0.02)),
    #050505 !important;
  color: #E6EEF8 !important;
  box-shadow: 0 0 18px rgba(229,9,20,0.08) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  gap: 10px !important;
}

.telegram-btn:hover {
  border-color: rgba(255,45,85,0.78) !important;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.22), rgba(255,255,255,0.025)),
    #070707 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 26px rgba(229,9,20,0.18) !important;
}

.telegram-btn svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  color: currentColor !important;
}

.telegram-btn > img,
.telegram-btn picture,
.footer-telegram-btn > img,
.footer-telegram-btn picture {
  display: none !important;
}

#view-home.homepage-view {
  height: auto !important;
  min-height: calc(100vh - 64px) !important;
  padding: 0 28px 48px !important;
  background:
    radial-gradient(ellipse 50% 35% at 12% 12%, rgba(229,9,20,0.08), transparent 58%),
    #111111 !important;
}

#view-home > .home-live-banner {
  width: min(684px, calc(100% - 48px)) !important;
  max-width: 684px !important;
  height: 78px !important;
  max-height: 78px !important;
  margin: 16px auto 0 !important;
  border-radius: 8px !important;
}

#view-home > .home-live-banner img {
  max-height: 78px !important;
}

#view-home > .home-banner-intro {
  width: min(684px, calc(100% - 48px)) !important;
  margin: 54px auto 58px !important;
  font-size: clamp(22px, 2vw, 29px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

#view-home > .home-layout {
  width: 100% !important;
  max-width: none !important;
}

#view-home .date-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  min-height: 78px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 28px !important;
  padding: 14px 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(17,17,17,0.96) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#view-home .date-tab,
#view-home .date-tab-action {
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

#view-home .date-tab-action {
  margin-left: auto !important;
}

#view-home .home-section {
  gap: 34px !important;
  padding: 0 0 16px !important;
}

#view-home .section-header {
  min-height: 42px !important;
  padding: 0 0 24px !important;
  background: linear-gradient(#E50914, #E50914) left bottom / 60px 2px no-repeat !important;
}

#view-home .section-title {
  font-size: 20px !important;
}

#view-home .matches-list {
  gap: 16px !important;
  padding: 0 0 24px !important;
}

#view-home .match-card.match-card-v2 {
  min-height: 240px !important;
  gap: 16px !important;
  padding: 18px !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.32) !important;
}

#view-home .match-card.match-card-v2.finished-card {
  min-height: 240px !important;
}

#view-home .match-score-display.match-score-card {
  min-height: 78px !important;
  padding: 12px 14px !important;
}

#view-home .score-flag-wrap {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
}

#view-home .score-team-name {
  font-size: 17px !important;
}

#view-home .score-main {
  font-size: 22px !important;
}

#view-home .card-watch-btn {
  min-width: 166px !important;
  min-height: 50px !important;
  font-size: 17px !important;
}

#view-home .site-footer {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  width: calc(100% + 56px) !important;
  max-width: none !important;
  margin: 42px -28px 0 !important;
  padding: 22px 28px 20px !important;
  gap: 16px !important;
  background:
    linear-gradient(180deg, rgba(229,9,20,0.055), rgba(10,10,10,0) 70px),
    #0A0A0A !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

#view-home .footer-top,
#view-home .footer-bottom {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#view-home .footer-top {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 24px !important;
}

#view-home .footer-brand {
  gap: 6px !important;
}

#view-home .footer-brand-desc {
  max-width: 340px !important;
  color: #7C879A !important;
  font-size: 11px !important;
}

#view-home .footer-links-group {
  gap: 7px !important;
}

#view-home .footer-links-list {
  gap: 5px !important;
}

#view-home .footer-bottom {
  margin-top: 0 !important;
  padding-top: 14px !important;
}

#view-home .footer-telegram-btn {
  min-height: 38px !important;
  padding: 0 16px !important;
  border-color: rgba(229,9,20,0.44) !important;
  background: rgba(229,9,20,0.10) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(229,9,20,0.08) !important;
}

@media (max-width: 1180px) {
  #view-home .match-card.match-card-v2,
  #view-home .match-card.match-card-v2.finished-card {
    min-height: 228px !important;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 0px !important;
  }

  .sidebar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100vw !important;
  }

  .topbar-brand {
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  #view-home.homepage-view {
    height: auto !important;
    padding: 12px 12px 92px !important;
  }

  #view-home > .home-live-banner {
    width: min(684px, calc(100% - 8px)) !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 684 / 78 !important;
    margin-top: 6px !important;
  }

  #view-home > .home-banner-intro {
    width: calc(100% - 8px) !important;
    margin: 26px auto 30px !important;
    font-size: 23px !important;
  }

  #view-home .date-nav {
    min-height: 56px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    margin-bottom: 18px !important;
    padding: 7px 0 !important;
    scrollbar-width: none !important;
  }

  #view-home .date-nav::-webkit-scrollbar {
    display: none !important;
  }

  #view-home .date-tab,
  #view-home .date-tab-action {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    font-size: 12px !important;
  }

  #view-home .date-tab-action {
    margin-left: 0 !important;
  }

  #view-home .home-section {
    gap: 18px !important;
  }

  #view-home .section-header {
    padding-bottom: 16px !important;
  }

  #view-home .section-title {
    font-size: 18px !important;
  }

  #view-home .match-card.match-card-v2,
  #view-home .match-card.match-card-v2.finished-card {
    min-height: 0 !important;
  }

  #view-home .match-score-display.match-score-card {
    min-height: 0 !important;
  }

  #view-home .site-footer {
    width: calc(100% + 24px) !important;
    margin: 32px -12px 0 !important;
    padding: 22px 16px 96px !important;
  }

  #view-home .footer-top {
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
}

/* TT Octas final typography + screenshot-card compactness */
:root {
  --font-heading: 'TT Octas', 'Inter', system-ui, sans-serif !important;
  --font-ui: 'TT Octas', 'Inter', system-ui, sans-serif !important;
}

body,
body :where(button, input, select, textarea, a, span, p, h1, h2, h3, h4, h5, h6, div, label, small, strong, em, td, th, li) {
  font-family: 'TT Octas', 'Inter', system-ui, sans-serif !important;
}

body {
  font-size: 12px !important;
  font-weight: 400 !important;
}

#view-home > .home-banner-intro,
#view-home > .home-banner-intro * {
  font-family: var(--font-intro) !important;
}

.topbar .brand-name-anim {
  font-size: 20px !important;
  font-weight: 700 !important;
}

.topbar .brand-sub-anim {
  font-size: 9px !important;
  font-weight: 700 !important;
}

.topbar .search-bar input {
  font-size: 14px !important;
  font-weight: 400 !important;
}

.nav-item {
  min-height: 44px !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.sidebar-section-label {
  font-size: 9px !important;
}

.sidebar-no-live,
.sidebar-stat-item,
.sidebar-stat-item .stat-val {
  font-size: 12px !important;
}

.telegram-btn {
  height: 43px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#view-home > .home-banner-intro {
  font-size: clamp(21px, 1.8vw, 27px) !important;
}

#view-home .date-nav {
  min-height: 68px !important;
  margin-bottom: 24px !important;
  padding: 11px 0 13px !important;
}

#view-home .date-tab,
#view-home .date-tab-action {
  min-height: 44px !important;
  padding: 0 17px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

#view-home .date-tab .tab-count {
  font-size: 9px !important;
  font-weight: 700 !important;
}

#view-home .home-section {
  gap: 28px !important;
}

#view-home .section-header {
  min-height: 38px !important;
  padding-bottom: 20px !important;
}

#view-home .section-title {
  font-size: 18px !important;
  font-weight: 700 !important;
}

#view-home .matches-list {
  gap: 16px !important;
}

#view-home .match-card.match-card-v2,
#view-home .match-card.match-card-v2.finished-card {
  min-height: 220px !important;
  gap: 13px !important;
  padding: 16px 18px !important;
  border-radius: 8px !important;
}

#view-home .card-comp-badge {
  min-height: 22px !important;
}

#view-home .card-comp-name {
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

#view-home .status-pill {
  min-height: 28px !important;
  padding: 5px 10px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

#view-home .match-score-display.match-score-card {
  min-height: 76px !important;
  padding: 11px 13px !important;
  gap: 12px !important;
}

#view-home .score-flag-wrap {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
}

#view-home .score-team-name {
  font-size: 15px !important;
  font-weight: 700 !important;
}

#view-home .score-main {
  font-size: 20px !important;
  font-weight: 700 !important;
}

#view-home .score-status,
#view-home .score-minute,
#view-home .score-status-value,
#view-home .score-kickoff-time {
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

#view-home .card-watch-btn {
  min-width: 148px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#view-home .card-watch-icon,
#view-home .card-watch-icon svg {
  width: 15px !important;
  height: 15px !important;
  flex-basis: 15px !important;
}

#view-home .finished-card-footer {
  padding-top: 10px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
}

#view-home .footer-brand-desc,
#view-home .footer-links-list li a,
#view-home .footer-copyright {
  font-size: 10.5px !important;
}

#view-home .footer-links-label,
#view-home .footer-live-indicator {
  font-size: 9px !important;
}

@media (max-width: 1180px) {
  #view-home .match-card.match-card-v2,
  #view-home .match-card.match-card-v2.finished-card {
    min-height: 212px !important;
  }
}

@media (max-width: 760px) {
  #view-home .match-card.match-card-v2,
  #view-home .match-card.match-card-v2.finished-card {
    min-height: 0 !important;
    padding: 14px !important;
  }

  #view-home .score-team-name {
    font-size: 14px !important;
  }

  #view-home .score-main {
    font-size: 19px !important;
  }

  #view-home .card-watch-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* =========================================================
   USER REQUESTED SIZING OVERRIDES
   ========================================================= */
:root {
--sidebar-width: 250px;
--topbar-height: 68px;
--page-padding: 24px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 18px;
--grid-gap: 16px;
}

/* App shell */
.sidebar {
width: 250px !important;
height: 100vh !important;
padding: 14px 10px !important;
}

.main-content {
margin-left: 250px !important;
min-height: 100vh !important;
overflow-x: hidden !important;
}

.topbar {
height: 68px !important;
padding: 0 24px !important;
}

/* Sidebar brand */
.sidebar-brand {
height: 84px !important;
padding: 0 12px !important;
gap: 12px !important;
}

.brand-icon {
width: 44px !important;
height: 44px !important;
}

.brand-name {
font-size: 22px !important;
line-height: 1 !important;
font-weight: 800 !important;
}

.brand-sub {
font-size: 10px !important;
letter-spacing: 0.12em !important;
font-weight: 700 !important;
}

/* Sidebar nav */
.sidebar-nav {
gap: 6px !important;
}

.nav-item {
height: 46px !important;
padding: 0 14px !important;
border-radius: 10px !important;
gap: 12px !important;
font-size: 15px !important;
font-weight: 600 !important;
}

.nav-icon {
width: 20px !important;
height: 20px !important;
}

.nav-badge {
min-width: 22px !important;
height: 22px !important;
padding: 0 7px !important;
font-size: 12px !important;
font-weight: 800 !important;
border-radius: 999px !important;
}

/* Sidebar sections */
.sidebar-section-label {
font-size: 10px !important;
letter-spacing: 0.18em !important;
margin-bottom: 14px !important;
}

.sidebar-footer,
.sidebar-stats-card {
padding: 14px !important;
border-radius: 12px !important;
}

/* Header search */
.search-bar {
width: clamp(320px, 34vw, 420px) !important;
height: 38px !important;
padding: 0 14px !important;
border-radius: 999px !important;
gap: 10px !important;
}

.search-bar input {
font-size: 14px !important;
}

.icon-btn,
.user-avatar {
width: 38px !important;
height: 38px !important;
border-radius: 10px !important;
}

/* Landing page */
.homepage-view,
.landing-page {
padding: 24px !important;
}

.hero-section,
.home-hero-card {
min-height: 220px !important;
margin-bottom: 24px !important;
border-radius: 18px !important;
}

.hero-banner {
width: 100% !important;
max-width: 720px !important;
height: 76px !important;
max-height: 120px !important;
border-radius: 12px !important;
object-fit: cover !important;
}

.hero-title {
font-size: 26px !important;
line-height: 1.1 !important;
font-weight: 800 !important;
}

.hero-subtitle {
font-size: 14px !important;
line-height: 1.5 !important;
}

/* Date/category tabs */
.date-tabs,
.category-tabs {
height: 68px !important;
gap: 10px !important;
padding: 0 24px !important;
}

.date-tab,
.category-tab {
height: 44px !important;
padding: 0 22px !important;
border-radius: 10px !important;
font-size: 14px !important;
font-weight: 700 !important;
}

.date-tab .count,
.category-tab .count {
margin-left: 8px !important;
font-size: 11px !important;
font-weight: 800 !important;
}

/* Sections */
.home-section {
margin-top: 28px !important;
}

.section-header {
min-height: 56px !important;
padding: 0 0 14px !important;
margin-bottom: 20px !important;
}

.section-title {
font-size: 20px !important;
line-height: 1.2 !important;
font-weight: 800 !important;
letter-spacing: 0.02em !important;
text-transform: uppercase !important;
}

/* Fixture grid */
.matches-grid,
.fixtures-grid {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
gap: 16px !important;
margin-top: 20px !important;
}

/* Match cards */
.match-card {
min-height: 160px !important;
padding: 16px !important;
border-radius: 12px !important;