.leaderboard-page {
    overflow: hidden;
}

.leaderboard-hero {
    padding: 72px 0 28px;
}

.leaderboard-hero__content {
    max-width: 760px;
}

.leaderboard-hero__content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.leaderboard-hero__content p {
    color: var(--muted);
    max-width: 640px;
    font-size: 1.02rem;
}

.leaderboard-switcher {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.switch-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.switch-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.switch-btn.active {
    background: var(--primary);
    color: #fff;
}

.leaderboard-board {
    display: none;
}

.leaderboard-board.active {
    display: block;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
}

.podium-card {
    padding: 22px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(215, 38, 56, 0.14), transparent 35%),
        var(--surface);
}

.podium-card--first {
    min-height: 220px;
    border-color: rgba(215, 38, 56, 0.4);
}

.podium-card--second,
.podium-card--third {
    min-height: 190px;
}

.podium-place {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(215, 38, 56, 0.12);
    border: 1px solid rgba(215, 38, 56, 0.25);
    color: #ff9ca3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.podium-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.podium-card p {
    color: var(--muted);
    margin-bottom: 14px;
}

.podium-card strong {
    font-size: 1.1rem;
}

.standings-card {
    overflow: hidden;
}

.standings-card__header {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-card__header h3 {
    font-size: 1.05rem;
}

.standings-table {
    display: grid;
}

.standings-row {
    display: grid;
    grid-template-columns: 100px 1.2fr 1fr 120px;
    gap: 14px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-row:last-child {
    border-bottom: 0;
}

.standings-row--head {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.02);
}

.standings-row:not(.standings-row--head):hover {
    background: rgba(255, 255, 255, 0.02);
}

.standings-row span:last-child,
.standings-row--teams span:last-child {
    font-weight: 700;
    color: var(--text);
}

.standings-row--teams {
    grid-template-columns: 100px 1fr 120px;
}

@media (max-width: 900px) {
    .leaderboard-hero {
        padding: 56px 0 20px;
    }

    .podium-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .podium-card,
    .podium-card--first,
    .podium-card--second,
    .podium-card--third {
        min-height: auto;
    }

    .standings-table {
        overflow-x: auto;
    }

    .standings-row {
        min-width: 700px;
    }

    .standings-row--teams {
        min-width: 500px;
    }
}