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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e2a78 0%, #ff3e9d 100%);
    padding: 20px;
    color: #fff;
}

.player-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.music-info {
    text-align: center;
    margin-bottom: 20px;
}

/* --- 新增 Slogan 样式 --- */
.slogan {
    margin-top: 5px;
}

.slogan a {
    color: #eee;
    text-decoration: none;
    font-style: italic;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slogan a:hover {
    opacity: 1;
}
/* --- 结束 --- */


.player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.control-btn, .mode-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff3e9d, #0d25b9);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 12px; /* 调整字体大小以适应更多按钮 */
}

.control-btn:hover, .mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #0d25b9, #ff3e9d);
}

/* --- 修改 .play-mode 为 .extra-controls --- */
.extra-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* 允许按钮换行 */
}

.progress-container {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 5px;
}

.progress {
    width: 0;
    height: 100%;
    background: #4a90e2;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: #fff; /* 将颜色改为白色以适应背景 */
}

.playlist-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.playlist-container h3 {
    margin-bottom: 15px;
    color: #fff; /* 将颜色改为白色以适应背景 */
}

#playlist {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#playlist::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#playlist li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 5px;
}

#playlist li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#playlist li.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: bold;
}

@media (max-width: 600px) {
    .player-container,
    .playlist-container {
        padding: 15px;
    }

    .control-btn, .mode-btn { /* 应用到 .mode-btn */
        padding: 8px 15px;
        font-size: 12px; /* 统一字体大小 */
    }

    .music-info h2 {
        font-size: 18px;
    }
}