body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
}

.h1-v {
    text-align: center;
    margin-bottom: 30px;
    color: #ffd000;
}

.h1-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    position: relative;
    top: 10px;
    image-rendering: pixelated;
}

.playback-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.playback-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.playback-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    gap: 15px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.now-playing {
    font-style: italic;
    color: #4CAF50;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.disc-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.disc-item:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.disc-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    image-rendering: pixelated;
}

.disc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.disc-name {
    font-weight: bold;
    font-size: 1.1em;
}

.disc-author {
    font-size: 0.8em;
    color: #aaa;
}

.play-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-btn:hover {
    background-color: #45a049;
}

.play-btn i {
    width: 16px;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 0.8em;
    color: #ffffff;
}

.disclaimer {
    margin-top: 10px;
    color: #f44336;
    font-style: italic;
}

.headphone-tip {
    text-align: center;
    margin: -15px 0 25px;
    color: #ffffff;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.headphone-tip i {
    font-size: 1em;
}

/* 控制栏响应式布局 */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    gap: 15px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.playback-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 1;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.now-playing {
    font-style: italic;
    color: #4CAF50;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
}

/* 桌面端布局 */
@media (min-width: 768px) {
    .controls {
        flex-wrap: nowrap;
    }
    .playback-controls {
        order: 0;
        width: auto;
        margin-top: 0;
    }
    .now-playing {
        text-align: right;
    }
}

/* 播放模式图标样式 */
#play-mode-icon.fa-list-ul { color: #4CAF50; } /* 列表循环 */
#play-mode-icon.fa-infinity { color: #2196F3; } /* 单曲循环 */
#play-mode-icon.fa-random { color: #FF9800; }  /* 随机播放 */

/* 手机端样式 - 控制按钮放大 */
@media (max-width: 767px) {
    .playback-controls {
        margin: 15px 0;
        gap: 20px; /* 增加按钮间距 */
    }
    
    .playback-controls button {
        padding: 12px 20px;
        font-size: 1.5em; /* 放大图标 */
        min-width: 50px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
    }
    
    #play-mode-btn {
        padding: 12px 25px; /* 模式按钮更宽一些 */
    }
    
    .volume-control {
        min-width: 180px; /* 音量条加宽 */
    }
    
    .volume-control input[type="range"] {
        width: 100px; /* 音量条长度 */
    }
}

/* 触摸反馈效果 */
.playback-controls button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
    transition: transform 0.1s, background 0.1s;
}

/* 桌面端保持原有样式 */
@media (min-width: 768px) {
    .playback-controls button {
        padding: 8px 12px;
        font-size: 1.2em;
    }
}

/* 模式提示弹窗样式 */
.mode-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-toast.show {
    transform: translateX(0);
}

.mode-toast i {
    font-size: 1.2em;
}

/* 不同模式的图标颜色 */
.mode-toast .fa-list-ul { color: #4CAF50; } /* 列表循环 */
.mode-toast .fa-infinity { color: #2196F3; } /* 单曲循环 */
.mode-toast .fa-random { color: #FF9800; }  /* 随机播放 */

/* 进度条容器 */
.progress-container {
    position: relative;
    width: 100%;
    height: 20px; /* 增加高度便于操作 */
    margin: 15px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 进度条背景 */
.progress-bg {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* 进度条前景 */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #2e84f5;
    border-radius: 2px;
    width: 0%;
}

/* 拖动控制点 */
.progress-handle {
    position: absolute;
    right: -8px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #2e84f5;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-handle,
.progress-container.dragging .progress-handle {
    opacity: 1;
}

/* 时间显示 */
.time {
    font-size: 12px;
    color: #aaa;
    margin: 0 5px;
    min-width: 40px;
    text-align: center;
}

.current-time {
    order: 1;
}

.duration {
    order: 3;
}

.progress-wrapper {
    flex: 1;
    order: 2;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
