/* 排行榜页面专用样式 */

/* 页面标题 */
.ranking-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.ranking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.ranking-header h1 {
    font-size: 42px;
    color: #cc2529;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    z-index: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(204, 37, 41, 0.3);
}

.ranking-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #cc2529, #b32124, #cc2529);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(204, 37, 41, 0.3);
    animation: gradientPulse 2s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

.ranking-header p {
    color: #6c757d;
    font-size: 18px;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* 排行榜标签页 */
.ranking-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.ranking-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    border: 1px solid #e9ecef;
}

.ranking-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-color: rgba(204, 37, 41, 0.4);
}

.ranking-section h2 {
    background: linear-gradient(135deg, #cc2529 0%, #b32124 100%);
    color: white;
    padding: 25px 30px;
    margin: 0;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ranking-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-30deg);
    animation: shineEffect 3s ease-in-out infinite;
}

@keyframes shineEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 动漫列表 */
.songs-list {
    padding: 25px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.song-item:hover {
    background: rgba(204, 37, 41, 0.05);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 8px 25px rgba(204, 37, 41, 0.15);
    border-color: rgba(204, 37, 41, 0.3);
}

.song-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 排名数字 */
.rank-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 25px;
    flex-shrink: 0;
    color: #495057;
    position: relative;
    z-index: 2;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rank-number.top1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #495057;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.2);
    border-color: #ffd700;
}

.rank-number.top2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    color: #495057;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3);
    transform: scale(1.1);
    border-color: #c0c0c0;
}

.rank-number.top3 {
    background: linear-gradient(135deg, #cd7f32 0%, #ffb347 100%);
    color: #495057;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.3);
    transform: scale(1.1);
    border-color: #cd7f32;
}

/* 奖章图标 */
.rank-number.top1::after {
    content: "👑";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 24px;
    z-index: 3;
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.6));
    animation: crownRotate 2s ease-in-out infinite;
}

@keyframes crownRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.rank-number.top2::after {
    content: "🥈";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 24px;
    z-index: 3;
    filter: drop-shadow(0 4px 10px rgba(192, 192, 192, 0.6));
}

.rank-number.top3::after {
    content: "🥉";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 24px;
    z-index: 3;
    filter: drop-shadow(0 4px 10px rgba(205, 127, 50, 0.6));
}

/* 封面图片 */
.cover {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    position: relative;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.song-item:hover .cover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.6);
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.song-item:hover .cover img {
    transform: scale(1.15);
}

/* 动漫详情 */
.song-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.song-details h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    transition: color 0.3s ease;
}

.song-item:hover .song-details h3 {
    color: #cc2529;
    text-shadow: 0 2px 8px rgba(204, 37, 41, 0.4);
}

.song-details p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* 角标 */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 12px;
    vertical-align: middle;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge.hot {
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.badge.new {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.badge.favorite {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 操作按钮 */
.song-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    justify-content: center;
}

.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cc2529, #b32124);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(204, 37, 41, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-btn:hover {
    transform: scale(1.2) rotate(180deg);
    box-shadow: 0 8px 25px rgba(204, 37, 41, 0.6);
    background: linear-gradient(135deg, #b32124, #991d1f);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ranking-tabs {
        flex-direction: column;
        gap: 25px;
    }
    
    .ranking-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ranking-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .ranking-header h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .ranking-header h1::after {
        width: 80px;
    }
    
    .ranking-section h2 {
        font-size: 20px;
        padding: 20px 25px;
        letter-spacing: 1px;
    }
    
    .song-item {
        padding: 15px 20px;
        margin-bottom: 12px;
    }
    
    .song-item:hover {
        transform: translateX(10px) scale(1.01);
    }
    
    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin-right: 20px;
    }
    
    .cover {
        width: 70px;
        height: 70px;
        margin-right: 20px;
    }
    
    .song-details h3 {
        font-size: 18px;
    }
    
    .song-details p {
        font-size: 15px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ranking-header {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .ranking-header h1 {
        font-size: 26px;
        letter-spacing: 1px;
    }
    
    .ranking-header p {
        font-size: 16px;
    }
    
    .ranking-section {
        border-radius: 15px;
    }
    
    .song-item {
        padding: 12px 15px;
        margin-bottom: 10px;
    }
    
    .rank-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 15px;
    }
    
    .cover {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .song-details {
        min-width: 0;
    }
    
    .song-details h3 {
        font-size: 16px;
    }
    
    .song-details p {
        font-size: 14px;
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 11px;
        margin-left: 8px;
    }
}