/* song-details.css - 专业下载站风格（完整版） */

/* ============================================
   页面容器
   ============================================ */
.song-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   面包屑导航: Home › 艺术家 › 歌曲
   ============================================ */
.breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #94a3b8;
}

/* ============================================
   主布局 - 封面 + 信息
   ============================================ */
.song-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

/* 封面 */
.song-cover {
    position: relative;
}

.song-cover img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.song-cover img:hover {
    transform: scale(1.02);
}

/* 信息面板 */
.song-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.song-header {
    margin-bottom: 1.5rem;
}

.song-artist-name {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.song-artist-name a {
    color: #3b82f6;
    text-decoration: none;
}

.song-artist-name a:hover {
    text-decoration: underline;
}

.song-title-detail {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

/* ============================================
   信息列表
   ============================================ */
.song-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.meta-item {
    display: flex;
    padding: 0.25rem 0;
}

.meta-label {
    font-weight: 500;
    color: #94a3b8;
    min-width: 80px;
    font-size: 0.85rem;
}

.meta-value {
    color: #1e293b;
    font-size: 0.95rem;
}

.meta-value a {
    color: #1e293b;
    text-decoration: none;
}

.meta-value a:hover {
    color: #3b82f6;
}

/* ============================================
   操作按钮
   ============================================ */
.song-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s;
    background: #0f172a;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-download.flac {
    background: #7c3aed;
}

.btn-download.flac:hover {
    background: #6d28d9;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-download i {
    font-size: 1.1rem;
}

.no-downloads {
    color: #94a3b8;
    font-style: italic;
    padding: 0.75rem 0;
}

/* ============================================
   Tracklist 曲目列表
   ============================================ */
.tracklist-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.section-title-detail {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-title-detail i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.tracklist {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-item-detail {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: 0.375rem;
    transition: background 0.15s;
    cursor: default;
    gap: 0.5rem;
}

.track-item-detail:hover {
    background: #f8fafc;
}

.track-number-detail {
    color: #94a3b8;
    font-size: 0.85rem;
    min-width: 3rem;
    font-weight: 500;
    flex-shrink: 0;
}

.track-name-detail {
    flex: 1;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.track-duration {
    color: #94a3b8;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 3rem;
    text-align: right;
}

/* ============================================
   播放按钮样式
   ============================================ */
.track-preview-btn {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.25rem 0.9rem;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.track-preview-btn:hover {
    background: #1e293b;
    transform: scale(1.02);
}

.track-preview-btn i {
    font-size: 0.6rem;
}

.track-preview-btn.playing {
    background: #dc2626;
}

.track-preview-btn.playing:hover {
    background: #b91c1c;
}

.track-preview-btn.playing i {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   推荐区域 - 标题截断
   ============================================ */
.related-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.related-card {
    text-decoration: none;
    transition: transform 0.25s;
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-cover {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #f1f5f9;
}

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

/* ============================================
   推荐信息 - 固定高度，确保对齐
   ============================================ */
.related-info {
    padding: 0.5rem 0.25rem 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    height: 3.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ============================================
   推荐标题 - 强制单行截断
   ============================================ */
.related-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    display: block;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    line-height: 1.3;
    flex-shrink: 0;
}

/* ============================================
   推荐艺术家 - 强制单行截断
   ============================================ */
.related-artist {
    font-size: 0.7rem;
    color: #64748b;
    display: block;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin-top: 0.1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
    .song-main {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .song-cover {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .song-title-detail {
        font-size: 1.5rem;
    }
    
    .song-meta-list {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .song-actions {
        flex-direction: column;
    }
    
    .btn-download {
        justify-content: center;
    }
    
    .tracklist-section,
    .related-section {
        padding: 1rem 1.25rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .track-item-detail {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .track-name-detail {
        font-size: 0.85rem;
        white-space: normal;
        min-width: 80px;
    }
    
    .track-preview-btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .song-main {
        padding: 1rem;
    }
    
    .song-title-detail {
        font-size: 1.2rem;
    }
    
    .song-cover {
        max-width: 200px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .track-item-detail {
        padding: 0.4rem 0.5rem;
    }
    
    .track-number-detail {
        min-width: 2rem;
        font-size: 0.75rem;
    }
    
    .track-name-detail {
        font-size: 0.8rem;
    }
    
    .related-info {
        height: 3.4rem;
    }
    
    .related-title {
        font-size: 0.7rem;
    }
    
    .related-artist {
        font-size: 0.6rem;
    }
}