/**
 * 音乐播放器样式
 * 从footer.ejs抽离以提升缓存效率
 */

.music-player.fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cover-container {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 50%;
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate 10s linear infinite;
    animation-play-state: paused;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.player-controls {
    flex: 1;
}

.progress-container {
    margin: 5px 0;
}

.progress-container input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.buttons {
    display: flex;
    align-items: center;
}

.buttons button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin: 0 5px;
    color: #333;
}

.buttons input[type="range"] {
    width: 80px;
    cursor: pointer;
}

.time-display {
    font-size: 12px;
    color: #555;
    text-align: center;
}

/* 暗色模式适配 */
.DarkMode .music-player.fixed {
    background: rgba(30, 30, 30, 0.9);
}

.DarkMode .buttons button {
    color: #eee;
}

.DarkMode .time-display {
    color: #aaa;
}
