/* ============================================
   MV榜单页面样式
   设计风格：暗色霓虹 + 炫酷特效
   ============================================ */

/* 页面头部横幅 */
.chart-hero {
    position: relative;
    padding: 80px 24px 60px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,51,102,0.1) 0%, rgba(139,92,246,0.1) 100%);
}

.chart-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255,51,102,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.15) 0%, transparent 50%);
}

.chart-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.chart-hero-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: white;
    box-shadow: 0 0 60px rgba(255,51,102,0.5);
    animation: trophyGlow 3s ease-in-out infinite;
}

@keyframes trophyGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255,51,102,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 80px rgba(255,51,102,0.7); transform: scale(1.02); }
}

.chart-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.chart-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

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

.hero-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 粒子特效 */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-pink);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s linear infinite;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; animation-delay: 1s; background: var(--accent-purple); }
.particles span:nth-child(3) { left: 30%; animation-delay: 2s; background: var(--accent-cyan); }
.particles span:nth-child(4) { left: 40%; animation-delay: 3s; }
.particles span:nth-child(5) { left: 50%; animation-delay: 4s; background: var(--accent-orange); }
.particles span:nth-child(6) { left: 60%; animation-delay: 5s; background: var(--accent-purple); }
.particles span:nth-child(7) { left: 70%; animation-delay: 6s; background: var(--accent-cyan); }
.particles span:nth-child(8) { left: 80%; animation-delay: 7s; }
.particles span:nth-child(9) { left: 90%; animation-delay: 2.5s; background: var(--accent-orange); }
.particles span:nth-child(10) { left: 5%; animation-delay: 4.5s; background: var(--accent-cyan); }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* ============================================
   榜单主体区域
   ============================================ */
.chart-main-section {
    padding: 40px 24px 80px;
}

.chart-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 榜单类型切换 */
.chart-type-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.chart-type-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.chart-type-tab i {
    font-size: 16px;
}

.chart-type-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.chart-type-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 8px 30px rgba(255,51,102,0.4);
}

/* 时间周期切换 */
.chart-time-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.chart-time-tab {
    padding: 10px 24px;
    background: var(--bg-elevated);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chart-time-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.chart-time-tab.active {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,212,170,0.3);
}

/* 榜单更新时间 */
.chart-update-info {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.chart-update-info i {
    margin-right: 6px;
    animation: spin 2s linear infinite;
}

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

/* ============================================
   TOP 3 特殊展示
   ============================================ */
.chart-top3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
    padding: 0 20px;
}

.top3-item {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid rgba(255,255,255,0.05);
}

.top3-first {
    width: 280px;
    padding: 28px;
    z-index: 3;
    transform: translateY(-20px);
}

.top3-second,
.top3-third {
    width: 240px;
    z-index: 2;
}

.top3-crown {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(192,192,192,0.4);
}

.top3-crown.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    box-shadow: 0 4px 20px rgba(255,215,0,0.5);
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.top3-crown.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    box-shadow: 0 4px 15px rgba(205,127,50,0.4);
}

.top3-rank {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.top3-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.top3-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.top3-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.top3-play i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.top3-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.top3-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top3-artist {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.top3-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.top3-plays {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top3-plays i {
    color: var(--accent-pink);
}

.top3-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top3-trend.up {
    color: var(--accent-cyan);
    background: rgba(0,212,170,0.1);
}

.top3-trend.down {
    color: var(--accent-pink);
    background: rgba(255,51,102,0.1);
}

.top3-trend.same {
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.top3-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(192,192,192,0.3) 0%, rgba(192,192,192,0.1) 100%);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    opacity: 0.5;
}

.top3-glow.gold {
    background: linear-gradient(135deg, rgba(255,215,0,0.4) 0%, rgba(255,170,0,0.2) 100%);
    opacity: 0.6;
}

.top3-glow.bronze {
    background: linear-gradient(135deg, rgba(205,127,50,0.3) 0%, rgba(184,115,51,0.1) 100%);
}

/* TOP3 悬停效果 */
.top3-item:hover {
    transform: translateY(-30px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.top3-item:hover .top3-cover img {
    transform: scale(1.1);
}

.top3-item:hover .top3-play {
    opacity: 1;
}

.top3-item:hover .top3-play i {
    transform: scale(1);
}

/* ============================================
   普通榜单列表
   ============================================ */
.chart-normal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.chart-row:hover {
    background: var(--bg-card);
    border-color: rgba(255,51,102,0.2);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.chart-row-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.chart-row-cover {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.chart-row-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-row-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: var(--transition-fast);
}

.chart-row:hover .chart-row-play {
    opacity: 1;
}

.chart-row-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    background: var(--gradient-primary);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}

.chart-row-info {
    flex: 1;
    min-width: 0;
}

.chart-row-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-row-info p {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-row-info .divider {
    margin: 0 6px;
    color: var(--text-muted);
}

.chart-row-score {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 140px;
    flex-shrink: 0;
}

.score-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.score-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-pink);
    width: 50px;
    text-align: right;
}

.chart-row-plays {
    font-size: 13px;
    color: var(--text-secondary);
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.chart-row-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 60px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.chart-row-trend.up {
    color: var(--accent-cyan);
}

.chart-row-trend.down {
    color: var(--accent-pink);
}

.chart-row-trend.same {
    color: var(--text-muted);
}

.chart-row-trend.new {
    color: var(--accent-orange);
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(245,158,11,0.1);
    border-radius: 10px;
}

/* ============================================
   加载更多按钮
   ============================================ */
.chart-load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-load-more:hover {
    background: var(--bg-card);
    border-color: var(--accent-pink);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,51,102,0.2);
}

.btn-load-more i {
    transition: var(--transition-fast);
}

.btn-load-more:hover i {
    transform: translateY(2px);
}

/* ============================================
   入场动画
   ============================================ */
.chart-row {
    animation: slideInUp 0.5s ease-out backwards;
}

.chart-row:nth-child(1) { animation-delay: 0.05s; }
.chart-row:nth-child(2) { animation-delay: 0.1s; }
.chart-row:nth-child(3) { animation-delay: 0.15s; }
.chart-row:nth-child(4) { animation-delay: 0.2s; }
.chart-row:nth-child(5) { animation-delay: 0.25s; }
.chart-row:nth-child(6) { animation-delay: 0.3s; }
.chart-row:nth-child(7) { animation-delay: 0.35s; }
.chart-row:nth-child(8) { animation-delay: 0.4s; }
.chart-row:nth-child(9) { animation-delay: 0.45s; }
.chart-row:nth-child(10) { animation-delay: 0.5s; }
.chart-row:nth-child(11) { animation-delay: 0.55s; }
.chart-row:nth-child(12) { animation-delay: 0.6s; }
.chart-row:nth-child(13) { animation-delay: 0.65s; }
.chart-row:nth-child(14) { animation-delay: 0.7s; }
.chart-row:nth-child(15) { animation-delay: 0.75s; }
.chart-row:nth-child(16) { animation-delay: 0.8s; }
.chart-row:nth-child(17) { animation-delay: 0.85s; }
.chart-row:nth-child(18) { animation-delay: 0.9s; }
.chart-row:nth-child(19) { animation-delay: 0.95s; }
.chart-row:nth-child(20) { animation-delay: 1s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top3-item {
    animation: top3Enter 0.8s ease-out backwards;
}

.top3-second { animation-delay: 0.1s; }
.top3-first { animation-delay: 0.2s; }
.top3-third { animation-delay: 0.3s; }

@keyframes top3Enter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(var(--offset, 0)) scale(1);
    }
}

.top3-first { --offset: -20px; }
.top3-second { --offset: 0; }
.top3-third { --offset: 0; }

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
    .chart-top3 {
        flex-direction: column;
        align-items: center;
    }
    
    .top3-first,
    .top3-second,
    .top3-third {
        width: 100%;
        max-width: 320px;
        transform: none;
    }
    
    .top3-first {
        order: -1;
    }
    
    .chart-row-score {
        display: none;
    }
}

@media (max-width: 768px) {
    .chart-hero {
        padding: 60px 16px 40px;
    }
    
    .chart-hero-title {
        font-size: 32px;
    }
    
    .chart-hero-stats {
        gap: 24px;
    }
    
    .hero-stat-num {
        font-size: 20px;
    }
    
    .chart-type-tabs {
        gap: 8px;
    }
    
    .chart-type-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .chart-time-tabs {
        gap: 8px;
    }
    
    .chart-time-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .chart-row {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .chart-row-rank {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .chart-row-cover {
        width: 60px;
        height: 45px;
    }
    
    .chart-row-info h4 {
        font-size: 14px;
    }
    
    .chart-row-info p {
        font-size: 12px;
    }
    
    .chart-row-plays {
        display: none;
    }
    
    .chart-row-trend {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .chart-hero-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .chart-hero-title {
        font-size: 24px;
    }
    
    .chart-hero-desc {
        font-size: 14px;
    }
    
    .chart-hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .chart-type-tab span {
        display: none;
    }
    
    .chart-type-tab {
        padding: 12px;
    }
    
    .chart-type-tab i {
        font-size: 18px;
    }
}
