:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  background: #0b141f;
  color: #f4f5f9;
  --muted: #b1c0d1;
  --line: #2d4155;
  --gold: #efcc86;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 65% -5%, #233942, transparent 55%); min-height: 100vh; }
main { max-width: 900px; margin: auto; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
a { color: var(--gold); text-underline-offset: .22em; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
header > a:first-child { color: inherit; font-weight: 700; text-decoration: none; }
.action { display: inline-block; background: var(--gold); color: #201b11; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; text-align: center; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: -.055em; line-height: 1.05; margin: 36px 0 10px; }
h2 { font-size: clamp(1.55rem, 6vw, 2.45rem); letter-spacing: -.045em; line-height: 1.05; margin: 0; }
h3 { margin: 0 0 12px; }
.subtitle, footer { color: var(--muted); }
.subtitle { margin: 7px 0 15px; }
.selectors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; margin-block: 25px; }
label { font-weight: 650; }
select { width: 100%; margin-top: 5px; padding: 11px 10px; color: inherit; background: #152333; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
article { border-radius: 16px; border: 1px solid var(--line); background: #101d2b; overflow: hidden; }
.club-header { display: flex; gap: 18px; align-items: center; padding: 20px; background: #17283a; }
.club-header .subtitle { margin-bottom: 0; }
.badge { flex: 0 0 66px; object-fit: contain; }
.content { display: grid; grid-template-columns: 1.4fr minmax(230px,1fr); gap: 25px; padding: 20px; align-items: start; }
.roster { min-width: 0; }
.visuals { padding: 15px; background: #17273a; border-radius: 12px; }
table { border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 9px; text-align: left; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { width: 36px; }
th:last-child, td:last-child { text-align: right; }
.kits { display: flex; gap: 8px; justify-content: space-evenly; }
figure { margin: 0; text-align: center; flex: 1; min-width: 0; }
.shirt { position: relative; height: 100px; width: 100%; max-width: 100px; margin: 0 auto 6px; background: var(--club-color); clip-path: polygon(0 22%,23% 6%,38% 0,43% 10%,57% 10%,62% 0,77% 6%,100% 22%,88% 46%,77% 38%,77% 100%,23% 100%,23% 38%,12% 46%); }
.shirt.home { background: repeating-linear-gradient(105deg,var(--club-color) 0 12px,var(--club-trim) 12px 18px,var(--club-color) 18px 35px); }
.shirt.away { background: linear-gradient(140deg,#f7f6ed 0 44%,var(--club-color) 45% 49%,var(--club-trim) 50% 54%,#f7f6ed 55%); }
.shirt b { position: absolute; top: 23%; right: 29%; background: #101924; color: white; border-radius: 100%; padding: 1px 3px; font-size: 8px; }
.sources { display: grid; gap: 5px; }
footer { padding-block: 22px; font-size: .9rem; }
@media (max-width: 580px) {
  .content { grid-template-columns: 1fr; }
  .visuals { grid-row: 1; }
  .club-header, .content { padding: 14px; }
  th, td { padding-inline: 5px; }
}

.shirt-photo img { width: min(100%, 132px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: #e8e8e8; }
