/* 排行榜页面专用样式 */

/* 页面标题 */
.ranking-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.ranking-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.ranking-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c00);
    border-radius: 2px;
}

.ranking-header p {
    color: #666;
    font-size: 16px;
}

/* 排行榜标签页 */
.ranking-tabs {
    display: flex;
    gap: 20px;
}

.ranking-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
}

.ranking-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ranking-section h2 {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 20px 30px;
    margin: 0;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.ranking-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    transform: skewX(-30deg);
    transform-origin: left;
}

/* 歌曲列表 */
.songs-list {
    padding: 20px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.song-item:hover {
    background-color: #f8f9fa;
    transform: translateX(10px);
}

.song-item:last-child {
    border-bottom: none;
}

/* 排名数字 */
.rank-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 20px;
    flex-shrink: 0;
    color: #666;
    position: relative;
    z-index: 2;
}

.rank-number.top1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

.rank-number.top2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(192, 192, 192, 0.3);
}

.rank-number.top3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(205, 127, 50, 0.3);
}

/* 奖章图标 */
.rank-number.top1::after {
    content: "👑";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.rank-number.top2::after {
    content: "🥈";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.rank-number.top3::after {
    content: "🥉";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* 封面图片 */
.cover {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.song-item:hover .cover img {
    transform: scale(1.05);
}

/* 歌曲详情 */
.song-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.song-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.song-details p {
    font-size: 15px;
    color: #666;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 角标 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge.hot {
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
}

.badge.new {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.badge.favorite {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
}

/* 操作按钮 */
.song-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    justify-content: center;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ranking-tabs {
        flex-direction: column;
    }
    
    .ranking-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ranking-header h1 {
        font-size: 28px;
    }
    
    .ranking-section h2 {
        font-size: 20px;
        padding: 15px 20px;
    }
    
    .song-item {
        padding: 12px 15px;
    }
    
    .cover {
        width: 60px;
        height: 60px;
    }
    
    .song-details h3 {
        font-size: 16px;
    }
    
    .song-details p {
        font-size: 14px;
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ranking-header h1 {
        font-size: 24px;
    }
    
    .song-item {
        padding: 10px;
    }
    
    .rank-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .cover {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .song-details {
        min-width: 0;
    }
    
    .song-details h3 {
        font-size: 15px;
    }
    
    .song-details p {
        font-size: 13px;
    }
    
    .play-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}