/* ==================== 排行榜页样式 ==================== */
.leaderboard-page {
    padding: 20px 0 60px;
}

.lb-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
}

.lb-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.lb-tab {
    padding: 12px 28px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-white);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.lb-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lb-tab.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* 排行榜列表 */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-item {
    display: grid;
    grid-template-columns: 60px 64px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
}

.lb-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.lb-item.top1 { border-left: 4px solid #ffd700; }
.lb-item.top2 { border-left: 4px solid #c0c0c0; }
.lb-item.top3 { border-left: 4px solid #cd7f32; }

.lb-rank {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-light);
    text-align: center;
}

.lb-item.top1 .lb-rank { color: #ffd700; }
.lb-item.top2 .lb-rank { color: #c0c0c0; }
.lb-item.top3 .lb-rank { color: #cd7f32; }

.lb-thumb {
    width: 64px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-info {
    min-width: 0;
}

.lb-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-cat {
    font-size: 12px;
    color: var(--text-light);
}

.lb-plays {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.lb-rating {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lb-rating .stars {
    color: #ffc107;
    font-size: 12px;
}

.lb-date {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

/* 列标题 */
.lb-header {
    display: grid;
    grid-template-columns: 60px 64px 1fr auto auto auto;
    gap: 16px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-header span:nth-child(4),
.lb-header span:nth-child(5),
.lb-header span:nth-child(6) {
    text-align: right;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .lb-title {
        font-size: 24px;
    }
    .lb-tabs {
        flex-wrap: wrap;
    }
    .lb-tab {
        padding: 8px 20px;
        font-size: 13px;
    }
    .lb-item {
        grid-template-columns: 40px 48px 1fr auto;
        gap: 10px;
        padding: 12px 14px;
    }
    .lb-date, .lb-header span:nth-child(6) {
        display: none;
    }
    .lb-header {
        grid-template-columns: 40px 48px 1fr auto;
    }
    .lb-thumb {
        width: 48px;
        height: 32px;
    }
    .lb-rank {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lb-item {
        grid-template-columns: 36px 40px 1fr;
        gap: 8px;
    }
    .lb-plays, .lb-header span:nth-child(4),
    .lb-rating, .lb-header span:nth-child(5) {
        display: none;
    }
    .lb-header {
        grid-template-columns: 36px 40px 1fr;
    }
}
