/* VERSION: v0.2.7 */
/* v0.2.7 — 2026-09-04 — MINT SEAM: --accent-pos emerald (00d97a) → mint (5DE0AC), with -dim/-border, nine hard-coded emerald rgba sites and the .pd fallback → the mint equivalents; the seven nfl.css pages join the site-wide mint (brand v0.1.0). Also records the 2026-09-03 v0.16.71 edit (.brand-mark → 40px img box) that landed without a header bump. Residual: command-chrome-v0.1.8.css line 190 keeps one 6.5%-alpha emerald gradient tint (immutable filename; folds into that file's next bump). */
/* v0.2.6.5 — 2026-09 — game-row deep link: a.cell-teams-link (NFL v0.2.75 / roadmap P1.4) — header bumped by the NFL architect track without a history line; recorded here from the file's own comment block. */
/* v0.2.6.4 — 2026-07-05 — Week Command landing treatment support (NFL v0.2.15.1). */
/* v0.2.6.3 — 2026-06-01 — .pt-* primetime filter on schedule (TNF/SNF/MNF pills, mirrors .season-pill; NFL v0.2.15) */
/* nfl.css — NFL frontend shared styles
 * v0.2.6.2 — 2026-05-31 — .pd-ngs-pro-* PRO NEXT GEN tier on player-detail (v0.2.14)
 * v0.2.6.1 — 2026-05-31 — .cell-ref-link: referee cell deep-links to ref.html (NFL v0.2.13.4)
 * v0.2.6 — 2026-05-29 — .pd-inj-* injury-timeline pane on player-detail (v0.2.12)
 * v0.2.5 — 2026-05-26 — TV column in schedule rows (NFL v0.4.17)
 * v0.2.0.1 — 2026-05-15 — styling alignment
 *
 * Design system lifted from NBA/staging/styles.css to match TitleTown's
 * "Props Terminal" aesthetic: dark editorial / data-first / monospace for
 * technical labels. Tokens are duplicated here for v0.2.0.1; v0.2.7 will
 * extract them to TitleTown/shared/tokens.css so both sports import from
 * a single source. Until then, NBA's styles.css is the canonical reference
 * — if you update colors there, mirror the changes here.
 */

/* ─── Tokens ──────────────────────────────────────────── */

:root {
  /* Core palette — near-black with paper warmth */
  --bg-base: #0a0a0b;
  --bg-elev-1: #111113;
  --bg-elev-2: #17171a;
  --bg-elev-3: #1f1f24;

  /* Text — warm near-white */
  --text-primary: #f5f5f0;
  --text-secondary: #a3a3a0;
  --text-tertiary: #6b6b68;
  --text-muted: #45454a;

  /* Accents — only two. Green for positive, red for negative */
  --accent-pos: #5DE0AC;
  --accent-pos-dim: rgba(93, 224, 172, 0.12);
  --accent-pos-border: rgba(93, 224, 172, 0.24);
  --accent-neg: #ff4d4d;
  --accent-neg-dim: rgba(255, 77, 77, 0.12);

  /* Warning / scaffold accent */
  --accent-warn: #f5a623;
  --accent-warn-dim: rgba(245, 166, 35, 0.12);
  --accent-warn-border: rgba(245, 166, 35, 0.24);

  /* Structural */
  --border: rgba(255, 255, 245, 0.08);
  --border-strong: rgba(255, 255, 245, 0.16);
  --divider: rgba(255, 255, 245, 0.04);

  /* Fonts */
  --font-display: 'Outfit', 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Bottom nav height */
  --nav-height: 64px;
}

/* ─── Reset ───────────────────────────────────────────── */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top right, rgba(93, 224, 172, 0.025), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(255, 255, 255, 0.015), transparent 50%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ─── Top bar ─────────────────────────────────────────── */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

.status-block {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-item-dot {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
}

.status-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
}

.status-value {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.status-dot.scaffold {
  background: var(--accent-warn);
}

.status-dot.active {
  background: var(--accent-pos);
}

.status-dot.error {
  background: var(--accent-neg);
}

/* ─── Main ─────────────────────────────────────────────── */

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px calc(var(--nav-height) + 48px);
  position: relative;
  z-index: 2;
}

/* ─── Page header ─────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.page-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-top: 8px;
  max-width: 720px;
  line-height: 1.5;
}

/* ─── Stub cards (v0.2.x scaffold-only) ───────────────── */

.stub-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.stub-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  padding: 0;
}

.stub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
}

.stub-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stub-card-ver {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--accent-warn);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--accent-warn-border);
  background: var(--accent-warn-dim);
}

.stub-card-body {
  padding: 18px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stub-card-body p { margin-bottom: 8px; }
.stub-card-body p:last-child { margin-bottom: 0; }

.stub-card-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.stub-card-body li {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.stub-card-body code {
  background: var(--bg-elev-3);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.stub-card-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── Bottom nav ───────────────────────────────────────── */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--border-strong);
  height: var(--nav-height);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.bottom-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bottom-nav-inner::-webkit-scrollbar { display: none; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  margin-right: 4px;
  white-space: nowrap;
  line-height: 1;
  padding: 4px 10px 4px 0;
}

.nav-group-items {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-elev-2);
}

.nav-item-active {
  color: var(--accent-pos);
  background: var(--accent-pos-dim);
  border-color: var(--accent-pos-border);
  font-weight: 600;
}

.nav-item-active:hover {
  color: var(--accent-pos);
  background: var(--accent-pos-dim);
}

.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Utility ──────────────────────────────────────────── */

.mono { font-family: var(--font-mono); }
.dim { color: var(--text-tertiary); }
.accent { color: var(--accent-pos); }
.warn { color: var(--accent-warn); }

/* ─── Schedule page (v0.2.1) ───────────────────────────── */

.sched-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.season-pill-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.season-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.season-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.season-pill:hover {
  color: var(--text-primary);
  background: var(--bg-elev-2);
}

.season-pill-active {
  color: var(--accent-pos);
  background: var(--accent-pos-dim);
  border-color: var(--accent-pos-border);
  font-weight: 600;
}

.season-older {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  padding: 6px 10px;
  margin-left: 8px;
}

.sched-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sched-status-loading { color: var(--text-secondary); }
.sched-status-ok { color: var(--text-tertiary); }
.sched-status-err { color: var(--accent-neg); }

.sched-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sched-empty,
.sched-error {
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  text-align: center;
  color: var(--text-secondary);
}

.sched-error-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-neg);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sched-error-msg {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.sched-error-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sched-error code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-elev-3);
  padding: 1px 6px;
  color: var(--text-secondary);
}

/* ─── Week section ─────────────────────────────────────── */

.week-section {
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
}

.week-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
}

.week-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.week-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-list {
  display: flex;
  flex-direction: column;
}

.game-row {
  display: grid;
  /* v0.2.5: 6 cols (was 5) — TV slot inserted between result and ref.
     70px is enough for "NBC", "FOX", "Netflix", "ESPN/ABC", etc. */
  grid-template-columns: 180px 1fr 140px 70px 1fr 1.2fr;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--divider);
  transition: background 0.12s ease;
}

.game-row:last-child {
  border-bottom: none;
}

.game-row:hover {
  background: var(--bg-elev-2);
}

.game-row-upcoming {
  color: var(--text-secondary);
}

.cell-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cell-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.team {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.at-sep {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 12px;
}

.loc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-warn);
  letter-spacing: 0.1em;
  padding: 1px 5px;
  border: 1px solid var(--accent-warn-border);
  margin-left: 2px;
}

.cell-result {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.score-num { display: inline-block; padding: 0 2px; }
.score-win { color: var(--accent-pos); }
.score-loss { color: var(--text-tertiary); }
.score-sep { color: var(--text-muted); margin: 0 4px; }

.ot-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-warn);
  letter-spacing: 0.1em;
  padding: 1px 5px;
  border: 1px solid var(--accent-warn-border);
  margin-left: 6px;
}

.line-pre {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
}

.line-pre-empty {
  color: var(--text-muted);
}

.cell-ref,
.cell-stadium {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-stadium {
  color: var(--text-tertiary);
}

/* v0.2.6.1: referee cell deep-links to the per-official ref.html page.
   Stays in the muted cell-ref color at rest — a permanent underline on
   every row would be noisy in a dense schedule table — and accents +
   underlines only on hover/focus. Reuses the --accent-pos link hue. */
.cell-ref-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.12s ease;
}
.cell-ref-link:hover,
.cell-ref-link:focus-visible {
  color: var(--accent-pos);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* v0.2.5: TV/broadcast column. Center-aligned mono — matches the
   "tag-like" treatment of short network identifiers (NBC, FOX, ESPN/ABC).
   Slightly dimmer than cell-ref to keep referee as the dominant
   personnel callout. */
.cell-tv {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .game-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 16px;
  }
  .cell-time { grid-column: 1 / 3; font-size: 10px; }
  .cell-teams { grid-column: 1 / 2; }
  .cell-result { grid-column: 2 / 3; text-align: right; }
  /* v0.2.5: TV inline with ref/stadium on full-width below the matchup row. */
  .cell-tv,
  .cell-ref,
  .cell-stadium { grid-column: 1 / 3; font-size: 11px; text-align: left; }
}

/* ─── Inline cross-page links (v0.2.1.1) ───────────────── */

.inline-link {
  color: var(--accent-pos);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-pos-border);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.inline-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ─── Teams page (v0.2.3.1) ────────────────────────────
   2-column AFC/NFC grid, modeled on ESPN's NFL Teams directory.
   Each card: logo on left, team name + abbr · record · rank on right.
   Stacks to single column at <900px. */

.teams-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 16px;
}

.conference-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.division-section {
  display: flex;
  flex-direction: column;
}

.division-header {
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 4px;
}

.division-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
}

.team-list {
  display: flex;
  flex-direction: column;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--divider);
  min-width: 0;
}

.team-card:last-child {
  border-bottom: none;
}

.team-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 245, 0.04));
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.team-abbr {
  color: var(--text-tertiary);
  font-weight: 600;
}

.meta-sep {
  color: var(--text-muted);
}

.team-record {
  color: var(--text-secondary);
  font-weight: 500;
}

.team-record-good  { color: var(--accent-pos); }
.team-record-bad   { color: var(--text-tertiary); }
.team-record-empty { color: var(--text-muted); }

.team-rank {
  color: var(--text-tertiary);
}

.team-rank-leader {
  color: var(--accent-pos);
  font-weight: 600;
}

/* Mobile: single column, slightly tighter */
@media (max-width: 900px) {
  .teams-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .team-logo {
    width: 30px;
    height: 30px;
  }
  .team-name {
    font-size: 14px;
  }
  .team-meta {
    font-size: 10px;
  }
}

/* ─── Players page (v0.2.4) ────────────────────────────
   Search input + popular/matches list. ESPN-CDN team logos, click-through
   to player-detail.html via PLAYER_ID query param. */

.players-search-container {
  position: relative;
  margin: 32px 0 20px;
  max-width: 600px;
}

.players-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  pointer-events: none;
}

.players-search-input {
  width: 100%;
  padding: 13px 18px 13px 42px;
  background: rgba(255, 255, 245, 0.02);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.players-search-input::placeholder {
  color: var(--text-muted);
}

.players-search-input:focus {
  border-color: var(--accent-pos);
  background: rgba(255, 255, 245, 0.03);
}

.players-list-section {
  margin-top: 24px;
  max-width: 720px;
}

.players-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 4px;
}

.players-list-count {
  color: var(--text-tertiary);
  font-weight: 500;
}

.player-row {
  display: grid;
  grid-template-columns: 32px 1fr 60px 60px;
  gap: 16px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background 0.1s ease;
  text-decoration: none;
  color: inherit;
}

.player-row:hover {
  background: rgba(255, 255, 245, 0.02);
}

.player-row:last-child {
  border-bottom: none;
}

.player-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.player-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-team {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.player-position {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.empty-state {
  padding: 40px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .player-row {
    grid-template-columns: 28px 1fr 50px 50px;
    gap: 12px;
  }
  .player-logo {
    width: 26px;
    height: 26px;
  }
  .player-name {
    font-size: 14px;
  }
}

/* ─── Player Detail page (v0.2.5) ──────────────────────
   Header card · tabs · stat cards · sub-tabs · career tables · glossary */

.pd-header {
  margin: 16px 0 0; padding: 24px 24px 20px;
  background: var(--bg-card, rgba(255, 255, 245, 0.02));
  border: 1px solid var(--border-strong);
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 24px; align-items: flex-start;
}
.pd-headshot {
  width: 96px; height: 96px;
  background: rgba(255, 255, 245, 0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pd-headshot img { width: 100%; height: 100%; object-fit: cover; }
.pd-headshot svg { width: 70px; height: 70px; opacity: 0.4; }
.pd-identity { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-name {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--text-primary);
}
.pd-meta-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
}
.pd-meta-tag {
  padding: 3px 8px; border: 1px solid var(--border-strong);
  font-size: 11px; color: var(--text-primary); letter-spacing: 0.04em;
}
.pd-meta-tag-pos {
  background: rgba(93, 224, 172, 0.08);
  border-color: rgba(93, 224, 172, 0.32);
  color: var(--accent-pos);
}
.pd-bio-row {
  margin-top: 6px; display: flex; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
}
.pd-bio-item { padding-right: 14px; border-right: 1px solid var(--divider); margin-right: 14px; }
.pd-bio-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.pd-bio-label { color: var(--text-muted); margin-right: 6px; }
.pd-bio-value { color: var(--text-secondary); }

.pd-team-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pd-team-logo { width: 48px; height: 48px; object-fit: contain; }
.pd-team-logo-fallback {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 245, 0.04); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
}
.pd-team-abbr {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-tertiary); letter-spacing: 0.08em;
}

/* Tabs (top-level) */
.pd-tabs {
  margin: 24px 0 0; display: flex; gap: 0;
  border-bottom: 1px solid var(--border-strong);
}
.pd-tab {
  padding: 12px 18px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-tertiary); letter-spacing: 0.14em;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  background: none; border-top: none; border-left: none; border-right: none;
}
.pd-tab:hover { color: var(--text-secondary); }
.pd-tab-active { color: var(--accent-pos); border-bottom-color: var(--accent-pos); }
.pd-pane { display: none; padding: 24px 0; }
.pd-pane-active { display: block; }

/* Section labels */
.pd-section-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
  letter-spacing: 0.16em; margin: 0 0 14px 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-strong);
  display: flex; justify-content: space-between; align-items: baseline;
}
.pd-section-label-meta { color: var(--text-tertiary); font-weight: 500; }

/* Stat summary cards */
.pd-stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 32px;
}
.pd-stat-card {
  background: rgba(255, 255, 245, 0.02);
  border: 1px solid var(--border); padding: 14px 16px;
}
.pd-stat-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-tertiary); letter-spacing: 0.14em; margin-bottom: 6px;
}
.pd-stat-value {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--text-primary);
}
.pd-stat-sub {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-tertiary); margin-top: 4px; letter-spacing: 0.04em;
}

/* Sub-tabs (within Overview's games section) */
.pd-subtabs {
  display: flex; gap: 4px; margin: 0 0 12px 0;
}
.pd-subtab {
  padding: 8px 14px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--text-tertiary);
  background: none; border: 1px solid var(--border);
  cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
}
.pd-subtab:hover { color: var(--text-secondary); }
.pd-subtab-active {
  color: var(--accent-pos); border-color: rgba(93, 224, 172, 0.4);
  background: rgba(93, 224, 172, 0.06);
}

/* REG / POST toggle (Stats pane) */
.pd-toggle {
  display: inline-flex; border: 1px solid var(--border-strong);
}
.pd-toggle-btn {
  padding: 5px 14px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--text-tertiary);
  background: none; border: none; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.pd-toggle-btn:hover { color: var(--text-secondary); }
.pd-toggle-btn-active {
  color: var(--accent-pos); background: rgba(93, 224, 172, 0.08);
}

/* Tables (games + career) */
.pd-table-wrap { margin-bottom: 32px; }
.pd-table-scroll { overflow-x: auto; }
.pd-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 12px; min-width: 640px;
}
.pd-table th {
  text-align: left; padding: 10px 14px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--text-tertiary); font-size: 10px;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(255, 255, 245, 0.01);
  white-space: nowrap;
}
.pd-table th.num { text-align: right; }
.pd-table td {
  padding: 11px 14px; color: var(--text-primary);
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.pd-table tr:hover td { background: rgba(255, 255, 245, 0.01); }
.pd-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pd-table .accent { color: var(--accent-pos); font-weight: 600; }
.pd-table .muted { color: var(--text-muted); }
.pd-table-week { color: var(--text-secondary); font-weight: 600; }
.pd-table-row-post td { background: rgba(93, 224, 172, 0.03); }
.pd-table-row-post td:first-child { color: var(--accent-pos); }
.pd-table-row-career td {
  background: rgba(255, 255, 245, 0.03);
  border-top: 1px solid var(--border-strong);
}

/* Inline team chip (Stats pane career tables) */
.pd-team-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
}
.pd-team-inline img { width: 16px; height: 16px; object-fit: contain; }

/* Career sections */
.pd-career-section { margin-bottom: 32px; }

/* Glossary */
.pd-glossary {
  margin: 32px 0 0; padding: 0;
  border-top: 1px solid var(--border-strong);
}
.pd-glossary-summary {
  list-style: none; cursor: pointer;
  padding: 14px 0; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-secondary); letter-spacing: 0.16em;
  user-select: none;
}
.pd-glossary-summary::-webkit-details-marker { display: none; }
.pd-glossary-icon {
  display: inline-block; transition: transform 0.15s ease;
  color: var(--text-tertiary);
}
.pd-glossary[open] .pd-glossary-icon { transform: rotate(90deg); color: var(--accent-pos); }
.pd-glossary[open] .pd-glossary-summary { color: var(--accent-pos); }
.pd-glossary-title { color: inherit; }
.pd-glossary-hint {
  margin-left: auto; color: var(--text-muted);
  font-size: 10px; letter-spacing: 0.1em;
}
.pd-glossary[open] .pd-glossary-hint { display: none; }
.pd-glossary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px;
  padding: 14px 0 24px;
}
.pd-glossary-col { display: flex; flex-direction: column; gap: 8px; }
.pd-glossary-item {
  display: flex; gap: 8px; font-family: var(--font-mono); font-size: 11px;
  line-height: 1.5;
}
.pd-glossary-abbr {
  color: var(--text-primary); font-weight: 600;
  min-width: 60px; flex-shrink: 0;
}
.pd-glossary-def { color: var(--text-tertiary); }

/* Inline link (Back to Players) */
.inline-link {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-tertiary); text-decoration: none;
  letter-spacing: 0.08em;
}
.inline-link:hover { color: var(--accent-pos); }

/* Stub card (used by player-detail.html v0.2.4 stub — preserved for backward compat) */
.stub-card {
  margin-top: 24px; padding: 18px 20px;
  background: rgba(255, 255, 245, 0.02);
  border: 1px dashed var(--border-strong);
}
.stub-card-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--text-tertiary); margin-bottom: 8px;
}
.stub-card-body {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-secondary); line-height: 1.7;
}

@media (max-width: 1100px) {
  .pd-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-glossary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .pd-header { grid-template-columns: 72px 1fr; }
  .pd-team-block {
    grid-column: 1 / -1; flex-direction: row;
    justify-content: flex-start; padding-top: 8px;
    border-top: 1px solid var(--divider);
  }
  .pd-headshot { width: 72px; height: 72px; }
  .pd-name { font-size: 24px; }
  .pd-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-glossary-grid { grid-template-columns: 1fr; }
}

/* ─── Player Detail v0.2.5.1 additions ──────────────────
   Grouped column headers (Splits/Game Log) · W/L results · opp cell · splits note */

.pd-table-grouped { min-width: 900px; }

.pd-table-group-row th {
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--text-tertiary); font-weight: 700;
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--divider);
  background: rgba(255, 255, 245, 0.01);
}
.pd-table-group-label {
  text-align: center !important;
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
}

.pd-table-section-header td {
  background: rgba(93, 224, 172, 0.04);
  color: var(--accent-pos);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; font-weight: 700;
  padding: 10px 14px; border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

/* W/L result cell */
.pd-result-w { color: var(--accent-pos); font-weight: 600; }
.pd-result-l { color: #e85a4f; font-weight: 600; }
.pd-result-t { color: var(--text-secondary); font-weight: 600; }

/* OPP cell composition */
.pd-opp-cell { display: inline-flex; align-items: center; gap: 6px; }
.pd-opp-prefix {
  color: var(--text-tertiary); font-size: 11px;
  min-width: 14px; display: inline-block;
}
.pd-opp-logo { width: 18px; height: 18px; object-fit: contain; }
.pd-opp-abbr { color: var(--text-primary); }

/* Splits pending-data note */
.pd-splits-note { margin: 24px 0 0; }
.pd-splits-pending-note {
  padding: 12px 16px;
  background: rgba(245, 166, 35, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.16);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-secondary); line-height: 1.6;
}
.pd-splits-pending-label {
  color: var(--accent-warn, #f5a623); font-weight: 700;
  letter-spacing: 0.14em;
}
.pd-splits-pending-note strong { color: var(--text-primary); font-weight: 600; }

/* When 4 tabs are present, allow tab strip to scroll on mobile */
@media (max-width: 600px) {
  .pd-tabs { overflow-x: auto; }
  .pd-tab { padding: 12px 12px; flex-shrink: 0; }
}

/* ──────────────────────────────────────────────────────────
   STANDINGS PAGE — v0.2.6
   Four-tab terminal: Standings · Playoff · Expanded · Vs. Division
   Backed by nfl_standings_{season}.csv (one row per team, all tabs
   derived from same source).
   ────────────────────────────────────────────────────────── */

/* Tab strip — same shape as player-detail's .pd-tabs */
.stand-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin: 16px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stand-tabs::-webkit-scrollbar { display: none; }

.stand-tab {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border-radius: 0;
}
.stand-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.stand-tab-active {
  color: var(--bg-base);
  background: var(--text-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

.stand-tab-content { display: none; }
.stand-tab-content-active { display: block; }

/* Conference section header */
.stand-conf-section { margin-bottom: 32px; }
.stand-conf-section:last-child { margin-bottom: 0; }

.stand-conf-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.stand-conf-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.stand-conf-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Table wrap */
.stand-wrap {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 16px;
}
.stand-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
}

/* Division header row */
.stand-divrow td {
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-strong);
  border-top: 1px solid var(--divider);
}
.stand-divrow:first-child td { border-top: none; }

/* Column header row */
.stand-colhead td {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 12px;
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.th-team { text-align: left; }
.th-num  { text-align: right; }
.th-rec  { text-align: center; }

/* Team row */
.stand-row {
  border-bottom: 1px solid var(--divider);
  transition: background 0.12s ease;
}
.stand-row:hover { background: var(--bg-elev-2); }
.stand-row:last-child { border-bottom: none; }
.stand-row td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}

/* Team cell composite */
.td-team {
  text-align: left;
}
.td-team {
  display: table-cell;
}
.stand-row .td-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.stand-seed {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  width: 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.stand-seed-playoff {
  color: var(--accent-pos);
  font-weight: 700;
}

.stand-clinch {
  display: inline-block;
  width: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}
.stand-clinch-z { color: var(--text-primary); }
.stand-clinch-y { color: var(--text-secondary); }
.stand-clinch-e { color: var(--text-muted); }
.stand-clinch-star { color: var(--accent-pos); font-weight: 700; }
.stand-clinch-none { color: transparent; }

.stand-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 245, 0.04));
}
.stand-team-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

/* Numeric cells */
.td-num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}
.td-pct {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
}
.td-rec {
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.td-diff { font-weight: 600; }
.td-diff-pos { color: var(--accent-pos); }
.td-diff-neg { color: var(--accent-neg); }

.td-strk { font-weight: 600; letter-spacing: 0.04em; font-size: 11px; }
.td-strk-w { color: var(--accent-pos); }
.td-strk-l { color: var(--accent-neg); }

/* Playoff line divider (between #7 and #8) */
.stand-playoff-divider td {
  height: 4px;
  padding: 0;
  background: var(--bg-base);
  border-top: 1px solid var(--accent-pos-border);
  border-bottom: 1px solid var(--accent-pos-border);
  position: relative;
}
.stand-playoff-divider td::after {
  content: 'PLAYOFF LINE';
  position: absolute;
  right: 16px;
  top: -10px;
  background: var(--bg-base);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--accent-pos);
  letter-spacing: 0.22em;
}

/* Footer note (Playoff tab — tiebreaker engine deferred) */
.stand-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  line-height: 1.6;
}

/* Mobile: collapse tighter, but keep horizontal scroll on tables */
@media (max-width: 900px) {
  .stand-row td,
  .stand-colhead td,
  .stand-divrow td {
    padding: 9px 10px;
  }
  .stand-row .td-team {
    padding: 9px 10px;
    gap: 8px;
  }
  .stand-team-name { font-size: 12px; }
  .stand-conf-name { font-size: 16px; }
  .stand-conf-sub { font-size: 9px; }
}

@media (max-width: 600px) {
  .stand-tabs { overflow-x: auto; padding-bottom: 12px; }
  .stand-tab { padding: 7px 12px; font-size: 12px; flex-shrink: 0; }
  .td-num { font-size: 11px; }
  .td-rec { font-size: 10px; }
}

/* ──────────────────────────────────────────────────────────
   INJURIES PAGE — v0.2.7
   Team-grouped weekly injury report from nflverse batch.
   Status priority: Out > Doubtful > Questionable > DNP >
   Limited > Full (with injury) > Rest.
   ────────────────────────────────────────────────────────── */

/* Context strip — surfaces the week/season the report is for */
.inj-context {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  padding: 14px 18px;
  margin: 16px 0 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.inj-context-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.inj-context-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.inj-context-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-left: auto;
}

/* Empty state */
.inj-empty {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.inj-empty-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.inj-empty-msg {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Body — vertical list of team sections */
.inj-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inj-section {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
}

/* Team header bar */
.inj-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border-strong);
}
.inj-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1px rgba(255, 255, 245, 0.04));
}
.inj-team-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.inj-team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.inj-team-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

/* Player rows */
.inj-rows {
  display: flex;
  flex-direction: column;
}

.inj-row {
  display: grid;
  grid-template-columns: 96px 36px 1fr 1.2fr 80px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
}
.inj-row:last-child {
  border-bottom: none;
}
.inj-row:hover {
  background: var(--bg-elev-2);
}

/* Status badge — left column */
.inj-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
}
.inj-status-out {
  color: var(--accent-neg);
  background: var(--accent-neg-dim);
  border-color: var(--accent-neg-dim);
}
.inj-status-doubtful {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.10);
  border-color: rgba(245, 166, 35, 0.24);
}
.inj-status-questionable {
  color: #f5d162;
  background: rgba(245, 209, 98, 0.08);
  border-color: rgba(245, 209, 98, 0.18);
}
.inj-status-dnp {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.06);
  border-color: rgba(245, 166, 35, 0.14);
}
.inj-status-limited {
  color: #f5d162;
  background: rgba(245, 209, 98, 0.04);
  border-color: rgba(245, 209, 98, 0.10);
}
.inj-status-full {
  color: var(--text-secondary);
  background: rgba(255, 255, 245, 0.02);
  border-color: var(--border);
}
.inj-status-rest {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}
.inj-status-unknown {
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}

/* Position chip */
.inj-position {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 3px 0;
  text-transform: uppercase;
}

/* Name */
.inj-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Injury text */
.inj-injury {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Practice status */
.inj-practice {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  text-align: right;
}

/* Resting-player rows fade slightly to de-emphasize */
.inj-row-rest {
  opacity: 0.65;
}
.inj-row-rest .inj-name {
  color: var(--text-secondary);
}

/* Mobile collapse — fold practice column under injury */
@media (max-width: 760px) {
  .inj-row {
    grid-template-columns: 88px 32px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .inj-injury {
    grid-column: 3;
    grid-row: 2;
    font-size: 10px;
  }
  .inj-practice {
    grid-column: 3;
    grid-row: 2;
    text-align: left;
    margin-left: auto;
    font-size: 10px;
  }
  .inj-name {
    grid-column: 3;
    grid-row: 1;
  }
  .inj-status, .inj-position {
    grid-row: 1 / span 2;
  }
  .inj-context {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .inj-context-meta {
    margin-left: 0;
  }
}

/* ───────────────────────────────────────────────────────────────────
 * v0.2.6 — Teams page click-through anchor reset
 * Added when team cards switched from <div> to <a> (Team Detail v0.2.6).
 * Keeps existing .team-card box styling; just neutralizes <a> defaults
 * (color, text-decoration, display).
 * ─────────────────────────────────────────────────────────────────── */

a.team-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;  /* matches existing .team-card flex layout */
}

a.team-card-link:hover {
    text-decoration: none;
}

a.team-card-link:hover .team-name {
    color: var(--accent-pos, #5DE0AC);
    transition: color 120ms;
}

/* ─── v0.2.10: NEXT GEN tab (player-detail.html) ─────────────────────
   New tab + 3-section pane on player-detail.html surfacing the v0.3.1
   NGS passing data layer. Reuses .pd-stat-grid + .pd-table classes for
   the bulk of the visual language; only two new classes here:
     .pd-ngs-table — denser header/cell padding for the 13-17-col tables
     .pd-ngs-ha    — small "vs" / "@" prefix in the opponent cell
   ───────────────────────────────────────────────────────────────────── */

.pd-ngs-table {
  min-width: 920px;
}

.pd-ngs-table th,
.pd-ngs-table td {
  padding: 8px 10px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.pd-ngs-table th {
  /* Tighter header text + uppercase preserved from .pd-table; just trim padding. */
  white-space: nowrap;
}

.pd-ngs-table td.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.pd-ngs-ha {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-right: 2px;
  width: 14px;
  text-align: right;
}

/* ─── Player Detail — Injuries pane (v0.2.6 / frontend v0.2.12) ────────
   Per-player injury-report timeline. Reuses .pd-section-label + .pd-table
   for layout; new here are the status pills (.pd-inj-status-*) — palette
   mirrors the standalone Injuries page's .inj-status-* so the two surfaces
   read identically — plus the empty state + a couple cell helpers.
   ───────────────────────────────────────────────────────────────────── */

.pd-inj-body { margin-top: 4px; }

.pd-inj-season-label { margin-top: 20px; }

.pd-inj-table { min-width: 0; }
.pd-inj-table th,
.pd-inj-table td { padding: 8px 10px; font-size: 12px; }
.pd-inj-wk { white-space: nowrap; color: var(--text-secondary); font-weight: 600; }
.pd-inj-prac { color: var(--text-tertiary); white-space: nowrap; }

.pd-inj-status {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 0;
  white-space: nowrap;
}
.pd-inj-status-out {
  color: var(--accent-neg);
  background: var(--accent-neg-dim);
  border-color: var(--accent-neg-dim);
}
.pd-inj-status-doubtful {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.10);
  border-color: rgba(245, 166, 35, 0.24);
}
.pd-inj-status-questionable {
  color: #f5d162;
  background: rgba(245, 209, 98, 0.08);
  border-color: rgba(245, 209, 98, 0.18);
}
.pd-inj-status-probable {
  color: #f5d162;
  background: rgba(245, 209, 98, 0.05);
  border-color: rgba(245, 209, 98, 0.12);
}
.pd-inj-status-dnp {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.06);
  border-color: rgba(245, 166, 35, 0.14);
}
.pd-inj-status-limited {
  color: #f5d162;
  background: rgba(245, 209, 98, 0.04);
  border-color: rgba(245, 209, 98, 0.10);
}
.pd-inj-status-full {
  color: var(--text-secondary);
  background: rgba(255, 255, 245, 0.02);
  border-color: var(--border);
}
.pd-inj-status-unknown {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}

.pd-inj-empty {
  padding: 40px 24px;
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 245, 0.01);
}
.pd-inj-empty-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pd-inj-empty-msg {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── PRO NEXT GEN tier (v0.2.6.2 · player-detail v0.2.14) ─────────
   pro.nfl.com season-aggregate metrics. Set apart from the nflverse NGS
   stacks by a top divider + a muted source pill — stays within the
   two-accent system (no new accent color introduced). */
#pd-ngs-pro-tier {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}
.pd-ngs-pro-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.pd-ngs-pro-src {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-tertiary);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}
.pd-ngs-pro-table th { white-space: nowrap; }


/* === Primetime filter (v0.2.6.3 — schedule TNF/SNF/MNF) ===
   Pill row sits above #sched-body. Default (no pill active) shows the full
   week-by-week schedule; a pill filters #sched-body to that slate. Pills
   mirror .season-pill from the Archive picker so the two read identically.
   Filtered rows reuse .game-row via TT.renderGameRow; .pt-row adds a
   left-gutter week badge and owns the border + hover so badge + row read
   as one line. */

.pt-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.pt-tabs:empty {
  margin: 0;
}

.pt-tabs-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}

.pt-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pt-pill:hover {
  color: var(--text-primary);
  background: var(--bg-elev-2);
}

.pt-pill-on {
  color: var(--accent-pos);
  background: var(--accent-pos-dim);
  border-color: var(--accent-pos-border);
  font-weight: 600;
}

.pt-slate {
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
}

.pt-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--divider);
  transition: background 0.12s ease;
}

.pt-row:last-child {
  border-bottom: none;
}

.pt-row:hover {
  background: var(--bg-elev-2);
}

.pt-row .game-row {
  flex: 1;
  border-bottom: none;
}

.pt-row .game-row:hover {
  background: transparent;
}

.pt-week {
  flex: 0 0 64px;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.pt-empty {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 24px 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
}

@media (max-width: 900px) {
  .pt-week {
    flex-basis: 52px;
    padding-left: 16px;
    align-self: flex-start;
    padding-top: 14px;
  }
}

/* --- Game-row deep link (v0.2.6.5, NFL v0.2.75 / roadmap P1.4) --- */
/* .cell-teams is emitted as an <a> when the row carries a GAME_ID. Type
   selector beats the bare class regardless of source order. */
a.cell-teams-link {
  color: inherit;
  text-decoration: none;
}
a.cell-teams-link:hover .team,
a.cell-teams-link:focus-visible .team {
  color: var(--accent-pos);
}
a.cell-teams-link:focus-visible {
  outline: 2px solid var(--accent-pos);
  outline-offset: 2px;
}
