:root {
  color-scheme: light dark;
  --bg: #f3f7f9; --surface: #ffffff; --ink: #10242c; --muted: #47606b; --line: #cfdce2; --control: #748b96;
  --link: #0a5a72; --a: #c9304a; --a-ink: #ffffff; --b: #fbdfe2; --b-ink: #8d1a30; --select: #e1eff3;
  --hero: #0b3c49; --hero-ink: #ffffff; --hero-muted: #c3dbe2; --hero-a: #ff7d83; --hero-pt: #62dfc2;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a20; --surface: #14262e; --ink: #e9f1f4; --muted: #a6bcc5; --line: #2a414b; --control: #6f8a95;
    --link: #7fd0e6; --a: #ff7d83; --a-ink: #2b060c; --b: #48202a; --b-ink: #ffc3c7; --select: #1c3944;
    --hero: #0e4453;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, p, dl, dd, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
#list:focus { outline: none; }
[hidden] { display: none !important; }
.js { display: none; }
.on .js { display: revert; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1104px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--surface); border-radius: var(--r); z-index: 2; }
.skip:focus { top: 12px; }

/* Unit marks: the same small square means 1 interview everywhere. */
.u { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 2px; }
.u.a { background: var(--a); }
.u.b { background: var(--b); box-shadow: inset 0 0 0 1.5px var(--a); }
.key { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }

/* First screen */
.hero { background: var(--hero); color: var(--hero-ink); padding: 36px 0 32px; }
.hero h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.5rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 750; max-width: 19em; text-wrap: balance; }
.dek { margin-top: 16px; font-size: 1.125rem; color: var(--hero-muted); max-width: 46ch; }
.versus { margin-top: 28px; display: grid; gap: 24px; }
.versus dt { font-weight: 600; }
.versus dd { display: grid; grid-template-columns: 2.1em 1fr; column-gap: 8px; align-items: center; }
.versus b { font-size: 2.5rem; line-height: 1.15; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.03em; grid-column: 1; width: 2.1ch; }
.versus dd { grid-template-columns: 56px 1fr; }
.versus .units { display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); gap: 3px; max-width: 720px; }
.versus .units .u { width: auto; height: auto; aspect-ratio: 1; }
.versus .sub { grid-column: 1 / -1; color: var(--hero-muted); font-size: .9375rem; }
.hero .u.a { background: var(--hero-a); }
.hero .u.b { background: transparent; box-shadow: inset 0 0 0 2px var(--hero-a); }
.hero .u.pt { background: var(--hero-pt); }
.hero a { color: var(--hero-ink); }
.hero :focus-visible { outline-color: var(--hero-ink); }

section { padding-top: 48px; }
h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 6px; color: var(--muted); max-width: 80ch; }

/* Players */
.players { margin-top: 16px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.players li + li { border-top: 1px solid var(--line); }
.player { width: 100%; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 16px; text-align: left; background: none; border: 0; }
.player:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.p-name { font-weight: 650; font-size: 1.0625rem; }
.p-since, .p-split { color: var(--muted); font-size: .9375rem; }
.p-since { grid-row: 2; grid-column: 1; }
.p-total { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 2rem; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.p-units { grid-column: 1 / -1; display: flex; gap: 3px; margin: 8px 0 4px; }
.p-split { grid-column: 1 / -1; }
.player[aria-pressed="true"] { background: var(--select); box-shadow: inset 0 0 0 2px var(--link); }
@media (hover: hover) { .player:hover { background: var(--select); } }

/* Timeline: rows on a phone, columns on a wide screen */
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 14px; min-height: 44px; }
.on .status.js { display: flex; }
.text-btn { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--link); text-decoration: underline; text-underline-offset: .18em; }
#timeline { margin-top: 4px; }
.season { display: grid; grid-template-columns: 68px 1fr; gap: 0 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.season .s-name { font-size: .9375rem; line-height: 30px; font-variant-numeric: tabular-nums; }
.marks { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; align-items: center; }
.none { color: var(--muted); font-size: .9375rem; }
.mark { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; font-size: .875rem; font-weight: 700; line-height: 1; }
.mark.a { background: var(--a); color: var(--a-ink); }
.mark.b { background: var(--b); color: var(--b-ink); box-shadow: inset 0 0 0 1.5px var(--a); }
.mark[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 1px; }
.mark:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.detail { grid-column: 1 / -1; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); padding: 16px; margin: 10px 0 6px; }
.detail .d-top { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; color: var(--muted); font-size: .9375rem; }
.detail .d-top strong { color: var(--ink); font-size: 1.0625rem; }
.detail blockquote { font-size: 1.25rem; line-height: 1.4; margin: 10px 0; max-width: 46ch; text-wrap: pretty; }
.detail p { font-size: .9375rem; color: var(--muted); max-width: 66ch; }
.detail .d-src { margin-top: 6px; color: var(--ink); }
.d-nav { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.d-nav button, .more { min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--control); background: var(--surface); font-weight: 600; }
.d-nav button:disabled { opacity: .45; cursor: default; }
.d-nav span { margin-left: auto; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }

.grade { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.grade.a { background: var(--a); color: var(--a-ink); }
.grade.b { background: var(--b); color: var(--b-ink); box-shadow: inset 0 0 0 1.5px var(--a); }

/* List */
.filters { margin-top: 16px; gap: 12px; grid-template-columns: 1fr 1fr; }
.on .filters.js { display: grid; }
.filters label { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: .9375rem; font-weight: 600; min-width: 0; }
.filters .f-q, .filters label:last-child { grid-column: 1 / -1; }
.filters input, .filters select { width: 100%; min-width: 0; height: 46px; padding: 0 12px; font-size: 1rem; font-weight: 400; background: var(--surface); border: 1px solid var(--control); border-radius: var(--r); }
.filters ::placeholder { color: var(--muted); opacity: 1; }
#count { font-weight: 600; }
.row { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.r-when { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.r-when time { color: var(--muted); font-variant-numeric: tabular-nums; }
.r-who { font-weight: 650; }
.row h3 { font-size: 1rem; line-height: 1.4; font-weight: 650; }
.row blockquote { margin-top: 4px; font-size: 1.0625rem; max-width: 60ch; text-wrap: pretty; }
.r-note { margin-top: 6px; font-size: .9375rem; color: var(--muted); max-width: 66ch; }
.r-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .9375rem; }
.r-man { color: var(--muted); }
.r-src { flex-basis: 100%; }
.r-src, .d-src, .method dd { overflow-wrap: anywhere; }
.more { display: block; width: 100%; margin-top: 8px; }

.method > p { margin-top: 12px; max-width: 66ch; }
.method dl { margin: 20px 0; display: grid; gap: 4px; }
.method dt { font-weight: 650; margin-top: 12px; }
.method dd { max-width: 66ch; }
footer { margin-top: 48px; }
footer p { border-top: 1px solid var(--line); padding: 20px 0 36px; font-size: .9375rem; color: var(--muted); }

@media (min-width: 800px) {
  .wrap { padding-inline: 32px; }
  .hero { padding: 64px 0 56px; }
  .versus { margin-top: 40px; gap: 28px; }
  .versus b { font-size: 3.5rem; line-height: 1; }
  .versus dd { grid-template-columns: 88px 1fr; margin-top: 4px; }
  .versus .sub { grid-column: 2; margin-top: 8px; }
  section { padding-top: 72px; }
  .player { grid-template-columns: 210px 1fr 64px; align-items: center; padding: 14px 24px; }
  .p-name { grid-area: 1 / 1; }
  .p-since { grid-area: 2 / 1; }
  .p-units { grid-area: 1 / 2; margin: 0; gap: 4px; }
  .p-units .u { width: 16px; height: 16px; border-radius: 3px; }
  .p-split { grid-area: 2 / 2; }
  .p-total { grid-area: 1 / 3 / span 2; text-align: right; font-size: 2.25rem; }
  #timeline { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); margin-top: 12px; border-bottom: 1px solid var(--line); }
  .season { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; border: 0; padding: 0 0 8px; }
  .season .s-name { line-height: 1.4; white-space: nowrap; }
  .marks { flex-flow: row wrap-reverse; align-content: flex-start; width: 64px; min-height: 268px; }
  .marks .none { width: 100%; text-align: center; }
  .detail { padding: 20px 24px; margin: 16px 0 0; }
  .detail blockquote { font-size: 1.5rem; }
  .filters { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .filters .f-q, .filters label:last-child { grid-column: auto; }
  .row { grid-template-columns: 150px minmax(0, 1fr) 260px; gap: 32px; padding: 22px 0; }
  .r-when { flex-direction: column; justify-content: flex-start; gap: 0; }
  .r-who { order: -1; font-size: 1rem; }
  .r-meta { flex-direction: column; align-items: flex-start; align-content: flex-start; flex-wrap: nowrap; }
  .r-src { flex-basis: auto; }
  .more { width: auto; }
  .method dl { grid-template-columns: 210px 1fr; gap: 16px 32px; }
  .method dt { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .u, .mark, .grade { border: 1px solid; } .u.a, .u.pt { forced-color-adjust: none; } }
