.sticky-audio-player > * {
    transition: all 0.3s;
}


button.AudioPlayerStickyButton , button.AudioPlayerStickyButton:hover , button.AudioPlayerStickyButton:active , button.AudioPlayerStickyButton:focus{
    background:unset;
    box-shadow:unset;
    background:#13624D !important;
    border-radius:50%;
    padding: 12px;
     
}




button.AudioPlayerStickyButton img {
    max-width:29px;
}


.sticky-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
    max-width: 100% !important;
    margin: 0px;
    z-index: 99999;
    transition: all 0.5s ease-in-out;
}


.player-image {
    width: 80px;
    max-height: 80px !important;
    height: 80px;
    max-width: 80px !important;
    border-radius: 10px;
    opacity: 1 !important;
    transition: all 0.3s;
}

.player-content {
    text-align: center;
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #fff;
    border-top: 1px solid #00000033;        
    padding:20px;

}


.left-items {
    display:flex;
    flex-direction:column;
    gap:10px;
}

.player-info {
    position:absolute;
    right:0;
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding-bottom: 5px;
    transition: height 0.5s;
}


.progress-container {
    display:flex;
    align-items:center;
    justify-content: center;
    flex-direction: row-reverse;
}

@media(max-width:1300px) {
    .progress-container {
        width:38%;
        margin:0 auto;
    }
    .player-title {
        padding-left: 42%;
        white-space: normal;
    }
}

.middle {
    flex-direction:column;
    justify-content: center;
    width:100%;
    display:flex;
}

.player-title {
    font-weight: 400;
    font-size: 20px;
    display: block;
    overflow: hidden;
    white-space: normal;
}


#speed-button {
    max-width: 22px;
    background: transparent !important;
    color: #201c1c !important;
    opacity: 0.7;
    font-size: 20px;
}

#speed-button:focus {
    box-shadow:unset !important;
}

#speed-button:hover{
    opacity: 1;
}


.player-controls {
    display: flex;
    align-items: center;
    flex: 2;
    flex-direction: row-reverse;
    justify-content: center;
    max-width: 700px;
    margin: auto;
}

.player-controls button:focus {
    box-shadow:unset !important;
}

.play-duration-container , .author {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap:5px;
}

.author {
    font-size:18px;
}

.control-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin: 0 2px;
    color: #6a6c6d;
}

.time-display , .progress-container .player-duration {
    font-size: 18px;
    margin: 0 10px;
}



#play-pause-button {
    background-color: #13624D !important;
    color: white;
    border-radius: 50%;
    display: flex;
    height: 46px;
    min-height: 46px !important;
    width: 46px;
    min-width: 46px !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.5s;
}

/* Play/Pause Button */
#play-pause-button:focus {
    transform: rotate(360deg);
    padding-top: 0 !important;
    outline: none; /* Optional: removes the default focus outline for a cleaner look */
}

/* Rewind and Forward Buttons */
#rewind-button:focus,
#forward-button:focus {
    transform: rotateY(360deg);
    outline: none; /* Optional: removes the default focus outline for a cleaner look */
}

/* Add vendor prefixes for better compatibility */
#play-pause-button:focus {
    -webkit-transform: rotate(360deg); /* Safari */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg);
}

#rewind-button:focus,
#forward-button:focus {
    -webkit-transform: rotateY(360deg); /* Safari */
    -ms-transform: rotateY(360deg); /* IE 9 */
    transform: rotateY(360deg);
}

.player-progress {
    width: 100%;
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    margin: 10px 0;
    direction: ltr;
    max-width: 700px;
}


.close-button , .close-button:focus , .close-button:hover {
    background: unset !important;
    color: #f13178 !important;
    border: none;
    border-radius: 5px;
    align-self: flex-start;
    position: absolute;
    padding: 0;
    left:5px;
    top:5px;
    transform: rotate(180deg);
    transform-origin: center;
    box-shadow: unset;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
}


#rewind-button, #forward-button {
    background: transparent !important;
}

#rewind-button:hover, #forward-button:hover {
    color: #9148bd;
}




/* === Range theme and appearance === */
input[type="range"] {
    -webkit-appearance: none; /* Removes default styling */
    appearance: none; /* Ensures compatibility across browsers */
    width: 100%; /* Full width */
    height: 0.5em; /* Adjust the height of the track */
    background: transparent; /* Make the background transparent */
    cursor: pointer;
    margin: 0;
    transition: all 0.5s;
}

/* === Track appearance === */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 0.5em;
    background: linear-gradient(to right, #6b479e 0%, #6b479e var(--value), gray var(--value), gray 100%);
    border-radius: 0.25em;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 0.5em;
    background: gray; /* Fallback color for older browsers */
    border-radius: 0.25em;
}

input[type="range"]::-ms-track {
    width: 100%;
    height: 0.5em;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background: #6b479e;
    border-radius: 0.25em;
}

input[type="range"]::-ms-fill-upper {
    background: gray;
    border-radius: 0.25em;
}

/* === Thumb appearance === */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25em; /* Thumb width */
    height: 1.25em; /* Thumb height */
    background: #6b479e; /* Thumb color */
    border-radius: 50%; /* Circular thumb */
    cursor: pointer;
    margin-top: -0.375em; /* Center the thumb on the track */
}

input[type="range"]::-moz-range-thumb {
    width: 1.25em; /* Thumb width */
    height: 1.25em; /* Thumb height */
    background: #6b479e; /* Thumb color */
    border-radius: 50%; /* Circular thumb */
    cursor: pointer;
    border: none; /* Remove any border */
}

input[type="range"]::-ms-thumb {
    width: 1.25em; /* Thumb width */
    height: 1.25em; /* Thumb height */
    background: #6b479e; /* Thumb color */
    border-radius: 50%; /* Circular thumb */
    cursor: pointer;
}

/* === Hover and active states === */
input[type="range"]:hover::-webkit-slider-thumb {
    background: #8e62c0; /* Lighter shade on hover */
}

input[type="range"]:active::-webkit-slider-thumb {
    background: #4a3170; /* Darker shade when active */
}

input[type="range"]:hover::-moz-range-thumb {
    background: #8e62c0;
}

input[type="range"]:active::-moz-range-thumb {
    background: #4a3170;
}

input[type="range"]:hover::-ms-thumb {
    background: #8e62c0;
}

input[type="range"]:active::-ms-thumb {
    background: #4a3170;
}

/* === Disabled state === */
input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="range"]:disabled::-webkit-slider-thumb,
input[type="range"]:disabled::-moz-range-thumb,
input[type="range"]:disabled::-ms-thumb {
    background: #ccc; /* Disabled thumb color */
}


.bottom-info {
    gap:10px;
    display:flex;
}

.AudioPlayerStickyButton{
    display: flex;
    align-items: center;
}

.mobile {
    display:none;
}

@media only screen and (min-width: 900px) {
    #player-current-time{
        left: 15% !important;
    }

}

@media only screen and (min-width: 1600px) {
    #player-current-time{
        left: 25% !important;
    }

}



@media(max-width:945px) {
    .left-items {
        display:none;
    }
    .player-title {
        padding-left:0px;
    }
    .player-content {
        padding:10px;
    }
    .progress-container {
        width:85%;
    }

    .control-button {
        padding:0px;
    }

    .desktop {
        display:none;
    }
    .middle {
        margin-right:33px;
    }
    
    .mobile {
        display:block;
    }
    .player-title {
        font-size:16px;
        max-width:77%;
        text-align: center;
        margin: 0 auto;
    }
}

#close-player-minimized{
    position: fixed;
    bottom: 21px;
    right: 4px;
    background: #EE008A;
    color: #fff;
    padding: 0px 4px;
    border-radius: 50%;
    padding-top: 5px;
}


#close-player-minimized svg {
    width: 25px;
    height: 25px;
}