/* Standings page: one unified outer panel matching the Schedule page. */
.standings-page {
    background: #071019;
    color: #f4f7fb;
}

.standings-page-panel {
    width: min(1320px, calc(100% - 40px));
    margin: 28px auto 52px;
    padding: 24px 26px 26px;
    background: #101820;
    border: 1px solid #2a3540;
    border-radius: 10px;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .32);
}

.standings-page-title {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a3540;
}

.standings-page-title h1 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.standings-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.standings-filter-panel,
.standings-results-panel {
    background: #101820;
    border: 1px solid #2a3540;
    border-radius: 7px;
}

.standings-filter-panel {
    padding: 17px;
}

.standings-filter-panel > h1 {
    margin: 0 0 18px;
    padding-bottom: 11px;
    border-bottom: 2px solid #1688f5;
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.standings-filter-field + .standings-filter-field {
    margin-top: 17px;
}

.standings-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #91a0af;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.standings-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    color: #f5f8fc;
    background: #151f29;
    border: 1px solid #303d49;
    border-radius: 5px;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    outline: none;
}

.standings-filter-field select:focus {
    border-color: #1688f5;
    box-shadow: 0 0 0 2px rgba(22, 136, 245, .18);
}

.standings-results-panel {
    min-width: 0;
    overflow: hidden;
}

.standings-panel-header {
    min-height: 66px;
    display: flex;
    align-items: center;
    padding: 15px 19px;
    background: #0b1219;
    border-bottom: 1px solid #2a3540;
}

.standings-panel-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.standings-panel-header p {
    margin: 4px 0 0;
    color: #aeb9c4;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standings-table-scroller {
    padding: 14px;
    overflow-x: auto;
    scrollbar-color: #44515d #0b1219;
}

.standings-table {
    width: 100%;
    min-width: 940px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: hidden;
    background: #151f29;
    border: 1px solid #2b3742;
    border-radius: 7px;
}

.standings-table th,
.standings-table td {
    box-sizing: border-box;
    white-space: nowrap;
}

.standings-table th {
    height: 40px;
    padding: 9px 7px;
    color: #eaf0f6;
    background: #0b1219;
    border-bottom: 1px solid #40505d;
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
}

.standings-table td {
    height: 51px;
    padding: 8px 7px;
    color: #e4ebf2;
    background: #151f29;
    border-bottom: 1px solid #2d3944;
    font-size: .7rem;
    font-weight: 700;
    text-align: center;
}

.standings-table tbody tr:last-child td {
    border-bottom: 0;
}

.standings-table tbody tr:hover td {
    background: #1a2732;
}

.standings-table th:nth-child(1),
.standings-table td:nth-child(1) { width: 48px; }
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) { width: 285px; text-align: left; }
.standings-table th:nth-child(n+3):nth-child(-n+10),
.standings-table td:nth-child(n+3):nth-child(-n+10) { width: 52px; }
.standings-table th:nth-child(11),
.standings-table td:nth-child(11) { width: 55px; }
.standings-table th:nth-child(12),
.standings-table td:nth-child(12) { width: 135px; text-align: center; }

.standings-team-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-team-cell img {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    object-fit: contain;
}

.standings-team-cell a {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.standings-team-cell a:hover {
    color: #4aa4ff;
}

.standings-points {
    color: #4aa4ff !important;
    font-weight: 900 !important;
}

.diff-positive { color: #75df62 !important; }
.diff-negative { color: #ff6862 !important; }
.diff-even { color: #b3bec8 !important; }

.standings-next-cell {
    color: #9eabb8 !important;
    font-size: .64rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.standings-next-opponent {
    display: block;
    overflow: hidden;
    color: #eaf0f6;
    text-overflow: ellipsis;
}

.standings-next-date {
    display: block;
    margin-top: 3px;
    color: #7f8d9a;
    font-size: .56rem;
}

.standings-empty td {
    height: 90px;
    color: #97a5b3 !important;
    font-style: italic;
    text-align: center !important;
}

.standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin: 0 14px 15px;
    padding-top: 13px;
    color: #8998a7;
    border-top: 1px solid #2a3540;
    font-size: .62rem;
}

.standings-legend strong {
    width: 100%;
    color: #f5f8fb;
    font-size: .65rem;
    text-transform: uppercase;
}

.standings-page .site-footer {
    margin-top: 0;
}

@media (max-width: 900px) {
    .standings-page-panel {
        padding: 20px;
    }

    .standings-shell {
        grid-template-columns: 1fr;
    }

    .standings-filter-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .standings-filter-panel > h1 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .standings-filter-field + .standings-filter-field {
        margin-top: 0;
    }
}

@media (max-width: 620px) {
    .standings-page-panel {
        width: min(100% - 20px, 1320px);
        margin-top: 18px;
        padding: 15px;
    }

    .standings-filter-panel {
        grid-template-columns: 1fr;
    }

    .standings-filter-panel > h1 {
        grid-column: auto;
    }

    .standings-panel-header {
        padding: 13px 15px;
    }

    .standings-table-scroller {
        padding: 10px;
    }
}

/* All-divisions display and exact Schedule-page background alignment. */
.standings-page,
body.standings-page {
    background-color: #080d13 !important;
    background-image: none !important;
}

.standings-divisions-container {
    padding: 14px;
}

.standings-division-section + .standings-division-section {
    margin-top: 22px;
    padding-top: 21px;
    border-top: 1px solid #2a3540;
}

.standings-division-section > h2 {
    margin: 0 0 10px;
    color: #f7f9fc;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.standings-division-section .standings-table-scroller {
    padding: 0;
}

@media (max-width: 620px) {
    .standings-divisions-container {
        padding: 10px;
    }
}
