:root {
  color-scheme: dark;
  --ink: #f0ede8;
  --muted: #9a9790;
  --dim: #5c5a57;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --surface: #161616;
  --surface-raised: #1f1f1f;
  --soft: #0d0d0d;
  --night: #0d0d0d;
  --green: #7ab42e;
  --green-deep: #7ab42e;
  --red: #d32f2f;
  --gold: #f5c518;
  --blue: #f5c518;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.65));
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold) 60%,
    #0f0802 60%,
    #0f0802 63%,
    var(--gold) 63%,
    var(--gold) 65%,
    var(--red) 64%,
    var(--red) 80%,
    var(--green) 80%,
    var(--green) 85%,
    var(--gold) 82%,
    var(--gold) 100%
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand img {
  width: 150px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a,
.site-footer a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

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

.icon-button,
.ghost-button,
.segmented-control button {
  min-height: 40px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 42px;
  place-items: center;
  border-radius: 8px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.ghost-button {
  min-width: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.score-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: white;
  overflow: hidden;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--gold);
}

.live-label span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(245, 197, 24, 0.14);
}

.score-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.score-track::-webkit-scrollbar {
  display: none;
}

.score-track a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.score-track time {
  color: var(--gold);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: clamp(500px, calc(100vh - 178px), 620px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #111111;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.96) 0%, rgba(13, 13, 13, 0.72) 46%, rgba(13, 13, 13, 0.26) 100%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.82), rgba(13, 13, 13, 0.08) 44%),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero-content {
  max-width: 760px;
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 76px);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.text-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 850;
}

.primary-button {
  padding: 0 20px;
  background: var(--gold);
  color: #0d0d0d;
}

.text-button {
  padding: 0 14px;
  color: white;
}

.dashboard,
.news-section,
.topics-band,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 20px;
  margin-top: 28px;
}

.panel,
.story-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(18px, 3vw, 24px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.section-heading a {
  min-width: max-content;
  color: var(--gold);
  font-weight: 850;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  display: grid;
  min-height: 210px;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  position: relative;
  overflow: hidden;
}

.match-card.active {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #1f1f1f, #171717);
}

.match-card::after,
.story-card::after,
.fixture-panel::after,
.topics-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent var(--gold) transparent;
}

.match-card:nth-child(2)::after,
.fixture-panel::after {
  border-color: transparent transparent var(--red) transparent;
}

.competition,
.match-meta,
.fixture-date,
.story-card p {
  color: var(--muted);
  font-size: 13px;
}

.competition {
  font-weight: 800;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
}

.team-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-row img {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.team-row strong {
  font-size: 26px;
  color: var(--ink);
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.match-meta span:first-child {
  color: var(--gold);
  font-weight: 900;
}

.fixture-panel {
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.fixture-date {
  margin: 10px 0 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.fixture-row strong {
  justify-self: center;
  color: var(--blue);
  font-size: 14px;
}

.fixture-row span:last-child {
  text-align: right;
}

.news-section {
  padding-top: 46px;
}

.wide {
  align-items: end;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.segmented-control button {
  min-width: 78px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.segmented-control .selected {
  background: var(--gold);
  color: var(--soft);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.story-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.story-card p:not(.eyebrow) {
  margin: 12px 0 0;
  line-height: 1.55;
}

.featured-story {
  grid-column: span 2;
  padding: 0;
  overflow: hidden;
}

.featured-story img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-story div {
  padding: 18px;
}

.topics-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1fr;
  align-items: center;
  gap: 26px;
  margin-top: 46px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--night);
  color: white;
  position: relative;
  overflow: hidden;
}

.topics-band h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-list a {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding: 34px 0 42px;
  color: var(--muted);
}

.site-footer p {
  max-width: 430px;
  margin: 12px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .dashboard,
  .news-grid,
  .topics-band {
    grid-template-columns: 1fr;
  }

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

  .featured-story {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding-block: 12px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 128px;
  }

  .header-actions {
    gap: 6px;
  }

  .score-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(13, 13, 13, 0.32) 0%, rgba(13, 13, 13, 0.96) 76%),
      url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1100&q=82");
    background-position: center;
    background-size: cover;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-content {
    padding-bottom: 38px;
  }

  .section-heading,
  .wide,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
    min-width: 0;
  }

  .fixture-row {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    font-size: 14px;
  }

  .topics-band {
    padding: 22px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
