/* Container du lecteur */
.custom-audioplayer {
    display: flex;
    flex-direction: column;
    width: auto;
    background: var(--color0);
    color: var(--color3);
    padding: var(--padding_extrasmall);
    border-radius: 50px;
    font-family: 'custom_regular', sans-serif;

}

.custom-audioplayer article, .custom-audioplayer aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.custom-audioplayer article {
    width: 60%;
}
.custom-audioplayer aside {
    width: 40%;

    justify-content: flex-end;
}

/* Controls horizontal */
.custom-audioplayer .controls {
    display: flex;
    align-items: center;

    align-content: center;
}

/* Boutons SVG */
.custom-audioplayer .btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--padding_extrasmall);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color3);
    transition: color 0.2s;
}

.custom-audioplayer .btn:hover {
    color: var(--color3c);
    box-shadow: none;
}

.custom-audioplayer input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    border-radius: 3px;
    background: var(--color3c);
}

/* Barre de progression */
.custom-audioplayer .progress {
    width: 75%;
    height: 6px;
}

/* Barre de volume plus petite */
.custom-audioplayer .volume {
    width: 43px; 
    height: 4px;
}

/* Chrome & Safari thumb */
.custom-audioplayer input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--color1);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Firefox thumb */
.custom-audioplayer input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--color1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Firefox track */
.custom-audioplayer input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--color3b);
    border-radius: 3px;
}

/* Hover effet sur les thumbs */
.custom-audioplayer input[type="range"]:hover::-webkit-slider-thumb,
.custom-audioplayer input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.2);
}

/* Temps audio */
.custom-audioplayer .currentTime,
.custom-audioplayer .duration {
    font-size: 0.85rem;
    min-width: 35px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .custom-audioplayer {
        padding: var(--padding_small);
    }
    .custom-audioplayer .volume {
        width: 50px;
    }
}