/* 基础样式重置和布局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f2e9;
    color: #5a4a42;
    min-height: 100vh;
    background-image: url('/public/ad/photo-1506905925346-21bda4d32df4.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(255, 253, 245, 0.85);*/
    z-index: -1;
}
a {
    color: #8b7d6e;
    text-decoration: none;
}
/* 主容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

/* 页眉 */
header {
    text-align: center;
    padding: 20px 0 15px;
    margin-bottom: 15px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.2rem;
    color: #8b7355;
    margin-right: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    font-size: 2rem;
    color: #6b5a4d;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-size: 1rem;
    color: #8b7d6e;
    font-style: italic;
    margin-top: 5px;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.subtitle::before, .subtitle::after {
    content: "❖";
    color: #b8a27a;
    margin: 0 10px;
    font-size: 0.9rem;
}

/* 通用卡片容器样式 */
.music-detail-container,
.related-container,
.comments-container,
.player-container,
.playlist-container,
.page-title-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.15);
    margin-bottom: 20px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    position: relative;
    overflow: hidden;
}

.music-detail-container::before,
.related-container::before,
.comments-container::before,
.player-container::before,
.playlist-container::before,
.page-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #b8a27a, #8b7355);
}

/* 音乐详情容器 */
.music-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.music-title {
    font-size: 1.8rem;
    color: #5a4a42;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.music-title a {
    color: inherit;
    text-decoration: none;
}

.music-title a:hover {
    color: #8b7355;
}

.music-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #8b7d6e;
}

.music-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.music-meta i {
    color: #b8a27a;
}

/* 播放器相关样式 */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.player-title,
.page-title-text,
.playlist-title,
.comments-title,
.related-title {
    font-size: 1.3rem;
    color: #6b5a4d;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.player-title i,
.page-title-text i,
.playlist-title i,
.comments-title i,
.related-title i {
    margin-right: 8px;
    color: #b8a27a;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.collection-count {
    font-size: 0.9rem;
    color: #8b7355;
    background-color: #f5f0e6;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 500;
}

/* 播放器控件 */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.song-info {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 5px;
}

.song-title {
    font-size: 1.3rem;
    color: #5a4a42;
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.song-artist {
    font-size: 1rem;
    color: #8b7d6e;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.song-progress {
    width: 100%;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e8dfd0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #b8a27a, #8b7355);
    width: 0%;
    transition: width 0.1s;
    border-radius: 3px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #8b7d6e;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px 0;
}

.control-btn {
    background: #f5f0e6;
    border: none;
    font-size: 1.5rem;
    color: #8b7355;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background-color: #e8dfd0;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.play-btn {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #b8a27a, #8b7355);
    color: white;
    width: 60px;
    height: 60px;
}

.play-btn:hover {
    background: linear-gradient(135deg, #a9926a, #7a6245);
}

/* 播放模式按钮 */
.play-mode-buttons {
    display: flex;
    gap: 8px;
}

.mode-btn {
    background-color: #f5f0e6;
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: #8b7355;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mode-btn:hover {
    background-color: #e8dfd0;
    transform: translateY(-2px);
}

.mode-btn.active {
    background-color: #8b7355;
    color: white;
    box-shadow: 0 4px 8px rgba(139, 115, 85, 0.2);
}

/* 收藏按钮 */
.favorite-btn {
    background: #f5f0e6;
    border: none;
    font-size: 1.5rem;
    color: #8b7355;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.favorite-btn:hover {
    background-color: #e8dfd0;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn.favorited i {
    color: #ff6b6b;
}

.favorite-btn .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}

.favorite-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
}

.volume-control i {
    color: #8b7355;
    font-size: 1.1rem;
}

.volume-slider {
    flex-grow: 1;
    height: 5px;
    background-color: #e8dfd0;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background: linear-gradient(to right, #b8a27a, #8b7355);
    width: 80%;
    border-radius: 3px;
}

/* 点赞收藏区域样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

.action-btn {
    background-color: #f5f0e6;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 50px;
    padding: 10px 10px;
    font-size: 0.95rem;
    color: #8b7355;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    position: relative;
    min-width: 100px;
    max-width: 150px;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.action-btn:hover {
    background-color: #e8dfd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 点赞按钮特殊样式 */
.action-btn.liked {
    background-color: #ff6b6b !important;
    color: white !important;
    border-color: #ff6b6b !important;
}

.action-btn.liked:hover {
    background-color: #ff5252 !important;
}

/* 收藏按钮特殊样式 */
.action-btn.favorited {
    background-color: #ffd700 !important;
    color: white !important;
    border-color: #ffd700 !important;
}

.action-btn.favorited:hover {
    background-color: #ffcc00 !important;
}

.action-btn i {
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s;
    margin-right: 15px;
}

.action-btn.liked i,
.action-btn.favorited i {
    color: white !important;
}

.action-btn .tooltip {
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    pointer-events: none;
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 计数徽章样式 */
.like-count-badge,
.favorite-count-badge {
    background-color: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    max-width: 40px;
    text-align: center;
    transition: all 0.3s;
    opacity: 0;
    transform: scale(0.8);
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-btn.liked .like-count-badge,
.action-btn.favorited .favorite-count-badge {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* 标签区域 */
.tags-container {
    margin: 20px 0;
    overflow: hidden;
}

.tags-title {
    font-size: 1.1rem;
    color: #6b5a4d;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-title i {
    color: #b8a27a;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.taga {
    background-color: #f5f0e6;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.85rem;
    color: #8b7355;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.taga:hover {
    background-color: #e8dfd0;
    transform: translateY(-2px);
}

/* 歌词区域 */
.lyrics-container {
    background-color: #f9f7f2;
    border-radius: 12px;
    padding: 0;
    margin: 20px 0;
    border: 1px solid rgba(139, 115, 85, 0.1);
    overflow: hidden;
}

.lyrics-header {
    background-color: #f5f0e6;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #6b5a4d;
    font-weight: 600;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lyrics-header i {
    color: #b8a27a;
}

.lyrics-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    line-height: 1.8;
    color: #5a4a42;
    text-align: center;
}

.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: #f5f0e6;
    border-radius: 10px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: #b8a27a;
    border-radius: 10px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: #8b7355;
}

.lyrics-line {
    padding: 8px 0;
    transition: all 0.3s;
    min-height: 30px;
}

.lyrics-line.active {
    color: #8b7355;
    font-weight: 600;
    transform: scale(1.05);
}

/* 相关推荐 */
.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
    text-decoration: none;
    color: #5a4a42;
}

.related-item:hover {
    background-color: #f9f7f2;
    border-color: rgba(139, 115, 85, 0.2);
    transform: translateX(3px);
}

.related-number {
    width: auto;
    text-align: center;
    color: #8b7355;
    font-size: 0.95rem;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.related-item-title {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-item-meta {
    font-size: 0.85rem;
    color: #8b7d6e;
    margin-left: 10px;
    flex-shrink: 0;
}

/* 播放列表 */
.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.playlist-count {
    font-size: 0.85rem;
    color: #8b7355;
    background-color: #f5f0e6;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
}

/* 滑动导航样式 */
.playlist-links-container {
    margin-bottom: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.playlist-links-container::-webkit-scrollbar {
    display: none;
}

.playlist-links {
    display: flex;
    gap: 10px;
    width: max-content;
    padding: 0 5px;
}

.playlist-link {
    background-color: #f5f0e6;
    border: none;
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #8b7355;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.playlist-link:hover {
    background-color: #e8dfd0;
    transform: translateY(-2px);
}

.playlist-link.active {
    background-color: #8b7355;
    color: white;
    box-shadow: 0 4px 8px rgba(139, 115, 85, 0.2);
}

.playlist {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: #f5f0e6;
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #b8a27a;
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #8b7355;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    flex-wrap: wrap;
}

.playlist-item:hover {
    background-color: #f9f7f2;
    border-color: rgba(139, 115, 85, 0.2);
    transform: translateX(3px);
}

.playlist-item.active {
    background-color: #f5f0e6;
    border-left: 4px solid #8b7355;
    box-shadow: 0 3px 6px rgba(139, 115, 85, 0.1);
}

.playlist-item-number {
    width: auto;
    text-align: center;
    color: #8b7355;
    font-size: 0.95rem;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
}

.playlist-item-title {
    flex-grow: 1;
    font-size: 1rem;
    color: #5a4a42;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-width: 0;
}

.playlist-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.playlist-item-play,
.playlist-item-new-window,
.playlist-item-remove {
    color: #8b7355;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: rgba(139, 115, 85, 0.1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.playlist-item-play:hover,
.playlist-item-new-window:hover {
    background-color: #8b7355;
    color: white;
}

.playlist-item-remove:hover {
    background-color: #ff6b6b;
    color: white;
}

.playlist-item.active .playlist-item-play {
    color: #8b7355;
    background-color: rgba(139, 115, 85, 0.2);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 3.5rem;
    color: #e8dfd0;
    margin-bottom: 20px;
}

.empty-icon i {
    color: #b8a27a;
    opacity: 0.6;
}

.empty-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b7d6e;
    margin-bottom: 10px;
}

.empty-subtext {
    font-size: 1rem;
    color: #8b7d6e;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.browse-btn {
    background: linear-gradient(135deg, #b8a27a, #8b7355);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.3);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #8b7d6e;
    font-size: 0.9rem;
    margin-top: 20px;
    line-height: 1.5;
    border-top: 1px solid rgba(139, 115, 85, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .music-detail-container,
    .player-container,
    .lyrics-container,
    .related-container,
    .comments-container,
    .playlist-container,
    .page-title-container {
        padding: 16px;
    }
    
    .music-title {
        font-size: 1.4rem;
    }
    
    .player-header,
    .page-title {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .play-mode-buttons,
    .collection-count {
        width: 100%;
        justify-content: center;
    }
    
    .control-buttons {
        gap: 12px;
    }
    
    .control-btn,
    .favorite-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .play-btn {
        font-size: 1.6rem;
        width: 55px;
        height: 55px;
    }
    
    .mode-btn {
        height: 45px;
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .action-btn {
        width: 48%;
        max-width: 100px;
        min-width: auto;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .related-item {
        flex-wrap: wrap;
    }
    
    .related-item-meta {
        margin-left: auto;
    }
    
    .logo h1 {
        font-size: 1.7rem;
    }
    
    .song-title {
        font-size: 1.2rem;
    }
    
    .playlist-item {
        flex-wrap: nowrap;
        padding: 10px;
    }
    
    .playlist-item-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .playlist-item-number {
        margin-right: 12px;
        font-size: 1rem;
        min-width: 24px;
    }
    
    .playlist-item-title span {
        font-size: 0.85rem;
        color: #8b7d6e;
        margin-top: 2px;
    }
    
    .playlist-item-actions {
        margin-left: 10px;
    }
    
    .playlist-links {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .music-title {
        font-size: 1.2rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 4px;
    }
    
    .action-btn i {
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .like-count-badge,
    .favorite-count-badge {
        font-size: 0.75rem;
        padding: 2px 4px;
        min-width: 18px;
        max-width: 30px;
    }
    
    .playlist-item {
        padding: 8px;
    }
    
    .playlist-item-actions {
        gap: 5px;
    }
    
    .playlist-item-play,
    .playlist-item-new-window,
    .playlist-item-remove {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .playlist-links {
        justify-content: flex-start;
    }
}

@media (max-width: 360px) {
    .action-buttons {
        gap: 5px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* 超小屏幕上隐藏文字，只显示图标 */
    .action-btn span:not(.like-count-badge):not(.favorite-count-badge):not(.tooltip) {
        display: none;
    }
}