.dogues-stats { padding-block: clamp(1.3rem, 4vw, 3rem); }
.stats-intro { border-bottom: 1px solid var(--line); padding-bottom: 1.15rem; }
.stats-intro h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.05em; margin: .35rem 0 .8rem; }
.stats-season-label { color: #98243a; font-weight: 800; margin: 0; }
.stats-tabs, .stats-refresh { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stats-tabs a {
  padding: .5rem .7rem; border: 1px solid var(--line); border-radius: .4rem; background: white;
  color: var(--ink); font-size: .875rem; font-weight: 740; text-decoration: none;
}
.stats-tabs a[aria-current], .stats-tabs a:hover { background: #17253f; color: white; }
.stats-refresh { margin-top: .75rem; color: var(--muted); }
.dogues-stats section { margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.dogues-stats section h2 { margin-bottom: .85rem; }
.stats-muted, .stats-footnote { color: var(--muted); font-size: .875rem; }
.stats-footnote { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.stats-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: .8rem; }
.stats-controls label { display: grid; gap: .3rem; font-weight: 720; font-size: .875rem; }
.stats-controls input, .stats-controls select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .4rem; background: white; color: var(--ink); font: inherit; }
.stats-scroll { overflow-x: auto; margin-bottom: .7rem; border: 1px solid var(--line); border-radius: .55rem; }
.stats-table { border-collapse: collapse; width: 100%; min-width: 38rem; background: white; font-size: .875rem; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: .55rem .65rem; text-align: center; }
.stats-table th:first-child { text-align: left; }
.stats-table thead { color: white; background: #17253f; }
.stats-table thead tr + tr { background: #30415e; }
.stats-table tbody tr:nth-child(even) { background: #eef1f6; }
.stats-table tbody th a, .stats-table tbody td a { color: #872539; }
.stats-table tfoot { background: #e2e8f2; }
.stats-table td small { display: block; color: var(--muted); white-space: nowrap; }
#stats-player-table .stats-table { min-width: 52rem; }
#stats-player-table .stats-table th:first-child { position: sticky; left: 0; background: inherit; }
#stats-player-table tbody tr { background: white; }
#stats-player-table tbody tr:nth-child(even) { background: #eef1f6; }
.stats-total { background: #f9e7ec; font-weight: 800; }
.metric-goals, b.outcome-V { color: #14603b; font-weight: 780; }
.metric-yellow { color: #765100; font-weight: 780; }
.metric-red, b.outcome-D { color: #9a2036; font-weight: 780; }
.stats-podium-row { display: grid; grid-template-columns: minmax(9rem, .55fr) 2.45fr; align-items: start; gap: .6rem; margin-top: .6rem; }
.stats-podium-row h3 { margin: .45rem 0; font-size: .875rem; }
.stats-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.stats-podium li { display: grid; gap: .25rem; text-align: center; padding: .7rem .5rem; border-radius: .55rem; background: #f4ebd7; }
.stats-podium li:nth-child(2) { background: #e5eaf2; }
.stats-podium li:nth-child(3) { background: #f5e8e2; }
.stats-podium strong { color: #693e24; font-size: clamp(.9rem,2.5vw,1.2rem); }
.stats-podium span { font-size: .875rem; overflow-wrap: anywhere; }
.stats-outcomes { display: flex; gap: 1rem; flex-wrap: wrap; }
.stats-match-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; padding: 0; list-style: none; }
.stats-match-grid li { padding: .65rem .4rem; text-align: center; border-radius: .5rem; background: #e8edf5; }
.stats-match-grid li.outcome-V { background: #e1f2e8; }
.stats-match-grid li.outcome-D { background: #f8e5e9; }
.stats-match-grid small, .stats-match-grid span { display: block; }
.stats-match-grid span { margin: .25rem 0; font-size: .875rem; font-weight: 720; }
.stats-coach { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr; align-items: center; gap: 1rem; }
.stats-coach img { width: 100%; height: auto; border-radius: .6rem; background: #ebeff6; }
.stats-coach-role { background: #17253f; color: white; padding: .5rem .7rem; font-weight: 750; }
.stats-coach dl div { display: flex; gap: .6rem; flex-wrap: wrap; margin: .3rem 0; }
.stats-coach dd { margin: 0; font-weight: 750; }
.stats-card-count { display: inline-grid; place-items: center; min-width: 1.65rem; min-height: 1.5rem; padding: .1rem; margin-inline: .14rem; border-radius: .22rem; font-weight: 800; }
.yellow-card { background: #f7e4a4; color: #5c4100; }
.red-card { background: #a5233e; color: white; }
@media (max-width: 740px) {
  .stats-match-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-podium-row { grid-template-columns: 1fr; }
}
@media (max-width: 425px) { .stats-podium { grid-template-columns: 1fr; } }

#stats-print { align-self: end; min-height: 2.3rem; }
@media print {
  @page { size: landscape; margin: 10mm; }
  body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .dogues-stats { width: 100%; padding: 0; }
  .dogues-stats .stats-tabs, .stats-refresh, .stats-controls, .stats-footnote, .footer { display: none; }
  .stats-scroll { overflow: visible; }
  #stats-player-table .stats-table { min-width: 0; font-size: 8pt; }
  .stats-table th, .stats-table td { padding: .3rem; }
  .stats-table tr { break-inside: avoid; }
  #stats-player-table .stats-table th:first-child { position: static; }
}
