.audio-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.audio-player-overlay.hidden {
    display: none;
}

/* 强化overlay背景 */
.audio-player-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 154, 162, 0.9) 0%, 
        rgba(255, 183, 178, 0.85) 12.5%, 
        rgba(255, 218, 193, 0.8) 25%, 
        rgba(226, 240, 203, 0.75) 37.5%, 
        rgba(181, 234, 215, 0.8) 50%, 
        rgba(199, 206, 234, 0.85) 62.5%, 
        rgba(248, 200, 220, 0.9) 75%, 
        rgba(162, 210, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(1.4);
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { 
        opacity: 0.9;
        transform: scale(1);
    }
    50% { 
        opacity: 0.95;
        transform: scale(1.01);
    }
}

/* 播放器主容器 - 大尺寸设计 */
.audio-player-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: 48px;
    width: 70vw;
    min-width: 600px;
    max-width: 800px;
    min-height: 450px;
    position: relative;
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.2), 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(40px) saturate(1.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: containerSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes containerSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(60px) rotateX(15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

/* 背景波纹可视化 */
.audio-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.1;
    pointer-events: none;
}

.wave-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid #FF9AA2;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveExpand 3s ease-out infinite;
}

.wave-1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.wave-2 {
    width: 150px;
    height: 150px;
    animation-delay: 1s;
}

.wave-3 {
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

@keyframes waveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 154, 162, 0.3);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 154, 162, 0.5);
}

.close-btn:active {
    transform: scale(0.95);
    background: rgba(255, 250, 250, 1);
}

.audio-info {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.audio-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF9AA2 0%, #A2D2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.3;
}

.audio-status {
    font-size: 16px;
    color: #666;
    opacity: 0.9;
    font-weight: 500;
}

.audio-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* 主控制按钮 - 全新几何设计 */
.main-control-btn {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 60px rgba(255, 154, 162, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
}

.main-control-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 25px 80px rgba(255, 154, 162, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main-control-btn:active {
    transform: scale(0.98);
}

/* 播放状态：三角形播放图标 */
.play-state {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-state svg {
    filter: drop-shadow(0 2px 4px rgba(255, 154, 162, 0.3));
    transition: all 0.3s ease;
}

.main-control-btn:hover .play-state svg {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(255, 154, 162, 0.5));
}

/* 暂停状态：双波纹效果 */
.pause-state {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-bars {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.bar {
    width: 6px;
    height: 24px;
    border-radius: 3px;
    background: linear-gradient(135deg, #FFB7B2 0%, #FFDAC1 100%);
    animation: barPulse 1.5s ease-in-out infinite alternate;
}

.bar-2 {
    animation-delay: 0.2s;
}

@keyframes barPulse {
    0% { transform: scaleY(0.8); opacity: 0.7; }
    100% { transform: scaleY(1.2); opacity: 1; }
}

.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid #FFDAC1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleExpand 1.8s ease-out infinite;
}

.ripple-1 {
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}

.ripple-2 {
    width: 70px;
    height: 70px;
    animation-delay: 0.4s;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* 加载状态：旋转环效果 */
.loading-state {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-ring {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 154, 162, 0.2);
    border-top: 4px solid #FF9AA2;
    border-radius: 50%;
    animation: ringRotate 1.2s linear infinite;
    position: relative;
    z-index: 2;
}

.loading-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFB7B2;
    transform: translate(-50%, -50%);
    animation: dotPulse 1s ease-in-out infinite;
    z-index: 3;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.progress-section {
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.progress-container {
    height: 16px;
    background: rgba(255, 154, 162, 0.15);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-track {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #FF9AA2 0%, 
        #FFB7B2 25%, 
        #FFDAC1 50%, 
        #E2F0CB 75%, 
        #B5EAD7 100%);
    border-radius: 16px;
    width: 0%;
    transition: width 0.15s ease;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(255, 154, 162, 0.4);
    animation: progressGlow 3s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% { 
        box-shadow: 0 2px 8px rgba(255, 154, 162, 0.4);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 4px 16px rgba(255, 154, 162, 0.6);
        filter: brightness(1.1);
    }
}

.progress-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FF9AA2 0%, #FFB7B2 100%);
    border: 4px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(255, 154, 162, 0.4);
    z-index: 2;
}

.progress-thumb:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 6px 20px rgba(255, 154, 162, 0.6);
}

.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.volume-icon {
    color: #FF9AA2;
    transition: all 0.3s ease;
}

.volume-icon:hover {
    color: #FFB7B2;
    transform: scale(1.1);
}

.volume-container {
    width: 140px;
}

.volume-slider {
    width: 100%;
    height: 8px;
    background: rgba(255, 154, 162, 0.2);
    border-radius: 8px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

.volume-slider:hover {
    background: rgba(255, 154, 162, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF9AA2 0%, #FFB7B2 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(255, 154, 162, 0.4);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 5px 16px rgba(255, 154, 162, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF9AA2 0%, #FFB7B2 100%);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(255, 154, 162, 0.4);
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .audio-player-container {
        width: 90vw;
        min-width: 300px;
        padding: 32px;
        min-height: 400px;
    }
    
    .audio-title {
        font-size: 20px;
    }
    
    .main-control-btn {
        width: 100px;
        height: 100px;
    }
    
    .volume-container {
        width: 100px;
    }
}
