.season-dashboard { padding: 56px 0; background: #f4f7fc; }
.dashboard-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.dashboard-eyebrow { color: #094ba2; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.dashboard-heading h2 { font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3rem); margin: 6px 0 0; }
.season-badge { border: 1px solid #d5e2f5; border-radius: 24px; padding: 8px 16px; color: #094ba2; font-weight: 600; background: #fff; }
.season-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary-card { background: #fff; border: 1px solid #e2e9f3; border-radius: 18px; padding: 22px; }
.summary-card.featured { background: linear-gradient(135deg, #094ba2, #063372); color: #fff; border-color: transparent; }
.summary-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.summary-top i { font-size: 1.2rem; opacity: .7; }
.summary-value { display: block; font-family: var(--font-title); font-size: 3rem; line-height: 1.2; margin-top: 12px; }
.summary-note { font-size: .85rem; opacity: .75; }
.performance-panel { background: #fff; border: 1px solid #e2e9f3; border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px #163c7010; min-width: 0; }
.chart-toolbar { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 18px; }
.chart-toolbar h3, .form-heading h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.chart-toolbar p, .form-heading p { color: #64748b; margin: 0; font-size: .95rem; }
.chart-range { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f0f4fa; }
.chart-range button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: #53647b; font-weight: 600; }
.chart-range button[aria-pressed="true"] { background: #094ba2; color: #fff; box-shadow: 0 3px 8px #094ba225; }
.chart-range button:focus-visible, .form-result:focus-visible { outline: 3px solid #72aaf2; outline-offset: 3px; }
.goals-legend { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 16px; font-size: .85rem; color: #53647b; }
.goals-legend span { display: inline-flex; align-items: center; gap: 8px; }
.goals-legend i { width: 10px; height: 10px; border-radius: 3px; background: #094ba2; }
.goals-legend .conceded { background: #94a3b8; }
.goals-scroll { overflow-x: auto; }
.goals-canvas { position: relative; height: 320px; }
.goals-canvas.full-season { min-width: 900px; }
.chart-caption { color: #64748b; font-size: .85rem; margin: 16px 0 0; }
.recent-form { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e9f3; }
.form-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.form-result { display: flex; align-items: center; flex-direction: column; gap: 6px; text-decoration: none; color: #334155; font-size: .8rem; text-align: center; }
.form-result strong { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
.form-result.win strong { background: #dcf5e8; color: #14653e; }
.form-result.draw strong { background: #edf1f6; color: #475569; }
.form-result.loss strong { background: #fee7e7; color: #a52828; }
.form-result small { color: #64748b; }
.results-details { margin-top: 24px; font-size: .9rem; }
.results-details summary { cursor: pointer; padding: 12px 0; color: #094ba2; font-weight: 600; }
.results-details table { min-width: 520px; }

/* Page-wide visual treatment, isolated from the other club pages. */
main .inner-hero {
  min-height: 0;
  padding: 38px 0;
  background-image: linear-gradient(110deg, #071c3cef, #094ba2c9), url('../img/hero.png');
  border-bottom: 0;
}
main .inner-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.25rem) !important;
  line-height: 1.15;
  letter-spacing: .5px;
}
main .inner-hero h1 .text-primary { color: #aad2ff !important; }
.season-linker-btn {
  border: 1px solid #d5e2f5;
  border-radius: 12px;
  padding: 11px 24px;
  color: #094ba2;
  background: #f4f7fc;
  font-size: 1.2rem;
}
.season-linker-btn:hover, .season-linker-btn:focus-visible {
  background: #094ba2;
  border-color: #094ba2;
  color: white;
}
.season-summary { gap: 20px; }
.summary-card {
  padding: 26px;
  box-shadow: 0 8px 24px #163c7009;
}
.summary-top { align-items: flex-start; }
.summary-top i {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef4ff;
  color: #094ba2;
  opacity: 1;
}
.featured .summary-top i { color: #fff; background: #ffffff1f; }
.summary-value { font-size: 3.6rem; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.summary-note { display: block; margin-top: 6px; line-height: 1.5; }
main .section-header h2 { font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3rem); }
main .section-header .surtitle { color: #094ba2; justify-content: center; font-weight: 600; }
main .section-header .surtitle::before { background: #094ba2; width: 28px; }
.best-11-box {
  background: linear-gradient(120deg, #082e64, #094ba2);
  border-radius: 18px;
  border-left: 4px solid #eac66c;
}
main .table-container {
  height: 100%;
  padding: 26px;
  border: 1px solid #e2e9f3;
  border-top: 3px solid #094ba2;
  border-radius: 20px;
  box-shadow: 0 10px 30px #163c7010;
}
.table-container.cards-border { border-top-color: #094ba2; }
.table-container > .d-flex > .d-inline-flex {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: #eef4ff !important;
  color: #094ba2 !important;
  border-radius: 14px !important;
}
.table-container h3 { line-height: 1.2; color: #163454; }
.table-container h3 .small { line-height: 1.5; }
main .table-responsive { border-radius: 14px; scrollbar-width: thin; scrollbar-color: #b3c7e4 #f4f7fc; }
main .table-responsive:focus-visible { outline: 3px solid #72aaf2; outline-offset: 4px; }
main .ranking-wrap {
  padding: 8px !important;
  border: 1px solid #e2e9f3;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px #163c7010 !important;
}
main .table {
  --bs-table-color: #334155;
  --bs-table-bg: #fff;
  --bs-table-hover-bg: #edf4ff;
  --bs-table-hover-color: #163454;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
main .table > :not(caption) > * > * { padding: 14px 12px; border-bottom-color: #e8eef6; }
main .table thead th {
  --bs-table-bg: #edf3fb;
  --bs-table-color: #24476e;
  background: #edf3fb;
  color: #24476e;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .35px;
  vertical-align: middle;
}
main .table tbody tr { --row-surface: #fff; }
main .table tbody tr:nth-child(even) { --row-surface: #f6f9fd; }
main .table tbody td { --bs-table-bg: var(--row-surface); background-color: var(--row-surface); }
main .player-table th, main .player-table td { text-align: right !important; }
main .player-table th:first-child, main .player-table td:first-child { text-align: center !important; }
main .player-table th:nth-child(2), main .player-table td:nth-child(2) { text-align: left !important; }
main .player-table tbody td:nth-child(2) { font-weight: 600; }
main .ranking-table tbody tr:nth-child(1) { --rank-color: #976b13; --rank-surface: #fff2ce; }
main .ranking-table tbody tr:nth-child(2) { --rank-color: #556578; --rank-surface: #e9edf3; }
main .ranking-table tbody tr:nth-child(3) { --rank-color: #945632; --rank-surface: #f9e6d9; }
main .ranking-table tbody tr:nth-child(-n+3) td:first-child {
  color: var(--rank-color);
  font-weight: 700;
  background: radial-gradient(circle at center, var(--rank-surface) 17px, transparent 18px), var(--row-surface);
}
main .ranking-table tbody tr:nth-child(-n+3) td:nth-child(2) {
  border-left: 3px solid var(--rank-color);
}
main .table tbody tr.table-light td { --row-surface: #edf3fb; color: #094ba2; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .summary-card { transition: transform .2s ease, box-shadow .2s ease; }
  .summary-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px #163c7014; }
}
@media (max-width: 767.98px) {
  main .inner-hero { padding: 26px 0; }
  .season-linker-btn { padding: 10px 14px; font-size: 1.05rem; }
  .summary-top { font-size: .9rem; flex-wrap: wrap; }
  .summary-top i { flex-basis: 32px; height: 32px; font-size: 1rem; border-radius: 10px; }
  main .table-container { padding: 18px 14px; }
  main .player-table { min-width: 450px; }
  main .ranking-table { min-width: 850px; }
  main .player-table th:nth-child(2), main .player-table td:nth-child(2) {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 145px;
    max-width: 160px;
    box-shadow: 5px 0 8px -6px #163c7070;
  }
  main .player-table thead th:nth-child(2) { z-index: 2; }
  main .table > :not(caption) > * > * { padding: 12px 10px; }
  .season-dashboard { padding: 36px 0; }
  .season-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .summary-card { padding: 16px; border-radius: 14px; }
  .summary-value { font-size: 2.5rem; }
  .performance-panel { padding: 18px 14px; }
  .chart-range { width: 100%; }
  .chart-range button { flex: 1; font-size: .9rem; }
  .goals-canvas { height: 280px; }
  .recent-form { grid-template-columns: 1fr; gap: 18px; }
  .form-results { gap: 6px; }
}
