/* ============================================================
   FIFA WORLD CUP 2026 — Main Stylesheet
   Dark Glassmorphism + Sports Broadcast UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
  --bg-base:       #07090f;
  --bg-surface:    #0d1117;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.14);

  --text-primary:  #f0f4ff;
  --text-secondary:#8b97b8;
  --text-muted:    #4a5568;

  --accent:        #00d4ff;
  --accent-dim:    rgba(0,212,255,0.12);
  --accent-glow:   rgba(0,212,255,0.35);

  --live:          #00ff88;
  --live-dim:      rgba(0,255,136,0.12);
  --live-glow:     rgba(0,255,136,0.4);

  --warn:          #ff9f00;
  --danger:        #ff4757;
  --success:       #2ecc71;

  --gold:          #ffd700;
  --gold-dim:      rgba(255,215,0,0.15);
  --silver:        #c0c0c0;
  --bronze:        #cd7f32;

  --qualified:     rgba(0,212,255,0.15);
  --third-place:   rgba(255,159,0,0.15);

  --radius:        12px;
  --radius-lg:     18px;
  --radius-sm:     8px;
  --transition:    0.2s ease;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg-base:       #f0f4fc;
  --bg-surface:    #ffffff;
  --bg-card:       rgba(0,0,0,0.04);
  --bg-card-hover: rgba(0,0,0,0.07);
  --border:        rgba(0,0,0,0.09);
  --border-bright: rgba(0,0,0,0.16);

  --text-primary:  #0d1117;
  --text-secondary:#4a5568;
  --text-muted:    #8b97b8;

  --accent:        #0075cc;
  --accent-dim:    rgba(0,117,204,0.10);
  --accent-glow:   rgba(0,117,204,0.25);

  --live:          #00a854;
  --live-dim:      rgba(0,168,84,0.10);
  --live-glow:     rgba(0,168,84,0.30);

  --gold-dim:      rgba(200,160,0,0.12);
  --qualified:     rgba(0,117,204,0.10);
  --third-place:   rgba(200,100,0,0.10);
}

/* Light mode direct overrides — bypasses CSS variable inheritance */
[data-theme="light"] body { background: #f0f4fc !important; color: #0d1117 !important; }
[data-theme="light"]       { background: #f0f4fc; }

[data-theme="light"] .nav {
  background: rgba(240,244,252,0.92);
  border-bottom-color: var(--border);
}

[data-theme="light"] .ticker-bar {
  background: linear-gradient(90deg, rgba(0,117,204,0.08), rgba(0,75,160,0.06));
  border-bottom-color: rgba(0,117,204,0.18);
}

[data-theme="light"] .ticker-label {
  background: var(--accent);
  color: #fff;
}

[data-theme="light"] .hero {
  background: linear-gradient(160deg, #dce8fb 0%, #eef2ff 50%, #f5f0ff 100%);
}

[data-theme="light"] .hero-eyebrow { color: var(--accent); }
[data-theme="light"] .hero h1 { color: #0a0e1a; }

[data-theme="light"] .match-card,
[data-theme="light"] .scorer-card,
[data-theme="light"] .quick-nav-card,
[data-theme="light"] .group-table-wrap,
[data-theme="light"] .pred-card,
[data-theme="light"] .stat-card {
  background: rgba(255,255,255,0.85);
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

[data-theme="light"] .match-card:hover,
[data-theme="light"] .quick-nav-card:hover {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

[data-theme="light"] .featured-match {
  background: rgba(255,255,255,0.9);
  border-color: var(--border-bright);
}

[data-theme="light"] .modal-backdrop,
[data-theme="light"] #match-modal-overlay { background: rgba(0,0,0,0.45); }

[data-theme="light"] .modal-box,
[data-theme="light"] .search-overlay-box {
  background: #fff;
  border-color: var(--border-bright);
}

[data-theme="light"] .filter-btn {
  background: rgba(0,0,0,0.04);
  border-color: var(--border);
  color: var(--text-secondary);
}
[data-theme="light"] .filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

[data-theme="light"] .hero-bg-orb { opacity: 0.15; }

[data-theme="light"] .page-hero { background: linear-gradient(135deg,rgba(0,117,204,0.07),rgba(0,50,120,0.04)); }

[data-theme="light"] ::-webkit-scrollbar-track { background: #e8edf5; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); }

/* Light mode: text & badge corrections */
[data-theme="light"] .section-title,
[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero p,
[data-theme="light"] .hero h1,
[data-theme="light"] .hero p,
[data-theme="light"] .hero-stat .label,
[data-theme="light"] .hero-stat .value,
[data-theme="light"] .hero-eyebrow        { color: #0d1117 !important; }

[data-theme="light"] .hero-stat .value    { color: var(--accent) !important; }
[data-theme="light"] .hero-eyebrow        { color: var(--accent) !important; }

[data-theme="light"] .team-name,
[data-theme="light"] .scorer-name,
[data-theme="light"] .scorer-country,
[data-theme="light"] .match-meta,
[data-theme="light"] .group-badge,
[data-theme="light"] .featured-match-label { color: var(--text-secondary) !important; }

[data-theme="light"] .status-badge.ft     { background: rgba(0,168,84,0.12); color: var(--live); border-color: rgba(0,168,84,0.3); }
[data-theme="light"] .status-badge.live   { background: rgba(0,168,84,0.15); color: var(--live); }
[data-theme="light"] .status-badge.ns     { background: rgba(0,117,204,0.10); color: var(--accent); }

[data-theme="light"] .ticker-bar { border-bottom-color: rgba(0,117,204,0.2); }
[data-theme="light"] .see-all    { color: var(--accent); }
[data-theme="light"] .score-dash { color: var(--text-muted); }
[data-theme="light"] .match-score-compact { color: #0d1117; }
[data-theme="light"] .js-home-score,
[data-theme="light"] .js-away-score       { color: #0d1117; }
[data-theme="light"] .score-sep           { color: var(--text-muted); }
[data-theme="light"] .nav-live-badge      { color: var(--live); }
[data-theme="light"] .pred-group-label    { color: var(--text-secondary); }
[data-theme="light"] .vote-bar-label      { color: var(--text-secondary); }
[data-theme="light"] .vote-bar-pct        { color: var(--text-primary); }
[data-theme="light"] .vote-total          { color: var(--text-muted); }
[data-theme="light"] .footer              { background: rgba(0,0,0,0.04); border-top-color: var(--border); }
[data-theme="light"] .footer-brand,
[data-theme="light"] .footer-note,
[data-theme="light"] .footer-links a      { color: var(--text-secondary); }
[data-theme="light"] .page-hero           {
  background: linear-gradient(135deg,rgba(0,117,204,0.07),rgba(0,50,120,0.04));
  border-color: rgba(0,117,204,0.12);
}
[data-theme="light"] .section             { background: transparent; }
[data-theme="light"] .quick-nav-card .icon { filter: none; }
[data-theme="light"] .quick-nav-card .label { color: var(--text-secondary); }

/* ── GOOGLE ADS ── */
.ad-slot {
  width: 100%; text-align: center;
  padding: 0.75rem 0;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  position: relative;
}
.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot-leaderboard { min-height: 90px; }
.ad-slot-rectangle   { min-height: 250px; max-width: 336px; margin-left: auto; margin-right: auto; }
.ad-slot-banner      { min-height: 60px; }
[data-theme="light"] .ad-slot { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.1); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.2s ease;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.page-wrapper { padding-top: 4.5rem; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 4.25rem;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text-primary); font-weight: 800;
  font-size: 1.05rem; letter-spacing: 0.01em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #0075ff);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 0.25rem; list-style: none;
}
.nav-links a {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; border-radius: 8px;
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.nav-links a.active { color: var(--accent); }

/* Live link in nav — subtle inline style with pulsing dot */
.nav-live-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: var(--text-primary) !important;
  border: none !important;
  background: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.nav-live-link::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e63535;
  flex-shrink: 0;
  animation: live-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}
.nav-live-link:hover { color: #e63535 !important; }
[data-theme="light"] .nav-live-link { color: var(--text-primary) !important; }

/* Theme toggle button */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; font-size: 1.1rem;
  transition: var(--transition); color: var(--text-secondary);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: scale(1.08);
}
/* Prevent Twemoji img from blocking click */
.theme-toggle img { pointer-events: none; }

.nav-live-badge {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--live-dim); border: 1px solid var(--live);
  color: var(--live); border-radius: 20px;
  padding: 0.3rem 0.75rem; font-size: 0.75rem; font-weight: 700;
}
.nav-live-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  animation: pulse-live 1.4s ease-in-out infinite;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ── LIVE TICKER ── */
.ticker-bar {
  background: linear-gradient(90deg, rgba(0,212,255,0.08), rgba(0,117,255,0.08));
  border-bottom: 1px solid rgba(0,212,255,0.2);
  padding: 0.5rem 0; overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
}
.ticker-label {
  background: var(--accent); color: #000;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem; text-transform: uppercase;
  flex-shrink: 0; border-radius: 0 4px 4px 0; margin-right: 1rem;
}
.ticker-scroll {
  display: flex; gap: 3rem;
  animation: ticker-move 40s linear infinite;
}
.ticker-scroll span { font-size: 0.8rem; color: var(--text-secondary); }
.ticker-scroll span b { color: var(--text-primary); }
.ticker-scroll .live-score { color: var(--live); font-weight: 600; }

@keyframes ticker-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,0.12), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,117,255,0.08), transparent);
}
.hero-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-bg-orb.orb1 {
  width: 500px; height: 500px; top: -200px; right: -100px;
  background: rgba(0,212,255,0.08);
}
.hero-bg-orb.orb2 {
  width: 400px; height: 400px; bottom: -150px; left: -100px;
  background: rgba(0,117,255,0.07);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--live-dim); border: 1px solid var(--live);
  color: var(--live); border-radius: 20px;
  padding: 0.3rem 1rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); animation: pulse-live 1.4s infinite;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, #0075ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--text-secondary); font-size: 1.05rem;
  max-width: 520px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent); color: #000;
}
.btn-primary:hover { background: #22e0ff; transform: translateY(-1px); }
.btn-outline {
  background: var(--bg-card); border: 1px solid var(--border-bright);
  color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: var(--accent); }

/* Hero stats strip */
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem; color: var(--accent); line-height: 1;
}
.hero-stat .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* ── FEATURED LIVE MATCH ── */
.featured-match {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(0,117,255,0.04));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative; overflow: hidden;
  margin: 2rem 0;
}
.featured-match::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.06), transparent 60%);
  pointer-events: none;
}
.featured-match-label {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--live); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.featured-match-label::before {
  content:''; width:8px; height:8px; border-radius:50%;
  background:var(--live); animation: pulse-live 1.4s infinite;
}
.match-score-display {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.match-team {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  flex: 1;
}
.match-team-flag { font-size: 3.5rem; line-height: 1; }
.match-team-name { font-weight: 700; font-size: 1.05rem; text-align: center; }
.match-score-center {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  flex-shrink: 0;
}
.score-nums {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1; letter-spacing: 0.04em;
  color: #fff;
}
.score-sep { color: var(--text-muted); margin: 0 0.15em; }
.match-minute {
  background: var(--live-dim); border: 1px solid var(--live);
  color: var(--live); border-radius: 6px;
  padding: 0.15rem 0.6rem; font-size: 0.72rem; font-weight: 700;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.06em;
}
.match-venue { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.4rem; }

/* ── SECTION HEADERS ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-title::before {
  content: ''; width: 4px; height: 1.2em; background: var(--accent);
  border-radius: 2px;
}
.see-all {
  font-size: 0.8rem; color: var(--accent); text-decoration: none;
  font-weight: 600; transition: var(--transition);
}
.see-all:hover { color: #fff; }

/* ── MATCH CARDS ── */
.matches-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.match-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  transition: var(--transition); cursor: default;
  position: relative; overflow: hidden;
}
.match-card:hover { background: var(--bg-card-hover); border-color: var(--border-bright); }
.match-card.live {
  border-color: rgba(0,255,136,0.3);
  background: linear-gradient(135deg, rgba(0,255,136,0.04), var(--bg-card));
}
.match-card.live::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--live);
  border-radius: 0 2px 2px 0;
}
.match-team-row {
  display: flex; align-items: center; gap: 0.6rem;
}
.match-team-row.away { flex-direction: row-reverse; text-align: right; }
.team-flag { font-size: 1.4rem; }
.team-name { font-weight: 600; font-size: 0.9rem; }
.match-center-col {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
}
.match-score-compact {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.06em; color: #fff;
  display: flex; gap: 0.4rem;
}
.match-score-compact .sep { color: var(--text-muted); }
.score-dash { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0; font-family: 'Inter', sans-serif; }
.status-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase;
}
.status-badge.live {
  background: var(--live-dim); border: 1px solid var(--live); color: var(--live);
}
.status-badge.ft {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-muted);
}
.status-badge.ns {
  background: rgba(255,159,0,0.1); border: 1px solid rgba(255,159,0,0.3);
  color: var(--warn);
}
.match-meta { font-size: 0.68rem; color: var(--text-muted); text-align: center; }
.group-badge {
  font-size: 0.62rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; background: var(--accent-dim);
  padding: 0.1rem 0.45rem; border-radius: 4px;
}

/* ── QUICK NAV CARDS ── */
.quick-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin: 2rem 0; }
.quick-nav-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1rem;
  text-decoration: none; color: var(--text-primary);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  transition: var(--transition);
}
.quick-nav-card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-2px); }
.quick-nav-card .icon { font-size: 1.8rem; }
.quick-nav-card .label { font-size: 0.8rem; font-weight: 600; text-align: center; }

/* ── GROUPS ── */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1.25rem; }
.group-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.group-header {
  padding: 0.75rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.6rem;
}
.group-letter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--accent);
  width: 2rem; text-align: center;
}
.group-header span { font-weight: 700; font-size: 0.95rem; }
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
  font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.4rem 0.6rem; text-align: center;
  border-bottom: 1px solid var(--border);
}
.standings-table th.left { text-align: left; }
.standings-table td { padding: 0.6rem 0.6rem; font-size: 0.82rem; text-align: center; }
.standings-table td.team-cell {
  text-align: left; display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; min-width: 140px;
}
.standings-table td.pts { font-weight: 700; color: var(--text-primary); }
.standings-table tr.qualified { background: var(--qualified); }
.standings-table tr.third { background: var(--third-place); }
.standings-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }

/* ── TOP SCORERS ── */
.scorers-list { display: flex; flex-direction: column; gap: 0.5rem; }
.scorer-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.scorer-card:hover { background: var(--bg-card-hover); }
.scorer-card.gold { border-color: var(--gold); background: var(--gold-dim); }
.scorer-card.silver { border-color: var(--silver); background: rgba(192,192,192,0.06); }
.scorer-card.bronze { border-color: var(--bronze); background: rgba(205,127,50,0.06); }
.scorer-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; line-height: 1;
  width: 2rem; text-align: center; flex-shrink: 0;
}
.scorer-rank.r1 { color: var(--gold); }
.scorer-rank.r2 { color: var(--silver); }
.scorer-rank.r3 { color: var(--bronze); }
.scorer-rank.normal { color: var(--text-muted); font-size: 1.1rem; }
.scorer-info { flex: 1; }
.scorer-name { font-weight: 700; font-size: 0.95rem; }
.scorer-country {
  font-size: 0.75rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.35rem; margin-top: 0.15rem;
}
.scorer-stats { display: flex; gap: 1.5rem; flex-shrink: 0; }
.scorer-stat { text-align: center; }
.scorer-stat .n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; line-height: 1; color: var(--accent);
}
.scorer-stat .n.assists { color: var(--warn); }
.scorer-stat .l { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── QUALIFIED / BRACKET ── */
.qualified-section { margin-bottom: 2.5rem; }
.qualified-section-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.qualified-section-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.qualified-section-title .dot.winners { background: var(--accent); }
.qualified-section-title .dot.runners { background: var(--text-secondary); }
.qualified-section-title .dot.third { background: var(--warn); }
.qualified-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.qualified-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  transition: var(--transition);
}
.qualified-card.winner { border-color: rgba(0,212,255,0.25); background: var(--accent-dim); }
.qualified-card.runner { border-color: rgba(255,255,255,0.1); }
.qualified-card.third  { border-color: rgba(255,159,0,0.3); background: rgba(255,159,0,0.06); }
.qualified-card:hover { transform: translateY(-2px); }
.qualified-card .flag { font-size: 2rem; }
.qualified-card .name { font-weight: 700; font-size: 0.8rem; text-align: center; }
.qualified-card .group-tag { font-size: 0.62rem; color: var(--text-muted); }
.qualified-card .pts-tag { font-size: 0.7rem; font-weight: 700; color: var(--accent); }

/* ── PREDICTIONS ── */
.prediction-cards { display: flex; flex-direction: column; gap: 1rem; }
.prediction-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  transition: var(--transition);
}
.prediction-card:hover { border-color: var(--border-bright); }
.prediction-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.prediction-match-info { display: flex; align-items: center; gap: 1rem; }
.pred-team {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem;
}
.pred-vs { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.prediction-date { font-size: 0.72rem; color: var(--text-muted); }
.vote-buttons {
  display: grid; gap: 0.6rem;
  margin-bottom: 1rem;
}
.vote-buttons.has-draw { grid-template-columns: 1fr 1fr 1fr; }
.vote-buttons.no-draw  { grid-template-columns: 1fr 1fr; }
.vote-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.6rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.vote-btn:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-dim); }
.vote-btn.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.vote-btn .btn-flag { font-size: 1.2rem; }
.vote-btn .btn-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; }
.vote-btn.draw-btn { color: var(--text-secondary); }
.vote-btn.draw-btn:hover, .vote-btn.draw-btn.selected { border-color: var(--warn); color: var(--warn); background: rgba(255,159,0,0.08); }
.vote-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.vote-bar-row {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem;
}
.vote-bar-label { width: 80px; text-align: right; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-bar-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.vote-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--accent);
  transition: width 0.6s ease;
}
.vote-bar-fill.away { background: var(--warn); }
.vote-bar-fill.draw { background: var(--text-muted); }
.vote-bar-pct { width: 36px; text-align: right; font-weight: 600; color: var(--text-primary); }
.vote-total { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-top: 0.4rem; }

/* ── FILTERS ── */
.filter-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.8rem;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.filter-btn:hover { border-color: var(--border-bright); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ── PAGE TITLE ── */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.4rem; }

/* ── SECTION ── */
.section { padding: 2rem 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── FOOTER ── */
.footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: 2.5rem 0; margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 0.9rem;
}
.footer-brand .icon { font-size: 1.2rem; }
.footer-note { font-size: 0.75rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

/* ── BRACKET STYLES ── */
.bracket-wrap { overflow-x: auto; padding-bottom: 1rem; }
.bracket-row { display: flex; gap: 1rem; min-width: max-content; }
.bracket-match {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; width: 200px;
  flex-shrink: 0;
}
.bracket-team {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.75rem; font-size: 0.82rem; font-weight: 600;
}
.bracket-team:first-child { border-bottom: 1px solid var(--border); }
.bracket-team .flag { font-size: 1.1rem; }
.bracket-team .score {
  margin-left: auto; font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; color: var(--accent);
}
.bracket-team.winner { background: rgba(0,212,255,0.07); }

/* ── ANIMATIONS ── */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.fade-in     { animation: fadeInUp 0.5s ease both; }
.slide-in    { animation: slideInLeft 0.4s ease both; }

/* stagger children */
.stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger > *:nth-child(2)  { animation-delay: 0.1s; }
.stagger > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger > *:nth-child(4)  { animation-delay: 0.2s; }
.stagger > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger > *:nth-child(6)  { animation-delay: 0.3s; }
.stagger > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger > *:nth-child(8)  { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .groups-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 4.25rem; left: 0; right: 0; background: rgba(7,9,15,0.97); border-bottom: 1px solid var(--border); padding: 0.75rem; gap: 0.2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 2.5rem 0 2.5rem; }
  .match-score-display { gap: 0.5rem; }
  .match-team-flag { font-size: 2.5rem; }
  .score-nums { font-size: 2.8rem; }
  .scorer-stats { gap: 1rem; }
  .prediction-match-info { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .vote-buttons.has-draw { grid-template-columns: 1fr; }
  .podium { gap: .6rem; }
  .nav-search-btn span:last-child { display: none; }
  #lang-switcher span[style*="opacity:.6"] { display: none; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat .value { font-size: 1.8rem; }
  .scorer-card { flex-wrap: wrap; }
  .stat-bar-row { grid-template-columns: 36px 1fr 36px; font-size:.72rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  .match-card { grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }
  .team-name { font-size: 0.78rem; }
  .team-flag { font-size: 1.1rem; }
  .featured-match { padding: 1.25rem; }
  .modal { border-radius: var(--radius); }
  .modal-body { padding: .75rem 1rem 1rem; }
  .qualified-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ── RTL SUPPORT (Arabic) ── */
[dir="rtl"] body { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-links a { flex-direction: row-reverse; }
[dir="rtl"] .hero h1 { text-align: right; }
[dir="rtl"] .hero p  { text-align: right; }
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .hero-stats   { flex-direction: row-reverse; }
[dir="rtl"] .section-header { flex-direction: row-reverse; }
[dir="rtl"] .section-title { flex-direction: row-reverse; }
[dir="rtl"] .section-title::before { order: 1; }
[dir="rtl"] .match-card    { direction: rtl; }
[dir="rtl"] .match-team-row { flex-direction: row-reverse; }
[dir="rtl"] .match-team-row.away { flex-direction: row; }
[dir="rtl"] .scorer-card   { flex-direction: row-reverse; }
[dir="rtl"] .scorer-info   { text-align: right; }
[dir="rtl"] .scorer-country { flex-direction: row-reverse; }
[dir="rtl"] .prediction-card { direction: rtl; }
[dir="rtl"] .prediction-match-info { flex-direction: row-reverse; }
[dir="rtl"] .prediction-header { flex-direction: row-reverse; }
[dir="rtl"] .vote-bar-row  { flex-direction: row-reverse; }
[dir="rtl"] .vote-bar-label { text-align: left; }
[dir="rtl"] .vote-bar-pct   { text-align: left; }
[dir="rtl"] .standings-table td.team-cell { flex-direction: row-reverse; }
[dir="rtl"] .group-header  { flex-direction: row-reverse; }
[dir="rtl"] .filter-row    { flex-direction: row-reverse; }
[dir="rtl"] .page-hero h1  { text-align: right; }
[dir="rtl"] .page-hero p   { text-align: right; }
[dir="rtl"] .footer-inner  { flex-direction: row-reverse; }
[dir="rtl"] .footer-links  { flex-direction: row-reverse; }
[dir="rtl"] .ticker-inner  { flex-direction: row-reverse; }
[dir="rtl"] .search-overlay-box { direction: rtl; }
[dir="rtl"] .search-overlay-icon { left: auto; right: .8rem; }
[dir="rtl"] .search-overlay-input { padding: 1rem .8rem 1rem 3.2rem; text-align: right; }
[dir="rtl"] .toast-container { right: auto; left: 1.5rem; }
[dir="rtl"] .toast { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .modal-header  { flex-direction: row-reverse; }
[dir="rtl"] .event-row.home { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .event-row.away { flex-direction: row; text-align: left; }
[dir="rtl"] .qualified-section-title { flex-direction: row-reverse; }
[dir="rtl"] .search-result-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .sr-main { text-align: right; }
[dir="rtl"] .hero-stat .label { direction: rtl; }
[dir="rtl"] #lang-dropdown { right: auto; left: 0; }

/* Arabic font boost for readability */
[dir="rtl"] .section-title,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .hero h1 { letter-spacing: 0; }

/* ── TWEMOJI flag images ── */
img.emoji {
  height: 1.2em; width: 1.2em;
  vertical-align: -0.15em;
  display: inline-block;
}
.match-team-flag img.emoji   { height: 3.2rem; width: 3.2rem; vertical-align: middle; }
.team-flag img.emoji         { height: 1.35rem; width: 1.35rem; vertical-align: -0.2em; }
.scorer-country img.emoji    { height: 1.1em;  width: 1.1em; vertical-align: -0.1em; }
.pred-team img.emoji         { height: 1.3rem; width: 1.3rem; vertical-align: -0.2em; }
.vote-btn .btn-flag img.emoji{ height: 1.5rem; width: 1.5rem; }
.qualified-card .flag img.emoji { height: 2rem; width: 2rem; }
.bracket-team-row .flag img.emoji { height: 1.1rem; width: 1.1rem; }
.podium-flag img.emoji       { height: 2rem; width: 2rem; }
.standings-table img.emoji   { height: 1.1em; width: 1.1em; vertical-align: -0.1em; }
.ticker-scroll img.emoji     { height: 1em; width: 1em; vertical-align: -0.1em; }

/* ── MISC UTILITIES ── */
.text-accent  { color: var(--accent); }
.text-live    { color: var(--live); }
.text-warn    { color: var(--warn); }
.text-muted   { color: var(--text-muted); }
.text-gold    { color: var(--gold); }
.font-heading { font-family: 'Bebas Neue', sans-serif; }
.divider      { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.pill {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
}
.pill-live   { background: var(--live-dim);  border: 1px solid var(--live);  color: var(--live); }
.pill-accent { background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #0d111c;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 1.25rem 1.5rem 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-close {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition); flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.modal-body { padding: 1rem 1.5rem 1.5rem; }
.modal-score-block {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 1.5rem; text-align: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,117,255,0.03));
  border: 1px solid rgba(0,212,255,0.1); border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.modal-team { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex:1; }
.modal-flag { font-size: 2.5rem; }
.modal-team-name { font-weight: 700; font-size: 0.95rem; }
.modal-score {
  font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem;
  line-height: 1; color: #fff; letter-spacing: 0.04em;
  display: flex; gap: 0.4em; align-items: center; flex-shrink: 0;
}
.modal-score .sep { color: var(--text-muted); font-size: 2rem; }
.modal-meta { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.modal-section-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
  margin-bottom: 0.75rem; margin-top: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.modal-section-title::after { content:''; flex:1; height:1px; background: var(--border); }

/* Stat bars */
.stat-bar-row {
  display: grid; grid-template-columns: 42px 1fr 42px;
  align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
  font-size: 0.8rem;
}
.stat-bar-row .val-left  { text-align: right; font-weight: 700; color: var(--accent); }
.stat-bar-row .val-right { text-align: left;  font-weight: 700; color: var(--warn); }
.stat-bar-track {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; position: relative; overflow: hidden;
}
.stat-bar-left {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent); border-radius: 3px;
  transition: width 0.8s ease;
}
.stat-bar-right {
  position: absolute; right: 0; top: 0; bottom: 0;
  background: var(--warn); border-radius: 3px;
  transition: width 0.8s ease;
}
.stat-bar-label {
  grid-column: 1 / -1; text-align: center;
  font-size: 0.65rem; color: var(--text-muted); margin-top: -0.3rem; margin-bottom: 0.15rem;
}

/* Events timeline */
.events-list { display: flex; flex-direction: column; gap: 0.5rem; }
.event-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem;
}
.event-row.home { flex-direction: row; }
.event-row.away { flex-direction: row-reverse; text-align: right; }
.event-min {
  font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem;
  color: var(--text-muted); width: 30px; text-align: center; flex-shrink: 0;
}
.event-icon { font-size: 1rem; flex-shrink: 0; }
.event-player { font-weight: 600; }
.event-type { font-size: 0.72rem; color: var(--text-muted); }

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column-reverse; gap: 0.6rem;
  z-index: 3000; pointer-events: none;
}
.toast {
  background: #0d111c;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 260px; max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.35s ease both;
  pointer-events: all;
}
.toast.goal  { border-color: var(--live); }
.toast.info  { border-color: var(--accent); }
.toast.warn  { border-color: var(--warn); }
.toast-icon  { font-size: 1.4rem; flex-shrink: 0; }
.toast-body  { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.toast-sub   { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.15rem; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}
.toast.dying { animation: toastOut 0.3s ease forwards; }

/* ── SEARCH BAR ── */
.search-wrap {
  position: relative; max-width: 400px;
}
.search-input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 0.88rem; font-family: 'Inter', sans-serif;
  transition: var(--transition); outline: none;
}
.search-input:focus { border-color: var(--accent); background: var(--bg-card-hover); }
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem; pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #0d111c; border: 1px solid var(--border-bright);
  border-radius: var(--radius); z-index: 500;
  max-height: 320px; overflow-y: auto;
  display: none;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1rem; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition); text-decoration: none; color: inherit;
}
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-item .sr-icon { font-size: 1.2rem; flex-shrink: 0; }
.search-result-item .sr-main { flex: 1; }
.search-result-item .sr-label { font-weight: 600; }
.search-result-item .sr-sub { font-size: 0.7rem; color: var(--text-muted); }
.search-result-item .sr-badge {
  font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0.45rem;
  border-radius: 4px; background: var(--accent-dim); color: var(--accent);
}

/* ── STATS PAGE ── */
.stats-overview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.4rem 1.2rem;
  text-align: center; position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.stat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); opacity: 0.5;
}
.stat-card.warm::before { background: var(--warn); }
.stat-card.live-c::before { background: var(--live); }
.stat-card.gold-c::before { background: var(--gold); }
.stat-card .s-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.stat-card .s-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem;
  line-height: 1; color: var(--accent);
}
.stat-card.warm .s-val  { color: var(--warn); }
.stat-card.live-c .s-val{ color: var(--live); }
.stat-card.gold-c .s-val{ color: var(--gold); }
.stat-card .s-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 0.3rem; }

.venues-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.venue-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.venue-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.venue-img {
  height: 120px; background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,117,255,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.venue-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, #0d111c);
}
.venue-info { padding: 0.85rem 1rem; }
.venue-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.venue-city { font-size: 0.78rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.35rem; }
.venue-cap  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.3rem; }
.venue-matches { font-size: 0.72rem; color: var(--accent); font-weight: 600; }

.goals-chart {
  display: flex; align-items: flex-end; gap: 0.4rem; height: 120px;
  padding: 0 0 0.5rem;
}
.chart-bar-col { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; }
.chart-bar {
  width: 100%; background: linear-gradient(to top, var(--accent), rgba(0,212,255,0.4));
  border-radius: 4px 4px 0 0;
  transition: height 1s ease;
  min-height: 4px;
}
.chart-label { font-size: 0.62rem; color: var(--text-muted); text-align: center; white-space: nowrap; }
.chart-val { font-size: 0.7rem; font-weight: 700; color: var(--accent); }

.table-full {
  width: 100%; border-collapse: collapse;
}
.table-full th {
  font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.5rem 0.75rem; text-align: left;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.table-full td { padding: 0.65rem 0.75rem; font-size: 0.83rem; border-bottom: 1px solid var(--border); }
.table-full tr:last-child td { border-bottom: none; }
.table-full tr:hover td { background: var(--bg-card-hover); }
.table-full .flag-cell { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }

/* ── TEAM PAGE ── */
.team-hero {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 2rem 0 1.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.team-badge {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; flex-shrink: 0;
}
.team-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; line-height: 1; }
.team-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.3rem; }
.team-stats-strip {
  display: flex; gap: 1.5rem; margin-top: 0.75rem; flex-wrap: wrap;
}
.team-stat { text-align: center; }
.team-stat .v { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--accent); line-height:1; }
.team-stat .l { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing:.06em; }

/* ── NAV SEARCH ── */
.nav-search-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 0.82rem;
  transition: var(--transition); font-family: 'Inter', sans-serif;
}
.nav-search-btn:hover { border-color: var(--accent); color: var(--text-primary); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 8rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-box {
  width: 100%; max-width: 600px; padding: 0 1rem;
}
.search-overlay-input {
  width: 100%; padding: 1rem 1.25rem 1rem 3.2rem;
  background: #0d111c; border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-size: 1.1rem; font-family: 'Inter', sans-serif; outline: none;
}
.search-overlay-icon {
  position: absolute; left: 2.25rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.1rem; pointer-events: none;
}
.search-overlay-results {
  background: #0d111c; border: 1px solid var(--border-bright);
  border-radius: var(--radius); margin-top: 0.5rem;
  max-height: 360px; overflow-y: auto;
}

/* ── PROGRESS BAR (page load) ── */
.page-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--accent), #0075ff);
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* No-results empty state */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.empty-state .icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* Score update flash */
@keyframes scoreFlash {
  0%   { color: var(--live); transform: scale(1.15); }
  100% { color: #fff;       transform: scale(1); }
}
.score-updated { animation: scoreFlash 0.6s ease; }
