.league-stats { padding-block: 32px 24px; }
.league-stats h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.14; }
.league-stats h1 span { color: #87364b; white-space: nowrap; }
.stats-source, .stats-status, .stats-note { color: var(--muted); }
.stats-views, .stats-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px; }
.stats-views button, .stats-controls select { border: 1px solid #b9c3d3; background: #fff; border-radius: 8px; padding: 9px 14px; }
.stats-views button { font-weight: 700; }
.stats-views button[aria-pressed="true"] { border-color: #15223d; background: #15223d; color: #fff; }
.stats-controls label { display: grid; gap: 6px; font-weight: 700; }
.stats-controls label[hidden] { display: none; }
.stats-controls select { min-width: 155px; max-width: 100%; }
.stats-status { min-height: 1.5em; margin-bottom: 10px; }
.stats-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stats-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .875rem; }
.stats-table caption { padding: 12px; text-align: left; font-weight: 750; font-size: 1rem; background: #15223d; color: #fff; }
.stats-table th, .stats-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; }
.stats-table thead th { background: #e8edf5; }
.stats-table tbody td, .stats-table th[aria-sort] { white-space: nowrap; }
.stats-table tbody td.stats-team { color: var(--muted); white-space: normal; }
.stats-table tbody tr:nth-child(even) { background: #f5f7fb; }
.stats-table tbody tr.stats-losc { background: #fce9ee; }
.stats-table tbody tr:last-child > * { border-bottom: 0; }
.stats-table th[aria-sort], .stats-emphasis { font-weight: 800; }
.stats-note { font-size: .875rem; margin-block: 10px; }
@media (max-width: 620px) {
  .nav nav { flex-wrap: wrap; justify-content: flex-end; }
  .stats-table th, .stats-table td { padding-inline: 8px; }
}
