/* PLYR CSS */


/* hero on top - no controls */



.video_item:hover .plyr__controls {
    opacity: 1;
}


.plyr__controls {
    width: 100%;
    height: 40%;
    position: relative;
    opacity: 1;
}

.plyr__progress {
    position: absolute;
    z-index: 100;
    bottom: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    left: 0;
    transform: translateX(-100%);
    -webkit-transition: 0.45s ease-in-out;
    transition: 0.45s ease-in-out;
    border-radius: 0px !important;
}

.plyr__controls:hover .plyr__progress {
    transform: translateX(0);
}

.plyr__progress input[type=range] {
    position: relative;
    z-index: 100;
}

/* play icon */
.bottone_play {
    margin: 0;
    position: absolute;
    bottom: 20px;
    right: 20px;
    height: 60px !important;
    width: 60px !important;
    background-color: rgba(255, 255, 255, 0);
    border-radius: none;
    border-radius: 75px !important;
    border: 1px solid rgba(255, 255, 255, 1);
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottone_play:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: 3px solid rgba(255, 255, 255, 1);
}

.bottone_play img {
    height: 20px;
    width: auto;
}


/* full screen icon */
.bottone_fullscreen {
    margin: 0;
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.bottone_fullscreen img {
    height: 25px;
    width: auto;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.bottone_fullscreen:hover {
    background-color: transparent !important;
}

.bottone_fullscreen:hover img {
    transform: scale(1.1);
}


.plyr--video.plyr--hide-controls .plyr__controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0)
}

/* track barra navigazione */

.plyr--video .plyr__progress__buffer {
    opacity: 0;
    width: 100% !important;
}

.plyr--video input[type=range] {
    -webkit-appearance: none;
    width: 100% !important;
}

.plyr--full-ui input[type=range] {
    -webkit-appearance: none;
    background: 0 0;
    border: 0;
    border-radius: none !important;
    color: #9E8B81;
    display: block;
    height: 6px;
    margin: 0;
    padding: 0;
    transition: box-shadow .3s ease;
    width: 100% !important;
}


/* se post cambia colore progress bar in bianco */

.video_post .plyr--full-ui input[type=range] {
    color: white !important;
}

.video_post .plyr--full-ui input[type=range]::-moz-range-progress {
    background: white !important;
}


.plyr--full-ui input[type=range]::-webkit-slider-runnable-track {
    background: 0 0;
    border: 0;
    border-radius: none;
    height: 8px;
    transition: box-shadow .3s ease;
    -webkit-user-select: none;
    user-select: none;
    background-image: linear-gradient(to right, currentColor 0, transparent 0);
    background-image: linear-gradient(to right, currentColor var(--value, 0), transparent var(--value, 0))
}

.plyr--full-ui input[type=range]::-webkit-slider-thumb {
    opacity: 0;
}

.plyr--full-ui input[type=range]::-moz-range-track {
    background: 0 0;
    border: 0;
    border-radius: none;
    height: 8px;
    -moz-transition: box-shadow .3s ease;
    transition: box-shadow .3s ease;
    user-select: none
}

.plyr--full-ui input[type=range]::-moz-range-thumb {
    opacity: 0;
}

.plyr--full-ui input[type=range]::-moz-range-progress {
    background: #9E8B81;
    border-radius: none;
    height: 8px;
}

.plyr--full-ui input[type=range]::-ms-track {
    background: 0 0;
    border: 0;
    border-radius: none;
    height: 8px;
    -ms-transition: box-shadow .3s ease;
    transition: box-shadow .3s ease;
    -ms-user-select: none;
    user-select: none;
    color: transparent
}

.plyr--full-ui input[type=range]::-ms-fill-upper {
    background: 0 0;
    border: 0;
    border-radius: none;
    height: 8px;
    -ms-transition: box-shadow .3s ease;
    transition: box-shadow .3s ease;
    -ms-user-select: none;
    user-select: none
}

.plyr--full-ui input[type=range]::-ms-fill-lower {
    background: 0 0;
    border: 0;
    border-radius: none;
    height: 8px;
    -ms-transition: box-shadow .3s ease;
    transition: box-shadow .3s ease;
    -ms-user-select: none;
    user-select: none;
    background: currentColor
}

.plyr--full-ui input[type=range]::-ms-thumb {
    opacity: 0;
}

.plyr--full-ui input[type=range]::-ms-tooltip {
    display: none
}

.plyr--full-ui input[type=range]:focus {
    outline: 0
}

.plyr--full-ui input[type=range]::-moz-focus-outer {
    border: 0
}

.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track {
    opacity: 0;
}

.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track {
    opacity: 0;
}

.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track {
    opacity: 0;
}
