.leaders-main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.leaders-header {
    text-align: center;
    margin-bottom: 50px;
}

.leaders-header h1 {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 107, 87, 0.4);
    margin-bottom: 10px;
}

.leaders-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.lb-column {
    background: var(--bg-card);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lb-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
}

.lb-header.rich {
    background: linear-gradient(90deg, #1b2e1b 0%, #0d1a0d 100%);
    border-bottom-color: #4caf50;
}

.lb-header.rich i {
    color: #4caf50;
    margin-right: 8px;
}

.lb-header.level {
    background: linear-gradient(90deg, #2e1f10 0%, #1a1108 100%);
    border-bottom-color: #ff9800;
}

.lb-header.level i {
    color: #ff9800;
    margin-right: 8px;
}

.lb-header.forum {
    background: linear-gradient(90deg, #161c2e 0%, #0b0e1a 100%);
    border-bottom-color: #00bcd4;
}

.lb-header.forum i {
    color: #00bcd4;
    margin-right: 8px;
}

.lb-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lb-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    transition: 0.2s;
}

.lb-item:hover {
    background: #1a1a1a;
}

.lb-item:last-child {
    border-bottom: none;
}

.lb-rank {
    font-size: 18px;
    font-weight: 900;
    width: 30px;
    color: #555;
}

/* Золото, серебро, бронза */
.rank-1 {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    font-size: 22px;
}

.rank-2 {
    color: #e0e0e0;
}

.rank-3 {
    color: #cd7f32;
}

.lb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    margin-right: 15px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
}

.rank-1-avatar {
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.lb-info {
    flex: 1;
    min-width: 0;
}

.lb-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.lb-score {
    font-size: 16px;
    font-weight: 800;
    color: #eee;
}

/* Анимация загрузки */
.loading-pulse {
    animation: pulse 1.5s infinite;
    color: #aaa;
    text-align: center;
    padding: 40px;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ЗАМЕНИТЬ СТАРЫЙ @media БЛОК В КОНЦЕ ФАЙЛА НА ЭТОТ: */
@media (max-width: 900px) {
    .leaderboards-grid { grid-template-columns: 1fr; }
    .leaders-header h1 { font-size: 28px; }
    .lb-item { padding: 15px; flex-direction: column; gap: 10px; text-align: center; }
    .lb-avatar { margin-right: 0; margin-bottom: 5px; }
    .lb-name { white-space: normal; word-break: break-all; }
    .lb-score { font-size: 14px; }
}