:root {
  color-scheme: light;
  --ink: #111417;
  --muted: #66717d;
  --line: #dde4ea;
  --surface: #ffffff;
  --soft: #f4f7f9;
  --night: #14252c;
  --green: #14b86f;
  --green-deep: #087d4a;
  --red: #e93d54;
  --gold: #f3bd3f;
  --blue: #1a73e8;
  --shadow: 0 22px 60px rgba(17, 20, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, 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(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 20px;
  line-height: 1;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #39434d;
  font-size: 15px;
  font-weight: 700;
}

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

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

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

.icon-button,
.ghost-button,
.segmented-control button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  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(--night);
  color: white;
  overflow: hidden;
}

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

.live-label span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(233, 61, 84, 0.18);
}

.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: 8px;
  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: #0f1518;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 14, 16, 0.92) 0%, rgba(9, 14, 16, 0.68) 46%, rgba(9, 14, 16, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 14, 16, 0.72), rgba(9, 14, 16, 0.04) 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(--green);
  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: 8px;
  font-weight: 850;
}

.primary-button {
  padding: 0 20px;
  background: var(--green);
  color: #06110b;
}

.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: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(17, 20, 23, 0.06);
}

.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(--green-deep);
  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: 8px;
  background: #fbfcfd;
}

.match-card.active {
  border-color: rgba(20, 184, 111, 0.42);
  background: linear-gradient(180deg, #ffffff, #effaf5);
}

.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;
}

.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(--red);
  font-weight: 900;
}

.fixture-panel {
  display: grid;
  align-content: start;
}

.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: 8px;
  background: white;
}

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

.segmented-control .selected {
  background: var(--ink);
  color: white;
}

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

.story-card {
  padding: 18px;
}

.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-radius: 8px;
  background: var(--night);
  color: white;
}

.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: 8px;
  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-mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .header-actions {
    gap: 6px;
  }

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

  .hero {
    min-height: 520px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(9, 14, 16, 0.3) 0%, rgba(9, 14, 16, 0.94) 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;
  }
}
