/* Phase 3C: standings-only upgrades. Loaded AFTER standingsstyle.css. */
.league-standings-shell { width: min(980px, calc(100% - 24px)); margin: 22px auto 10px; font-family: 'Titillium Web',sans-serif; color: var(--text-color, #eee); }
.standings-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin: 12px 0; }
.standings-heading .innerHeader { margin: 7px 0; text-align:left; font-size:clamp(20px,3vw,30px); }
.standings-eyebrow {font-size:11px;letter-spacing:1.7px;font-weight:700;color:#5cc0b3}
.standings-year-selector { display:flex; align-items:center; gap:9px; font-size:13px; }
.standings-year-selector select, .standings-toolbar input, .standings-toolbar select { box-sizing:border-box; background:var(--panel-bg,#1e1e1e); color:var(--text-color,#fff); border:1px solid rgba(92,192,179,.4); border-radius:9px; padding:10px 12px; font:inherit; }
.standings-year-selector select {min-width:96px}
.standings-phase-tabs { display:flex; gap:8px; flex-wrap:wrap; margin: 14px 0; }
.standings-phase-tab {display:inline-flex;justify-content:center;align-items:center;min-width:145px;padding:11px 16px;text-decoration:none;color:var(--text-color,#eee);background:var(--panel-bg,#1b1b1b);border:1px solid rgba(92,192,179,.24);border-radius:9px;font-size:14px;font-weight:700}
.standings-phase-tab.is-active {background:#27796f;color:white;border-color:#5cc0b3}
.standings-phase-tab.is-disabled {opacity:.4;cursor:not-allowed}
.standings-phase-tab:not(.is-disabled):hover{border-color:#5cc0b3}
.standings-toolbar {display:flex;justify-content:space-between;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.standings-toolbar label {display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;min-width:220px}
.standings-toolbar input {min-width: min(280px,80vw)}
.standings-explainer {font-size:12px;opacity:.75;margin:10px 0 13px;width:auto;max-width:100%;text-align:left}
.standings-table-scroller {overflow-x:auto;background:var(--panel-bg,#151515);border:1px solid rgba(92,192,179,.25);border-radius:13px;padding:7px;}
.standings-modern-table {margin:0 auto;width:100%;min-width:570px;border-collapse:separate;border-spacing:0 5px;}
.standings-modern-table thead th {padding:12px 8px;font-size:12px;white-space:nowrap;text-align:center;}
.standings-modern-table tbody tr {transition:background .15s ease, box-shadow .15s ease;}
.standings-modern-table tbody tr:hover {outline:1px solid rgba(92,192,179,.42)}
.standings-modern-table tbody td {padding:12px 8px;text-align:center;font-size:14px;}
.standings-modern-table tbody td.standings-player-name {text-align:left;white-space:nowrap;font-weight:700}
.standings-modern-table tbody td.standings-points {font-size:17px;font-weight:800;color:#5cc0b3}
.standings-modern-table tbody td.standings-pos {font-size:16px;font-weight:800}
.standings-modern-table tbody tr.podium-0 td:first-child {border-left:3px solid #dbb65d}
.standings-modern-table tbody tr.podium-1 td:first-child {border-left:3px solid #c4c6ce}
.standings-modern-table tbody tr.podium-2 td:first-child {border-left:3px solid #c79164}
.standings-you {display:inline-block;margin-left:7px;padding:2px 6px;border-radius:99px;background:#27796f;color:#fff;font-size:10px;vertical-align:middle}
.standings-no-results {width:auto;padding:18px;text-align:center}
.standings-modern-table .pick-num-img {max-width:52px;max-height:30px;object-fit:contain}
.standings-modern-table .pick-num-fallback {font-size:19px}
@media(max-width:650px){.standings-heading{align-items:start}.standings-phase-tab{flex:1;min-width:120px}.standings-toolbar label{min-width:100%;}.standings-toolbar input,.standings-toolbar select{width:100%}.standings-modern-table tbody td{padding:10px 7px;font-size:12px}}

/* Compact mobile standings */
@media (max-width: 700px) {

    .leaderboard,
    .table-scroll {
        width: 100%;
        max-width: 100%;
    }

    .content-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .content-table th,
    .content-table td {
        padding: 10px 3px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Hide Top 5s, Top 10s, and Average Finish */
    .content-table th:nth-child(4),
    .content-table td:nth-child(4),
    .content-table th:nth-child(5),
    .content-table td:nth-child(5),
    .content-table th:nth-child(6),
    .content-table td:nth-child(6) {
        display: none;
    }

    /* Position */
    .content-table th:nth-child(1),
    .content-table td:nth-child(1) {
        width: 12%;
    }

    /* Player name */
    .content-table th:nth-child(2),
    .content-table td:nth-child(2) {
        width: 30%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Wins */
    .content-table th:nth-child(3),
    .content-table td:nth-child(3) {
        width: 12%;
    }

    /* Points */
    .content-table th:nth-child(7),
    .content-table td:nth-child(7) {
        width: 22%;
    }

    /* Pick */
    .content-table th:nth-child(8),
    .content-table td:nth-child(8) {
        width: 24%;
    }

    /* Reduce car-number image sizes */
    .pick-num-img {
        max-width: 45px;
        max-height: 30px;
        object-fit: contain;
    }
}

/* Center player names on mobile */
.standings-modern-table tbody td.standings-player-name {
    text-align: center;
}

/* Center the Player column header */
.standings-modern-table thead th:nth-child(2) {
    text-align: center;
}