.lecteur-conteneur {
    display: flex;
    font-family: "Cormorant Garamond", serif;
    position: absolute;
    top: 60px;
    width: 100%;
    height: var(--lecteur-height);
    background-color: var(--noir);
    z-index: 2;
    letter-spacing: .1em
}

.lecteur-conteneur h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    color: #fffafa;
    margin: calc((var(--lecteur-height) - 29px) / 2) 40px calc((var(--lecteur-height) - 29px) / 2) 15px;
    white-space: nowrap;
    //min-width: 300px;
}

.lecteur-conteneur img {
    height: 29px;
    margin: calc((var(--lecteur-height) - 29px) / 2) 15px
}

.lecteur-conteneur li {
    color: var(--couleur-dominante);
    font-size: 1.2em;
    cursor: pointer;
    list-style: none;
    transition: .3s;
    white-space: nowrap;
}

li::before {
    content: '';
    display: inline-block;
    height: 13px;
    width: 13px;
    margin: 0 10px 0 0;
    background-image: url('/static/media/icones/chanson-list-rond.png');
    background-size: contain;
}

.cadena::before {
    content: url('/static/media/icones/cadena.svg');
    display: inline-block;
    height: 13px;
    width: 13px;
    margin: 0 10px 0 0;
    background: transparent;
}

.cadena a {
    color: #aaaaaa;
    font-size: 1em;
    text-decoration: none;
}

.cadena a:hover {
    text-decoration: none;
    color: #cccccc;
}

.lecteur-conteneur li:hover {
    color: #fffafa;
}

.lecteur-conteneur li:hover::before {
    background-image: url('/static/media/icones/chanson-hover.png');
}

.lecteur-conteneur .selected:hover::before {
    background-image: url('/static/media/icones/chansons-selected.png');
}

.lecteur-conteneur .selected {
    color: #fffafa;
    cursor: default;
}

.lecteur-conteneur .selected::before {
    background-image: url('/static/media/icones/chansons-selected.png');
}

.audio-player {
    --sound-button-width: 20px;
    --space: 15px;
    --player-button-width: 45px;
    margin: calc((var(--lecteur-height) - 45px) / 2) 15px;
    flex-grow: 1;
    max-width: 50vw;
}

.loader {
    cursor: default;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    background-color: transparent;
    border-radius: 50%;
    border: medium solid #fffafa;
    border-bottom-color: transparent;
    -webkit-animation: spin 1.2s linear infinite;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

.audio-player span {
    font-family: "Poppins", sans-serif;
    color: #fffafa;
    font-size: 0.6em;
    font-weight: 300;
}

.time.duration {
    margin: 0 5px;
}

.time.current-time {
    margin: 0 5px 0 25px;
}

.controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    color: #fffafa !important;
}

.player-button,
.player-button-mobile {
    background-color: transparent;
    border: 0;
    width: var(--player-button-width);
    height: var(--player-button-width);
    cursor: pointer;
    padding: 0;
    color: #fffafa;
}

.timeline,
.timeline-mobile {
    -webkit-appearance: none;
    height: 2px;
    background-color: var(--couleur-dominante);
    border-radius: 5px;
    background-size: 0% 100%;
    background-image: linear-gradient(#fffafa, #fffafa);
    background-repeat: no-repeat;
    margin-right: var(--space);
    padding: 0;
}
.timeline{
    width: 40px;
    align-self: center;
    flex-grow: 1;
}

.volume {
    -webkit-appearance: none;
    height: 2px;
    border-radius: 5px;
    background-color: var(--couleur-dominante);
    background-size: 85% 100%;
    background-image: linear-gradient(#fffafa, #fffafa);
    background-repeat: no-repeat;
    outline: none;
    margin-right: var(--space);
    padding: 0;
    width: 60px;
}


.timeline-mobile {
    width: 250px;
}

.timeline:hover,
.volume:hover,
.timeline-mobile:hover {
    cursor: pointer;
}

.timeline::-webkit-slider-thumb,
.timeline-mobile::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .1s;
    border: 2px solid #fffafa;
    background-color: var(--couleur-dominante);
}

.timeline::-moz-range-thumb,
.timeline-mobile::-moz-range-thumb {
    -webkit-appearance: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .1s;
    border: 2px solid #fffafa;
    background-color: var(--couleur-dominante);
}

.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .1s;
    border: 2px solid #fffafa;
    background-color: var(--couleur-dominante);
}

.volume::-moz-range-thumb {
    -webkit-appearance: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .1s;
    border: 2px solid #fffafa;
    background-color: var(--couleur-dominante);
}

.timeline::-webkit-slider-runnable-track,
.volume::-webkit-slider-runnable-track,
.timeline-mobile::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.sound-button {
    background-color: transparent;
    border: 0;
    width: var(--sound-button-width);
    height: var(--sound-button-width);
    cursor: pointer;
    padding: 0;
    margin: 0 10px 0 20px;
}

.player-button img,
.sound-button img,
.player-button-mobile img {
    height: 100% !important;
    margin: 0 !important;
}

.lecteur-conteneur.mobile {
    display: none;
}

.ligne-play {
    height: 3px;
    width: 12px;
    background-color: var(--couleur-dominante);
}

.ligne-play.selected {
    background-color: var(--blanc-casse);
}

#ligne-epoque {
    border-bottom-left-radius: 1px;
    border-top-left-radius: 1px;
}

#ligne-detourne {
    border-bottom-right-radius: 1px;
    border-top-right-radius: 1px;
}

.time {
    width: 32px;
}

@media only screen and (max-width: 700px), (max-height: 500px) {
    .lecteur-conteneur {
        display: none;
    }

    .lecteur-conteneur.mobile {
        display: block;
        padding: 0 5px;
        width: calc(100% - (5px * 2));
        height: calc(var(--rangee-mobile-height) * 3);
        transition: .6s;
    }

    .titre-rangee {
        height: var(--rangee-mobile-height);
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .lecteur-conteneur img {
        margin: calc((var(--rangee-mobile-height) - 29px) / 2) 2px
    }

    .lecteur-conteneur h2 {
        font-size: 1.3em;
        margin: calc((var(--rangee-mobile-height) - 25px) / 2) 5px;
        white-space: nowrap;
        overflow: scroll;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }

    .lecteur-conteneur h2::-webkit-scrollbar {
        display: none;
    }

    .selection-rangee {
        height: var(--rangee-mobile-height);
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .selection-rangee #epoque-button-mobile,
    .selection-rangee #detourne-button-mobile {
        color: var(--couleur-dominante);
        cursor: pointer;
        list-style: none;
        transition: .3s;
        margin: 0 7px;
        letter-spacing: .05em;
        font-weight: bold;
        white-space: nowrap;
    }

    .selection-rangee ul #epoque-button-mobile,
    .selection-rangee ul #detourne-button-mobile {
        margin: 3px 0;
    }

    .selection-rangee #epoque-button-mobile:hover,
    .selection-rangee #detourne-button-mobile:hover {
        color: #fffafa;
    }

    .selection-rangee #epoque-button-mobile.selected,
    .selection-rangee #detourne-button-mobile.selected {
        color: var(--blanc-casse);
    }

    .selection-rangee li {
        font-size: .9em;
        margin: 3px 0;
        font-weight: bold;
        white-space: nowrap;
        letter-spacing: .05em;
    }

    .selection-rangee ul {
        padding-left: 0;
    }

    .ligne-play {
        display: block;
        width: 15px;
        transition: .3s;
    }

    #ligne-ancienne {
        transform: rotate(15deg) translate(-1px, -7px);
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;
    }

    #ligne-moderne {
        transform: rotate(-15deg) translateY(7px);
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;
    }

    #ligne-originale {
        transform: rotate(-15deg) translate(1px, -7px);
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
    }

    #ligne-detournee {
        transform: rotate(15deg) translateY(7px);
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
    }

    .mobile .selection-rangee ul {
        margin: 0 12px;
    }

    li::before {
        content: '';
        background: transparent;
        display: none;
    }


    .player-button-mobile {
        width: calc(var(--rangee-mobile-height) + 4px);
    }

    .player-button-mobile img,
    .player-button-mobile svg {
        height: 100%;
        border: 3px solid var(--blanc-casse);
        border-radius: 50%;
        margin: 0
    }

    .timeline-rangee {
        height: 40px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .time.current-time {
        margin: 0 5px;
    }
}


