/* ═══════════════════════════════════════════════════════════
   SPORTZLIVE — MAIN CSS
   Design: Volcanic Glass palette + Clash Display + Bricolage
   Theme: Premium sports editorial — red/black/white/dark-gray
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand Colors */
  --red:        #E8001D;
  --red-dark:   #B5001A;
  --red-glow:   rgba(232,0,29,0.25);
  --red-soft:   rgba(232,0,29,0.12);

  /* Dark Theme (default) */
  --bg-primary:   #0D0D0D;
  --bg-secondary: #141414;
  --bg-card:      #1A1A1A;
  --bg-card-hover:#222222;
  --bg-elevated:  #242424;
  --bg-input:     #1E1E1E;

  --text-primary:   #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted:     #666666;
  --text-accent:    #E8001D;

  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --border-red:   rgba(232,0,29,0.4);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-red: 0 4px 20px rgba(232,0,29,0.3);

  /* Typography */
  --font-display: 'Barlow', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Navbar height */
  --navbar-h: 56px;
  --ticker-h: 36px;
  --catbar-h: 44px;
  --total-header: calc(var(--ticker-h) + var(--navbar-h) + var(--catbar-h));
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary:   #F4F4F4;
  --bg-secondary: #FFFFFF;
  --bg-card:      #FFFFFF;
  --bg-card-hover:#F8F8F8;
  --bg-elevated:  #EFEFEF;
  --bg-input:     #F0F0F0;

  --text-primary:   #111111;
  --text-secondary: #555555;
  --text-muted:     #999999;

  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--duration-slow) var(--ease),
              color var(--duration-slow) var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* ── SELECTION ── */
::selection { background: var(--red); color: #fff; }

/* ── BREAKING TICKER ── */
.breaking-ticker {
  height: var(--ticker-h);
  background: var(--red);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0,0,0,0.25);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  gap: 0;
}

.ticker-content span { padding: 0 var(--space-lg); }

@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: var(--ticker-h);
  z-index: 999;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--duration-slow) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(20,20,20,0.95);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.95);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--red));
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 6px var(--red)); }
  50%       { filter: drop-shadow(0 0 14px var(--red)); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--red); }

/* Search */
.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 44px 0 var(--space-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
  outline: none;
}

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

.nav-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--duration-fast);
}

.search-btn:hover { color: var(--red); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-dropdown.open { display: block; animation: fade-down 0.2s var(--ease); }

.search-result-item {
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
  font-size: 14px;
}

.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-item .result-type { font-size: 11px; color: var(--text-muted); background: var(--bg-card); padding: 2px 6px; border-radius: var(--radius-sm); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.notif-btn:hover { background: var(--bg-card); color: var(--text-primary); }

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.4s var(--ease-bounce);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 18px;
  transition: background var(--duration-fast), transform var(--duration-base) var(--ease-bounce);
}

.theme-toggle:hover { background: var(--bg-card); transform: rotate(20deg); }

[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }

.btn-login {
  height: 34px;
  padding: 0 var(--space-md);
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transition: background var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
  white-space: nowrap;
}

.btn-login:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.hamburger:hover { background: var(--bg-card); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--duration-base) var(--ease); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Category Nav */
.cat-nav {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.cat-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--catbar-h);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-container::-webkit-scrollbar { display: none; }

.cat-link {
  flex-shrink: 0;
  height: 32px;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.cat-link:hover { background: var(--bg-card); color: var(--text-primary); }
.cat-link.active { background: var(--red); color: #fff; font-weight: 600; }
.admin-link { margin-left: auto; }

/* Notification Panel */
.notif-panel {
  position: absolute;
  top: calc(var(--navbar-h) + var(--catbar-h));
  right: var(--space-lg);
  width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  animation: fade-down 0.2s var(--ease);
}

.notif-panel.open { display: block; }

.notif-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.notif-header button { font-size: 12px; color: var(--red); }
.notif-header button:hover { text-decoration: underline; }

.notif-list { padding: var(--space-sm); }

.notif-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  transition: background var(--duration-fast);
  cursor: pointer;
}

.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: var(--red-soft); }
.notif-item.unread:hover { background: rgba(232,0,29,0.18); }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 5px;
}

.notif-item small { color: var(--text-muted); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  z-index: 1001;
  padding: 80px var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: left var(--duration-slow) var(--ease);
  overflow-y: auto;
}

.mobile-menu.open { left: 0; }

.mobile-menu a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.mobile-menu a:hover { background: var(--bg-card); color: var(--text-primary); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease);
  backdrop-filter: blur(4px);
}

.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slider { width: 100%; height: 100%; position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  pointer-events: none;
}

.hero-slide.active { opacity: 1; pointer-events: all; }

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  animation: hero-enter 0.8s var(--ease) both;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  animation: blink-badge 1.5s ease-in-out infinite;
}

@keyframes blink-badge {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-lg);
}

.hero-score-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-md);
}

.score-team {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
}

.team-flag { font-size: 24px; }
.team-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.team-score { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #fff; }
.team-overs { font-size: 12px; color: rgba(255,255,255,0.6); }

.score-vs {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--border-red);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-commentary {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Slider Controls */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--duration-fast);
}

.slider-prev { left: var(--space-lg); }
.slider-next { right: var(--space-lg); }
.slider-prev:hover, .slider-next:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.1); }

.slider-dots {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
}

.dot.active { width: 24px; background: var(--red); }

/* ── LIVE STRIP ── */
.live-strip {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg);
  max-width: 100%;
}

.strip-header {
  max-width: 1400px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strip-header h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.live-pulse {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); opacity: 1; }
  50%       { box-shadow: 0 0 0 6px transparent; opacity: 0.7; }
}

.strip-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.refresh-timer {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.scores-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ── MAIN GRID ── */
.main-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: var(--space-md);
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--red);
  border-radius: var(--radius-full);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--red);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 var(--space-lg);
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 var(--space-lg);
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--duration-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover { gap: 8px; }

/* ── TABS ── */
.tab-btn, .filter-btn {
  height: 32px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--duration-fast);
}

.tab-btn:hover, .filter-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }
.tab-btn.active, .filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── SCHEDULE SECTION ── */
.schedule-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

/* ── RANKINGS SECTION ── */
.rankings-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-lg);
}

.rankings-section .section-header,
.rankings-section .rankings-grid {
  max-width: 1400px;
  margin: 0 auto;
}

.rankings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* ── VIDEOS SECTION ── */
.videos-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ── TEAMS SECTION ── */
.teams-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-lg);
}

.teams-section .section-header,
.teams-section .teams-grid,
.teams-section .players-grid,
.teams-section .subsection-title {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

/* ── FANTASY SECTION ── */
.fantasy-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.fantasy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.fantasy-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

.ai-badge {
  background: linear-gradient(135deg, #7B2FBE, #E8001D);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fantasy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ── COMMENTARY SECTION ── */
.commentary-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-lg);
}

.commentary-section .section-header,
.commentary-section .commentary-wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.live-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  animation: blink-badge 1.5s ease-in-out infinite;
}

.commentary-match-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}

.commentary-score {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}

.commentary-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  overflow-y: auto;
}

/* ── FOOTER ── */
.footer {
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

[data-theme="light"] .footer { background: #1A1A1A; }

.footer-top {
  max-width: 1400px;
  margin: 0 auto var(--space-xl);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: var(--space-2xl);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-logo span { color: var(--red); }

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.social-links { display: flex; gap: var(--space-sm); }

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--duration-fast);
}

.social-link:hover { background: var(--red); transform: translateY(-3px); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--duration-fast);
}

.footer-col a:hover { color: var(--red); }

.footer-newsletter h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: var(--space-md); }

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 0 var(--space-md);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--duration-fast);
}

.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-form button {
  height: 38px;
  padding: 0 var(--space-md);
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--duration-fast);
}

.newsletter-form button:hover { background: var(--red-dark); }

.app-badges { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.app-badge {
  height: 34px;
  padding: 0 var(--space-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast);
}

.app-badge:hover { background: rgba(255,255,255,0.14); color: #fff; }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

.lang-switcher { display: flex; gap: 4px; }

.lang-btn {
  height: 28px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--duration-fast);
}

.lang-btn.active, .lang-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--duration-base) var(--ease);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-4px); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all var(--duration-base) var(--ease);
  white-space: nowrap;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: #22c55e; color: #22c55e; }
.toast.error   { border-color: var(--red); color: var(--red); }
.toast.info    { border-color: #3b82f6; color: #3b82f6; }

/* ── ANIMATIONS ── */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

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

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .main-grid { grid-template-columns: 1fr 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
  .rankings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .hero-section { height: 420px; }
  .hero-score-card { flex-direction: column; gap: var(--space-sm); padding: var(--space-md); }
  .score-vs { display: none; }
}

@media (max-width: 768px) {
  :root { --space-lg: 16px; --space-xl: 24px; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .btn-login { display: none; }
  .hero-section { height: 380px; }
  .hero-content { padding: 0 var(--space-lg); }
  .hero-title { font-size: 26px; }
  .hero-score-card { display: none; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .sidebar { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .teams-grid { grid-template-columns: repeat(3, 1fr); }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-section { height: 320px; }
  .hero-badge { font-size: 10px; }
  .hero-title { font-size: 22px; }
  .hero-actions { gap: var(--space-sm); }
  .btn-primary, .btn-secondary { height: 36px; font-size: 13px; padding: 0 var(--space-md); }
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: var(--space-lg); right: var(--space-lg); }
}