#audio-player-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#audio-player-overlay.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#audio-player-overlay.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    padding: 25px;
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.overlay-btn {
    width: 100%;
    height: auto;
}

.close-btn {
    position: absolute;
    top: -20px;
    right: -25px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s 
ease;
    z-index: 10;
}

.play-icon-btn:hover {
    color: none;
    background: none;
}

#mute-btn {
	margin-right: 10px !important;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

#overlay-player-iframe {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

#progress-bar {
    width: 300px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    height: 5px;
    cursor: pointer;
    margin: 0 5px;
    touch-action: manipulation;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#progress-bar::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#player-title {
    font-size: 14px;
    flex-grow: 1;
    margin-left: 10px;
    line-height: 22px;
}

#buffering-indicator {
    font-size: 12px;
    color: #ffd700;
}

button {
    background: #be2227;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 0px;
    width: 48px;
    height: 48px;
}

button:hover {
    background: #961d21;
}

.progress-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

#current-time {
    width: 65px;
    text-align: right;
}

#duration {
    width: 65px;
    text-align: left;
}

.player-episode-image {
    cursor: pointer;
}

@media (max-width: 600px) {
    .player-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    #progress-bar {
        width: 100%;
    }
    
    #player-title {
        font-size: 12px;
    }
    
    #overlay-player-iframe {
        width: 100px;
    }
    
    #buffering-indicator {
        font-size: 10px;
    }
    
    .close-btn {
        top: -10px;
        right: 5px;
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
}