/* NHL players: /nhl/players and /nhl/player/:id (js/pages/nhl_players.js). Builds on players.css (the college pages)
   and nbaplayers.css (leaders strip, view switch, bio, career table, which this page reuses). */

/* ---------- /nhl/players: skaters / goalies switch + view switch ---------- */
.nhp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.nhp-top .np-modes { margin-bottom: 0; }
.nhp-who > button { font-weight: 650; }
.nhp-nx { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; vertical-align: 1px;
  background: var(--good-soft); color: var(--good-text); white-space: nowrap; }

/* ---------- /nhl/player/:id: header ---------- */
.np-head.nhp-head { width: 96px; height: 96px; object-fit: contain; object-position: bottom center; }
.nhp-adj { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.pl-avail.nhp-ok { border-color: color-mix(in oklab, var(--good) 30%, var(--border)); }
.nhp-okpill { background: var(--good-soft); color: var(--good-text); white-space: nowrap; }

/* ---------- stats by season ---------- */
.nhp-tm { white-space: nowrap; }
.ps-table td.nhp-lg { white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
.ps-table tr.nhp-other td { color: var(--text-2); }
.ps-table tr.nhp-other td.np-season { font-weight: 500; }

/* ---------- game log ---------- */
.nhp-ot { font-size: 10px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.nhp-dec { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 6px; font: 750 11px/1 var(--font-text); }
.nhp-dec-w { background: var(--good-soft); color: var(--good-text); }
.nhp-dec-l { background: var(--critical-soft); color: var(--critical); }
.nhp-dec-o { background: var(--surface-3); color: var(--text-2); }
#nhp-strength .t-controls, #nhp-team-t .t-controls, #nhp-imp-hist .t-controls, #nhp-imp-teams .t-controls { display: none; }

/* ---------- shot map (goal at the top, blue line at the bottom) ---------- */
.nhp-sm-wrap { max-width: 420px; margin: 0 auto; }
.nhp-sm { display: block; width: 100%; height: auto; }
.nhp-rink { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 0.5; }
.nhp-goalline { stroke: var(--critical); stroke-width: 0.35; opacity: .55; }
.nhp-blue { stroke: var(--accent); stroke-width: 1; opacity: .5; }
.nhp-crease { fill: color-mix(in oklab, var(--accent) 18%, transparent); stroke: var(--critical); stroke-width: 0.3; opacity: .8; }
.nhp-net { fill: none; stroke: var(--text-2); stroke-width: 0.4; }
.nhp-circle { fill: none; stroke: var(--critical); stroke-width: 0.3; opacity: .35; }
.nhp-dot { fill: var(--critical); opacity: .45; }
.nhp-sm circle.nhp-sm-g { fill: var(--series-1); stroke: var(--surface); stroke-width: 0.35; }
.nhp-sm circle.nhp-sm-s { fill: color-mix(in oklab, var(--text-2) 40%, transparent); stroke: var(--text-2); stroke-width: 0.25; }
.nhp-sm circle.nhp-sm-m { fill: none; stroke: var(--muted); stroke-width: 0.3; opacity: .7; }
.nhp-sm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; }
.np-key i.nhp-k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.nhp-k.nhp-sm-g { background: var(--series-1); }
.nhp-k.nhp-sm-s { background: color-mix(in oklab, var(--text-2) 40%, transparent); border: 1px solid var(--text-2); }
.nhp-k.nhp-sm-m { border: 1px solid var(--muted); }

@media (max-width: 640px) {
  .nhp-top { align-items: stretch; }
  .nhp-who { width: 100%; }
  .nhp-who > button { flex: 1 1 0; }
  .np-head.nhp-head { width: 68px; height: 68px; }
}
