/* Player Stats is served by the Worker so it remains available with the existing static assets. */
.ps-page-heading { align-items: center; }
.ps-page-heading .button { white-space: nowrap; }
.ps-state { min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ps-state h2 { font: 700 22px/1.3 var(--body); }
.ps-state p { max-width: 60ch; font-size: 14px; }
.ps-state .button { align-self: flex-start; }
.ps-panel { padding: 22px; overflow: hidden; }
.ps-panel-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.ps-panel-top h2 { margin-top: 3px; }
.ps-panel-top p { max-width: 48ch; text-align: right; color: var(--muted); font-size: 12px; }
.ps-filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--inset); }
.ps-filter-grid label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ps-filter-grid select, .ps-filter-grid input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: 600 13px var(--body); letter-spacing: normal; text-transform: none; }
.ps-filter-grid input { font-weight: 500; }
.ps-filter-grid input::placeholder { color: var(--muted); opacity: .75; }
.ps-filter-grid .ps-search-label { grid-column: span 2; }
.ps-filter-grid select:focus-visible, .ps-filter-grid input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.ps-results-heading p { color: var(--text); font-size: 13px; font-weight: 700; }
.ps-results-heading small { color: var(--muted); font-size: 11px; text-align: right; }
.ps-scroll-hint { display: none; }
.ps-table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 9px; scrollbar-color: var(--line-strong) var(--inset); }
.ps-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ps-table { width: 100%; min-width: 890px; border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: 12px; font-variant-numeric: tabular-nums; }
.ps-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ps-table th, .ps-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ps-table thead th { position: sticky; top: 0; z-index: 2; background: var(--inset); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ps-table thead button { min-width: 0; min-height: 28px; margin: -4px -6px; padding: 4px 6px; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; }
.ps-table thead button:hover, .ps-table thead button[aria-pressed=true] { color: var(--accent); }
.ps-table tbody tr:last-child > * { border-bottom: 0; }
.ps-table tbody tr:hover > * { background: #1b2938; }
.ps-table th:nth-child(1), .ps-table td:nth-child(1) { position: sticky; left: 0; z-index: 1; width: 42px; min-width: 42px; background: var(--surface); text-align: center; }
.ps-table th:nth-child(2) { position: sticky; left: 42px; z-index: 1; min-width: 218px; max-width: 310px; background: var(--surface); text-align: left; }
.ps-table thead th:nth-child(-n+2) { z-index: 3; background: var(--inset); }
.ps-table .ps-my-player > :is(th, td) { background: #29281f; }
.ps-table .ps-free-agent > :is(th, td) { background: #142325; }
.ps-table .ps-my-player > :is(th, td):first-child { box-shadow: inset 3px 0 var(--accent); }
.ps-table .ps-free-agent > :is(th, td):first-child { box-shadow: inset 3px 0 var(--good); }
.ps-rank, .ps-no-score { color: var(--muted); }
.ps-score { color: var(--accent); font-weight: 700; }
.ps-player-name { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--text); }
.ps-player-meta { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.ps-owner { min-width: 154px; max-width: 245px; text-align: left !important; white-space: normal !important; line-height: 1.35; }
.ps-opponent { color: var(--text-2); font-weight: 600; }
.ps-roster-status { display: inline-block; margin-left: 6px; padding: 1px 4px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 9px; }
.ps-owner .you-pill { margin-left: 6px; }
.ps-empty { padding: 28px !important; color: var(--muted); text-align: center !important; }
.ps-warning { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; }
.ps-footnote { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 1150px) { .ps-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ps-panel { padding: 14px; } .ps-panel-top { align-items: start; flex-direction: column; gap: 5px; } .ps-panel-top p { text-align: left; } .ps-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 11px; } .ps-filter-grid .ps-search-label { grid-column: 1 / -1; } .ps-results-heading { align-items: start; flex-direction: column; gap: 2px; } .ps-results-heading small { text-align: left; } .ps-scroll-hint { display: block; margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; } .ps-table th, .ps-table td { padding: 8px; } .ps-table th:nth-child(2) { min-width: 174px; max-width: 210px; } }
@media (max-width: 410px) { .ps-page-heading .button { margin-top: 12px; } .ps-filter-grid { grid-template-columns: 1fr 1fr; } .ps-filter-grid label:nth-child(4), .ps-filter-grid label:nth-child(5), .ps-filter-grid label:nth-child(6), .ps-filter-grid label:nth-child(7), .ps-filter-grid label:nth-child(9) { grid-column: 1 / -1; } }
