*{
    --controllerContainerHeight : 35px;
    --sliderVolumeRange : 150px;
}

/*WARNING : timer bouge en fonction largeur chiffre */

body, .video-control, .controler{
    
    display: flex;
    align-items: center;
    justify-content: center;
}

body{
    height: 100vh;
    justify-content: left;
}

.video-control ,.controler{
    width: 100%;
}


.videoPlayer{
    width: fit-content;
    display: flex;
    height: 100%;
    background-color: black;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.videoPlayer .mainVideo{
    height: calc(100% - var(--controllerContainerHeight));
}

.videoPlayer:fullscreen{
    height : calc(100vh - var(--controllerContainerHeight));
    max-width : calc(100vh - var(--controllerContainerHeight));
    display: flex;
    justify-content:center;
}

.videoPlayer:fullscreen .mainVideo{
    max-width: 100%;
}

.playeralt{
    height: calc(100% - var(--controllerContainerHeight));
    max-height: 60vh;
    border-radius: 5px;
}

.altVideo{
    height: 100%;
    border-radius: 5px;
}

.res1920Hor video{
    height: 100%;
}

.controlContainer{
    background-color: black;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    z-index: 1;
}

.timeline{
    height: 7px;
    background-color: rgba(171, 171, 171,0.5);
    position: relative;
    --progressColor : white;
    cursor: pointer;
}

.timeline .progressbar{
    height: 100%;
    width : 0;
    background-color: var(--progressColor);
    position : relative;
}

.timeline .progressbar::before{
    content: "";
    background: var(--progressColor);
    width: 15px;
    height: 15px;
    position : absolute;
    top : 50%;
    right: 0;
    transform : translateY(-50%)
}

.timeline .progressbar::before, .timeline span{
    display: none;
}

.timeline:hover .progressbar::before, .timeline:hover span{
    display: block;
}

.timeline span{
    position : absolute;
    top: -20px;
    background-color : var(--progressColor);
    padding: 1px;
    transform: translateY(-50%) translateX(-50%); 
    font-size: 15px;
    font-family: LK_GASIL;
}

#videoTimer p{
    font-family: LK_GASIL;
}
.video-control{
    color : white;  
    height: calc(var(--controllerContainerHeight) - 5px);
    box-sizing: border-box;
}

.controlContainer li{
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 4px;
}

.button {
    width: 30px;
    height: 30px;
    border : none;
    background : none;
    color: white;
    cursor: pointer;
}

.res1920Hor .button {
    width: 20px;
    height: 20px;
}

.res1920Hor .controler{
    font-size: 0.8rem;
}

.resinf1080{
    width: 50vw;
}

.resinf1080 .mainVideo, .resinf1080 .altVideo{
    width: 100%;
}

.buttonIcon{
    width: 100%;
}

li#volumeFader{
    box-sizing: border-box;
    height: 100%;
    justify-content: left;
}


.res1920Hor .PersonalSLider{
    --sliderVolumeRange : 80px;
}

.PersonalSLider{
    position: relative;
    display: flex;
    align-items: center;
    width: var(--sliderVolumeRange);
}

input[type=range]{
    list-style-type: none;
    position: absolute;
    appearance: none;
    background-color: transparent;
    width: var(--sliderVolumeRange);
    z-index: 1;
    width: 100%;
}


input[type=range]::-webkit-slider-thumb, input[type=range]::-moz-range-thumb{
    -webkit-appearance: none !important;
    -moz-appearance:none !important;
    color: white;
    background-color: transparent;
    background: transparent;
    width: 20px;
    height: 20px;    
    border: none;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb{
    color: white;
    background-color: rgba(0,0,0,0);
    background: transparent;
    width: 20px;
    height: 20px;    
    border: none;
    cursor: pointer;
}

.sliderBackTrack{
    position: absolute;
    width: 100%;
}
.sliderThumbIcon{
    position: relative;
    width: 20px;
}

.res1920Hor .sliderThumbIcon{
    width: 15px;
}

.volume {
    position: relative;
}

.DenierVisible{
    display: none;
}

.Denier{  
    position : absolute;
    left: 0;
    top : 0;
}

@media (orientation:portrait){
    *{
        --sliderVolumeRange : 100%;
    }

    body{
        flex-direction: column;
    }

    .videoPlayer, .playeralt{
        display: block;
        min-width: unset;
        width: 90vw;
        height: calc(90vw +var(--controllerContainerHeight)) ;
        background-color: black;
        border-radius: 3px;
        overflow: hidden;
        position: relative;
    }  

    .playeralt{
        height: calc(100% - var(--controllerContainerHeight));
        border-radius: 5px;
        max-height: unset;
        background-color: unset;
    }
    
    .altVideo{
        height: auto;
        max-width: 100%;
        border-radius: 5px;
    }

    .res1920{
        height: calc((90vw* 9)/16 + var(--controllerContainerHeight) ) ;
    }


    
    .res1920Hor{
        height: calc((90vw* 16)/9 + var(--controllerContainerHeight) ) ;
    }


    .playeralt.res1920Hor{
        height: calc((90vw* 16)/9);
        
    }

    .res1920Hor video{
        height: unset;
    }

    .resinf1080{
        height: unset;
    }

    .videoPlayer .mainVideo{
        height: auto;
        width : 100%;
    }

    #videoTimer p{
        font-size: 0.8rem;
    }

    .PersonalSLider{
        position: relative;
        height: 100%;
    }

    .button{
        width: 25px;
        height: 25px;
    }
    .volumeFader{
        transform: translateY(-50%);
        top: 50%;
        left: 0;
    }
    .sliderBackTrack{
        transform: translateY(-50%);
        top: 50%;
        left: 0;
        width: 100%;
    }

    .sliderThumbIcon{
        width:20px;
        position: absolute;
        transform: translateY(-50%);
        top: 50%;
    }
}