/* ═══════════════════════════════════════════════════════════════════════════
   Stats Leaderboard — side-by-side category columns
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-table { font-size: .82rem; }

/* ── Scroll container ──────────────────────────────────────────────────── */
.leaderboard-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

/* ── Grid of columns ───────────────────────────────────────────────────── */
.leaderboard-grid {
    display: flex;
    gap: 0;
    min-width: max-content;
}

/* ── Individual category column ────────────────────────────────────────── */
.lb-column {
    min-width: 200px;
    max-width: 240px;
    flex: 0 0 auto;
    border-right: 1px solid #dee2e6;
}
.lb-column:last-child {
    border-right: none;
}

/* ── Category header ───────────────────────────────────────────────────── */
.lb-header {
    background: #212529;
    color: #fff;
    font-weight: 600;
    font-size: .78rem;
    text-align: center;
    padding: 6px 8px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ── Ranked list ───────────────────────────────────────────────────────── */
.lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: lb-rank;
}

/* ── Individual entry ──────────────────────────────────────────────────── */
.lb-entry {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 8px;
    font-size: .78rem;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    counter-increment: lb-rank;
}
.lb-entry::before {
    content: counter(lb-rank) ".";
    flex: 0 0 22px;
    color: #999;
    font-size: .72rem;
    text-align: right;
}

.lb-entry:nth-child(-n+3)::before {
    color: #b8860b;
    font-weight: 600;
}

.lb-entry:hover {
    background: #f8f9fa;
}

/* ── Value (stat number) ───────────────────────────────────────────────── */
.lb-value {
    flex: 0 0 42px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: #1a1a2e;
}

/* ── Player name ───────────────────────────────────────────────────────── */
.lb-name {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

/* ── Team abbreviation ─────────────────────────────────────────────────── */
.lb-team {
    flex: 0 0 auto;
    color: #888;
    font-size: .7rem;
    text-transform: uppercase;
}

/* ── Top-3 gold/silver/bronze accents ──────────────────────────────────── */
.lb-entry:nth-child(1) {
    background: #fffbeb;
}
.lb-entry:nth-child(2) {
    background: #fafafa;
}
.lb-entry:nth-child(3) {
    background: #fdf8f0;
}

/* ── Responsive: narrower columns on small screens ─────────────────────── */
@media (max-width: 768px) {
    .lb-column {
        min-width: 170px;
    }
    .lb-value {
        flex: 0 0 38px;
    }
}
