/* NFL Fantasy Mate - Players Explorer / ExportV2.2 presentation layer.
   This file intentionally overrides only the Players Explorer. */

.players-page .players-overview-heading {
    margin-bottom: 17px;
}

.players-page .overview-lenses {
    display: flex;
    gap: 7px;
    margin: 0 0 18px;
    padding: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    border: 1px solid rgba(17, 19, 21, .10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 19, 21, .045);
}

.players-page .overview-lens {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #656c70;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}

.players-page .overview-lens:hover:not(.is-active) {
    border-color: rgba(17, 19, 21, .10);
    background: #f3f4f1;
    color: #111315;
}

.players-page .overview-lens.is-active {
    border-color: #17191b;
    background: #17191b;
    color: var(--fm-gold, #f2c230);
    box-shadow: 0 5px 13px rgba(17, 19, 21, .12);
}

.players-page .overview-table {
    min-width: 1110px;
    table-layout: auto;
}

.players-page .overview-table th:first-child,
.players-page .overview-table td:first-child {
    width: 225px;
    min-width: 225px;
}

.players-page .overview-table th[data-column="ppr"],
.players-page .overview-table td[data-column="ppr"] {
    min-width: 92px;
}

.players-page .overview-table th[data-column="pprPerGame"],
.players-page .overview-table td[data-column="pprPerGame"] {
    min-width: 104px;
}

.players-page .sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.players-page .sort-button::after {
    content: "";
    width: 0;
    height: 0;
    opacity: .32;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-bottom: 5px solid currentColor;
}

.players-page .sort-button[data-sort-direction="desc"]::after {
    opacity: 1;
    border-top: 5px solid currentColor;
    border-bottom: 0;
}

.players-page .sort-button[data-sort-direction="asc"]::after {
    opacity: 1;
    border-top: 0;
    border-bottom: 5px solid currentColor;
}

.players-page .production-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

.players-page .production-cell strong {
    color: #111315;
    font-size: 1.02rem;
    line-height: 1;
    font-weight: 900;
}

.players-page .production-cell.is-primary strong {
    color: #8a6800;
}

.players-page .production-cell small {
    color: #808689;
    font-size: .61rem;
    line-height: 1.2;
    font-weight: 760;
    white-space: nowrap;
}

.players-page .category-score-cell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 116px;
}

.players-page .category-score-main {
    min-width: 0;
}

.players-page .category-score-line {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.players-page .category-score-line strong {
    color: #111315;
    font-size: .96rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.players-page .category-score-line small {
    color: #7a8083;
    font-size: .58rem;
    font-weight: 850;
    white-space: nowrap;
}

.players-page .category-score-line small.nr {
    color: #9a7a19;
}

.players-page .category-score-track {
    display: block;
    width: 74px;
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eae7;
}

.players-page .category-score-track i {
    display: block;
    width: var(--score, 0%);
    height: 100%;
    border-radius: inherit;
    background: #d7aa16;
}

.players-page .direction-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 112px;
}

.players-page .direction-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(17, 19, 21, .11);
    border-radius: 6px;
    background: #f3f4f1;
    color: #555d61;
    font-size: .61rem;
    line-height: 1.15;
    font-weight: 850;
    white-space: nowrap;
}

.players-page .direction-pill.up,
.players-page .direction-pill.rising,
.players-page .direction-pill.breakout,
.players-page .direction-pill.bounceback {
    border-color: rgba(53, 122, 76, .22);
    background: rgba(53, 122, 76, .07);
    color: #2d7144;
}

.players-page .direction-pill.down,
.players-page .direction-pill.falling,
.players-page .direction-pill.decline {
    border-color: rgba(152, 66, 66, .20);
    background: rgba(152, 66, 66, .065);
    color: #8a4141;
}

.players-page .direction-cell small {
    color: #858b8e;
    font-size: .58rem;
    font-weight: 730;
    line-height: 1.25;
}

.players-page .baseline-cell,
.players-page .historical-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 112px;
    font-variant-numeric: tabular-nums;
}

.players-page .baseline-cell strong,
.players-page .historical-cell strong {
    color: #222629;
    font-size: .79rem;
    font-weight: 860;
}

.players-page .baseline-cell small,
.players-page .historical-cell small {
    color: #858b8e;
    font-size: .58rem;
    font-weight: 720;
}

.players-page .player-role {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(242, 194, 48, .08);
    color: #806200;
    font-size: .55rem;
    font-weight: 820;
    white-space: nowrap;
}

.players-page .market-cell .market-movement {
    font-variant-numeric: tabular-nums;
}

.players-page .market-cell .market-movement.positive {
    color: #36784b;
}

.players-page .market-cell .market-movement.negative {
    color: #914b4b;
}

.players-page .secondary-view-message {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid rgba(17, 19, 21, .10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 19, 21, .045);
}

.players-page .secondary-view-message strong {
    color: #25292b;
    font-size: .87rem;
}

.players-page .secondary-view-message span {
    color: #71787b;
    font-size: .74rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .players-page .overview-lenses {
        margin-inline: -2px;
        padding: 6px;
    }

    .players-page .overview-table {
        min-width: 1030px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .players-page .overview-lens {
        transition: none !important;
    }
}

/* ========================================================================== 
   Players Explorer v3 - hierarchy, window clarity, qualification controls,
   and Historical Explorer.
   ========================================================================== */

/* The charcoal product header now owns player discovery controls. */
.players-page .players-intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding-top: 50px;
    padding-bottom: 82px;
}

.players-page .players-intro-top {
    display: flex;
    justify-content: space-between;
    gap: 36px;
    align-items: flex-end;
}

.players-page .players-intro .players-toolbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 470px);
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin: 30px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 12px 28px rgba(0, 0, 0, .12);
    backdrop-filter: blur(8px);
}

.players-page .players-intro .position-tabs {
    gap: 8px;
}

.players-page .players-intro .position-tab {
    min-width: 61px;
    height: 44px;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .07);
    color: #e5e8e9;
}

.players-page .players-intro .position-tab:hover:not(.is-active) {
    border-color: rgba(242, 194, 48, .40);
    background: rgba(255, 255, 255, .11);
    color: #ffffff;
}

.players-page .players-intro .position-tab.is-active {
    border-color: var(--fm-gold, #f2c230);
    background: var(--fm-gold, #f2c230);
    color: #111315;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .20);
}

.players-page .players-intro .players-search {
    height: 46px;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .075);
    color: #ffffff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .16);
}

.players-page .players-intro .players-search::placeholder {
    color: #aeb4b6;
}

.players-page .players-intro .players-search:focus {
    border-color: rgba(242, 194, 48, .78);
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 0 0 3px rgba(242, 194, 48, .14);
}

/* Summary stays deliberately simple; football dimensions get their own lens. */
.players-page .overview-context-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    margin: -6px 0 18px;
    padding: 10px 12px;
    border: 1px solid rgba(17, 19, 21, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

.players-page .overview-scope-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6a7174;
    font-size: .71rem;
    font-weight: 690;
}

.players-page .scope-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 7px;
    background: #17191b;
    color: var(--fm-gold, #f2c230);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.players-page .overview-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.players-page .control-label {
    color: #7b8285;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.players-page .segmented-control {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(17, 19, 21, .10);
    border-radius: 9px;
    background: #eef0ed;
}

.players-page .segment-button {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #656c70;
    font: inherit;
    font-size: .63rem;
    font-weight: 850;
    cursor: pointer;
}

.players-page .segment-button:hover:not(.is-active) {
    background: rgba(255, 255, 255, .72);
    color: #25292b;
}

.players-page .segment-button.is-active {
    border-color: #17191b;
    background: #17191b;
    color: var(--fm-gold, #f2c230);
    box-shadow: 0 4px 10px rgba(17, 19, 21, .10);
}

.players-page .eligibility-note {
    flex: 1 1 300px;
    min-width: 220px;
    margin: 0 0 0 auto;
    color: #81878a;
    font-size: .62rem;
    line-height: 1.4;
    text-align: right;
}

.players-page .overview-table {
    min-width: 910px;
}

/* Historical Explorer */
.players-page .historical-control-surface {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.players-page .historical-lenses {
    margin: 0;
}

.players-page .historical-season-control {
    display: grid;
    gap: 6px;
    min-width: 145px;
    color: #737a7d;
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.players-page .historical-season-control .compact-select {
    min-width: 145px;
    height: 42px;
    border-radius: 9px;
    background: #fff;
}

.players-page .historical-table-wrap.data-table-wrap {
    border-color: rgba(139, 103, 0, .18);
    background: #fffefa;
    box-shadow:
        0 11px 30px rgba(17, 19, 21, .065),
        0 0 0 1px rgba(242, 194, 48, .035);
}

.players-page .historical-table {
    min-width: 1040px;
    table-layout: auto;
}

.players-page .historical-table[data-historical-layout="summary"] {
    min-width: 980px;
}

.players-page .historical-table[data-historical-layout="category"] {
    min-width: 1120px;
}

.players-page .historical-table[data-historical-layout="matrix"] {
    min-width: 1420px;
}

.players-page .historical-table th {
    background: #17191b;
    color: #eef0ef;
    border-bottom: 2px solid var(--fm-gold, #f2c230);
}

.players-page .historical-table th .sort-button {
    color: inherit;
}

.players-page .historical-table th .sort-button:hover {
    color: var(--fm-gold, #f2c230);
}

.players-page .historical-table tbody tr.player-row:nth-child(even) {
    background: #fffdf7;
}

.players-page .historical-table tbody tr.player-row:hover {
    background: #fff7dd;
    box-shadow: inset 4px 0 0 var(--fm-gold, #f2c230);
}

.players-page .historical-table th:first-child,
.players-page .historical-table td:first-child {
    min-width: 215px;
    width: 215px;
    position: sticky;
    left: 0;
}

/* Keep player identity visible while wide Historical layouts scroll horizontally. */
.players-page .historical-table th:first-child {
    z-index: 5;
    background: #17191b;
    box-shadow: 1px 0 0 rgba(242, 194, 48, .22), 8px 0 14px rgba(17, 19, 21, .08);
}

.players-page .historical-table td:first-child {
    z-index: 3;
    background: #ffffff;
    box-shadow: 1px 0 0 rgba(17, 19, 21, .07), 8px 0 14px rgba(17, 19, 21, .035);
}

.players-page .historical-table tbody tr.player-row:nth-child(even) td:first-child {
    background: #fffdf7;
}

.players-page .historical-table tbody tr.player-row:hover td:first-child {
    background: #fff7dd;
}

.players-page .historical-table th[data-column="ppr"],
.players-page .historical-table td[data-column="ppr"] {
    min-width: 116px;
}

.players-page .historical-table th[data-column="pprPerGame"],
.players-page .historical-table td[data-column="pprPerGame"] {
    min-width: 126px;
}

.players-page .historical-table[data-historical-layout="matrix"] th[data-column^="historicalCategory:"],
.players-page .historical-table[data-historical-layout="matrix"] td[data-column^="historicalCategory:"] {
    min-width: 118px;
}

.players-page .historical-table .production-cell small {
    font-size: .64rem;
}

.players-page .historical-table .category-score-line small,
.players-page .historical-table .direction-cell small,
.players-page .historical-table .baseline-cell small,
.players-page .historical-table .historical-cell small {
    font-size: .61rem;
}

.players-page .historical-table .historical-rank-cell {
    min-width: 92px;
}

.players-page .historical-season-value {
    color: #222629;
    font-size: .84rem;
    font-weight: 860;
    font-variant-numeric: tabular-nums;
}

.players-page .historical-team-value {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f2f3f0;
    color: #52595c;
    font-size: .68rem;
    font-weight: 850;
}

.players-page .historical-driver {
    color: #596064;
    font-size: .68rem;
    font-weight: 760;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .players-page .players-intro-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .players-page .players-intro .players-toolbar {
        grid-template-columns: 1fr;
    }

    .players-page .players-intro .players-search-wrap {
        width: 100%;
        max-width: none;
    }

    .players-page .historical-control-surface {
        grid-template-columns: 1fr;
    }

    .players-page .historical-season-control {
        width: min(240px, 100%);
    }
}

@media (max-width: 720px) {
    .players-page .players-intro-inner {
        padding-top: 38px;
        padding-bottom: 72px;
    }

    .players-page .players-intro .players-toolbar {
        margin-top: 24px;
        padding: 11px;
    }

    .players-page .players-intro .position-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .players-page .players-intro .position-tab {
        min-width: 0;
        width: 100%;
    }

    .players-page .overview-context-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .players-page .overview-control-group {
        justify-content: space-between;
    }

    .players-page .eligibility-note {
        min-width: 0;
        margin-left: 0;
        text-align: left;
    }

    .players-page .overview-scope-note {
        align-items: flex-start;
    }

    .players-page .historical-table {
        min-width: 960px;
    }
}

.players-page .players-freshness strong,
.players-page .players-freshness span {
    display: block;
}

.players-page .players-freshness span {
    margin-top: 3px;
}
