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

h1 a {
  color: var(--ink);
  text-decoration-color: rgba(233, 189, 102, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

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

.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 > #timeZoneLabel {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.kickoff-block .match-state {
  margin-top: 8px;
  color: var(--gold);
  font-weight: 850;
}

.kickoff-block .match-state[hidden] {
  display: none;
}

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

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

.match-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 29, 36, 0.5);
}

.match-details > summary,
.match-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.match-details > summary::-webkit-details-marker,
.match-disclosure > summary::-webkit-details-marker,
.time-note > summary::-webkit-details-marker {
  display: none;
}

.match-details > summary {
  padding: 10px 16px;
}

.match-details > summary > span,
.match-disclosure > summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.match-details > summary strong,
.match-disclosure > summary strong {
  color: var(--ink);
  font-size: 17px;
}

.match-details > summary small,
.match-disclosure > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.match-details > summary em,
.match-disclosure > summary em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.match-details[open] > summary em,
.match-disclosure[open] > summary em {
  color: var(--muted);
}

.match-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.team-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  min-height: 68px;
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
}

.team-links a + a {
  border-left: 1px solid var(--line);
}

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

.team-links span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-links strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.team-links em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.team-links i {
  color: var(--gold);
  font-style: normal;
}

.tie-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tie-summary p {
  display: grid;
  gap: 6px;
  min-height: 96px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tie-summary span,
.tie-summary small,
.lineup-coach {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tie-summary strong {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  align-self: center;
  color: var(--ink);
  font-size: 18px;
}

.tie-summary strong em,
.tie-summary strong i {
  font-style: normal;
}

.tie-summary strong em {
  color: var(--gold);
}

.tie-summary strong i {
  color: var(--muted);
}

.tie-summary strong b {
  color: var(--ink);
}

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

.match-disclosure {
  border-bottom: 1px solid var(--line);
}

.match-disclosure > summary {
  padding: 18px 0;
}

.match-disclosure > .lineup-grid,
.match-disclosure > .team-form-grid {
  padding: 4px 0 28px;
}

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

.lineup-team header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.lineup-team h3,
.lineup-team header span,
.lineup-coach {
  margin: 0;
}

.lineup-team header span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.lineup-team ol,
.event-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineup-team li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.lineup-team li > span,
.lineup-team li > small {
  color: var(--muted);
}

.lineup-team details {
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.lineup-team summary {
  min-height: 44px;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

.event-timeline {
  border-top: 1px solid var(--line);
}

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

.event-timeline li > time {
  color: var(--ink);
  font-weight: 850;
}

.event-timeline li > span {
  display: grid;
  gap: 3px;
}

.event-timeline small,
.event-timeline b {
  color: var(--muted);
}

.statistics-list {
  margin: 0;
}

.statistics-list div {
  display: grid;
  grid-template-columns: minmax(56px, 0.3fr) minmax(120px, 1fr) minmax(56px, 0.3fr);
  gap: 12px;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.statistics-list dt,
.statistics-list dd {
  margin: 0;
}

.statistics-list dt {
  color: var(--muted);
  font-size: 12px;
}

.statistics-list dd {
  color: var(--ink);
  font-weight: 850;
}

.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(--ink);
  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(--ink);
  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 {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

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

.time-note summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.time-note summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: 18px;
}

.time-note[open] summary::after {
  content: "-";
}

.time-note p {
  padding: 4px 0 8px;
  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,
  .tie-context {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

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

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

  .tie-summary,
  .lineup-grid,
  .team-links {
    grid-template-columns: 1fr;
  }

  .team-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

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