.standings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.standings-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.standings-header-left img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.standings-header-left h2 {
    font-size: 1.15rem;
    font-weight: 700;
}
.standings-header-left .league-country {
    font-size: 12px;
    color: var(--text-muted);
}
.standings-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.season-select {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}
.season-select:focus {
    outline: none;
    border-color: var(--primary);
}
.league-picker {
    position: relative;
    min-width: 280px;
}
.league-picker-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-align: left;
}
.league-picker-toggle i {
    font-size: 11px;
    transition: transform .2s ease;
}
.league-picker.open .league-picker-toggle i {
    transform: rotate(180deg);
}
.league-picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    z-index: 50;
    padding: 8px;
}
.league-search {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}
.league-search:focus {
    outline: none;
    border-color: var(--primary);
}
.league-picker-list {
    max-height: 280px;
    overflow-y: auto;
    display: grid;
    gap: 4px;
}
.league-picker-list .loading {
    padding: 10px 8px;
    min-height: auto;
    gap: 10px;
}
.league-picker-list .loading p {
    margin-top: 0;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
}
.league-picker-list .loading p::before {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    border-radius: 5px;
}
.league-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    text-align: left;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.league-option:hover,
.league-option.active {
    background: rgba(83,111,118,0.16);
    color: var(--text-primary);
}

/* Force opaque backgrounds on this page (no transparency) */
.standings-header,
.standings-table-wrap,
.league-picker-toggle,
.league-picker-panel,
.league-search,
.season-select,
.nav-menu,
.quick-nav-trigger,
.quick-nav-panel,
.quick-nav-panel .nav-link {
    background-color: #1f2c33 !important;
    background-image: none !important;
    backdrop-filter: none !important;
}

[data-theme="light"] .standings-header,
[data-theme="light"] .standings-table-wrap,
[data-theme="light"] .league-picker-toggle,
[data-theme="light"] .league-picker-panel,
[data-theme="light"] .league-search,
[data-theme="light"] .season-select,
[data-theme="light"] .nav-menu,
[data-theme="light"] .quick-nav-trigger,
[data-theme="light"] .quick-nav-panel,
[data-theme="light"] .quick-nav-panel .nav-link {
    background-color: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
}
.standings-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.standings-table th {
    padding: 8px 6px;
    background: rgba(83,111,118,0.2);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}
.standings-table th:nth-child(2) {
    text-align: left;
}
.standings-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.standings-table td:nth-child(2) {
    text-align: left;
}
.standings-table tr:hover {
    background: rgba(83,111,118,0.06);
}
.standings-table .pos-col {
    font-weight: 700;
    color: var(--primary);
    width: 30px;
}
.standings-table .team-col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}
.standings-table .team-col img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.standings-table .team-col a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}
.standings-table .team-col a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.standings-table .pts-col {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}
.standings-table .form-col {
    display: flex;
    gap: 2px;
    justify-content: center;
}
.form-dot {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.form-dot.W { background: #28a745; }
.form-dot.D { background: #ffc107; color: #333; }
.form-dot.L { background: #dc3545; }

@media (max-width: 768px) {
    .standings-header { padding: 10px; }
    .standings-header-left h2 { font-size: 0.95rem; }
    .standings-controls {
        width: 100%;
        margin-left: 0;
    }
    .league-picker,
    .season-select {
        flex: 1 1 0;
        min-width: 0;
    }
    .standings-table { font-size: 11px; }
    .standings-table th { padding: 6px 4px; font-size: 10px; }
    .standings-table td { padding: 6px 4px; }
    .standings-table .team-col { min-width: 120px; gap: 5px; }
    .standings-table .team-col img { width: 18px; height: 18px; }
    .standings-table .gd-col,
    .standings-table th:nth-child(8) { display: none; }
    .standings-table .form-col { display: none; }
    .standings-table th:last-child { display: none; }
}

.seo-copy { margin: 16px 0 10px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
[data-theme="light"] .seo-copy { background: #fff; }
.seo-copy h2 { margin: 0 0 8px; font-size: 16px; }
.seo-copy p { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.seo-copy p:last-child { margin-bottom: 0; }

.standings-hide-on-error.is-hidden { display: none; }

.standings-team-logo { width: auto; object-fit: contain; }

.league-picker-empty-state { padding: 10px 8px; }






