.audio-player {
    width: 100%;
    max-width: 600px;
    margin: 25px auto;
    background: rgba(19, 22, 27, 0.7);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.player-control {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #35617e, #4278a0);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.player-control:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #4278a0, #35617e);
}

.play-pause .pause-icon {
    display: none;
}

.play-pause.playing .play-icon {
    display: none;
}

.play-pause.playing .pause-icon {
    display: block;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-display {
    font-size: 0.9rem;
    color: #a3c1d8;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 10px;
    position: relative;
    cursor: pointer;
}

.progress-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #35617e, #4278a0);
    border-radius: 5px;
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.volume-container {
    display: none;
    align-items: center;
    gap: 10px;
    width: 120px;
}

.volume-btn {
    position: relative;
}

.volume-btn .mute-icon {
    display: none;
}

.volume-btn.muted .volume-icon {
    display: none;
}

.volume-btn.muted .mute-icon {
    display: block;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2.5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a3c1d8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #fff;
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a3c1d8;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .audio-player {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .progress-container {
        width: 100%;
    }
    
    .volume-container {
        width: 100%;
        justify-content: center;
    }
}
