/* Player Stats Explorer | additive, page-scoped Concept 02 styling. */
.stats-explorer-page .recap-hero__content { padding-top: 60px; padding-bottom: 119px; }
.stats-explorer-page .recap-hero h1 { font-size: clamp(68px, 8vw, 119px); }
.stats-explorer-page .stats-tools {
    display: grid;
    grid-template-columns: minmax(235px, 1fr) minmax(200px, .8fr) minmax(250px, 1.3fr);
    gap: 22px;
    align-items: start;
    padding: 27px 0 24px;
    border-bottom: 1px solid var(--recap-line);
}
.stats-explorer-page .stats-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.stats-explorer-page .stats-control > legend,
.stats-explorer-page .stats-control > label {
    display: block;
    width: 100%;
    margin: 0 0 9px;
    padding: 0;
    color: #886700;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1.4;
}
.stats-explorer-page .stats-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-explorer-page .stats-segments button {
    min-height: 46px;
    padding: 10px 4px;
    border: 1px solid #c9c6bf;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    color: #232628;
    font: 850 13px/1.25 "Inter", Arial, sans-serif;
    cursor: pointer;
}
.stats-explorer-page .stats-segments button:last-child { border-right: 1px solid #c9c6bf; }
.stats-explorer-page .stats-segments button[aria-pressed="true"] {
    border-color: #161819;
    background: #161819;
    color: #f2c230;
}
.stats-explorer-page .stats-segments button:hover:not([aria-pressed="true"]) { background: #fff3c9; }
.stats-explorer-page .stats-control select,
.stats-explorer-page .stats-control input {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #c9c6bf;
    border-radius: 1px;
    background: #fff;
    color: #151718;
    font: 600 13px/1.4 "Inter", Arial, sans-serif;
}
.stats-explorer-page .stats-control select:disabled,
.stats-explorer-page .stats-control input:disabled { opacity: .6; }
.stats-explorer-page .stats-control :is(button, input, select):focus-visible,
.stats-explorer-page .stats-sort-button:focus-visible,
.stats-explorer-page .recap-action-button:focus-visible {
    outline: 3px solid #f2c230;
    outline-offset: 2px;
}
.stats-explorer-page .stats-search-wrap { position: relative; }
.stats-explorer-page .stats-search-options {
    position: absolute;
    z-index: 25;
    top: calc(100% + 4px);
    inset-inline: 0;
    max-height: 330px;
    overflow-y: auto;
    border: 1px solid #c9c6bf;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.stats-explorer-page .stats-search-options[hidden] { display: none; }
.stats-explorer-page .stats-search-option {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    width: 100%;
    padding: 12px 13px;
    border: 0;
    border-bottom: 1px solid #e8e5dc;
    border-radius: 0;
    background: #fff;
    color: #202123;
    text-align: left;
    cursor: pointer;
}
.stats-explorer-page .stats-search-option:hover,
.stats-explorer-page .stats-search-option.is-highlighted { background: #fff2c3; }
.stats-explorer-page .stats-search-option-name { font-size: 13px; font-weight: 800; }
.stats-explorer-page .stats-search-option-meta { color: #65686c; font-size: 11px; font-weight: 650; }
.stats-explorer-page .stats-search-empty { padding: 11px 13px; margin: 0; color: #666; font-size: 13px; }
.stats-explorer-page .stats-search-note { min-height: 13px; margin: 4px 0 0; color: #5d6063; font-size: 11px; }
.stats-explorer-page .stats-table-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    padding: 22px 0 11px;
}
.stats-explorer-page .stats-context { margin: 0; color: #1c1f21; font-size: 14px; font-weight: 800; }
.stats-explorer-page .stats-summary { margin: 6px 0 0; color: #5c6265; font-size: 12px; }
.stats-explorer-page .stats-notice {
    padding: 11px 13px;
    margin: 4px 0 15px;
    border-left: 3px solid #d4a400;
    background: #fff4d5;
    color: #51461f;
    font-size: 13px;
}
.stats-explorer-page .stats-notice[hidden] { display: none; }
.stats-explorer-page .stats-table-scroll { margin-top: 8px; border-top: 2px solid #161819; }
.stats-explorer-page .stats-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.stats-explorer-page .stats-table th,
.stats-explorer-page .stats-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-explorer-page .stats-table thead th { padding: 0; vertical-align: middle; }
.stats-explorer-page .stats-table thead th:not(:has(button)) { padding: 12px 11px; }
.stats-explorer-page .stats-table th.stats-name-column { min-width: 182px; text-align: left; }
.stats-explorer-page .stats-table th.stats-team-column { min-width: 80px; text-align: left; }
.stats-explorer-page .stats-table .stats-gp-column { min-width: 45px; }
.stats-explorer-page .stats-table tbody th { padding: 10px 11px; border-top: 1px solid #e6e2db; text-align: left; }
.stats-explorer-page .stats-table tbody th a { color: #654c00; font-weight: 800; text-decoration: none; }
.stats-explorer-page .stats-table tbody th a:hover { text-decoration: underline; }
.stats-explorer-page .stats-table tbody td.stats-team-column { text-align: left; font-size: 11px; font-weight: 700; }
.stats-explorer-page .stats-sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 100%;
    min-height: 40px;
    padding: 10px 11px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: right;
    cursor: pointer;
}
.stats-explorer-page .stats-sort-button:hover:not(:disabled) { background: #ffecae; color: #171819; }
.stats-explorer-page .stats-sort-button.is-sorted { color: #805f00; }
.stats-explorer-page .stats-sort-button > span { opacity: .75; font-size: 12px; }
.stats-explorer-page .stats-sort-button:disabled { opacity: .45; cursor: default; }
.stats-explorer-page .stats-table-empty { text-align: left; padding: 22px 13px; color: #555; }
.stats-explorer-page .stats-unavailable { color: #818181; }
.stats-explorer-page .stats-table-footnote { margin: 10px 0 0; color: #62676b; font-size: 12px; line-height: 1.55; }
.stats-explorer-page .recap-mobile-scroll-help { margin: 4px 0 9px; }
.stats-explorer-page .recap-footnotes { margin-top: 28px; }
@media (max-width: 920px) {
    .stats-explorer-page .stats-tools { grid-template-columns: 1fr 1fr; gap: 18px; }
    .stats-explorer-page .stats-search-control { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
    .stats-explorer-page .recap-hero__content { padding-top: 50px; padding-bottom: 98px; }
    .stats-explorer-page .recap-hero h1 { font-size: clamp(59px, 12vw, 83px); }
    .stats-explorer-page .stats-tools { grid-template-columns: minmax(0, 1fr); }
    .stats-explorer-page .stats-search-control { grid-column: auto; }
    .stats-explorer-page .stats-table-head { align-items: flex-start; }
    .stats-explorer-page .stats-table { min-width: 720px; }
    .stats-explorer-page .stats-table th.stats-name-column { min-width: 165px; }
}

/* Keep the player identity visible when a position table scrolls horizontally. */
.stats-explorer-page .stats-table th.stats-name-column {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f8f7f3;
}
.stats-explorer-page .stats-table thead th.stats-name-column {
    z-index: 3;
    background: #f1efe9;
}
.stats-explorer-page .stats-table-after {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 11px 0 0;
}
.stats-explorer-page .stats-table-after .stats-table-footnote { margin-top: 4px; }
.stats-explorer-page #stats-show-all { flex: none; }
.stats-explorer-page #stats-show-all[hidden] { display: none; }
@media (max-width: 650px) {
.stats-explorer-page .stats-table th.stats-name-column {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
}
}

/* Position-specific PPR rank: remains unchanged when another metric is sorted. */
.stats-explorer-page .stats-player-identity {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    max-width: 100%;
}
.stats-explorer-page .stats-player-identity a {
    white-space: normal;
}
.stats-explorer-page .stats-ppr-rank {
    flex: 0 0 auto;
    min-width: 28px;
    color: #595959;
    font: 700 12px/1.25 "Inter", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
