:root {
  --bg: #050505;
  --bg-soft: #0a0b09;
  --card: #10110e;
  --gold: #ffcc00;
  --gold-soft: rgba(255, 204, 0, 0.2);
  --text: #f7f3e8;
  --muted: #b8b4aa;
  --dim: #827d72;
  --line: rgba(255, 255, 255, 0.12);
  --gold-line: rgba(255, 204, 0, 0.42);
  --live: #ff5f57;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 204, 0, 0.08), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(180deg, #0b0b0a 0%, var(--bg) 44%, #030303 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.frame {
  width: min(936px, calc(100vw - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 4, 4, 0.86);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 42px;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffd93d);
  box-shadow: 0 0 22px rgba(255, 204, 0, 0.35);
  color: #060606;
  font-size: 13px;
  font-weight: 1000;
}

.brand-copy {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
}

.brand-kicker,
.section-kicker,
.ad-slot span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy strong {
  margin-top: 2px;
  font-size: 13px;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.nav a {
  min-height: 24px;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav a.active {
  background: var(--gold);
  color: #080808;
}

.locale {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-self: end;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 0 9px;
}

.page-stack {
  display: grid;
  gap: 28px;
  padding: 28px 0 64px;
}

.ad-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.12), rgba(16, 15, 8, 0.86) 42%, rgba(255, 204, 0, 0.08)),
    linear-gradient(rgba(255, 204, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 204, 0, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  text-align: center;
}

.ad-slot strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  font-weight: 1000;
}

.ad-top {
  min-height: 70px;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 526px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(4, 6, 5, 0.98) 0%, rgba(4, 6, 5, 0.84) 38%, rgba(4, 6, 5, 0.28) 71%, rgba(4, 6, 5, 0.75) 100%),
    linear-gradient(180deg, rgba(255, 204, 0, 0.06), rgba(4, 5, 4, 0.92)),
    url("./assets/world-cup-hero.png") center / cover;
}

.hero-copy {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.kicker-line,
.heading-line {
  width: 50px;
  height: 2px;
  margin-top: 12px;
  background: var(--gold);
}

h1,
h2,
p {
  margin: 0;
}

.hero-card h1 {
  margin-top: 28px;
  font-size: clamp(44px, 5.25vw, 58px);
  font-weight: 1000;
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-card h1 span,
.section-heading h2 span {
  display: block;
  color: var(--gold);
}

.hero-text {
  max-width: 390px;
  margin-top: 28px;
  color: rgba(247, 243, 232, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, #ffd21f, var(--gold));
  box-shadow: 0 18px 36px rgba(255, 204, 0, 0.18);
  color: #080808;
}

.button.secondary {
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.tournament-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  text-transform: uppercase;
}

.pill-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
  font-weight: 1000;
}

.tournament-pill strong {
  display: block;
  font-size: 11px;
  font-weight: 1000;
}

.tournament-pill em {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
}

.ad-hero {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 226px;
  min-height: 188px;
}

.ad-hero-mobile {
  display: none;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 18px;
}

.match-column {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2,
.follow-band h2 {
  color: var(--text);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading h2 span {
  display: inline;
}

.schedule-link {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-list {
  display: grid;
  gap: 10px;
}

.empty-card,
.match-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
}

.empty-card {
  display: grid;
  min-height: 104px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.match-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px;
}

.match-time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-teams {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-meta {
  margin-top: 5px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-status {
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-status.live {
  color: var(--live);
}

.ad-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ad-rect {
  min-height: 187px;
}

.ad-tall {
  min-height: 360px;
}

.ad-bottom {
  min-height: 250px;
}

.follow-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 204, 0, 0.26);
  border-radius: 6px;
  background: linear-gradient(105deg, rgba(14, 16, 15, 0.98), rgba(14, 16, 15, 0.9) 56%, rgba(255, 204, 0, 0.18));
  padding: 28px 34px;
}

@media (max-width: 760px) {
  .frame {
    width: min(100vw - 24px, 520px);
  }

  .topbar-inner {
    display: flex;
    min-height: 56px;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .page-stack {
    gap: 18px;
    padding-top: 18px;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-card h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .ad-hero {
    display: none;
  }

  .ad-hero-mobile {
    display: grid;
    min-height: 220px;
    margin: 0 22px 22px;
  }

  .schedule-layout,
  .section-heading,
  .follow-band {
    display: block;
  }

  .schedule-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }

  .ad-bottom {
    min-height: 180px;
  }

  .follow-band .button {
    margin-top: 20px;
    width: 100%;
  }
}
