/* ============================================
   LEADERBOARD PAGE
   ============================================ */
.lb-main { padding: 104px 40px 60px; max-width: var(--container-width); margin: 0 auto; position: relative; z-index: 1; }
.lb-header { text-align: center; margin-bottom: 32px; }
.lb-header h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.lb-header p { color: var(--text-secondary); }

.lb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.lb-stat-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px; text-align: center; transition: all 0.3s; }
.lb-stat-card:hover { border-color: var(--border-gold); }
.lb-stat-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.lb-stat-value { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.lb-stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 40px 0; padding: 20px 0; }
.podium-place { text-align: center; transition: all 0.4s var(--ease-out-expo); }
.podium-place:hover { transform: translateY(-6px); }
.podium-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; color: var(--bg-primary);
    border: 3px solid var(--gold); position: relative;
}
.podium-1 { width: 100px; height: 100px; font-size: 1.8rem; background: linear-gradient(135deg, #ffd700, #ffaa00); border-color: #ffd700; box-shadow: 0 0 30px rgba(255,215,0,0.3); }
.podium-2 { width: 80px; height: 80px; background: linear-gradient(135deg, #c0c0c0, #a0a0a0); border-color: #c0c0c0; box-shadow: 0 0 20px rgba(192,192,192,0.2); }
.podium-3 { width: 70px; height: 70px; background: linear-gradient(135deg, #cd7f32, #b8722e); border-color: #cd7f32; box-shadow: 0 0 20px rgba(205,127,50,0.2); }
.podium-crown { position: absolute; top: -20px; font-size: 1.5rem; }
.podium-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.podium-value { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.podium-bar {
    width: 60px; border-radius: 8px 8px 0 0; margin: 0 auto;
    background: linear-gradient(to top, var(--gold-dark), var(--gold));
    opacity: 0.3; transition: all 0.4s;
}
.podium-1 .podium-bar { height: 120px; width: 80px; opacity: 0.5; }
.podium-2 .podium-bar { height: 90px; width: 60px; }
.podium-3 .podium-bar { height: 60px; width: 50px; }
@media (max-width: 600px) { .podium-avatar, .podium-1, .podium-2, .podium-3 { width: 60px; height: 60px; font-size: 1rem; } .podium-1 { width: 70px; height: 70px; } }

/* Tabs */
.lb-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: rgba(255,255,255,0.03); border-radius: 12px; padding: 4px; }
.lb-tab { padding: 8px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: all 0.3s; }
.lb-tab.active { background: var(--gold); color: var(--bg-primary); }
.lb-tab:hover:not(.active) { color: var(--text-secondary); }

/* Table */
.lb-table-wrapper { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border-subtle); }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { padding: 14px 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-card); text-align: left; border-bottom: 1px solid var(--border-subtle); }
.lb-table td { padding: 12px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.01); }
.lb-table tr:hover td { background: rgba(255,255,255,0.03); }
.lb-table tr:last-child td { border-bottom: none; }
.lb-rank { font-weight: 700; font-family: var(--font-display); color: var(--gold); width: 40px; }
.lb-rank.gold { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-player-cell { display: flex; align-items: center; gap: 10px; }
.lb-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-dark)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.7rem; color: var(--bg-primary); }
.lb-highlight td { background: rgba(212,168,67,0.08) !important; }
.lb-positive { color: var(--green); }
.lb-negative { color: var(--red); }

/* Responsive */
@media (max-width: 768px) {
    .lb-main { padding: 90px 16px 40px; }
    .lb-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lb-table th, .lb-table td { padding: 10px 8px; font-size: 0.75rem; }
    .lb-avatar { width: 22px; height: 22px; font-size: 0.6rem; }
}