/* 歌单页面专用样式 */

/* 页面标题 */
h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c00);
    border-radius: 2px;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.tab {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.tab:hover {
    background-color: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.tab.active {
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* 歌曲网格 */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

/* 歌曲卡片 */
.song-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.song-card:hover .card-cover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 48px;
    color: white;
}

.card-info {
    padding: 20px;
}

.song-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #ff6b35;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
    }
    
    .card-cover {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .card-cover {
        height: 160px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .song-title {
        font-size: 16px;
    }
    
    .song-artist {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .card-cover {
        height: 140px;
    }
    
    .category-tabs {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .tab {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .card-cover {
        height: 130px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .song-title {
        font-size: 15px;
    }
    
    .song-artist {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .song-meta {
        font-size: 12px;
    }
    
    h1 {
        font-size: 28px;
    }
}