/* 音乐播放器专用样式 */

/* 主要内容区域 */
.player-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #381DDB 0%, #5B2EF7 100%);
    padding: 120px 0 40px;
    position: relative;
}

.player-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://24344043.s21i.faiusr.com/4/ABUIABAEGAAgmYz0wQYorJaXiQMwgA84xAc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.player-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* 播放器区域 */
.player-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 播放器信息区 */
.player-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.album-cover {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-cover:hover .cover-overlay {
    opacity: 1;
}

.album-cover:hover img {
    transform: scale(1.05);
}

.play-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-main-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.play-main-btn img {
    width: 24px;
    height: 24px;
}

.song-details {
    flex: 1;
}

.song-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.artist-name {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.album-name {
    font-size: 16px;
    color: #999;
}

/* 歌曲操作按钮 */
.song-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn-icon:hover {
    border-color: #381DDB;
    color: #381DDB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 29, 219, 0.2);
}

.action-btn-icon svg {
    transition: all 0.3s ease;
}

.action-btn-icon:hover svg {
    transform: scale(1.1);
}

/* 点赞按钮特殊样式 */
#likeBtn.liked {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

#likeBtn.liked:hover {
    background: #ff3742;
    border-color: #ff3742;
}

.like-count {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* 下载按钮特殊样式 */
#downloadBtn:hover {
    background: #2ed573;
    color: #fff;
    border-color: #2ed573;
}

/* 分享按钮特殊样式 */
#shareBtn:hover {
    background: #3742fa;
    color: #fff;
    border-color: #3742fa;
}

/* 播放控制区 */
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 进度条区域 */
.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-current,
.time-total {
    font-size: 14px;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #381DDB 0%, #5B2EF7 100%);
    border-radius: 3px;
    width: 30%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 16px;
    height: 16px;
    background: #381DDB;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(56, 29, 219, 0.3);
    transition: all 0.2s ease;
}

.progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* 控制按钮区域 */
.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #381DDB;
    color: #fff;
    transform: scale(1.1);
}

.control-btn.active {
    background: #381DDB;
    color: #fff;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #381DDB 0%, #5B2EF7 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 29, 219, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(56, 29, 219, 0.4);
}

/* 音量控制 */
.volume-section {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.volume-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: #381DDB;
    color: #fff;
}

.volume-bar {
    width: 100px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(135deg, #381DDB 0%, #5B2EF7 100%);
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    width: 12px;
    height: 12px;
    background: #381DDB;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-handle:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

/* 播放列表区域 */
.playlist-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.playlist-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.playlist-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border: 1px solid #381DDB;
    background: transparent;
    color: #381DDB;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #381DDB;
    color: #fff;
}

.playlist-content {
    max-height: 400px;
    overflow-y: auto;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(56, 29, 219, 0.1);
}

.playlist-item.active {
    background: rgba(56, 29, 219, 0.15);
    border-left: 3px solid #381DDB;
}

.playlist-item-cover {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
}

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

.playlist-item-info {
    flex: 1;
}

.playlist-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.playlist-item-artist {
    font-size: 12px;
    color: #666;
}

.playlist-item-duration {
    font-size: 12px;
    color: #999;
}

/* 歌词区域 */
.lyrics-section {
    padding: 40px 0;
    position: relative;
    z-index: 99;
}

.lyrics-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 1160px;
    margin: 0 auto;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.lyrics-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.lyrics-controls {
    display: flex;
    gap: 10px;
}

.lyrics-content {
    text-align: center;
    padding: 20px;
}

.lyrics-line {
    font-size: 18px;
    line-height: 2.5;
    color: #666;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
}

.lyrics-line:hover {
    background: rgba(56, 29, 219, 0.1);
}

.lyrics-line.active {
    color: #381DDB;
    font-weight: 600;
    background: rgba(56, 29, 219, 0.15);
    transform: scale(1.02);
}

/* 歌词隐藏状态 */
.lyrics-section.hidden {
    display: none;
}

/* 模式提示 */
.mode-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(56, 29, 219, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.mode-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 头部导航激活状态 */
header .nav a.active {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .player-info {
        flex-direction: column;
        text-align: center;
    }
    
    .album-cover {
        width: 150px;
        height: 150px;
    }
    
    .song-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .player-main {
        padding: 100px 15px 20px;
    }
    
    .player-section,
    .playlist-section {
        padding: 25px 20px;
    }
    
    .control-buttons {
        gap: 15px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    .volume-section {
        justify-content: center;
    }
    
    .lyrics-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .player-info {
        gap: 20px;
    }
    
    .album-cover {
        width: 120px;
        height: 120px;
    }
    
    .song-title {
        font-size: 20px;
    }
    
    .progress-section {
        gap: 10px;
    }
    
    .volume-bar {
        width: 80px;
    }
    
    .playlist-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .playlist-actions {
        width: 100%;
        justify-content: flex-end;
    }
} 