/* 音乐控制样式 */

/* 音乐控制按钮 */
.music-control {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    z-index: 1000;
    cursor: pointer;
}

.music-control img {
    width: 100%;
    height: 100%;
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 音乐播放时旋转 */
.music-control.playing img {
    animation: rotate 3s linear infinite;
}

/* 音乐暂停时静止 */
.music-control.paused img {
    animation: none;
}

/* 音乐提示文字 */
.music-hint {
    position: absolute;
    top: 45px;
    right: -12px;
    font-size: 12px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 音乐播放时隐藏提示文字 */
.music-control.playing .music-hint {
    opacity: 0;
    pointer-events: none;
}
