/* Input Styling */

.audio-player input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    accent-color: white;
    z-index: 1;
    position: relative;
    margin: 0;
}

.audio-player input[type="range"]::after,
.audio-player input[type="range"]::before {
    content: " ";
    height: 3px;
    background-color: rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    left: 0;
    right: 0;
    z-index: -2;
    border-radius: 4px;
}

.audio-player input[type="range"]::after {
    background-color: rgba(0, 0, 0, 1);
    border-radius: 4px;
}

.audio-player input[type="range"]::-webkit-slider-runnable-track,
.audio-player input[type="range"]::-moz-range-track {
    background: transparent;
    /* background: rgba(245, 71, 0, 1);; */
    height: 1rem;
    width: 100%;
}

.audio-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: 8px;
    height: 8px;
    width: 8px;
    border-radius: 0.5rem;
    z-index: 10;
}

.audio-player input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: 8px;
    height: 8px;
    width: 8px;
    border-radius: 0.5rem;
}

/* 
    Audio Player 
*/

.audio-player {
    position: relative;
    width: 100%;
}

/* Controls */
.audio-player-controls {
    display: grid;
    grid-template-columns: 1fr auto ;
    margin-top: -0.5rem;
    gap: 0 1rem;
    align-items: center;
}

.audio-player-controls-actions {
    display: flex;
    align-items: center;
}

/* Progress */

.audio-player-progress-bar {
    width: 100%;
    translate: 0 -1px;
}

.audio-player .progress {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    translate: 0 1px;
}

.audio-player-progress-bar::after {
    width: var(--progress, 0);
}


/* Sound */
.audio-player .sound-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-player .sound-button-volume {
    display: none;
}

.audio-player .sound-button:hover .sound-button-volume {
    display: block;
    position: absolute;
    left: 100%;
    transform-origin: 0 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem 0.35rem 0;
    border-radius: 2px;
}

.audio-player .sound-button-volume-input {
    margin: 0;
    width: 4rem;
}

.audio-player .sound-button-volume-input::after {
    width: var(--volume, 100%) !important;
}

/* Icons & Labels  */
.audio-player .icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player .icon svg {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


.audio-player .label {
    display: block;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.audio-player .icon>*,
.audio-player .label>* {
    display: none;
}

.audio-player .icon>*.active,
.audio-player .label>*.active {
    display: block;
}

/* Styles */
.audio-player-controls .icon svg * {
    fill: black;
}