/* Page components for program, season, game and player pages. */

.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 75ch; }
.nowrap { white-space: nowrap; }
.sub-h { font: 700 18px/1.3 var(--font-display); margin: 26px 0 10px; }
.callout { background: var(--paper); border-left: 4px solid var(--p-accent, var(--brass-bright)); padding: 12px 16px; margin: 22px 0 0; }

/* Team badge */
.team { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; color: inherit; }
a.team:hover span { text-decoration: underline; }
.team .tlogo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* Stars */
.stars { color: var(--p-accent-text, var(--brass)); letter-spacing: 1px; white-space: nowrap; }
.stars .dim { color: var(--rule); }

/* Pager (prev / all / next) */
.pager { display: flex; justify-content: space-between; gap: 10px; padding: 18px 0 0; font: 600 14px var(--font-ui); }
.pager a { color: var(--p-primary, var(--ink)); text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* Latest season card on program overview */
.latest { background: var(--paper); border-radius: var(--p-radius); padding: 20px; border: 1px solid var(--rule); }
.latest-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.big-record { font-family: var(--p-font-display); font-weight: var(--p-display-weight); font-style: var(--p-display-style); font-size: clamp(48px, 8vw, 72px); line-height: .9; color: var(--p-primary); font-variant-numeric: tabular-nums; }
.latest-line { font-size: 15px; }
.latest-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

/* Leader cards */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.leader { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--p-radius); padding: 12px 14px; }
.latest .leader { background: var(--p-surface); border-color: transparent; }
.lcat { font: 700 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--p-accent-text, var(--brass)); }
.lname { font-weight: 600; margin: 6px 0 2px; line-height: 1.3; }
.lname a { text-decoration: none; }
.lname a:hover { text-decoration: underline; }
.lval { font-family: var(--p-font-display); font-weight: var(--p-display-weight); font-style: var(--p-display-style); font-size: 26px; color: var(--p-primary); font-variant-numeric: tabular-nums; }
.lval span { font: 600 12px var(--font-ui); color: var(--muted); }

/* Program greats */
.greats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.great { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--p-radius); padding: 12px 14px; }
.gname { font: 700 17px/1.3 var(--font-display); }
.gname a { text-decoration: none; }
.gfacts { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 13px; color: var(--ink-2); align-items: center; }

/* Season cards */
.season-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.season-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--p-radius); padding: 12px 14px; }
.season-card:hover { border-color: var(--p-primary); }
.season-card.champ { background: var(--p-primary); color: var(--p-on-primary); border-color: var(--p-primary); }
.sc-year { font: 700 12px var(--font-ui); letter-spacing: .1em; opacity: .8; }
.sc-rec { font-family: var(--p-font-display); font-weight: var(--p-display-weight); font-style: var(--p-display-style); font-size: 30px; line-height: 1.1; }
.sc-note { font-size: 12px; opacity: .85; }

/* Leader tables grid */
.leader-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lt h3 { font: 700 18px/1.2 var(--font-display); margin: 0 0 6px; }
.lt-best { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

/* Title cards */
.title-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.title-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--p-radius); background: var(--paper); border: 1px solid var(--rule); text-decoration: none; color: inherit; clip-path: var(--p-shape); }
.title-card.won { background: var(--p-primary); color: var(--p-on-primary); border-color: transparent; }
.title-card.won .team { color: inherit; }
.tc-year { font-family: var(--p-font-display); font-weight: var(--p-display-weight); font-style: var(--p-display-style); font-size: 36px; line-height: 1; }
.tc-res { font: 700 12px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.title-card.won .tc-res { color: var(--p-accent); }
.tc-score { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Tables: extras */
table.data tr.post td { background: color-mix(in srgb, var(--p-primary, var(--ink)) 4%, white); }
table.data tr.total th, table.data tr.total td { font-weight: 700; border-top: 2px solid var(--p-primary, var(--ink)); }
.site-mark { display: inline-block; min-width: 1.6em; color: var(--muted); font-size: 12px; }
details.class-list { margin-top: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
details.class-list summary { padding: 12px 14px; cursor: pointer; }
details.class-list .table-wrap { border: 0; border-top: 1px solid var(--rule); border-radius: 0; }

/* Playoff path */
.bracket-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bracket-path li { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--win); border-radius: 4px; padding: 10px 14px; }
.bracket-path li.lost { border-left-color: var(--loss); }
.bracket-path .round { font: 700 12px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .bracket-path li { grid-template-columns: 1fr auto; } .bracket-path .round { grid-column: 1 / -1; } }

/* Depth chart */
.depth { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.depth-unit { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--p-radius); padding: 14px 16px; }
.depth-unit h3 { font: 700 13px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--p-accent-text, var(--brass)); margin: 0 0 8px; }
.depth-unit dl { margin: 0; }
.drow { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.drow:last-child { border-bottom: 0; }
.drow dt { font: 700 12px/1.6 var(--font-ui); color: var(--muted); }
.drow dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.dp { color: var(--muted); }
.dp a { color: inherit; text-decoration: none; }
.dp a:hover { text-decoration: underline; }
.dp.starter { color: var(--ink); font-weight: 600; }
.dp b { font-size: 12px; color: var(--p-primary); font-variant-numeric: tabular-nums; }

.staff { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.staff b { display: inline-block; min-width: 2.4em; }

/* Scoreboard (game pages) */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--p-radius); padding: 24px clamp(12px, 3vw, 32px); margin-top: 20px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: .78; }
.sb-team.win { opacity: 1; }
.sb-team img { width: 72px; height: 72px; object-fit: contain; }
.sb-noimg { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bone); font-weight: 700; font-size: 13px; }
.sb-name { font-weight: 600; }
.sb-score { font-family: var(--p-font-display); font-weight: var(--p-display-weight); font-style: var(--p-display-style); font-size: clamp(48px, 9vw, 80px); line-height: 1; font-variant-numeric: tabular-nums; }
.sb-team.win .sb-score { color: var(--p-primary); }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; text-align: center; }
.sb-res { font: 700 13px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin-top: 16px; }
.facts > div { background: var(--paper); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.facts .k { font: 700 11px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-weight: 600; }

/* Player pages */
.player-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.player-head.program-band { background: var(--p-primary); color: var(--p-on-primary); border-bottom: 0; }
.player-head:not(.program-band) .wrap { padding-top: 36px; padding-bottom: 28px; }
.player-head .wrap { display: flex; align-items: center; gap: 20px; }
.player-head h1 { font: 700 clamp(34px, 6vw, 60px)/1 var(--font-display); margin: 8px 0 6px; }
.player-head.program-band h1 { font-family: var(--p-font-display); font-weight: var(--p-display-weight); text-transform: var(--p-display-case); font-style: var(--p-display-style); letter-spacing: var(--p-display-tracking); }
.player-head .eyebrow { font: 600 12px/1.5 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.player-head .eyebrow .team { display: inline; }
.player-head:not(.program-band) .eyebrow { color: var(--brass); }
.player-head .sub { font-size: 15px; opacity: .9; }
.journey { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.spark-wrap { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--p-radius); padding: 16px; max-width: 520px; }
.spark { width: 100%; height: auto; overflow: visible; }
.spark path { fill: none; stroke: var(--p-primary, var(--ink)); stroke-width: 3; stroke-linejoin: round; }
.spark circle { fill: var(--paper); stroke: var(--p-primary, var(--ink)); stroke-width: 3; }
.spark text { font: 700 11px var(--font-ui); fill: var(--ink); }
.spark text.yr { font-weight: 500; fill: var(--muted); }

/* Player index filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 26px 0 6px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--font-ui); color: var(--muted); }
.filters input[type=search], .filters select { font: 15px var(--font-ui); padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 170px; }
.filters .f-search { flex: 1 1 240px; }
.filters .f-search input { width: 100%; }
.filters .f-check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); padding-bottom: 8px; }
#players tbody tr[hidden] { display: none; }
.res-w, .res-l { white-space: nowrap; }
@media (max-width: 560px) {
  .leader { padding: 10px 12px; }
  .lval { font-size: 22px; }
  table.data { font-size: 13px; }
  table.data td, table.data th, table.data tbody th { padding: 8px 9px; }
}
.hof-pill { text-decoration: none; display: inline-block; margin: 2px 0 8px; }

/* ---------- Highlight clips */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.clip { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.clip-media { background: #000; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.clip figcaption { padding: 12px 14px 14px; }
.clip-what { margin: 0; font: 600 16px/1.35 var(--font-ui); }
.clip-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.clip-meta a, .clip-players a { color: inherit; text-underline-offset: 3px; }
.clip-players { margin: 6px 0 0; font-size: 13px; }
@media (max-width: 400px) { .clip-grid { grid-template-columns: 1fr; } }
