* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* 头部 */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

/* 主内容区 */
.main-content {
    width: 100%;
    margin-bottom: 20px;
}

/* 左侧播放器 */
.player-section {
    float: left;
    width: 850px;
    height: 230px;
    position: relative;
    background: #04191a;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 专辑封面 */
.album-cover {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.album-cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #a8b5e6 0%, #7b95d4 50%, #4a6faa 100%);
}

/* 歌曲信息 */
.song-info {
    text-align: left;
    margin-bottom: 25px;
}

.song-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.song-title-wrapper h2 {
    font-size: 32px;
    font-weight: normal;
    color: #14c3d6;
}

.waveform-icon {
    color: #667eea;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

.tags {
    display: flex;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* 操作按钮 */
.action-buttons {
   position: absolute;
   bottom: 35px;
   right: 30px;
}
.action-buttons .btn-download svg{
    position: absolute;
    top: 11px;
    left: 0;
}
.btn-favorite,
.btn-download {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}


.btn-download {
    border-color: #fff;
    color: #ccc;
}

/* 进度条 */
.progress-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.time {
    font-size: 14px;
    color: #666;
    min-width: 45px;
}

.current-time {
    text-align: right;
}

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

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #f1f7e9;
    border-radius: 3px;
    width: 33%;
    transition: width 0.1s;
}

.progress-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #f1f7e9;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 33%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-container:hover .progress-handle {
    opacity: 1;
}

/* 播放控制 */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

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

.control-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.play-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    color: white;
    
}


/* 音量控制 */
.volume-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    display: none;
}

.volume-icon {
    color: #999;
}

.volume-bar-container {
    flex: 1;
    height: 4px;
    background: #666;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: #f3f7e8;
    border-radius: 2px;
    width: 80%;
    transition: width 0.1s;
}

.volume-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f3f7e8;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 80%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.volume-bar-container:hover .volume-handle {
    opacity: 1;
}

.volume-percent {
    font-size: 14px;
    color: #999;
    min-width: 40px;
}

/* 底部提示 */
.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
}

.footer-info svg {
    flex-shrink: 0;
}

/* 右侧播放列表 */
.playlist-section {
    float: left;
    width: 345px;
    height: 230px;
    background: #000;
    padding: 10px 30px 0 30px;
    display: flex;
    flex-direction: column;
    max-height: 720px;
}

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

.playlist-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #999999;
    padding-left: 15px;
    position: relative;
}
.playlist-header h3 span{
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #168b95; 
    position: absolute;
    top: 10px;
    left: 0;
}


.playlist-header svg {
    color: #999;
}

.playlist {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.playlist-item {
    display: grid;
    grid-template-columns: 20px 1fr 10px 25px;
    gap: 6px;
    align-items: center;
    padding: 2px 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item:hover {
    background: #f9f9f9;
}

.playlist-item.active {
    /*background: #f0f3ff;*/
}

.song-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.song-number svg {
    display: none;
    color: #4397b1;
}

.playlist-item.active .song-number svg {
    display: block;
}

.playlist-item.active .song-number span {
    display: none;
}

.song-details {
    min-width: 0;
}

.song-name {
    font-size: 14px;
    font-weight: 500;
    color: #999999;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-item.active .song-name {
    color: #59d2dd;
}

.song-artist {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-duration {
    font-size: 13px;
    color: #999;
}

.song-menu {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.playlist-item:hover .song-menu {
    opacity: 1;
}

.song-menu:hover {
    background: #e8e8e8;
}

.song-menu svg {
    display: none;
    color: #666;
}

/* 播放列表底部 */
.playlist-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    display: none;
}

.btn-download-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download-all:hover {
    background: #5568d3;
}

.playlist-stats {
    font-size: 13px;
    color: #999;
}

/* 底部版权 */
.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 20px 0;
}

/* 滚动条样式 */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: #666;
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #f1f7e9;
    border-radius: 3px;
}

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

/* 响应式设计 */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .playlist-section {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 24px;
    }

    .player-section,
    .playlist-section {
        padding: 20px;
    }

    .song-title-wrapper h2 {
        font-size: 24px;
    }
}
