/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px 0 0 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box button {
    padding: 10px 15px;
    border: none;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
}

.song-list-container h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.song-list {
    flex: 1;
    overflow-y: auto;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.song-item.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.song-item .song-number {
    margin-right: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.song-item .song-info {
    flex: 1;
}

.song-item .song-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-item .song-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.player-header h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}



.song-info {
    text-align: center;
    margin-bottom: 30px;
}

.song-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.song-info p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

/* 歌词样式 */
.lyrics-container {
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyrics {
    text-align: center;
    transition: all 0.3s ease;
}

.lyrics p {
    font-size: 18px;
    line-height: 2.5;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.lyrics p.active {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    transform: scale(1.05);
}

/* 播放控制样式 */
.player-controls {
    width: 100%;
    max-width: 600px;
}

.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar:hover .progress::after {
    opacity: 1;
}

/* 控制按钮样式 */
.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    font-size: 24px;
}

.control-btn.play-btn:hover {
    transform: scale(1.15);
}

.control-btn .icon {
    font-size: 24px;
}

.control-btn.play-btn .icon {
    font-size: 30px;
}

/* 音量控制样式 */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-container .icon {
    font-size: 20px;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.volume-bar {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.volume {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 手机版布局 */
    .container {
        flex-direction: column;
        height: 100vh;
    }
    
    /* 侧边栏适配 */
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 50vh;
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .search-box {
        margin-bottom: 15px;
    }
    
    .search-box input {
        padding: 8px;
        font-size: 13px;
    }
    
    .search-box button {
        padding: 8px 12px;
    }
    
    .song-list-container h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* 主内容区适配 */
    .main-content {
        padding: 10px;
        flex: 1;
        justify-content: flex-start;
    }
    
    .player-header h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .song-info h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .song-info p {
        font-size: 16px;
    }
    
    /* 歌词显示适配 */
    .lyrics-container {
        max-width: 100%;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .lyrics p {
        font-size: 16px;
        line-height: 2.2;
    }
    
    .lyrics p.active {
        font-size: 18px;
    }
    
    /* 播放控制适配 */
    .player-controls {
        max-width: 100%;
    }
    
    .progress-container {
        margin-bottom: 15px;
    }
    
    .time {
        font-size: 12px;
        margin: 0 8px;
        min-width: 40px;
    }
    
    .control-buttons {
        margin-bottom: 15px;
    }
    
    .control-btn {
        font-size: 18px;
        margin: 0 10px;
        width: 45px;
        height: 45px;
    }
    
    .control-btn.play-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    .control-btn .icon {
        font-size: 22px;
    }
    
    .control-btn.play-btn .icon {
        font-size: 26px;
    }
    
    /* 音量控制适配 */
    .volume-bar {
        width: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* 平板版布局 */
    .sidebar {
        width: 250px;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .song-item .song-info h4 {
        font-size: 13px;
    }
    
    .song-item .song-info p {
        font-size: 11px;
    }
    
    .lyrics-container {
        max-width: 500px;
        height: 180px;
    }
    
    .player-controls {
        max-width: 500px;
    }
}

@media (min-width: 1025px) {
    /* 电脑版布局 - 保持现有样式 */
    .sidebar {
        width: 300px;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* 倍速选择器样式 */
.speed-selector {
    position: relative;
    display: inline-block;
}

.speed-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    padding: 10px;
    display: none;
    z-index: 1000;
    min-width: 100px;
}

.speed-options.show {
    display: block;
}

.speed-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.speed-option.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}