/* The Players tab, both sides (public/js/players-tab.js): site tokens only, so light, dark and the college theme follow. */
.pt-page { padding-bottom: 28px; }
.pt-page.pt-busy { opacity: .6; transition: opacity .15s; }
.pt-head h1 { margin-bottom: 4px; }
.pt-lede, .pt-window { margin: 0 0 10px; color: var(--text-2); }
.pt-small { margin: 2px 0 6px; font-size: .78rem; color: var(--muted); }
.pt-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 6px 0 12px; }
.pt-field { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .85rem; }
.pt-field select { height: 32px; }
.pt-seg { height: auto; flex-wrap: wrap; max-width: 100%; }
.pt-seg button { min-height: 32px; }

/* The landing: one card a category, as wide as the screen allows; no holes in the grid. */
.pt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; align-items: start; }
.pt-card { border: 1px solid var(--border); background: var(--surface); padding: 12px 14px; min-width: 0; }
.pt-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.pt-mini + .pt-mini { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.pt-mini h3 { margin: 0; font-size: .95rem; }
.pt-mini h3 small { font-weight: 400; color: var(--muted); }
.pt-top { list-style: none; margin: 4px 0 0; padding: 0; }
.pt-top li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto 4.6em; gap: 6px; align-items: center; padding: 3px 0; font-size: .88rem; }
.pt-top .pt-rk { color: var(--muted); font-variant-numeric: tabular-nums; }
.pt-top .pt-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-top .pt-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-tm { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pt-top .pt-tm .pt-tmname { display: none; }
.pt-more { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.pt-mark { font-size: .7em; color: var(--muted); margin-left: 2px; }

/* The board's pickers: category, stat, situations, filters. */
.pt-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 0 12px; }
.pt-pick > * { max-width: 100%; }
.pt-page[data-league="nfl"] .pt-tmname { display: none; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-chips-label { font-weight: 700; font-size: .8rem; margin-right: 2px; }
.pt-chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 .8rem/1.2 var(--font); padding: 6px 11px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.pt-chip:hover:not([disabled]) { border-color: var(--text); }
.pt-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pt-chip[disabled] { opacity: .45; cursor: not-allowed; }
.pt-sit[aria-pressed="true"]::before { content: '✓ '; }

/* The table: it scrolls inside its box, rank and name pinned; the page itself never scrolls sideways. */
.pt-tbl-wrap { overflow-x: auto; width: max-content; max-width: 100%; border: 1px solid var(--border); background: var(--surface); }
.pt-table { border-collapse: separate; border-spacing: 0; width: max-content; font-size: .88rem; font-variant-numeric: tabular-nums; }
.pt-table th, .pt-table td { padding: 6px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); background: var(--surface); }
.pt-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .02em; }
.pt-table .pt-c-rk { position: sticky; left: 0; z-index: 1; width: 44px; min-width: 44px; max-width: 44px; box-sizing: border-box; text-align: right; color: var(--muted); }
.pt-table .pt-c-name { position: sticky; left: 44px; z-index: 1; text-align: left; font-weight: 600; box-shadow: inset -1px 0 0 var(--border); max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.pt-table thead .pt-c-rk, .pt-table thead .pt-c-name { z-index: 3; background: var(--surface-2); }
.pt-table .pt-c-tm { text-align: left; }
.pt-table .pt-c-tm .pt-tmname { margin-left: 6px; }   /* (the college school's name beside its badge, not touching it) */
.pt-table .pt-pos { color: var(--muted); font-weight: 400; }
.pt-table .pt-c-stat, .pt-table .pt-val { background: var(--surface-2); font-weight: 700; }
.pt-table thead .pt-c-stat { background: var(--surface-3, var(--surface-2)); }
.pt-dir { font-weight: 400; text-transform: none; letter-spacing: 0; }
.pt-val { display: table-cell; }
.pt-bar { display: inline-block; height: 8px; margin-right: 6px; vertical-align: middle; background: var(--brand); opacity: .55; }
.pt-below td, .pt-below th { color: var(--muted); }
.pt-table tbody tr:hover td, .pt-table tbody tr:hover th { background: var(--surface-2); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pt-empty { padding: 14px; border: 1px dashed var(--border-strong); color: var(--text-2); }
.pt-error { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--brand); background: var(--surface); }

/* What it counts: source, games, season type, what is left out. */
.pt-src { margin-top: 14px; font-size: .82rem; color: var(--text-2); }
.pt-src p { margin: 4px 0; }
.pt-notes { margin: 6px 0 0; padding-left: 18px; }
.pt-notes li { margin: 2px 0; }

@media (max-width: 600px) {
  .pt-table { font-size: .82rem; }
  .pt-table th, .pt-table td { padding: 6px 7px; }
  .pt-table .pt-c-rk { width: 36px; min-width: 36px; max-width: 36px; }
  .pt-table .pt-c-name { left: 36px; max-width: 140px; }
  .pt-table .pt-c-tm .pt-tmname, .pt-table .pt-pos { display: none; }
  .pt-cats-seg { display: flex; width: 100%; }
  .pt-cats-seg button { flex: 1 1 auto; }
  .pt-sits { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .pt-sits .pt-chip { flex: none; }
}
