/* music-player.css */
/* 核心样式 */
#musicControl {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
    overflow: visible;
}

/* 旋转唱片背景 */
.record-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle, transparent 70%, rgba(0,0,0,0.1) 100%),
        repeating-conic-gradient(
            rgba(255,255,255,0.1) 0deg 15deg,
            transparent 15deg 30deg
        );
    animation: rotate 8s linear infinite;
    position: absolute;
    filter: blur(3.3px); /* 微模糊增强质感 */
}

/* 玻璃质感容器 */
.glass-container {
    position: relative;
    width: 80%;
    height: 80%;
    backdrop-filter: blur(1px);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.1),
        0 8px 20px rgba(0,1,0,0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* 音符图标 */
.music-note {
    width: 50%;
    height: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 动画控制 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.paused .record-bg {
    animation-play-state: paused; /* 暂停时停止旋转 */
}

.paused .music-note {
    filter: grayscale(100%) opacity(0.5); /* 暂停变灰色 */
}

/* 点击波纹效果 */
.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    animation: rippleEffect 0.6s ease-out;
    z-index: 3;
}

@keyframes rippleEffect {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}