:root {
  color-scheme: dark;
  --bg: #070b16;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(21, 31, 54, 0.9);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #9aa7bd;
  --gold: #f8c547;
  --green: #30d158;
  --red: #ff556b;
  --blue: #52a8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(82, 168, 255, 0.24), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(248, 197, 71, 0.18), transparent 26%),
    linear-gradient(145deg, #07111f 0%, #070b16 46%, #111827 100%);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.panel,
.spotlight-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
}

.hero-copy::after {
  position: absolute;
  inset: auto -60px -90px auto;
  width: 280px;
  height: 280px;
  border: 34px solid rgba(248, 197, 71, 0.16);
  border-radius: 50%;
  content: "";
}

.eyebrow,
.section-heading span {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  color: var(--muted);
}

.live-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #06120a;
  background: var(--green);
  font-weight: 900;
}

.source-pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06120a;
  animation: pulse 1s infinite;
}

.spotlight-card {
  padding: 26px;
  background: linear-gradient(160deg, rgba(25, 38, 65, 0.92), rgba(11, 18, 32, 0.78));
}

.spotlight-topline,
.row-heading,
.match-topline,
.event-row,
.team-line,
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spotlight-topline span,
.match-topline span {
  color: var(--muted);
}

.spotlight-topline strong,
.match-status.live {
  color: var(--green);
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 44px 0 28px;
  text-align: center;
}

.scoreline div {
  display: grid;
  gap: 12px;
}

.flag {
  display: inline-grid;
  min-width: 64px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(248, 197, 71, 0.35);
  border-radius: 16px;
  color: var(--gold);
  background: rgba(248, 197, 71, 0.08);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.scoreline p {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.scoreline small {
  color: var(--gold);
  font-size: 0.46em;
}

.momentum {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.momentum span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.spotlight-note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 24px;
}

.panel {
  padding: 22px;
}

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

.group-tabs,
.filters {
  display: flex;
  gap: 8px;
}

.group-tabs button,
.filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.group-tabs button {
  width: 40px;
  height: 40px;
  font-weight: 900;
}

.filters button {
  padding: 9px 13px;
  font-size: 0.88rem;
}

.group-tabs button.active,
.filters button.active {
  border-color: rgba(248, 197, 71, 0.55);
  color: #161103;
  background: var(--gold);
}

.standings-list,
.match-list,
.event-list {
  display: grid;
  gap: 12px;
}

.standings-list {
  margin-top: 18px;
}

.standing-row,
.match-card,
.event-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

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

.standing-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #111827;
  background: var(--gold);
  font-weight: 900;
}

.standing-team strong,
.standing-team small {
  display: block;
}

.standing-team small,
.match-meta,
.event-card p,
.stat-row span {
  color: var(--muted);
}

.match-card {
  padding: 18px;
}

.match-topline {
  margin-bottom: 16px;
}

.match-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 900;
}

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

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

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

.team-line strong {
  font-size: 1rem;
}

.team-line b {
  font-size: 1.4rem;
}

.stats {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.stat-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.event-card {
  padding: 14px;
}

.event-row strong {
  color: var(--gold);
}

.event-card p {
  margin-top: 8px;
  line-height: 1.6;
}

.goal {
  border-color: rgba(48, 209, 88, 0.38);
  background: rgba(48, 209, 88, 0.08);
}

@keyframes pulse {
  50% {
    transform: scale(1.8);
    opacity: 0.35;
  }
}

@media (max-width: 1180px) {
  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .matches {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1440px);
    padding: 10px 0;
  }

  .hero-copy,
  .panel,
  .spotlight-card {
    border-radius: 22px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero {
    gap: 14px;
    margin-bottom: 14px;
  }

  .scoreline {
    grid-template-columns: 1fr;
    margin: 26px 0 20px;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    width: 100%;
  }

  .filters button {
    flex: 1;
  }
}
