/* 单按钮音乐播放器样式 */
.music-player {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 确保在所有设备上都可见 */
    opacity: 1 !important;
    visibility: visible !important;
}

/* 音频可视化容器 */
.audio-visualizer {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: pulse 2s infinite ease-out;
    background: radial-gradient(circle, var(--gradient-color) 0%, transparent 70%);
}

/* 播放按钮 - 磨砂透明亚克力效果 */
.play-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 按钮光晕效果 - 增强磨砂感 */
.play-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    transform: scale(0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.play-button:hover::before {
    opacity: 1;
}

.play-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

/* 正规三角形播放图标 */
.play-button .icon {
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.3s ease;
}

/* 点击波纹效果 */
.play-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

/* 动画效果 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .play-button {
        width: 56px;
        height: 56px;
    }
    
    .play-button .icon {
        width: 20px;
        height: 20px;
    }
}