/* ═══════════════════════════════════════════
   踢泥 Tiny — Premium Football Streaming
   Dark Editorial Design System
   ═══════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg: #111111;
  --bg2: #1a1a1a;
  --surface: #222222;
  --border: #2a2a2a;
  --accent: #E8364F;
  --accent-dim: rgba(232, 54, 79, .15);
  --accent2: #22c55e;
  --accent2-dim: rgba(34, 197, 94, .12);
  --text: #ffffff;
  --text2: #999999;
  --text3: #666666;
  --gold: #d4a017;
  --gold-dim: rgba(212, 160, 23, .15);

  --font-sans: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Noto Sans TC', 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 60px;
  --ticker-h: 32px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 100px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--ticker-h) + 20px); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }
img { max-width: 100%; display: block; }

/* ─── UTILITY ─── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ═══════════ ANIMATIONS ═══════════ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-1 { transition-delay: .1s; }
.anim-delay-2 { transition-delay: .2s; }
.anim-delay-3 { transition-delay: .3s; }
.anim-delay-4 { transition-delay: .4s; }
.anim-delay-5 { transition-delay: .55s; }

/* Staggered cards */
.groups-grid .group-card:nth-child(1) { transition-delay: .0s; }
.groups-grid .group-card:nth-child(2) { transition-delay: .04s; }
.groups-grid .group-card:nth-child(3) { transition-delay: .08s; }
.groups-grid .group-card:nth-child(4) { transition-delay: .12s; }
.groups-grid .group-card:nth-child(5) { transition-delay: .16s; }
.groups-grid .group-card:nth-child(6) { transition-delay: .20s; }
.groups-grid .group-card:nth-child(7) { transition-delay: .24s; }
.groups-grid .group-card:nth-child(8) { transition-delay: .28s; }
.groups-grid .group-card:nth-child(9) { transition-delay: .32s; }
.groups-grid .group-card:nth-child(10) { transition-delay: .36s; }
.groups-grid .group-card:nth-child(11) { transition-delay: .40s; }
.groups-grid .group-card:nth-child(12) { transition-delay: .44s; }

/* ═══════════ TICKER ═══════════ */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ticker-h);
  background: var(--accent);
  z-index: 1001;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}
.ticker-sep { opacity: .5; font-size: 8px; }
.ticker-live { color: #fff; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(17, 17, 17, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo { 
  height: 48px; 
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.nav-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
}
.nav-name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 8px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--text2);
  transition: color .25s, background .25s;
  position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--text);
  background: var(--surface);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color .25s;
}
.lang-toggle:hover { border-color: var(--text3); }
.lang-opt { opacity: .4; transition: opacity .2s; }
.lang-opt[data-active="true"] { opacity: 1; }
.lang-sep { opacity: .3; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════ DRAWER (Mobile) ═══════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg2);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.drawer-close { font-size: 20px; color: var(--text2); }
.drawer-links { display: flex; flex-direction: column; gap: 8px; }
.drawer-link {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.drawer-link:hover { color: var(--accent); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--ticker-h) + 40px) 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17,17,17,.92) 0%,
    rgba(17,17,17,.75) 40%,
    rgba(17,17,17,.88) 70%,
    var(--bg) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text2);
}
.hero-bold {
  font-family: var(--font-heading);
  font-weight: 900;
}
.hero-sub {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-flags { font-size: 20px; }

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.cd-block { text-align: center; }
.cd-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  min-width: 2ch;
}
.cd-label {
  display: block;
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}
.cd-colon {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  color: var(--text3);
  margin-top: -18px;
  animation: colonBlink 1s step-end infinite;
}
@keyframes colonBlink {
  50% { opacity: .2; }
}

/* CTA */
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #d42e44;
  box-shadow: 0 8px 24px rgba(232,54,79,.3);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text3); }

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .3; transform: scaleY(.5); transform-origin: top; }
}

/* ═══════════ SECTIONS ═══════════ */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--bg2); }
.section-header { margin-bottom: 48px; }
.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ═══════════ LIVE PLAYER ═══════════ */
.live-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.player-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.player-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all .2s;
}
.player-tab:hover { border-color: var(--text3); }
.player-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border);
}
.player-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}
.player-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text3);
}
.player-idle-icon { font-size: 48px; }
.player-idle p { font-size: 14px; font-weight: 500; }
.player-idle-sub { font-size: 12px; color: var(--text3); opacity: .7; }
.player-iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}
/* Commentary Styles */
.text-commentary-box {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  color: var(--text);
  overflow: hidden;
}
.commentary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.commentary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.commentary-btn {
  font-size: 11px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--text2);
  transition: all .2s;
}
.commentary-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.commentary-timeline {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.commentary-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: fadeIn .3s ease;
}
.commentary-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232,54,79,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 42px;
  text-align: center;
}
.commentary-body {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.commentary-body strong {
  color: var(--text);
}
.commentary-goal {
  background: rgba(34,197,94,0.08);
  border-left: 3px solid #22c55e;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
}
.commentary-goal .commentary-time {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.player-apps {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.player-apps-label { font-size: 12px; color: var(--text3); }
.app-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.app-chip:hover { border-color: var(--text3); transform: translateY(-1px); }

/* ═══════════ SCORES PANEL ═══════════ */
.scores-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h) + 16px);
}
.scores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.scores-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,54,79,.5); }
  50% { box-shadow: 0 0 0 6px rgba(232,54,79,0); }
}
.scores-refresh {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.scores-refresh:hover { border-color: var(--text3); }
.scores-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.scores-list::-webkit-scrollbar { width: 4px; }
.scores-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.scores-loading {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}

/* Score items */
.score-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.score-item:last-child { border-bottom: none; }
.score-item:hover { background: rgba(255,255,255,.02); }
.score-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-status-live { color: var(--accent); }
.score-status-ft { color: var(--text3); }
.score-status-upcoming { color: var(--text2); }
.score-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.score-team-name { font-weight: 500; }
.score-team-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}
.score-team-score.is-winner { color: var(--accent); }

.scores-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text3);
}

.scores-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}
.scores-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ═══════════ SCHEDULE / TIMELINE ═══════════ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 126px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  z-index: 1;
}
.tl-date {
  width: 120px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 4px;
}
.tl-day {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
}
.tl-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}
.tl-badge-kickoff { background: var(--accent-dim); color: var(--accent); }
.tl-badge-final { background: var(--gold-dim); color: var(--gold); }
.tl-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-left: 20px;
  transition: border-color .3s;
}
.tl-card:hover { border-color: var(--text3); }
.tl-card-final { border-color: rgba(212,160,23,.3); }
.tl-title { font-size: 18px; font-weight: 700; font-family: var(--font-heading); margin-bottom: 4px; }
.tl-venue { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.tl-meta { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.tl-desc { font-size: 13px; color: var(--text3); line-height: 1.5; }

/* ═══════════ BROADCAST ═══════════ */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all .2s;
}
.filter-tab:hover { border-color: var(--text3); }
.filter-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.bc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .3s, transform .3s var(--ease);
}
.bc-card:hover { border-color: var(--text3); transform: translateY(-2px); }
.bc-card.is-hidden {
  display: none;
}
.bc-card-global {
  border-color: rgba(232,54,79,.25);
}
.bc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bc-flag { font-size: 28px; }
.bc-country { font-size: 16px; font-weight: 700; font-family: var(--font-heading); }
.bc-lang-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bc-list { display: flex; flex-direction: column; gap: 6px; }
.bc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.bc-list li:last-child { border-bottom: none; }
.bc-list a { transition: color .2s; }
.bc-list a:hover { color: var(--accent); }
.bc-list small { font-size: 10px; color: var(--text3); margin-left: 4px; }
.bc-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
  flex-shrink: 0;
}
.bc-free { background: var(--accent2-dim); color: var(--accent2); }
.bc-paid { background: rgba(255,255,255,.06); color: var(--text3); }
.bc-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
}

/* ═══════════ GROUPS ═══════════ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .3s, transform .3s var(--ease);
}
.group-card:hover { border-color: var(--text3); transform: translateY(-2px); }
.group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.group-label::before { content: 'Group '; color: var(--text3); font-family: var(--font-sans); font-weight: 600; letter-spacing: .06em; }
.group-teams li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(42,42,42,.5);
}
.group-teams li:last-child { border-bottom: none; }

/* ═══════════ VENUES ═══════════ */
.venues-grid {
  display: grid;
  gap: 32px;
}
.venue-country {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.venue-flag { font-size: 32px; }
.venue-country h3 { font-size: 22px; font-weight: 800; font-family: var(--font-heading); }
.venue-count { font-size: 12px; color: var(--text3); }
.venue-showcase {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.venue-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(10%) contrast(105%);
  transition: transform .5s var(--ease);
}
.venue-showcase:hover .venue-img {
  transform: scale(1.03);
}
.venue-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.venue-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.venue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.venue-item:hover { border-color: var(--text3); }
.venue-special { border-color: rgba(232,54,79,.2); }
.venue-city {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.venue-stadium {
  font-size: 12px;
  color: var(--text3);
  flex: 1;
}
.venue-item .tl-badge { margin: 0; }

/* ═══════════ INFO NOTICE ═══════════ */
.info-notice {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.info-notice p {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { 
  height: 60px; 
  width: auto; 
  align-self: flex-start;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.footer-tagline { font-size: 14px; color: var(--text3); margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 4px;
}
.footer-links a { font-size: 14px; color: var(--text2); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text3); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .live-grid {
    grid-template-columns: 1fr;
  }
  .scores-col {
    position: static;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: clamp(32px, 8vw, 56px); }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }

  .countdown { gap: 4px; }
  .cd-num { font-size: clamp(28px, 6vw, 40px); }

  .timeline-line { left: 20px; }
  .tl-item { flex-direction: column; gap: 12px; padding-left: 44px; }
  .tl-item::before { left: 16px; }
  .tl-date { width: auto; text-align: left; }
  .tl-card { margin-left: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }

  .broadcast-grid { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .groups-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

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

/* ─── Scrollbar (Global) ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════ AD SLOTS ═══════════ */
.ad-slot { padding: 16px 0; }
.ad-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text3);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ═══════════ KNOCKOUT BRACKET ═══════════ */
.bracket-wrapper { overflow: hidden; }
.bracket-scroll { overflow-x: auto; padding-bottom: 16px; }
.bracket-container {
  display: flex;
  gap: 24px;
  min-width: 900px;
  align-items: flex-start;
  padding: 16px 0;
}
.bracket-round { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.bracket-round-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border);
}
.bracket-final-title {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-size: 14px;
}
.bracket-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: border-color .2s, box-shadow .2s;
}
.bracket-match:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(26,107,60,.1); }
.bm-team { font-weight: 600; color: var(--text1); }
.bm-vs { color: var(--text3); font-size: 11px; margin: 0 6px; }
.bm-tbd { opacity: .5; }
.bm-final { border: 2px solid var(--accent); background: rgba(26,107,60,.04); }
.bracket-spacer { height: 12px; border-left: 2px dashed var(--border); margin-left: 50%; }
.bracket-venue, .bracket-date { font-size: 12px; color: var(--text3); text-align: center; margin-top: 4px; }
.bracket-hint { font-size: 12px; color: var(--text3); text-align: center; margin-top: 8px; }

/* ═══════════ STATS ═══════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stats-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.stats-icon { font-size: 24px; }
.stats-card-header h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.stats-table th {
  text-align: left;
  padding: 8px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text3);
  border-bottom: 2px solid var(--border);
}
.stats-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.stats-table tr:hover { background: rgba(26,107,60,.03); }
.stats-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(26,107,60,.05);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
  text-align: center;
}

/* ─── Stars ─── */
.stars-section { margin-top: 48px; }
.stars-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 20px; }
.stars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.star-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.star-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.star-flag { font-size: 28px; }
.star-info { display: flex; flex-direction: column; }
.star-info strong { font-size: 14px; }
.star-info span { font-size: 12px; color: var(--text3); }

/* ═══════════ VOTE ═══════════ */
.vote-wrapper { max-width: 800px; margin: 0 auto; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.vote-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,107,60,.12); }
.vote-btn.voted { border-color: var(--accent); background: rgba(26,107,60,.08); }
.vote-btn.voted::before {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 4px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.vote-flag { font-size: 22px; }
.vote-name { font-weight: 600; flex: 1; text-align: left; }
.vote-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text3); min-width: 30px; text-align: right; }
.vote-result { text-align: center; margin-top: 20px; padding: 20px; background: rgba(26,107,60,.06); border-radius: var(--radius); }
.vote-result strong { color: var(--accent); font-size: 18px; }
.vote-total { font-size: 13px; color: var(--text3); margin-top: 8px; }

/* ═══════════ HIGHLIGHTS ═══════════ */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.hl-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.hl-video { position: relative; padding-top: 56.25%; background: #000; }
.hl-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hl-info { padding: 16px; }
.hl-info h4 { font-family: var(--font-heading); font-size: 15px; margin-bottom: 6px; }
.hl-source { font-size: 12px; color: var(--text3); font-family: var(--font-mono); }

/* ═══════════ HISTORY ═══════════ */
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.history-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.history-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hc-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  min-width: 42px;
}
.hc-flag { font-size: 22px; }
.hc-team { font-weight: 600; font-size: 14px; flex: 1; }
.hc-host { font-size: 16px; }

/* ─── Trophy Bars ─── */
.trophy-section { margin-top: 48px; }
.trophy-section h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 20px; }
.trophy-bars { display: flex; flex-direction: column; gap: 10px; max-width: 600px; }
.trophy-row { display: flex; align-items: center; gap: 12px; }
.trophy-team { min-width: 120px; font-size: 14px; font-weight: 600; }
.trophy-bar {
  height: 32px;
  background: linear-gradient(90deg, var(--accent), #2d8f55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  min-width: 40px;
  transition: width .6s ease;
}

/* ═══════════ DRAWER DIVIDER ═══════════ */
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ═══════════ SECTION DESC ═══════════ */
.section-desc { font-size: 15px; color: var(--text2); margin-top: 8px; max-width: 600px; }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stars-grid { grid-template-columns: repeat(2, 1fr); }
  .vote-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
  .trophy-team { min-width: 90px; font-size: 13px; }
  .bracket-container { min-width: 700px; }
}
::-webkit-scrollbar-thumb:hover { background: var(--text3); }
