:root {
  --bg: #0a0c12;
  --panel: #121722;
  --panel-2: #181f2d;
  --text: #f5f7fb;
  --muted: #aab3c5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff4444;
  --accent-dark: #b82828;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255, 68, 68, 0.45), rgba(10, 12, 18, 0.7)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    #151b27;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(10, 12, 18, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.section-band {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding-top: clamp(48px, 7vw, 92px);
}

.dark {
  background: #07090e;
}

.section-grid,
.results-layout,
.standings-layout {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.standings-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
}

.copy,
.section-heading,
.section-band > p,
.section-band > .bracket {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-grid div,
.scoreboard article,
.match-grid article,
.round,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-grid div {
  padding: 18px;
}

.stat-grid strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
}

.stat-grid span,
figcaption,
.match-grid span,
.round p {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.media-frame img {
  aspect-ratio: 4 / 3;
}

.media-frame.compact img {
  aspect-ratio: 16 / 11;
}

figcaption {
  padding: 12px 14px;
}

.section-heading {
  margin-bottom: 26px;
}

.scoreboard {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.scoreboard article {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.scoreboard strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.scoreboard em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.scoreboard b {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 68, 68, 0.14);
  color: #ffb1b1;
  font-size: 0.78rem;
}

.bracket {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.round {
  position: relative;
  padding: 18px;
}

.round::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 17px;
  border-top: 2px solid var(--accent);
}

.round.final::after {
  display: none;
}

.round span {
  display: block;
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.match-grid article {
  padding: 16px;
}

.match-grid time {
  display: block;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.85rem;
}

.match-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 1.02rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #05070b;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(18px, 4vw, 56px);
}

.legal-page section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-page section:last-child {
  border-bottom: 0;
}

@media (max-width: 940px) {
  .burger {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px clamp(18px, 4vw, 56px);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .main-nav a {
    padding: 10px 0;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .section-grid,
  .results-layout,
  .standings-layout,
  .bracket {
    grid-template-columns: 1fr;
  }

  .round::after {
    display: none;
  }

  .stat-grid,
  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoreboard article {
    grid-template-columns: 1fr auto 1fr;
  }

  .scoreboard em,
  .scoreboard b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .stat-grid,
  .match-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
