/* ===== PREMIUM STANDINGS ===== */

.standings-page {
    max-width: 1240px;
    margin: 32px auto 70px;
    padding: 0 18px;
}

.standings-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .22), transparent 35%),
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .92));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    margin-bottom: 24px;
}

.standings-hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    box-shadow: 0 10px 28px rgba(59, 130, 246, .35);
    color: white;
}

.standings-hero-icon svg {
    width: 28px;
    height: 28px;
}

.standings-hero-content {
    flex: 1;
    min-width: 0;
}

.standings-hero-content h1 {
    margin: 0;
    font-size: 38px;
    color: white;
    letter-spacing: -1.5px;
}

.standings-hero-content p {
    margin: 6px 0 0;
    color: var(--muted);
}

.standings-hero-controls {
    flex-shrink: 0;
}

#leagueSelect {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
    color: white;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#leagueSelect option {
    background: #111827;
}

.standings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.standings-info {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

.follow-league-button {
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.follow-league-button:hover {
    background: rgba(59, 130, 246, .14);
}

.follow-league-button.is-following {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: white;
    border-color: transparent;
}

.standings-box {
    overflow-x: auto;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: rgba(255, 255, 255, .05);
    color: var(--primary-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 18px;
}

.standings-table td {
    padding: 18px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.standings-table tr {
    transition: .2s;
}

.standings-table tr:hover {
    background: rgba(59, 130, 246, .08);
}

.team-name {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
}

.team-name img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.team-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
}

.team-link:hover span {
    color: var(--primary-soft);
}

.team-link-static {
    cursor: default;
}

.ucl td:first-child {
    border-left: 5px solid #22c55e;
}

.uel td:first-child {
    border-left: 5px solid #3b82f6;
}

.conference td:first-child {
    border-left: 5px solid #f59e0b;
}

.relegation td:first-child {
    border-left: 5px solid #ef4444;
}

.standings-table .col-secondary {
    text-align: center;
}

@media(max-width:900px) {

    .standings-hero {
        flex-wrap: wrap;
    }

    .standings-toolbar {
        flex-wrap: wrap;
    }

    .standings-hero-content {
        min-width: 200px;
    }

    .standings-hero-controls {
        width: 100%;
    }

    #leagueSelect {
        width: 100%;
    }

    .standings-table {
        font-size: 14px;
    }

}

@media(max-width:700px) {

    .standings-table th,
    .standings-table td {
        padding: 12px 10px;
    }

    .team-name {
        gap: 8px;
    }

    .team-name img {
        width: 26px;
        height: 26px;
    }

    .team-link,
    .team-link span:last-child {
        min-width: 0;
    }

    .team-link span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
    }

    .standings-table .col-hide-xs {
        display: none;
    }
}

@media(max-width:520px) {

    .standings-hero {
        padding: 22px 20px;
    }

    .standings-hero-icon {
        width: 46px;
        height: 46px;
    }

    .standings-hero-icon svg {
        width: 22px;
        height: 22px;
    }

    .standings-hero-content h1 {
        font-size: 28px;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .standings-table .col-hide-sm {
        display: none;
    }
}