/* ==========================================================================
   Vasco na Libertadores 2027 — Radar Ao Vivo de Probabilidades & Odds
   Editorial Alvinegro & Cruz de Malta Carmesim Design System
   ========================================================================== */

:root {
  --bg: #0f1114;
  --surface: #171a1f;
  --surface-elevated: #1e2229;
  --surface-subtle: #13161b;
  --border: #2a2f38;
  --border-strong: #3a414d;

  --text: #f3f4f6;
  --text-secondary: #a7b0be;
  --text-muted: #768091;

  --crimson: #d91e36;
  --crimson-soft: rgba(217, 30, 54, 0.14);
  --emerald: #22c55e;
  --emerald-soft: rgba(34, 197, 94, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --gold: #eab308;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.48);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-elevated: #faf9f6;
  --surface-subtle: #eceae3;
  --border: #dedbd2;
  --border-strong: #c6c2b6;

  --text: #14171c;
  --text-secondary: #48505e;
  --text-muted: #6c7483;

  --crimson: #b8142a;
  --crimson-soft: rgba(184, 20, 42, 0.10);
  --emerald: #15803d;
  --emerald-soft: rgba(21, 128, 61, 0.11);
  --amber: #b45309;
  --amber-soft: rgba(180, 83, 9, 0.12);
  --sky: #0369a1;
  --sky-soft: rgba(3, 105, 161, 0.11);
  --gold: #ca8a04;

  --shadow-sm: 0 1px 2px rgba(20, 23, 28, 0.06);
  --shadow-md: 0 12px 34px rgba(20, 23, 28, 0.14);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Confetti overlay when Vasco clinches Libertadores */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 95;
}

/* Broadcast Goal Banner */
.goal-toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  z-index: 90;
  width: min(680px, calc(100vw - 24px));
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.goal-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.goal-toast.is-good {
  border-color: var(--emerald);
  background: color-mix(in srgb, var(--surface) 88%, var(--emerald));
}

.goal-toast.is-bad {
  border-color: var(--crimson);
  background: color-mix(in srgb, var(--surface) 88%, var(--crimson));
}

.goal-toast.is-qualified {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--surface) 84%, var(--gold));
}

.goal-toast-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.goal-badge-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--crimson);
  color: #fff;
  flex-shrink: 0;
}

.goal-toast.is-good .goal-badge-big { background: var(--emerald); color: #07140c; }
.goal-toast.is-qualified .goal-badge-big { background: var(--gold); color: #1c1917; }

.goal-toast-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.2; }
.goal-toast-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.goal-toast-right { text-align: right; flex-shrink: 0; }
.goal-toast-prob { font-family: var(--font-mono); font-size: 18px; font-weight: 800; line-height: 1.1; }
.goal-toast-delta { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 3px;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--text-muted); margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.status-chip.is-live .status-dot { background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.status-chip.is-error .status-dot { background: var(--crimson); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--surface-elevated); border-color: var(--text-muted); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--crimson); border-color: var(--crimson); color: #ffffff; }
.btn-primary:hover { background: color-mix(in srgb, var(--crimson) 88%, #000); border-color: color-mix(in srgb, var(--crimson) 88%, #000); }

.btn-emerald { background: var(--emerald); border-color: var(--emerald); color: #09140d; }
.btn-emerald:hover { background: color-mix(in srgb, var(--emerald) 88%, #000); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-elevated); border-color: var(--border); color: var(--text); }

.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.hidden { display: none !important; }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero Section with Official Real Vasco Shield & Libertadores Logo */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--crimson) 38%, var(--gold) 38%, var(--gold) 68%, var(--border) 68%);
}

.hero-crest-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.crest-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.crest-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease;
}

.crest-btn:hover { transform: scale(1.05); }
.crest-btn:active { transform: scale(0.96); }

.crest-vasco-img {
  width: 72px;
  height: 88px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.crest-lib-pill {
  background: #faf9f6;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 11px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.crest-lib-img {
  width: 82px;
  height: 68px;
  object-fit: contain;
  display: block;
}

.crest-arrow {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.12;
}

.hero-kpi-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }

.hero-percent {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

.hero-percent.state-high { color: var(--emerald); }
.hero-percent.state-mid  { color: var(--amber); }
.hero-percent.state-low  { color: var(--text); }
.hero-percent.state-zero { color: var(--crimson); }

.hero-meta-stack { display: flex; flex-direction: column; gap: 4px; }

.hero-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.hero-delta.up   { background: var(--emerald-soft); color: var(--emerald); }
.hero-delta.down { background: var(--crimson-soft); color: var(--crimson); }
.hero-delta.flat { background: var(--surface-elevated); color: var(--text-secondary); }

.hero-odd { font-size: 13px; color: var(--text-secondary); }
.hero-odd strong { font-family: var(--font-mono); color: var(--text); }

/* Last Goal Inline Bar */
.last-goal-bar {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.last-goal-bar.is-good { background: var(--emerald-soft); border-color: color-mix(in srgb, var(--emerald) 45%, transparent); }
.last-goal-bar.is-bad  { background: var(--crimson-soft); border-color: color-mix(in srgb, var(--crimson) 45%, transparent); }

/* Split Bar */
.split-bar-wrap { margin-top: 16px; }
.split-bar { height: 10px; width: 100%; border-radius: 999px; background: var(--surface-subtle); border: 1px solid var(--border); overflow: hidden; display: flex; }
.split-seg-g7 { background: var(--emerald); height: 100%; transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.split-seg-g8 { background: var(--amber); height: 100%; transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

.split-legend { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-secondary); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.swatch-g7 { background: var(--emerald); }
.swatch-g8 { background: var(--amber); }
.swatch-gremio { background: var(--sky); }

/* Hero Right Side */
.hero-side { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--border); padding-left: 24px; }

.countdown-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.countdown-label { font-size: 12px; color: var(--text-muted); }
.countdown-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }

.source-bars { display: flex; flex-direction: column; gap: 9px; }
.source-row { display: grid; grid-template-columns: 148px 1fr 56px; align-items: center; gap: 10px; font-size: 12.5px; }
.source-name { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-track { height: 7px; border-radius: 999px; background: var(--surface-subtle); overflow: hidden; }
.source-fill { height: 100%; border-radius: 999px; background: var(--text-secondary); transition: width 0.3s ease; }
.source-fill.is-exchange { background: var(--emerald); }
.source-fill.is-bookies  { background: var(--sky); }
.source-fill.is-ufmg     { background: var(--amber); }
.source-val { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--text); }

.live-status-banner {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.live-status-banner.qualifying { background: var(--emerald-soft); border-color: color-mix(in srgb, var(--emerald) 45%, transparent); color: var(--emerald); }
.live-status-banner.eliminated { background: var(--crimson-soft); border-color: color-mix(in srgb, var(--crimson) 45%, transparent); color: var(--crimson); }

.utopia-nudge {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* Control Strip */
.control-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clock-control { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--surface-subtle); border: 1px solid var(--border); }
.clock-control label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.clock-control input[type="range"] { width: 120px; accent-color: var(--crimson); }
.clock-readout { font-family: var(--font-mono); font-weight: 700; font-size: 13px; min-width: 48px; text-align: right; }

/* Main 2-Column Workspace */
.main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.panel-subtitle { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }

/* Matches */
.matches-list { display: flex; flex-direction: column; gap: 10px; }
.match-card { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; }
.match-card.is-vasco { border-left: 3px solid var(--crimson); }
.match-card.is-double { border-left: 3px solid var(--amber); }
.match-card.goal-highlight-good { border-color: var(--emerald); box-shadow: 0 0 0 2px var(--emerald-soft); background: color-mix(in srgb, var(--surface-elevated) 85%, var(--emerald)); }
.match-card.goal-highlight-bad  { border-color: var(--crimson); box-shadow: 0 0 0 2px var(--crimson-soft); background: color-mix(in srgb, var(--surface-elevated) 85%, var(--crimson)); }

.goal-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--emerald); color: #07140c; }
.goal-pill.bad { background: var(--crimson); color: #ffffff; }

.match-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 11.5px; }
.role-tag { font-weight: 600; color: var(--text-secondary); background: var(--surface-subtle); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }
.role-tag.role-obrigacao { color: var(--crimson); border-color: color-mix(in srgb, var(--crimson) 40%, transparent); background: var(--crimson-soft); }
.role-tag.role-duplo_impacto { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-soft); }
.match-clock-pill { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.match-score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.team-side { display: flex; align-items: center; gap: 7px; min-width: 0; }
.team-side.away { justify-content: flex-end; text-align: right; }
.team-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.red-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: 5px; padding: 2px 5px; font-size: 11px; cursor: pointer; line-height: 1.2; }
.red-btn.has-red { background: var(--crimson-soft); border-color: var(--crimson); color: var(--crimson); font-weight: 700; }
.score-stepper { display: flex; align-items: center; gap: 6px; }
.step-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.step-btn:hover { background: var(--text); color: var(--bg); }
.score-box { font-family: var(--font-mono); font-size: 19px; font-weight: 800; min-width: 58px; text-align: center; padding: 3px 8px; border-radius: 8px; background: var(--surface-subtle); border: 1px solid var(--border); }

.match-bottom { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.impact-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.impact-chip { font-family: var(--font-mono); font-size: 11.5px; padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.impact-chip.pos { background: var(--emerald-soft); color: var(--emerald); }
.impact-chip.neg { background: var(--crimson-soft); color: var(--crimson); }
.impact-chip.neu { background: var(--surface-subtle); color: var(--text-muted); }
.odds-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; }

.odds-editor { margin-top: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-subtle); border: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; align-items: end; }
.odds-field label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.odds-field input { width: 100%; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 12.5px; }

/* Sidebar */
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.weight-sliders { display: flex; flex-direction: column; gap: 11px; }
.slider-row { display: flex; flex-direction: column; gap: 4px; }
.slider-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.slider-row input[type="range"] { width: 100%; accent-color: var(--crimson); }

.checklist { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--surface-elevated); border: 1px solid var(--border); }
.check-item.is-met { border-color: color-mix(in srgb, var(--emerald) 45%, transparent); background: var(--emerald-soft); }
.check-item.is-failed { border-color: color-mix(in srgb, var(--crimson) 45%, transparent); background: var(--crimson-soft); }
.check-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 1px; background: var(--surface-subtle); color: var(--text-muted); border: 1px solid var(--border-strong); }
.check-item.is-met .check-icon { background: var(--emerald); color: #07130b; border-color: var(--emerald); }
.check-item.is-failed .check-icon { background: var(--crimson); color: #ffffff; border-color: var(--crimson); }
.check-label { font-size: 13px; font-weight: 600; line-height: 1.3; }
.check-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.contenders-list { display: flex; flex-direction: column; gap: 10px; }
.contender-row { display: flex; flex-direction: column; gap: 4px; }
.contender-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.contender-name { font-weight: 600; }
.contender-row.is-vasco .contender-name { color: var(--crimson); font-weight: 700; }
.contender-bar { height: 8px; border-radius: 999px; background: var(--surface-subtle); overflow: hidden; display: flex; }

.chart-wrap { width: 100%; overflow-x: auto; }
.chart-svg { width: 100%; height: 170px; display: block; }
.event-feed { margin-top: 12px; max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.event-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 6px 9px; border-radius: 7px; background: var(--surface-elevated); font-size: 12px; border: 1px solid var(--border); }

.table-scroll { width: 100%; overflow-x: auto; }
table.standings { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.standings th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 7px 8px; border-bottom: 1px solid var(--border-strong); font-weight: 600; }
table.standings td { padding: 7px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
table.standings th.num, table.standings td.num { text-align: right; }
table.standings tr.row-vasco { background: var(--crimson-soft); font-weight: 700; }
table.standings tr.row-g7 td:first-child { border-left: 3px solid var(--emerald); }
table.standings tr.row-g8 td:first-child { border-left: 3px solid var(--amber); }
table.standings tr.row-z4 td:first-child { border-left: 3px solid var(--crimson); }

.zone-badge { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.zone-g7   { background: var(--emerald-soft); color: var(--emerald); }
.zone-g8   { background: var(--amber-soft);   color: var(--amber); }
.zone-sula { background: var(--sky-soft);     color: var(--sky); }
.zone-z4   { background: var(--crimson-soft); color: var(--crimson); }

/* Modals (API + Libertadores Retro Easter Egg) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); display: grid; place-items: center; z-index: 100; padding: 16px; backdrop-filter: blur(4px); }
.modal-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-md); }
.modal-card h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; }
.form-field { margin-top: 14px; display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.form-field input { padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-subtle); color: var(--text); font-family: var(--font-mono); font-size: 13px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.modal-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }

/* Translucent Utopia Flyer: ONLY the video gliding left -> right across screen */
.utopia-flyer {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 125;
  pointer-events: none;
  transform: translate3d(-115%, -50%, 0);
  will-change: transform;
}

.utopia-flyer.is-gliding {
  animation-name: utopiaCrossScreen;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.utopia-flyer-video {
  width: clamp(230px, 33vw, 390px);
  height: auto;
  display: block;
  opacity: 0.50;
  border-radius: 18px;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.30);
  transition: opacity 0.2s ease;
}

.utopia-flyer-video:hover { opacity: 0.66; }

@keyframes utopiaCrossScreen {
  0%   { transform: translate3d(-115%, -50%, 0); }
  100% { transform: translate3d(calc(100vw + 15%), -50%, 0); }
}

/* Libertadores 1998/2018 Retro Easter Egg Card */
.lib-retro-card {
  max-width: 540px;
  text-align: center;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--gold)) 0%, var(--surface) 38%);
}

.lib-retro-crests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.lib-retro-star {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
}

.lib-retro-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.lib-retro-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  margin: 4px 0 14px;
}

.lib-retro-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.lib-retro-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.lib-retro-item.is-gold {
  border-color: rgba(234, 179, 8, 0.55);
  background: color-mix(in srgb, var(--surface-elevated) 88%, var(--gold));
}

.lib-retro-item.is-live {
  border-color: color-mix(in srgb, var(--crimson) 55%, transparent);
  background: var(--crimson-soft);
}

.lib-retro-year {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.14);
  text-align: center;
}

.lib-retro-item strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.lib-retro-item p { margin: 0; font-size: 12.2px; color: var(--text-secondary); line-height: 1.45; }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c1917;
  font-weight: 700;
}
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, #000); border-color: color-mix(in srgb, var(--gold) 88%, #000); }

/* Modo Secador (Real-Time Jinx Priority Mode) */
.btn-secador.is-on {
  background: linear-gradient(90deg, var(--crimson), #ea580c);
  border-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.28);
}

.secador-banner {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 88, 12, 0.45);
  background: rgba(234, 88, 12, 0.12);
  color: var(--text);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.secador-strip {
  margin-bottom: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.secador-strip.lvl-max {
  border-color: color-mix(in srgb, var(--crimson) 55%, transparent);
  background: color-mix(in srgb, var(--surface-subtle) 84%, var(--crimson));
}

.secador-strip.lvl-high {
  border-color: color-mix(in srgb, var(--amber) 50%, transparent);
  background: color-mix(in srgb, var(--surface-subtle) 86%, var(--amber));
}

.secador-strip.lvl-vasco {
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  background: color-mix(in srgb, var(--surface-subtle) 88%, var(--emerald));
}

.secador-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.secador-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.secador-strip.lvl-max .secador-badge { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.secador-strip.lvl-high .secador-badge { background: var(--amber); color: #1c1917; border-color: var(--amber); }
.secador-strip.lvl-vasco .secador-badge { background: var(--emerald); color: #07140c; border-color: var(--emerald); }

.secador-heat-track {
  width: 78px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  flex-shrink: 0;
}

.secador-heat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--crimson));
}

.secador-tip {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.live-dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  margin-right: 5px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px var(--emerald-soft);
}

.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.secret-trigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  opacity: 0.7;
  padding: 2px 6px;
  border-radius: 6px;
}

.secret-trigger:hover { opacity: 1; color: var(--gold); background: var(--surface-elevated); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 18px; }
  .main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar-inner { padding: 10px 14px; }
  .container { padding: 14px 14px 48px; }
  .hero-crest-row { flex-direction: column; align-items: flex-start; }
  .crest-vasco-img { width: 58px; height: 72px; }
  .crest-lib-img { width: 68px; height: 56px; }
  .match-score-row { grid-template-columns: 1fr; gap: 8px; }
  .team-side.away { justify-content: flex-start; text-align: left; }
  .score-stepper { justify-content: center; }
  .odds-editor { grid-template-columns: 1fr 1fr 1fr; }
  .goal-toast { flex-direction: column; align-items: flex-start; }
  .goal-toast-right { text-align: left; }
}
