:root {
  --bg: #0A0C10;
  --bg-alt: #0F1216;
  --card-bg: #12151B;
  --border: #22262F;
  --border-soft: #1B1E25;
  --text: #F4F5F1;
  --text-muted: #A9AEB8;
  --text-mute2: #7A7F89;
  --accent: #D4FF3D;
  --miss: #D64545;
  --card-bg-hover-border: var(--accent);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

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

.disp {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.mono { font-family: 'Space Mono', monospace; }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.miss { color: var(--miss); }

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #E9FF6B; }
.btn-outline { border: 1px solid var(--border); }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: rgba(10,12,16,0.9); backdrop-filter: blur(8px); z-index: 10;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.nav__logo-dot { width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; }
.nav__links { display: flex; align-items: center; gap: 40px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav__links a.active, .nav__links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 120px 64px 96px; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: 88px; line-height: 0.98; max-width: 1000px; margin: 0; }
.hero__sub { font-size: 18px; color: var(--text-muted); max-width: 620px; line-height: 1.6; }
.hero__ctas { display: flex; gap: 16px; margin-top: 8px; }

/* Sections */
.section { padding: 64px; display: flex; flex-direction: column; gap: 32px; }
.section--top { padding-top: 90px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; }
.section__more { font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } .hero__title { font-size: 52px; } }

/* Cards */
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.card--link { transition: border-color .15s ease; }
.card--link:hover { border-color: var(--card-bg-hover-border); }
.card__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute2); font-family: 'Space Mono', monospace; }
.card__row { display: flex; justify-content: space-between; font-weight: 700; font-size: 19px; }
.card__row--muted { color: var(--text-muted); }
.card__bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; display: flex; }
.card__bar-fill { background: var(--accent); height: 100%; width: var(--pct, 0%); }
.card__bar-fill--draw { background: #4A4F5A; }
.card__foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-mute2); }

.card__score-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.card__team { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.card__team--right { justify-content: flex-end; }
.card__score { font-size: 22px; font-weight: 700; white-space: nowrap; }
.card__summary { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.card__stats small { display: block; font-size: 11px; color: var(--text-mute2); margin-top: 2px; }

.crest {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.hit { color: var(--accent); font-weight: 700; }

/* Teaser (The Edge homepage block) */
.teaser { padding: 96px 64px; background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.teaser__text { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }

/* Filters */
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-pill { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.filter-pill.active, .filter-pill:hover { border-color: var(--accent); color: var(--text); }

/* Match detail / recap detail */
.back-link { font-size: 14px; color: var(--text-muted); }
.match-head { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 32px; }
.match-head__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.match-head__team { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.match-head__team--right { justify-content: flex-end; }
.match-head__vs { font-size: 22px; color: var(--text-mute2); }
.prob-row { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; margin-bottom: 40px; }
.prob-row span.mono { font-size: 32px; font-weight: 700; display: block; }
.prob-row small { color: var(--text-mute2); }
.prose { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; line-height: 1.8; font-size: 17px; color: var(--text-muted); margin-bottom: 40px; }
.stat-strip--inline { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 40px; text-align: center; }
.stat-strip--inline small { display: block; color: var(--text-mute2); font-size: 12px; margin-top: 4px; }
.verdict-row { display: flex; justify-content: space-between; font-size: 15px; padding: 16px 0; border-top: 1px solid var(--border); margin-bottom: 32px; }

/* Edge */
.edge-round { padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
.edge-round__label { font-size: 26px; margin-bottom: 12px; }
.kpi-row { display: flex; gap: 12px; }
.kpi-card { display: flex; justify-content: space-between; gap: 24px; padding: 14px 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; min-width: 240px; }

/* Competitions */
.league-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 14px; }
.league-links a { color: var(--text-muted); }
.league-links a:hover { color: var(--accent); }

.empty { color: var(--text-mute2); font-size: 14px; }

/* Google Translate widget — keep it small and out of the way */
.translate-widget { padding: 6px 64px 0; font-size: 12px; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* Footer */
.footer { padding: 32px 64px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; color: var(--text-mute2); font-size: 13px; }
.footer__links { display: flex; gap: 24px; }

/* Standings */
.standings-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.standings-table th { text-align: left; font-size: 12px; color: var(--text-mute2); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.standings-table td { padding: 12px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.standings-table tr:hover td { background: var(--card-bg); }
.standings-table a { font-weight: 600; }
.standings-table a:hover { color: var(--accent); }

/* Crest placeholder colors — until real club-crest images are wired in */
.crest--home { background: #DC2626; }
.crest--away { background: #1F2937; }

/* Real club crests / flags (from API logo URLs) — no white backing, so
   transparent-background crests and rectangular flags both sit naturally
   on the dark theme */
.crest-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: contain; flex-shrink: 0;
}
.crest-img--lg { width: 52px; height: 52px; }
.team-name { display: inline-flex; align-items: center; gap: 8px; }

/* Forecast card: teams on one row */
.card__matchup { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__team-side { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; min-width: 0; }
.card__team-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__team-side--right { justify-content: flex-end; text-align: right; }
.card__vs { font-size: 12px; color: var(--text-mute2); flex-shrink: 0; }
.card__pcts { display: flex; align-items: center; justify-content: space-between; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 18px; }