:root {
  color-scheme: dark;
  --bg: #101217;
  --panel: #1a1d24;
  --ink: #f4f1e9;
  --muted: #aaa294;
  --gold: #e9bd66;
  --green: #80d99b;
  --line: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
}

a {
  color: var(--gold);
}

.match-header,
.match-layout,
.related-links {
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
}

.match-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a {
  text-decoration: none;
}

.eyebrow,
.label,
.control-field label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
}

h1 span {
  color: var(--muted);
  font-size: 0.52em;
  font-weight: 700;
}

.match-context {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.match-layout {
  padding-top: 24px;
}

.match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.kickoff-block time {
  display: grid;
  gap: 5px;
}

.kickoff-date {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.kickoff-clock {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.kickoff-clock strong {
  font-size: 56px;
  font-weight: 900;
  line-height: 0.95;
}

.kickoff-clock span {
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
}

.kickoff-block > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.control-field {
  display: grid;
  gap: 7px;
}

.control-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11141a;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.control-field select:focus-visible,
a:focus-visible {
  outline: 2px solid #fff1c7;
  outline-offset: 3px;
}

.match-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.match-facts div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.match-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.match-section {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.nearby-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.nearby-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.nearby-list a:hover strong,
.nearby-list a:focus-visible strong {
  color: var(--gold);
}

.nearby-list a > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nearby-list small,
.team-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.nearby-list time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.team-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-form {
  min-width: 0;
}

.team-form h3 {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.team-form ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-form li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.team-form li > time {
  color: var(--muted);
  font-weight: 750;
}

.team-form li > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.team-form li > span strong {
  overflow-wrap: anywhere;
}

.team-form li > b {
  color: var(--gold);
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
}

.standings-context table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standings-context th,
.standings-context td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.standings-context th:nth-child(2),
.standings-context td:nth-child(2) {
  width: 100%;
  text-align: left;
}

.standings-context thead th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.standings-context tr.is-participant {
  background: rgba(233, 189, 102, 0.09);
}

.standings-context tr.is-participant th {
  color: var(--gold);
}

.standings-context tr.table-gap td {
  height: 24px;
  padding: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-align: center;
}

.standings-context tr.table-gap span {
  display: inline-block;
  translate: 0 -2px;
}

.time-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.time-note h2,
.time-note p {
  margin: 0;
}

.time-note h2 {
  font-size: 18px;
}

.time-note p {
  color: var(--muted);
  line-height: 1.6;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 24px 0 38px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 680px) {
  .match-header {
    padding-top: 22px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .match-card,
  .match-section,
  .time-note {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  .kickoff-clock strong {
    font-size: 48px;
  }

  .team-form-grid {
    grid-template-columns: 1fr;
  }

  .nearby-list a {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .nearby-list time {
    text-align: left;
  }

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