﻿.standings-wrap {
    padding: 8px 4px;
}

/* Podium row with equal sizing */
.podium-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

    .podium-row .tile .badge {
        background: linear-gradient(145deg, #222, #000);
        box-shadow: 0 2px 4px rgba(0,0,0,.25);
    }

.tile {
    position: relative;
    background: var(--bs-light, #f8f9fa);
    border-radius: 14px;
    padding: 14px 12px 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

    .tile .trophy {
        position: absolute;
        top: 16px;
        right: 12px;
        font-size: 40px;
        filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
    }

        .tile .trophy.gold {
            color: #d4af37;
        }

        .tile .trophy.silver {
            color: #c0c0c0;
        }

        .tile .trophy.bronze {
            color: #cd7f32;
        }

    .tile .avatar {
        width: 92px;
        height: 92px;
        border-radius: 999px;
        margin: 8px auto 10px;
        background-size: cover;
        background-position: center;
        background-color: #e9ecef;
    }

    .tile .name {
        font-weight: 600;
        font-size: 0.95rem;
        line-height: 1.2;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tile .score {
        font-size: 0.85rem;
        opacity: .7;
    }

    .tile.placeholder .avatar {
        background-color: #eaeaea;
    }

@media (max-width: 768px) {
    .podium-row {
        grid-template-columns: 1fr;
    }
}


/* Trophy placement */
.tile .trophy {
    position: absolute;
    top: 16px;
    right: 12px;
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

    .tile .trophy.gold {
        color: #d4af37;
    }
    /* gold */
    .tile .trophy.silver {
        color: #c0c0c0;
    }
    /* silver */
    .tile .trophy.bronze {
        color: #cd7f32;
    }
/* bronze */

/* (Optional) a subtle matching ring around avatar for the podium */
.podium-slot.first .avatar {
    box-shadow: 0 0 0 3px rgba(212,175,55,.35);
}

.podium-slot.second .avatar {
    box-shadow: 0 0 0 3px rgba(192,192,192,.35);
}

.podium-slot.third .avatar {
    box-shadow: 0 0 0 3px rgba(205,127,50,.35);
}

/* 4th–10th responsive grid */
.standings-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.standings-card {
    display: grid;
    grid-template-columns: 44px 56px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--bs-light, #f8f9fa);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    min-height: 64px;
}

    .standings-card .thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        background-color: #e9ecef;
    }

    .standings-card .content {
        min-width: 0;
    }

    .standings-card .title {
        font-weight: 600;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
    }

    .standings-card .meta {
        display: flex;
        align-items: center;
        gap: 8px;
        opacity: .75;
        font-size: .9rem;
    }

    .standings-card .votes {
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(0,0,0,.06);
        font-variant-numeric: tabular-nums;
    }

/* Tighten on narrow screens */
@media (max-width: 420px) {
    .standings-card {
        grid-template-columns: 36px 48px 1fr;
    }

        .standings-card .rankchip {
            width: 36px;
            height: 36px;
            font-size: .9rem;
        }

        .standings-card .thumb {
            width: 48px;
            height: 48px;
        }
}

/* Unified rank chip style */
.rankchip,
.tile .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px; /* larger, bold numbers */
    width: 44px;
    height: 44px;
    border-radius: 12px;
    text-align: center;
    background: rgba(0,0,0,.06);
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

    /* Specific colors for podium places */
    .tile .badge.gold {
        background: #d4af37;
        color: #fff;
    }

    .tile .badge.silver {
        background: #c0c0c0;
        color: #fff;
    }

    .tile .badge.bronze {
        background: #cd7f32;
        color: #fff;
    }