.leaderboard-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 20px 20px;
}

@media (min-width: 768px) {
    .leaderboard-content {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: calc(var(--sidebar-width-collapsed) + 32px);
    }
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.leaderboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}

.leaderboard-title h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.leaderboard-filters {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.leaderboard-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.leaderboard-info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.leaderboard-info-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.leaderboard-info-text strong {
    color: #fbbf24;
    font-weight: 700;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
    transform: translateX(4px);
}

.leaderboard-item:hover::before {
    opacity: 1;
}

.leaderboard-item.current-user {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.15);
}

.leaderboard-rank {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    min-width: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.leaderboard-item.rank-1 .leaderboard-rank {
    color: #fbbf24;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-item.rank-1 .leaderboard-rank::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbbf24'%3E%3Cpath d='M12 2l2.4 7.4h7.6l-6 4.6 2.3 7-6.3-4.6-6.3 4.6 2.3-7-6-4.6h7.6z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.2;
    animation: rotateStar 20s linear infinite;
}

@keyframes rotateStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.leaderboard-item.rank-2 .leaderboard-rank {
    color: #c0c0c0;
    font-size: 24px;
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(184, 115, 51, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.leaderboard-item.rank-3 .leaderboard-rank {
    color: #cd7f32;
    font-size: 24px;
}

.leaderboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.leaderboard-item:hover .leaderboard-avatar {
    border-color: rgba(251, 191, 36, 0.4);
    transform: scale(1.05);
}

.leaderboard-item.rank-1 .leaderboard-avatar {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.leaderboard-username {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-level {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.leaderboard-xp {
    text-align: right;
    position: relative;
    z-index: 1;
}

.leaderboard-xp-amount {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 2px;
}

.leaderboard-xp-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-champion-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    white-space: nowrap;
}

.leaderboard-champion-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.leaderboard-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboard-empty img {
    width: 100px;
    height: 100px;
    opacity: 0.2;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .leaderboard-content {
        padding: 80px 16px 16px 16px;
    }
    
    .leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }
    
    .leaderboard-title h1 {
        font-size: 26px;
    }
    
    .leaderboard-icon {
        width: 40px;
        height: 40px;
    }
    
    .leaderboard-filters {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .leaderboard-item {
        gap: 12px;
        padding: 16px;
    }
    
    .leaderboard-rank {
        font-size: 18px;
        min-width: 40px;
    }
    
    .leaderboard-item.rank-1 .leaderboard-rank {
        font-size: 24px;
    }
    
    .leaderboard-item.rank-2 .leaderboard-rank,
    .leaderboard-item.rank-3 .leaderboard-rank {
        font-size: 20px;
    }
    
    .leaderboard-avatar {
        width: 48px;
        height: 48px;
    }
    
    .leaderboard-username {
        font-size: 15px;
        flex-wrap: wrap;
    }
    
    .leaderboard-champion-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-top: 4px;
    }
    
    .leaderboard-champion-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .leaderboard-xp-amount {
        font-size: 18px;
    }
}

.leaderboard-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.countdown-icon {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.countdown-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.countdown-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer {
    font-size: 18px;
    font-weight: 600;
    color: #fbbf24;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .leaderboard-countdown {
        padding: 12px 16px;
    }
    
    .countdown-icon {
        font-size: 20px;
    }
    
    .countdown-timer {
        font-size: 16px;
    }
}
