.lb-wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem 4rem; overflow-x: hidden; }

/* ── hero ── */
.lb-hero {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 0.5rem 0 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.5rem;
}
.lb-hero-img {
    width: 58px; height: 58px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}
.lb-hero h1 {
    font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px;
    line-height: 1.1; margin: 0;
}
.lb-hero-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.28rem; }

/* ── tab nav ── */
.lb-tab-nav-wrap { margin-bottom: 1.25rem; }
.lb-tab-nav {
    display: flex; gap: 0.25rem;
    --lb-accent: var(--primary);
    padding: 0.3rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}
.lb-tab-btn {
    flex: 1;
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    font-size: 0.88rem; font-weight: 600;
    padding: 0.6rem 0.5rem 0.62rem;
    border-radius: 7px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
}
.lb-tab-btn img { width: 15px; height: 15px; object-fit: contain; opacity: 0.38; transition: opacity 0.15s; flex-shrink: 0; }
.lb-tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.lb-tab-btn:hover img { opacity: 0.65; }
.lb-tab-btn.active { color: var(--text); background: rgba(255,255,255,0.07); }
.lb-tab-btn.active img { opacity: 1; }

/* ── panel ── */
.lb-panel { display: none; }
.lb-panel.active { display: block; }

/* ── PODIUM ── */
.lb-podium {
    display: grid; grid-template-columns: 1fr 1.08fr 1fr;
    gap: 0.5rem; margin-bottom: 0.6rem; align-items: end;
}
.lb-pod {
    position: relative;
    background: var(--card);
    border-radius: 10px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0.26rem;
    text-decoration: none; color: var(--text);
    transition: transform 0.15s;
    overflow: hidden;
}
.lb-pod:hover { transform: translateY(-3px); }

.lb-pod-1 {
    min-height: 275px; padding: 2.1rem 0.75rem 1.3rem;
    border: 1px solid rgba(255,215,0,0.28);
    box-shadow: inset 0 0 60px rgba(255,215,0,0.07);
}
.lb-pod-2 {
    min-height: 238px; padding: 1.5rem 0.75rem 1.15rem;
    border: 1px solid rgba(192,192,192,0.18);
    box-shadow: inset 0 0 40px rgba(192,192,192,0.05);
}
.lb-pod-3 {
    min-height: 210px; padding: 1.5rem 0.75rem 1.15rem;
    border: 1px solid rgba(205,127,50,0.18);
    box-shadow: inset 0 0 40px rgba(205,127,50,0.05);
}

/* crown image — absolutely positioned above medal, only on 1st */
.lb-pod-crown-img {
    position: absolute; top: 0.3rem; left: 50%; transform: translateX(-50%);
    width: 26px; height: 26px; object-fit: contain; pointer-events: none;
    display: none;
}
.lb-pod-1 .lb-pod-crown-img { display: block; }

/* avatar */
.lb-pod-avatar, .lb-pod-avatar-ph {
    width: 64px; height: 64px; border-radius: 10px; object-fit: contain;
    background: rgba(255,255,255,0.05); flex-shrink: 0;
}
.lb-pod-1 .lb-pod-avatar, .lb-pod-1 .lb-pod-avatar-ph {
    width: 80px; height: 80px; border-radius: 12px;
}

.lb-pod { gap: 0.35rem; }
.lb-pod-name {
    font-size: 0.95rem; font-weight: 700; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    width: 100%; margin-top: 0.1rem;
}
.lb-pod-1 .lb-pod-name { font-size: 1.05rem; }
.lb-pod-tag { font-size: 0.7rem; color: var(--text-dim); }
/* rank number — plain, no bubble, sits above avatar in flow */
.lb-pod-rank {
    font-size: 0.9rem; font-weight: 900; line-height: 1;
    margin-bottom: 0.1rem;
}
.lb-pod-1 .lb-pod-rank { color: #FFD700; }
.lb-pod-2 .lb-pod-rank { color: #b8b8b8; }
.lb-pod-3 .lb-pod-rank { color: #CD7F32; }

.lb-pod-val {
    display: flex; align-items: center; justify-content: center; gap: 0.35rem;
    font-size: 1.15rem; font-weight: 800;
    margin-top: 0.15rem; white-space: nowrap;
}
.lb-pod-1 .lb-pod-val { font-size: 1.25rem; }
.lb-pod-val img { width: 18px; height: 18px; object-fit: contain; }

/* ── LIST (ranks 4–100) ── */
.lb-list { display: flex; flex-direction: column; gap: 3px; }
.lb-row {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 8px;
    padding: 0.55rem 1rem 0.55rem 0.75rem;
    text-decoration: none; color: var(--text);
    transition: background 0.12s, border-color 0.12s;
}
.lb-row:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.lb-rank {
    font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.28);
    min-width: 30px; text-align: right; flex-shrink: 0; letter-spacing: -0.3px;
}
.lb-avatar, .lb-avatar-ph {
    width: 42px; height: 42px; border-radius: 8px;
    object-fit: contain; background: rgba(255,255,255,0.05); flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tag  { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.lb-val-pill {
    display: flex; align-items: center; gap: 0.32rem; flex-shrink: 0;
}
.lb-val-pill img  { width: 18px; height: 18px; object-fit: contain; }
.lb-val-pill span { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; }

/* ── empty ── */
.lb-empty { text-align: center; color: var(--text-dim); padding: 3.5rem 1rem; font-size: 0.88rem; }

/* ── mobile ── */
@media (max-width: 560px) {
    .lb-wrap { padding: 0 0.75rem 3rem; }
    .lb-hero { padding: 0.5rem 0 0.9rem; gap: 0.75rem; }
    .lb-hero-img { width: 42px; height: 42px; }
    .lb-hero h1  { font-size: 1.45rem; }
    .lb-hero-sub { font-size: 0.74rem; }

    /* tabs: 2 rows (4 + 3) */
    .lb-tab-nav  { flex-wrap: wrap !important; gap: 0.2rem !important; }
    .lb-tab-btn  { flex: 1 0 calc(25% - 0.2rem) !important; font-size: 0.75rem; padding: 0.5rem 0.2rem; gap: 0.2rem; }
    .lb-tab-btn img { width: 13px; height: 13px; }

    /* podium: tighter, shorter cards */
    .lb-podium   { gap: 0.25rem; margin-bottom: 0.5rem; }
    .lb-pod      { gap: 0.22rem; border-radius: 8px; }
    .lb-pod-1    { min-height: 210px; padding: 1.75rem 0.4rem 1rem; }
    .lb-pod-2    { min-height: 182px; padding: 0.85rem 0.4rem 0.9rem; }
    .lb-pod-3    { min-height: 160px; padding: 0.85rem 0.4rem 0.9rem; }
    .lb-pod-crown-img { width: 20px; height: 20px; top: 0.25rem; }
    .lb-pod-avatar, .lb-pod-avatar-ph { width: 46px; height: 46px; border-radius: 7px; }
    .lb-pod-1 .lb-pod-avatar, .lb-pod-1 .lb-pod-avatar-ph { width: 58px; height: 58px; border-radius: 9px; }
    .lb-pod-name { font-size: 0.75rem; }
    .lb-pod-1 .lb-pod-name { font-size: 0.82rem; }
    .lb-pod-tag  { display: none; }
    .lb-pod-rank { font-size: 0.75rem; }
    .lb-pod-val  { font-size: 0.9rem; gap: 0.22rem; }
    .lb-pod-val img { width: 13px; height: 13px; }
    .lb-pod-1 .lb-pod-val { font-size: 1rem; }

    /* list rows */
    .lb-list { gap: 2px; }
    .lb-row      { padding: 0.48rem 0.65rem 0.48rem 0.6rem; gap: 0.55rem; border-radius: 7px; }
    .lb-rank     { min-width: 22px; font-size: 0.78rem; }
    .lb-avatar, .lb-avatar-ph { width: 36px; height: 36px; border-radius: 6px; }
    .lb-name     { font-size: 0.88rem; }
    .lb-tag      { font-size: 0.68rem; }
    .lb-val-pill img  { width: 15px; height: 15px; }
    .lb-val-pill span { font-size: 1rem; }
}
.lb-modern-picture { display: contents; }
