/* Font web ospitati nel sito (licenza SIL OFL, vedi assets/fonts/). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Font di Oltre le Barriere (licenza SIL OFL, vedi assets/fonts/). */
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/libre-baskerville-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Palette di Oltre le Barriere: avorio, antracite, oro caldo; il rosso resta il colore Olimpia */
  --serif: "Libre Baskerville", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --red: #c8102e;
  --red-dark: #9a0c23;
  --white: #ffffff;
  --ink: #171b21;
  --surface: #f7f6f3;
  --muted: #5d636c;
  --border: #e4ded2;
  --gold: #d2a454;
  --shadow: 0 18px 50px rgba(23, 27, 33, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
a { color: var(--red); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand > span { display: grid; line-height: 1.1; }
.brand strong { font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-subtitle { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }

.eyebrow, .kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.season-badge {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}
.season-badge strong { color: var(--red); font-size: 1rem; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  gap: 64px;
  padding-block: 72px 58px;
  align-items: end;
}

.intro h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}
.intro h1 span { color: var(--red); }
.intro-copy > p:last-child { max-width: 700px; margin: 28px 0 0; color: var(--muted); font-size: 1.06rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.stats-grid article { min-height: 132px; padding: 24px; display: grid; align-content: center; }
.stats-grid article:not(:nth-child(3n)) { border-right: 1px solid var(--border); }
.stats-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
.stats-grid strong { color: var(--red); font-family: var(--serif); font-size: 2.7rem; line-height: 1; font-weight: 500; }
.stats-grid span { margin-top: 7px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.featured-story { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: start; margin-bottom: 34px; padding: 34px 38px; border: 1px solid var(--border); border-left: 7px solid var(--red); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.featured-story-number { color: var(--red); font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.8; }
.featured-story h2 { max-width: 860px; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.featured-story h2 a { color: var(--ink); text-decoration: none; }
.featured-story h2 a:hover { color: var(--red); }
.featured-story-excerpt { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; }
.featured-story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; color: var(--muted); font-size: 0.84rem; }
.featured-story-all { margin-left: auto; font-weight: 750; text-decoration: none; }
.featured-story-all:hover { text-decoration: underline; }
.button-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 750; text-decoration: none; }
.button-primary:hover { background: var(--red-dark); }
.button-primary:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.35); outline-offset: 2px; }
.database {
  margin-bottom: 72px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.045em; line-height: 1.05; }
.data-status { margin: 0; color: var(--muted); font-size: 0.88rem; }

.tabs {
  display: flex;
  gap: 6px;
  margin: 30px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  min-height: 44px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
.tab:hover { background: var(--surface); color: var(--ink); }
.tab.is-active { background: var(--red); color: var(--white); }

.filters {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) repeat(3, minmax(145px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.25);
  outline-offset: 2px;
  border-color: var(--red);
}
.button-secondary {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.results-bar { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0 10px; color: var(--muted); font-size: 0.9rem; }
.results-bar p { margin: 0; }
.results-bar strong { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface); color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr { cursor: pointer; transition: background 150ms ease; }
tbody tr:hover, tbody tr:focus { background: #fff8f8; outline: none; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 760; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.muted-cell { color: #aaa3a0; }
.player-cards { display: none; }
.player-list-more { display: block; margin: 20px auto 0; }
.player-list-more[hidden] { display: none; }

.matches-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.matches-intro h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.035em; }
.matches-intro > p { max-width: 450px; margin: 0; color: var(--muted); font-size: 0.9rem; text-align: right; }
.match-archive-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr); gap: 18px; align-items: center; margin-bottom: 22px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.match-archive-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .match-archive-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.match-archive-option { display: grid; gap: 3px; min-height: 72px; padding: 13px 16px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.match-archive-option span { color: var(--muted); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.match-archive-option strong { font-size: 0.93rem; }
.match-archive-option:hover { border-color: #d9c8c5; background: var(--white); }
.match-archive-option.is-active { border-color: var(--red); background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(154, 12, 35, 0.16); }
.match-archive-option.is-active span { color: #ffd7d8; }
.match-archive-option:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.25); outline-offset: 2px; }
.match-archive-note { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.match-filters { display: grid; grid-template-columns: 1fr minmax(180px, 1.45fr) repeat(3, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
.match-filters label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.match-summary { margin-top: 24px; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--red-dark), var(--red)); color: var(--white); box-shadow: 0 14px 30px rgba(154, 12, 35, 0.18); }
.match-summary-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 22px 24px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.match-summary-heading .eyebrow { margin: 0; color: #ffd7d8; }
.match-summary-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 500; }
.match-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.match-summary-grid article { min-height: 108px; padding: 20px 24px; display: grid; align-content: center; border-right: 1px solid rgba(255, 255, 255, 0.18); }
.match-summary-grid article:last-child { border-right: 0; }
.match-summary-grid span { color: #f1cfd0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.075em; text-transform: uppercase; }
.match-summary-grid strong { margin-top: 7px; font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; line-height: 1; }
.match-results-bar { margin-top: 28px; }
.matches-list { display: grid; gap: 18px; }
.match-group { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.match-group-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-left: 5px solid var(--red); background: var(--surface); }
.match-group-header span { color: var(--red); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.match-group-header h4 { margin: 2px 0 0; font-size: 1rem; letter-spacing: -0.015em; }
.match-group-header > strong { color: var(--muted); font-size: 0.78rem; }
.match-group.is-series { border-color: #dacac6; box-shadow: 0 10px 28px rgba(75, 21, 22, 0.06); }
.match-group.is-series .match-group-header { border-left-width: 7px; background: linear-gradient(105deg, #fff7f7, var(--surface)); }
.match-series-meta { display: grid; justify-items: end; gap: 4px; text-align: right; }
.match-series-meta strong { padding: 6px 10px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 0.72rem; letter-spacing: 0.015em; }
.match-series-meta span { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.match-group-body { display: grid; }
.match-group.is-collapsible > summary { cursor: pointer; list-style: none; }
.match-group.is-collapsible > summary::-webkit-details-marker { display: none; }
.match-group.is-collapsible > summary:hover { background: #f1ecea; }
.match-group.is-collapsible > summary:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.35); outline-offset: -3px; }
.match-group.is-collapsible .match-series-meta { margin-left: auto; }
.match-group-toggle { flex: none; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: var(--white); position: relative; }
.match-group-toggle::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-2px) rotate(45deg); transition: transform 0.18s ease; }
.match-group.is-collapsible[open] .match-group-toggle::before { transform: translateY(2px) rotate(-135deg); }
.match-group.is-collapsible:not([open]) .match-group-header { border-bottom: 0; }
.match-row { display: grid; grid-template-columns: 40px minmax(190px, 1fr) auto 64px; gap: 16px; align-items: center; min-height: 76px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #fff9f9; }
.match-result { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.76rem; font-weight: 900; }
.match-row.is-win .match-result { background: var(--red); color: var(--white); }
.match-row.is-loss .match-result { background: #302c2b; color: var(--white); }
.match-row.is-draw .match-result { border: 1px solid #c7bfbc; background: var(--white); color: var(--ink); }
.match-row.is-unknown .match-result { border: 1px solid #d9a83e; background: #fff4dc; color: #725318; }
.match-row.is-voided .match-result { border: 1px dashed #a39c99; background: var(--white); color: var(--muted); }
.match-row.is-voided .match-opponent strong,
.match-row.is-voided .match-score { color: var(--muted); }
.match-row.is-voided .match-score span { text-decoration: line-through; text-decoration-thickness: 1px; }
.match-row.is-voided .match-note { background: #f1eeec; color: var(--muted); }
.match-opponent { display: grid; }
.match-opponent strong { font-size: 0.96rem; }
.match-opponent span { margin-top: 3px; color: var(--muted); font-size: 0.75rem; }
.match-score { display: flex; align-items: baseline; gap: 9px; min-width: 112px; justify-content: flex-end; font-family: var(--serif); font-size: 1.65rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.match-score em { color: #a79f9c; font-family: inherit; font-size: 1rem; font-style: normal; font-weight: 400; }
.match-margin { justify-self: end; min-width: 52px; padding: 5px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; font-weight: 800; text-align: center; }
.match-margin.positive { background: #f8e4e5; color: var(--red-dark); }
.match-margin.negative { background: #ece8e6; color: #4e4846; }
.match-note { grid-column: 2 / -1; margin: -4px 0 2px; padding: 7px 10px; border-radius: 8px; background: #fff4dc; color: #725318; font-size: 0.74rem; }
.matches-empty { padding: 30px; border: 1px dashed #cbbebb; border-radius: 14px; background: var(--surface); text-align: center; }
.matches-empty strong { color: var(--red-dark); }
.matches-empty p { margin: 5px 0 0; color: var(--muted); font-size: 0.86rem; }

.stories-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.stories-intro h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -0.04em; }
.stories-intro > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.92rem; text-align: right; }
.story-filters { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(180px, 0.8fr) auto; gap: 12px; align-items: end; }
.story-filters label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.story-results-bar { margin-top: 28px; }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.story-card::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.story-card:hover { transform: translateY(-3px); border-color: #cfaeb0; box-shadow: 0 14px 30px rgba(74, 22, 24, 0.09); }
.story-card:hover::after { transform: scaleX(1); }
.story-card-number { display: block; color: var(--red); font-family: var(--serif); font-size: 2.3rem; line-height: 1; }
.story-card-copy { display: grid; gap: 11px; margin-top: 22px; }
.story-card-copy strong { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.story-card-copy > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 0.82rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.story-card-meta { display: block; margin-top: auto; padding-top: 18px; color: #8a817e; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.055em; text-transform: uppercase; }
.stories-empty { grid-column: 1 / -1; padding: 34px; border: 1px dashed #cbbebb; border-radius: 14px; background: var(--surface); text-align: center; }
.stories-empty strong { color: var(--red-dark); }
.stories-empty p { margin: 5px 0 0; color: var(--muted); font-size: 0.86rem; }

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pagination button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
}
.pagination button[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination button:disabled { opacity: 0.38; cursor: not-allowed; }

.ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ranking-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.ranking-title { display: flex; align-items: center; gap: 13px; padding: 20px; background: var(--ink); color: var(--white); }
.ranking-title span { color: #f18c8f; font-family: var(--serif); font-size: 1.8rem; }
.ranking-title h3 { margin: 0; font-size: 1.06rem; }
.ranking-card ol { list-style: none; margin: 0; padding: 0 20px; counter-reset: ranking; }
.ranking-card li { counter-increment: ranking; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); }
.ranking-card li:last-child { border-bottom: 0; }
.ranking-card li::before { content: counter(ranking, decimal-leading-zero); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.ranking-card li span { font-weight: 720; }
.ranking-card li strong { color: var(--red); font-variant-numeric: tabular-nums; }

.coach-intro { max-width: 760px; margin: 0 0 22px; color: var(--muted); }
.coach-intro p { margin: 0; }
.coaches-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.coach-card { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.coach-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.coach-card h3 { margin: 0; font-size: 1.14rem; letter-spacing: -0.02em; }
.coach-period { color: var(--red); font-family: var(--serif); font-size: 1rem; text-align: right; order: 2; }
.coach-trophies { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin: 15px 0; }
.coach-trophies span { padding: 5px 8px; border-radius: 999px; background: #fff0f0; color: var(--red-dark); font-size: 0.75rem; font-weight: 750; }
.coach-trophies .no-title { background: var(--surface); color: var(--muted); font-weight: 600; }
.coach-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.coach-records div { padding: 11px; border-radius: 10px; background: var(--surface); }
.coach-records dt { color: var(--muted); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.coach-records dd { margin: 4px 0 0; font-size: 0.86rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.coach-note { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; font-style: italic; }

.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.timeline-item { min-height: 120px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.timeline-item .period { color: var(--red); font-family: var(--serif); font-size: 1.3rem; }
.timeline-item h3 { margin: 15px 0 0; font-size: 1rem; }
.timeline-item h3 a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(200, 16, 46, 0.35); }
.timeline-item h3 a:hover { color: var(--red); border-bottom-color: var(--red); }
.timeline-item { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.timeline-item.is-highlighted { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14); }
.timeline-stories { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.timeline-stories summary { color: var(--red); font-size: 0.8rem; font-weight: 750; cursor: pointer; }
.timeline-stories ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.timeline-stories a { display: flex; gap: 8px; align-items: baseline; color: var(--ink); font-size: 0.86rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.timeline-stories a span { flex: none; color: var(--red); font-family: var(--serif); }
.timeline-stories a:hover { color: var(--red); text-decoration: underline; }

.method { padding-bottom: 72px; }
.method > h2 { max-width: 600px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.method-grid p { margin: 0; padding-top: 18px; border-top: 3px solid var(--red); color: var(--muted); }
.method-grid strong { color: var(--ink); }
.method-lineage { max-width: 900px; margin-top: 34px; padding: 26px 28px; border: 1px solid var(--border); border-left: 5px solid var(--red); border-radius: 14px; background: var(--white); color: var(--muted); scroll-margin-top: 110px; }
.method-lineage h3 { margin: 0 0 10px; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.method-lineage p { margin: 0 0 14px; }
.method-lineage p:last-child { margin-bottom: 0; }
.method-lineage strong { color: var(--ink); }
.lineage-steps { margin: 4px 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.lineage-steps li { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; }
.lineage-steps span { grid-row: span 2; color: var(--red); font-family: var(--serif); font-size: 1.05rem; }
.lineage-steps em { font-style: normal; font-size: 0.88rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

footer { background: var(--ink); color: #b9b4aa; border-top: 4px solid var(--gold); }
.footer-inner { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 28px; font-size: 0.86rem; }
.footer-inner a { color: var(--white); }

dialog {
  width: min(1480px, calc(100% - 30px));
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 34px;
  border: 0;
  border-top: 7px solid var(--red);
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}
dialog::backdrop { background: rgba(16, 10, 10, 0.72); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 1.5rem; }
.dialog-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-right: 52px; }
.dialog-title-row h2 { margin: 0; }
.share-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 15px; border: 1px solid var(--red); border-radius: 999px; background: var(--white); color: var(--red); font-size: 0.84rem; font-weight: 750; cursor: pointer; }
.share-button::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E") center / contain no-repeat; }
.share-button:hover { background: var(--red); color: var(--white); }
.share-button:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.35); outline-offset: 2px; }
.story-dialog-header .share-button { margin-top: 18px; }

.player-summary { margin-top: 18px; }
.player-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.player-facts li:not(:last-child)::after { content: "·"; margin: 0 10px; color: #c3bab7; }
.player-facts strong { color: var(--ink); font-weight: 650; }
.player-numbers-title { margin: 24px 0 8px; color: var(--red); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.player-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--border); }
.player-numbers div { padding: 18px 20px 16px; }
.player-numbers div + div { border-left: 1px solid var(--border); }
.player-numbers dt { color: var(--muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.player-numbers dd { margin: 4px 0 0; color: var(--red); font-family: var(--serif); font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.player-teams { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.player-teams > span { margin-right: 6px; color: var(--red); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.player-teams strong { color: var(--ink); font-weight: 650; }
.table-note { margin: 12px 0 0; color: var(--muted); font-size: 0.8rem; }
th abbr { text-decoration: none; cursor: help; }
.player-numbers-note { margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; }
.player-stories { margin-top: 26px; padding: 20px 22px; border-radius: 12px; background: #fbf1f1; }
.player-story-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 22px; }
.player-story-list a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--ink); font-weight: 650; text-decoration: none; line-height: 1.3; }
.player-story-list a span { flex: none; color: var(--red); font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.player-story-list a:hover { color: var(--red); text-decoration: underline; }
.story-players { max-width: 760px; margin: 42px auto 0; padding-top: 26px; border-top: 1px solid var(--border); }
.story-players .eyebrow { margin: 0 0 8px; font-family: inherit; font-size: 0.74rem; line-height: 1.4; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.link-chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.84rem; font-weight: 650; text-decoration: none; }
.story-players .link-chips + .eyebrow { margin-top: 18px; }
.link-chip.is-president span { margin-left: 6px; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.link-chip:hover, .link-chip:focus-visible { border-color: var(--red); color: var(--red); }
.player-season-stats { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border); }
.stats-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.stats-heading .kicker { margin-bottom: 4px; }
.stats-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.035em; }
.stats-help { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; color: var(--muted); font-size: 0.82rem; }
.stats-help span { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f8e7e8; color: var(--red); font-size: 1rem; font-weight: 850; }
.season-stats-wrap {
  position: relative;
  max-height: min(68vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  border: 1px solid #dfc7c8;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(154, 12, 35, 0.08), inset -20px 0 24px -28px rgba(0, 0, 0, 0.55);
}
.season-stats-wrap:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.25); outline-offset: 3px; }
.season-stats-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: clamp(0.59rem, 0.75vw, 0.76rem); font-variant-numeric: tabular-nums; line-height: 1.25; }
.season-stats-table th, .season-stats-table td { min-width: 56px; padding: 10px 8px; border-right: 1px solid #eee4e2; border-bottom: 1px solid #eee4e2; text-align: center; white-space: nowrap; }
.season-stats-table thead th { position: sticky; top: 0; z-index: 4; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.075em; text-transform: uppercase; }
.season-stats-table thead .stats-groups th { top: 0; height: 38px; border-color: rgba(255, 255, 255, 0.18); background: linear-gradient(135deg, var(--red-dark), var(--red)); color: var(--white); }
.season-stats-table thead tr:last-child th { top: 38px; border-bottom: 2px solid var(--red); background: #fffafa; color: #5f5654; }
.season-stats-table thead tr:last-child th:nth-child(5),
.season-stats-table thead tr:last-child th:nth-child(7),
.season-stats-table thead tr:last-child th:nth-child(12),
.season-stats-table thead tr:last-child th:nth-child(16),
.season-stats-table thead tr:last-child th:nth-child(19),
.season-stats-table thead tr:last-child th:nth-child(28) { background: #f6dfe0; color: var(--red-dark); }
.season-stats-table tbody tr:not(.stats-team) { --stats-row-bg: var(--white); background: var(--stats-row-bg); }
.season-stats-table tbody tr:not(.stats-team):nth-child(odd) { --stats-row-bg: #fcf8f7; }
.season-stats-table tbody tr:not(.stats-team):hover { --stats-row-bg: #fff0f0; }
.season-stats-table tbody th { color: #352f2e; font-weight: 760; }
.season-stats-table tbody tr:not(.stats-team) > th:first-child,
.season-stats-table thead tr:last-child > th:first-child { position: sticky; left: 0; z-index: 3; min-width: 88px; }
.season-stats-table tbody tr:not(.stats-team) > th:nth-child(2),
.season-stats-table thead tr:last-child > th:nth-child(2) { position: sticky; left: 88px; z-index: 3; min-width: 142px; box-shadow: 8px 0 12px -12px rgba(0, 0, 0, 0.55); }
.season-stats-table tbody tr:not(.stats-team) > th:first-child,
.season-stats-table tbody tr:not(.stats-team) > th:nth-child(2) { background: var(--stats-row-bg); }
.season-stats-table thead tr:last-child > th:first-child,
.season-stats-table thead tr:last-child > th:nth-child(2) { z-index: 6; background: #fffafa; }
.season-stats-table thead .stats-groups > th:first-child { left: 0; z-index: 7; }
.season-stats-table .stats-team th { padding: 11px 14px; border-bottom-color: #e7c9ca; background: #f8e7e8; color: var(--red-dark); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.075em; text-align: left; text-transform: uppercase; }
.stats-footnote { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.stats-empty { margin-top: 16px; padding: 22px; border: 1px dashed #cbbebb; border-radius: 12px; background: var(--surface); }
.stats-empty strong { color: var(--red-dark); }
.stats-empty p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }

.story-dialog { width: min(980px, calc(100% - 30px)); padding: clamp(30px, 5vw, 64px); }
.story-dialog-header { max-width: 760px; margin: 0 auto 34px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.story-dialog-header .eyebrow { margin-bottom: 14px; }
.story-dialog-number { display: inline-block; margin-bottom: 13px; padding: 5px 10px; border-radius: 999px; background: #f8e7e8; color: var(--red-dark); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.075em; text-transform: uppercase; }
.story-dialog h2 { max-width: 760px; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -0.052em; line-height: 0.98; }
.story-dialog-meta { margin: 18px 0 0; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.story-article { max-width: 760px; margin-inline: auto; }
.story-article p { margin: 0 0 1.35em; font-family: var(--serif); font-size: 1.08rem; line-height: 1.78; }
.story-article h3 { margin: 2.1em 0 0.75em; color: var(--red-dark); font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.story-list { margin: 0 0 1.5em; padding-left: 1.3em; font-family: var(--serif); font-size: 1.04rem; line-height: 1.65; }
.story-list li { margin-bottom: 0.62em; padding-left: 0.25em; }
.story-table-wrap { max-width: 100%; margin: 28px 0 34px; overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; }
.story-table { min-width: 680px; font-size: 0.82rem; }
.story-table th, .story-table td { min-width: 130px; padding: 12px 13px; vertical-align: top; line-height: 1.45; }
.story-table th { background: var(--red-dark); color: var(--white); }
.story-table tbody tr { cursor: default; }
.story-table tbody tr:nth-child(even) { background: #fcf8f7; }
.story-table tbody tr:hover { background: inherit; }
.story-navigation { display: flex; justify-content: space-between; gap: 16px; max-width: 760px; margin: 42px auto 0; padding-top: 24px; border-top: 1px solid var(--border); }
.story-navigation button { min-width: 180px; }

.credits-page { min-height: 100vh; padding-block: 60px; background: var(--red); }
.credits-card { max-width: 780px; padding: clamp(28px, 6vw, 64px); background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.credits-card h1 { margin: 18px 0 28px; font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.06em; }
.credits-card h2 { margin-top: 34px; font-size: 1.5rem; }
.credits-card li { margin-block: 8px; }
.back-link { font-weight: 750; text-decoration: none; }

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: 36px; }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .filters label:nth-child(4) { grid-column: 1 / 3; }
  .ranking-grid { grid-template-columns: 1fr; }
  .match-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .match-archive-picker { grid-template-columns: 1fr; }
  .match-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-summary-grid article:nth-child(2) { border-right: 0; }
  .match-summary-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .coaches-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .lineage-steps li { grid-template-columns: 1fr; }
  .lineage-steps span { grid-row: auto; }
  .method-lineage { padding: 20px 18px; }
  .featured-story { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; border-left-width: 5px; }
  .featured-story-number { font-size: 3.4rem; }
  .featured-story-all { margin-left: 0; }
  .player-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-numbers div:nth-child(3) { border-left: 0; }
  .player-numbers div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .player-numbers div { padding: 14px 14px 12px; }
  .section-shell { width: min(100% - 24px, 1180px); }
  .header-inner { width: calc(100% - 24px); min-height: 76px; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 1.05rem; }
  .brand .eyebrow, .brand-subtitle { display: none; }
  .season-badge span { display: none; }
  .intro { padding-block: 46px 38px; }
  .intro h1 { font-size: clamp(3.2rem, 15vw, 5.2rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid article { border-right: 0; border-bottom: 0; }
  .stats-grid article:nth-child(odd) { border-right: 1px solid var(--border); }
  .stats-grid article:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .stats-grid article { min-height: 105px; padding: 17px; }
  .stats-grid strong { font-size: 2.2rem; }
  .database { width: 100%; padding: 24px 12px 30px; border-radius: 0; border-left: 0; border-right: 0; }
  .section-heading { padding-inline: 2px; align-items: start; flex-direction: column; gap: 8px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filters label:nth-child(4) { grid-column: 1 / -1; }
  .button-secondary { grid-column: 1 / -1; }
  .matches-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .matches-intro > p { text-align: left; }
  .match-archive-picker { padding: 10px; }
  .stories-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .stories-intro > p { text-align: left; }
  .story-filters { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 240px; }
  .match-group-header { align-items: flex-start; }
  .match-group.is-series .match-group-header { flex-direction: column; }
  .match-series-meta { justify-items: start; text-align: left; }
  .match-filters { grid-template-columns: 1fr 1fr; }
  .match-summary-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding: 19px 18px 15px; }
  .match-summary-grid article { min-height: 94px; padding: 17px 18px; }
  .match-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; min-height: 84px; padding: 12px 14px; }
  .match-result { grid-row: 1 / 3; width: 32px; height: 32px; }
  .match-score { grid-column: 3; grid-row: 1; min-width: 92px; font-size: 1.45rem; }
  .match-margin { grid-column: 3; grid-row: 2; }
  .match-note { grid-column: 2 / -1; }
  .table-wrap { display: none; }
  .player-cards { display: grid; gap: 9px; }
  .player-card { width: 100%; padding: 16px; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: var(--white); cursor: pointer; }
  .player-card h3 { margin: 0; font-size: 1rem; }
  .player-card p { margin: 7px 0 0; color: var(--muted); font-size: 0.84rem; }
  .player-card-stats { display: flex; gap: 18px; margin-top: 13px; }
  .player-card-stats span { display: grid; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
  .player-card-stats strong { color: var(--ink); font-size: 0.95rem; }
  .results-note { display: none; }
  .timeline-grid, .method-grid { grid-template-columns: 1fr; }
  .coach-card { padding: 18px; }
  .coach-card header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .coach-period { order: 0; text-align: left; }
  .coach-records { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 30px; }
  .footer-inner p { margin: 0; }
  dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); padding: 28px 14px 20px; border-radius: 12px; }
  .story-dialog { padding: 34px 18px 24px; }
  .story-dialog-header { padding-right: 34px; }
  .story-article p { font-size: 1.02rem; line-height: 1.72; }
  .story-navigation { align-items: stretch; flex-direction: column; }
  .story-navigation button { width: 100%; }
  .stats-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .season-stats-table { min-width: 2050px; font-size: 0.73rem; }
  .season-stats-table th, .season-stats-table td { padding: 8px 7px; }
  .stats-footnote { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 440px) {
  .match-archive-switch { grid-template-columns: 1fr; }
  .match-filters { grid-template-columns: 1fr; }
  .match-summary-grid { grid-template-columns: 1fr; }
  .match-summary-grid article { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .match-summary-grid article:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.stats-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

.stats-view-switch button {
  border: 1px solid var(--border, #ded8d5);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #161616);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  padding: .55rem .8rem;
}

.stats-view-switch button[aria-pressed="true"] {
  background: var(--red, #b30d11);
  border-color: var(--red, #b30d11);
  color: #fff;
}

.stats-coverage-note {
  border-left: 3px solid var(--red, #b30d11);
  color: var(--muted, #696462);
  font-size: .86rem;
  margin: .8rem 0 0;
  padding-left: .75rem;
}

/* Statistiche complete senza scorrimento orizzontale. */
#player-dialog { width: min(1800px, calc(100% - 24px)); }
.season-stats-wrap { max-height: none; overflow: visible; box-shadow: 0 8px 24px rgba(154, 12, 35, .06); }
.season-stats-table .stats-season-col { width: 7%; }
.season-stats-table .stats-phase-col { width: 11%; }
.season-stats-table th, .season-stats-table td { min-width: 0; padding: 8px 2px; white-space: normal; overflow-wrap: anywhere; }
.season-stats-table thead th { font-size: inherit; letter-spacing: 0; position: static; }
.season-stats-table tbody tr:not(.stats-team) > th:first-child,
.season-stats-table tbody tr:not(.stats-team) > th:nth-child(2),
.season-stats-table thead tr:last-child > th:first-child,
.season-stats-table thead tr:last-child > th:nth-child(2) { position: static; min-width: 0; box-shadow: none; }
.season-stats-table tbody tr:not(.stats-team).stats-season-0 { --stats-row-bg: #fff; }
.season-stats-table tbody tr:not(.stats-team).stats-season-1 { --stats-row-bg: #f7ebeb; }
.season-stats-table tbody tr.stats-season-start > * { border-top: 2px solid #ca9a9c; }
.season-stats-table tbody th:first-child { color: var(--red-dark); white-space: nowrap; }
.season-stats-table .stats-total > * { background: #8d0a0d; color: white; font-weight: 800; border-top: 3px solid #620709; border-right-color: #ac4446; padding-top: 11px; padding-bottom: 11px; }
.stats-help { font-size: .75rem; line-height: 1.5; }
@media (max-width: 760px) {
  .season-stats-table { min-width: 0; font-size: .75rem; }
  .season-stats-table colgroup, .season-stats-table thead { display: none; }
  .season-stats-table, .season-stats-table tbody, .season-stats-table tfoot { display: block; }
  .season-stats-table tr:not(.stats-team) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .season-stats-table tr:not(.stats-team) > th { grid-column: span 2; padding: 9px 4px; }
  .season-stats-table td { padding: 7px 3px; }
  .season-stats-table td::before { content: attr(data-label); display: block; font-size: .6rem; font-weight: 600; opacity: .8; margin-bottom: 4px; }
  .season-stats-table .stats-team { display: block; }
  .season-stats-table .stats-team th { display: block; }
  .stats-footnote { flex-wrap: wrap; }
}

.basic-season-stats { margin: 20px 0 28px; }
.basic-season-stats h4 { margin: 0 0 12px; color: var(--red-dark); }
.basic-stats-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.basic-stats-table th, .basic-stats-table td { width: 33.333%; padding: 9px 12px; text-align: center; border-bottom: 1px solid #e7c9ca; }
.basic-stats-table thead, .basic-stats-table tfoot { background: var(--red-dark); color: white; font-weight: 800; }
.basic-stats-table .basic-season-1 { background: #f7ebeb; }
.basic-stats-table tbody th { color: var(--red-dark); }

.player-coverage-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.8rem; line-height: 1.55; }


/* ---- Oltre le Barriere: banda di collegamento al sito e piede ---- */
.olb-band { background: var(--ink); color: #f1ece2; border-bottom: 3px solid var(--gold); }
.olb-inner { width: min(1240px, calc(100% - 32px)); margin-inline: auto; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 8px; }
.olb-logo { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; line-height: 1; }
.olb-wm { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; color: #f1ece2; }
.olb-claim { font-family: var(--mono); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.olb-links { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.olb-links a { color: #a39d92; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.olb-links a:hover { color: #f1ece2; border-color: var(--gold); }
.olb-links .olb-back { color: var(--gold); }
@media (max-width: 720px) {
  .olb-links a:not(.olb-back) { display: none; }
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-inner .footer-links a { color: #f1ece2; text-decoration: none; }
.footer-inner .footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #2a2f37; padding-block: 16px 22px; font-size: .78rem; color: #8d887f; }

/* Libre Baskerville è più largo del vecchio serif: spaziature e misure ricalibrate */
.intro h1 { letter-spacing: -0.03em; font-size: clamp(3rem, 6.2vw, 5.4rem); line-height: 0.98; }
.stats-grid article { padding: 22px 18px; }
.stats-grid strong { font-size: 2.3rem; font-weight: 400; letter-spacing: -0.01em; }
.stats-grid span { letter-spacing: 0.06em; font-size: 0.8rem; }
.featured-story-number { letter-spacing: -0.03em; }
.featured-story h2, .matches-intro h3, .stories-intro h3, .stats-heading h3, .method-lineage h3 { letter-spacing: -0.015em; font-weight: 400; }
.story-card-copy strong { letter-spacing: -0.01em; font-weight: 400; }
.player-numbers dd { letter-spacing: -0.01em; font-weight: 400; }
.story-dialog h2 { letter-spacing: -0.025em; font-weight: 400; }
.credits-card h1 { letter-spacing: -0.03em; }
@media (max-width: 720px) {
  .intro h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .olb-inner { flex-wrap: nowrap; }
  .olb-wm { font-size: .95rem; }
}
.intro h1 { max-width: 880px; font-size: clamp(3rem, 5.6vw, 5rem); }
.featured-story h2, .story-dialog h2, .matches-intro h3, .stories-intro h3, .stats-heading h3 { line-height: 1.15; }
.story-card-copy strong { line-height: 1.25; }
@media (max-width: 720px) { .intro h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); } }
.intro h1 { font-size: clamp(3rem, 5vw, 4.4rem); }
@media (max-width: 720px) { .intro h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); } }

/* Testata senza logo: filetto rosso Olimpia accanto al nome */
.brand > span { border-left: 4px solid var(--red); padding-left: 14px; }
