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

/* ═══════════════════════════════════════════════════
   STATDIUM — Design System (Dark broadcast aesthetic)
   ═══════════════════════════════════════════════════ */
:root {
  --bg-primary: #07070C;
  --bg-card: #111118;
  --bg-card2: #18181F;
  --bg-card3: #1E1E28;
  --accent: #00E5A0;
  --accent2: #7B61FF;
  --accent3: #FF6B35;
  --gold: #FFD700;
  --live-red: #FF3B30;
  --win-green: #00E5A0;
  --loss-red: #FF453A;
  --draw-gray: #636366;
  --text-primary: #F2F2F7;
  --text-secondary: #8E8E9A;
  --text-dim: #48484A;
  --border: #252530;
  --border2: #1C1C24;
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-glow: rgba(0, 229, 160, 0.12);
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth
}

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

a {
  text-decoration: none;
  color: inherit
}

button {
  cursor: pointer;
  font-family: inherit
}

img {
  display: block
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px
}

::-webkit-scrollbar-track {
  background: var(--bg-primary)
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4a
}

/* ── DISPLAY FONT — headings, stats, scores ── */
h1,
h2,
h3,
.display,
.section-hdr-title,
.stat-pill-value,
.lb-player-name,
.score-big,
.match-score {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* ── AURORA background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 10%, rgba(0, 229, 160, 0.035) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(123, 97, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255, 107, 53, 0.015) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: auroraShift 24s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% {
    transform: translate(0, 0) scale(1)
  }

  100% {
    transform: translate(-2%, 1.5%) scale(1.02)
  }
}

/* ── SHINY text ── */
@keyframes shineSweep {
  from {
    background-position: -200% center
  }

  to {
    background-position: 200% center
  }
}

.shiny-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 35%, #fff 50%, var(--accent) 65%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shineSweep 3.5s linear infinite;
}

/* ── SKELETON LOADER ── */
@keyframes shimmer {
  0% {
    background-position: -700px 0
  }

  100% {
    background-position: 700px 0
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--bg-card3) 50%, var(--bg-card2) 75%);
  background-size: 700px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px
}

.skeleton-line.wide {
  width: 100%
}

.skeleton-line.med {
  width: 70%
}

.skeleton-line.short {
  width: 40%
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--bg-card3) 50%, var(--bg-card2) 75%);
  background-size: 700px 100%;
  animation: shimmer 1.6s infinite linear;
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════
   HERO — Landing page cinematic header
   ══════════════════════════════════════════ */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #07070C 0%, #0D0D16 40%, #0A0A12 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px 28px;
  margin-bottom: 24px;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0, 229, 160, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(123, 97, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-stat-strip {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stat {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.hero-stat:last-child {
  border-right: none
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.hero-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 3px;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 160, 0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.glow-card:hover::before {
  opacity: 1
}

.glow-card:hover {
  border-color: rgba(0, 229, 160, 0.18);
  box-shadow: 0 8px 32px var(--shadow), 0 0 0 1px rgba(0, 229, 160, 0.06);
}

/* ── MATCH CARD ── */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.match-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 160, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.match-card:hover::after {
  opacity: 1
}

.match-card:hover {
  border-color: rgba(0, 229, 160, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow);
}

.match-score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  min-width: 72px;
  text-align: center;
}

.match-team-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-top: 5px;
  line-height: 1.2;
  max-width: 88px;
}

/* ── LIVE CARD ── */
@keyframes liveGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0)
  }

  50% {
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2), 0 0 28px rgba(255, 59, 48, 0.08)
  }
}

.live-glow-card {
  animation: liveGlow 2.2s ease-in-out infinite;
  border-color: rgba(255, 59, 48, 0.25) !important
}

@keyframes liveDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.25;
    transform: scale(0.55)
  }
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--live-red);
  border-radius: 50%;
  animation: liveDot 1.3s ease-in-out infinite;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── DATE GROUP HEADERS ── */
.match-date-group {
  margin-bottom: 28px
}

.match-date-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.match-date-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.match-date-count {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 9px;
  font-weight: 600;
}

.match-date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}

/* ══════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════ */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  height: 34px;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  z-index: 2;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.12em;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 500s linear infinite;
  padding-left: 90px;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused
}

.ticker-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 28px;
  border-right: 1px solid var(--border);
}

.ticker-score {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-display)
}

.ticker-goal {
  color: var(--accent);
  font-weight: 700
}

/* ══════════════════════════════════════════
   STAT PILLS
   ══════════════════════════════════════════ */
.stat-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  min-width: 88px;
  transition: all 0.2s ease;
  flex: 1;
}

.stat-pill:hover {
  border-color: rgba(0, 229, 160, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--shadow)
}

.stat-pill-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}

.stat-pill-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════ */
.section-hdr {
  display: flex;
  align-items: center;
  margin-bottom: 18px
}

.section-hdr-bar {
  width: 3px;
  height: 26px;
  border-radius: 2px;
  margin-right: 12px;
  flex-shrink: 0
}

.section-hdr-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.section-hdr-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px
}

/* ══════════════════════════════════════════
   STANDINGS
   ══════════════════════════════════════════ */
.standings-row {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.standings-row:hover {
  background: rgba(255, 255, 255, 0.03)
}

/* Qualification zone — top 2 green left border */
.standings-row.qualify {
  background: rgba(0, 229, 160, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.standings-row.qualify .pts-col {
  color: var(--accent) !important;
  font-weight: 800 !important
}

/* Elimination zone — bottom rows subtle red tint */
.standings-row.eliminate {
  background: rgba(255, 69, 58, 0.04);
  border-left: 3px solid rgba(255, 69, 58, 0.3);
  border-radius: 0 6px 6px 0;
}

.standings-row.eliminate .pts-col {
  color: var(--text-secondary) !important
}

/* Column header */
.standings-hdr {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════
   GOLDEN BOOT / LEADERBOARD
   ══════════════════════════════════════════ */
.lb-scorer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.lb-scorer-row:hover {
  border-color: rgba(0, 229, 160, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--shadow)
}

.lb-scorer-row.lb-gold {
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.04);
  border-left: 3px solid var(--gold)
}

.lb-scorer-row.lb-silver {
  border-left: 3px solid #C0C0C0
}

.lb-scorer-row.lb-bronze {
  border-left: 3px solid #CD7F32
}

.lb-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--bg-card2);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lb-player-info {
  flex: 0 0 170px;
  min-width: 0
}

.lb-player-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-player-team {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px
}

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

.lb-bar-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  align-items: center
}

.lb-goals-badge {
  color: var(--gold);
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 14px
}

.lb-assists-badge {
  color: var(--accent)
}

.lb-games-badge {
  color: var(--text-secondary)
}

.lb-progress-track {
  background: var(--bg-card2);
  border-radius: 4px;
  height: 6px;
  overflow: hidden
}

/* ══════════════════════════════════════════
   WALL OF CHAMPIONS
   ══════════════════════════════════════════ */
.champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  padding: 4px 0;
}

.champion-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.champion-pill:hover {
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.08);
}

.champ-flag {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px
}

.champ-iso {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-secondary);
  font-family: var(--font-display);
  letter-spacing: 0.08em
}

.champ-team {
  font-weight: 700;
  color: var(--gold);
  font-size: 20px;
  margin-top: 2px;
  font-family: var(--font-display)
}

.champ-year {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-top: 3px
}

/* ══════════════════════════════════════════
   TEAM CREST (FD API logo images)
   ══════════════════════════════════════════ */
.team-crest {
  border-radius: 3px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  background: transparent;
}

.crest-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
}

/* ══════════════════════════════════════════
   PLAYER PHOTO (HuggingFace FIFA renders)
   ══════════════════════════════════════════ */
.player-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg-card2);
  flex-shrink: 0;
}

.player-photo-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card3));
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ══════════════════════════════════════════
   QUAL BAR
   ══════════════════════════════════════════ */
.qual-bar-wrap {
  background: var(--bg-card2);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
  margin-top: 4px
}

.qual-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1)
}

/* ══════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════ */
.timeline-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 12px;
  transition: all 0.15s ease;
}

.timeline-match:hover {
  border-color: rgba(0, 229, 160, 0.18);
  background: var(--bg-card2)
}

.timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px
}

/* ══════════════════════════════════════════
   ACTION BUTTONS
   ══════════════════════════════════════════ */
.match-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.18s ease;
  font-family: var(--font-body);
}

.match-action-live {
  background: rgba(255, 59, 48, 0.1);
  color: var(--live-red);
  border: 1px solid rgba(255, 59, 48, 0.25)
}

.match-action-live:hover {
  background: rgba(255, 59, 48, 0.2)
}

.match-action-highlights {
  background: rgba(123, 97, 255, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(123, 97, 255, 0.25)
}

.match-action-highlights:hover {
  background: rgba(123, 97, 255, 0.2)
}

/* ══════════════════════════════════════════
   SIDEBAR — 3-breakpoint responsive
   Desktop  >1200px : expanded 280px by default
   Tablet  769–1200px : icon rail 72px by default, user can expand
   Mobile   ≤768px  : hidden, off-canvas drawer
   User preference saved in localStorage.
   ══════════════════════════════════════════ */

/* ── BASE (desktop >1200px): expanded ── */
.statdium-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 200px;
  background: rgba(7, 7, 12, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s ease;
  will-change: width, transform;
}

/* Desktop collapsed = icon rail */
.statdium-sidebar.collapsed {
  width: 72px;
}

.statdium-sidebar.collapsed .sidebar-label {
  display: none;
}

.statdium-sidebar.collapsed .sidebar-title {
  display: none;
}

.statdium-sidebar.collapsed .sidebar-section-label {
  display: none;
}

.statdium-sidebar.collapsed .sidebar-progress {
  display: none;
}

.statdium-sidebar.collapsed .sidebar-live-strip {
  justify-content: center;
  padding: 6px 0;
}

.statdium-sidebar.collapsed .sidebar-header {
  justify-content: center;
}

.statdium-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 10px 0;
}

.statdium-sidebar.collapsed .sidebar-icon {
  width: auto;
  margin: 0;
}

.statdium-sidebar.collapsed .sidebar-nav {
  align-items: center;
}

.statdium-sidebar.collapsed .sidebar-toggle-btn {
  display: flex !important;
}

.statdium-main-content {
  margin-left: 200px;
  transition: margin-left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 100vh;
}

.statdium-main-content.collapsed {
  margin-left: 72px;
}

/* ── Header ── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  min-height: 52px;
}

.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ── Live strip ── */
.sidebar-live-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 59, 48, 0.06);
  border: 1px solid rgba(255, 59, 48, 0.12);
}

/* ── Nav ── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.sidebar-section-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 10px 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: var(--accent);
  background: rgba(0, 229, 160, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-progress {
  margin: 12px 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ── Overlay ── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* ── TABLET 769–1200px: icon rail by default ── */
@media (min-width: 769px) and (max-width: 1200px) {
  .statdium-sidebar {
    width: 72px;
  }

  .statdium-sidebar .sidebar-label {
    display: none;
  }

  .statdium-sidebar .sidebar-title {
    display: none;
  }

  .statdium-sidebar .sidebar-section-label {
    display: none;
  }

  .statdium-sidebar .sidebar-progress {
    display: none;
  }

  .statdium-sidebar .sidebar-live-strip {
    justify-content: center;
    padding: 6px 0;
  }

  .statdium-sidebar .sidebar-header {
    justify-content: center;
  }

  .statdium-sidebar .sidebar-link {
    justify-content: center;
    padding: 10px 0;
  }

  .statdium-sidebar .sidebar-icon {
    width: auto;
    margin: 0;
  }

  .statdium-sidebar .sidebar-nav {
    align-items: center;
  }

  /* User expanded on tablet */
  .statdium-sidebar.expanded {
    width: 280px;
  }

  .statdium-sidebar.expanded .sidebar-label {
    display: inline;
  }

  .statdium-sidebar.expanded .sidebar-section-label {
    display: block;
  }

  .statdium-sidebar.expanded .sidebar-progress {
    display: block;
  }

  .statdium-sidebar.expanded .sidebar-live-strip {
    justify-content: flex-start;
    padding: 6px 8px;
  }

  .statdium-sidebar.expanded .sidebar-header {
    justify-content: space-between;
  }

  .statdium-sidebar.expanded .sidebar-link {
    justify-content: flex-start;
    padding: 9px 10px;
  }

  .statdium-sidebar.expanded .sidebar-nav {
    align-items: stretch;
  }

  .statdium-main-content {
    margin-left: 72px;
  }

  .statdium-main-content.expanded {
    margin-left: 280px;
  }

  .sidebar-mobile-topbar {
    display: none !important;
  }

  #sidebar-overlay {
    display: none !important;
  }
}

/* ── MOBILE ≤768px: hidden, off-canvas drawer ── */
@media (max-width: 768px) {
  .statdium-sidebar {
    width: 280px !important;
    transform: translateX(-110%);
    box-shadow: none;
  }

  .statdium-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
  }

  .statdium-sidebar .sidebar-label {
    display: inline !important;
  }

  .statdium-sidebar .sidebar-section-label {
    display: block !important;
  }

  .statdium-sidebar .sidebar-progress {
    display: block !important;
  }

  .statdium-sidebar .sidebar-live-strip {
    justify-content: flex-start !important;
    padding: 6px 8px !important;
  }

  .statdium-sidebar .sidebar-header {
    justify-content: space-between !important;
  }

  .statdium-sidebar .sidebar-link {
    justify-content: flex-start !important;
    padding: 9px 10px !important;
  }

  .statdium-main-content {
    margin-left: 0 !important;
  }

  .sidebar-mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(7, 7, 12, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
  }
}

@media (min-width: 769px) {
  .sidebar-mobile-topbar {
    display: none !important;
  }
}

.sidebar-live-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 59, 48, 0.06);
  border: 1px solid rgba(255, 59, 48, 0.12);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.sidebar-section-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 10px 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: var(--accent);
  background: rgba(0, 229, 160, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-progress {
  margin: 12px 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ── Overlay (mobile only) ── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* ── TABLET 768–1200px: icon rail by default ── */
@media (min-width: 769px) and (max-width: 1200px) {
  .statdium-sidebar {
    width: 72px;
  }

  .statdium-sidebar .sidebar-label {
    display: none;
  }

  .statdium-sidebar .sidebar-section-label {
    display: none;
  }

  .statdium-sidebar .sidebar-progress {
    display: none;
  }

  .statdium-sidebar .sidebar-live-strip {
    justify-content: center;
    padding: 6px 0;
  }

  .statdium-sidebar .sidebar-header {
    justify-content: center;
  }

  .statdium-sidebar .sidebar-link {
    justify-content: center;
    padding: 10px 0;
  }

  .statdium-sidebar .sidebar-icon {
    width: auto;
    margin: 0;
  }

  .statdium-sidebar .sidebar-nav {
    align-items: center;
  }

  /* When user expands on tablet */
  .statdium-sidebar.expanded {
    width: 280px;
  }

  .statdium-sidebar.expanded .sidebar-label {
    display: inline;
  }

  .statdium-sidebar.expanded .sidebar-section-label {
    display: block;
  }

  .statdium-sidebar.expanded .sidebar-progress {
    display: block;
  }

  .statdium-sidebar.expanded .sidebar-live-strip {
    justify-content: flex-start;
    padding: 6px 8px;
  }

  .statdium-sidebar.expanded .sidebar-header {
    justify-content: space-between;
  }

  .statdium-sidebar.expanded .sidebar-link {
    justify-content: flex-start;
    padding: 9px 10px;
  }

  .statdium-sidebar.expanded .sidebar-nav {
    align-items: stretch;
  }

  .statdium-main-content {
    margin-left: 72px;
  }

  .statdium-main-content.expanded {
    margin-left: 280px;
  }

  .sidebar-mobile-topbar {
    display: none !important;
  }

  #sidebar-overlay {
    display: none !important;
  }
}

/* ── MOBILE <768px: hidden, off-canvas drawer ── */
@media (max-width: 768px) {
  .statdium-sidebar {
    width: 280px !important;
    transform: translateX(-110%);
    box-shadow: none;
  }

  .statdium-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
  }

  .statdium-sidebar .sidebar-label {
    display: inline !important;
  }

  .statdium-sidebar .sidebar-section-label {
    display: block !important;
  }

  .statdium-sidebar .sidebar-progress {
    display: block !important;
  }

  .statdium-sidebar .sidebar-live-strip {
    justify-content: flex-start !important;
    padding: 6px 8px !important;
  }

  .statdium-sidebar .sidebar-header {
    justify-content: space-between !important;
  }

  .statdium-sidebar .sidebar-link {
    justify-content: flex-start !important;
    padding: 9px 10px !important;
  }

  .statdium-main-content {
    margin-left: 0 !important;
  }

  .sidebar-mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(7, 7, 12, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
  }
}

@media (min-width: 769px) {
  .sidebar-mobile-topbar {
    display: none !important;
  }
}


/* ══════════════════════════════════════════
   PAGE WRAPPER
   ══════════════════════════════════════════ */
.page-wrapper-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px
}

@media(max-width:768px) {
  .page-wrapper-inner {
    padding: 16px
  }
}

@media(max-width:480px) {
  .page-wrapper-inner {
    padding: 12px
  }
}

#page-content {
  position: relative;
  z-index: 1
}

/* ══════════════════════════════════════════
   PLOTLY OVERRIDES
   ══════════════════════════════════════════ */
.js-plotly-plot .plotly .modebar {
  background: transparent !important
}

.js-plotly-plot .plotly .modebar-btn path {
  fill: var(--text-secondary) !important
}

.js-plotly-plot,
.plot-container {
  width: 100% !important
}

/* ══════════════════════════════════════════
   DROPDOWN
   ══════════════════════════════════════════ */
.Select-control,
.Select-menu-outer {
  background-color: var(--bg-card2) !important;
  border-color: var(--border) !important
}

.Select-value-label,
.Select-placeholder {
  color: var(--text-primary) !important
}

.Select-option {
  background-color: var(--bg-card2) !important;
  color: var(--text-primary) !important
}

.Select-option:hover,
.VirtualizedSelectFocusedOption {
  background-color: var(--bg-card3) !important
}

.Select-arrow {
  border-top-color: var(--text-secondary) !important
}

/* ══════════════════════════════════════════
   MISC UTILITIES
   ══════════════════════════════════════════ */
.countup-num {
  display: inline-block;
  font-variant-numeric: tabular-nums
}

.tilt-card {
  will-change: transform
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    filter: none;
    transform: none
  }
}

.page-blur-in {
  animation: blurIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both
}

@keyframes deathPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.45
  }
}

.death-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.25);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--loss-red);
  animation: deathPulse 2s ease-in-out infinite;
}

.stadium-map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 5px 12px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.16s ease;
}

.stadium-map-link:hover {
  background: rgba(0, 229, 160, 0.16)
}

.lb-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease;
}

.lb-tab-active {
  background: rgba(255, 215, 0, 0.1) !important;
  color: var(--gold) !important;
  border-color: rgba(255, 215, 0, 0.3) !important
}

/* ══════════════════════════════════════════
   RESPONSIVE HELPERS
   ══════════════════════════════════════════ */
@media(max-width:600px) {
  .hide-mobile {
    display: none !important
  }

  .match-date-grid {
    grid-template-columns: 1fr !important
  }

  .stat-pill {
    min-width: calc(33% - 8px) !important;
    padding: 10px 8px !important
  }

  .stat-pill-value {
    font-size: 20px !important
  }

  .lb-player-info {
    flex: 0 0 130px !important
  }

  .ticker-track {
    animation-duration: 500s
  }

  .hero-title {
    font-size: 36px !important
  }

  .hero-stat-strip {
    flex-wrap: wrap
  }

  .hero-stat {
    min-width: 50%
  }
}

@media(max-width:400px) {
  .stat-pill {
    min-width: calc(50% - 6px) !important
  }
}

@media(max-width:900px) {
  .match-date-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
  }

  .champions-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr))
  }
}

@media(max-width:600px) {
  .champions-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr))
  }

  .champion-pill {
    padding: 8px 5px !important;
    min-height: 76px !important
  }
}

/* ── KEYBOARD SHORTCUT MODAL ── */
kbd {
  background: var(--bg-card2);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

#kb-help-modal kbd {
  display: inline-block
}

/* ── PAGE GUIDE (details/summary) ── */
details>summary {
  list-style: none
}

details>summary::-webkit-details-marker {
  display: none
}

details[open]>summary .expand-hint {
  display: none
}

details>summary:hover {
  opacity: 0.85
}

/* ── ACTIVE SIDEBAR LINK ── */
.sidebar-link.active {
  color: var(--accent) !important;
  background: rgba(0, 229, 160, 0.09) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
  font-weight: 600 !important;
}

/* ── MATCH MODAL ── */
#match-modal-drawer {
  scrollbar-width: thin
}

/* ── PRINT ── */
@media print {

  .statdium-sidebar,
  #sidebar-overlay,
  .ticker-wrap,
  #particle-canvas,
  #cursor-spotlight,
  .sidebar-mobile-topbar {
    display: none !important
  }

  .statdium-main-content {
    margin-left: 0 !important
  }

  body {
    background: #fff !important;
    color: #000 !important
  }
}

/* ── PREDICTOR PICK BUTTONS ── */
.pred-btn-home:hover {
  background: rgba(0, 229, 160, 0.12) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important
}

.pred-btn-draw:hover {
  background: rgba(255, 215, 0, 0.08) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important
}

.pred-btn-away:hover {
  background: rgba(123, 97, 255, 0.12) !important;
  border-color: var(--accent2) !important;
  color: var(--accent2) !important
}