/* 排行榜样式 */
.chart-tabs {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.chart-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.chart-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.chart-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 20px -5px var(--glow-color);
}

.chart-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 20px;
}

.chart-list {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.list-header {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.list-body {
    max-height: 600px;
    overflow-y: auto;
}

.chart-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px;
    padding: 12px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    cursor: pointer;
}

.chart-item:hover {
    background: var(--bg-elevated);
}

.chart-item.playing {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-primary);
}

.item-rank {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
}

.item-rank.top-1 {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.item-rank.top-2 {
    color: #C0C0C0;
}

.item-rank.top-3 {
    color: #CD7F32;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.item-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-artist {
    font-size: 13px;
    color: var(--text-secondary);
}

.item-duration {
    color: var(--text-secondary);
    font-size: 14px;
}

.item-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.item-stats i {
    font-style: normal;
    color: var(--accent-primary);
}

.item-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.chart-item:hover .item-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.action-btn:hover {
    color: var(--accent-primary);
}

.action-btn.liked {
    color: #EC4899;
}

.now-playing-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.now-playing-card h3 {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.now-playing-placeholder {
    text-align: center;
    padding: 40px 0;
}

.now-playing-placeholder .icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.now-playing-placeholder p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.now-playing-song {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.now-playing-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
}

.now-playing-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.now-playing-artist {
    color: var(--text-secondary);
    font-size: 14px;
}

.now-playing-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.now-playing-actions {
    display: flex;
    gap: 12px;
}

.now-playing-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.now-playing-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

@media (max-width: 1024px) {
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .now-playing-card {
        display: none;
    }
}