/* 
    Video-player
*/

.video-player {
    margin: 0 0.5rem 0 0;
    position: relative;
}

.video-player__video {
    height: 100%;
    width: auto;
}

.video-player__controls {
    position: absolute;
    align-items: center;
    display: flex;
    gap: 1rem;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
}

.video-player__play,
.video-player__volume {
    color: rgba(255, 255, 255, 0.65);
}

.video-player__play:hover,
.video-player__volume:hover {
    color: rgba(255, 255, 255, 0.90);
}

.video-player__play {
    width: 2.15rem;
}

.video-player__volume {
    width: 4.5rem;
}

.video-player__progress {
    position: relative;
    width: 6rem;
    flex-grow: 1;
}

.video-player input[type="range"] {
    cursor: pointer;
    z-index: 1;
    /* width: 100%; */
}

/* Fullscreen */
.video-player__fullscreen,
.video-player__fullscreen svg {
    margin-top: 0.2rem;
    width: 1.25rem;
    height: auto;
}

.video-player__fullscreen .open,
.video-player__fullscreen .open svg {
    height: auto;
    padding-bottom: 0.1rem;
    margin-right: 0.7rem;
}

.video-player.fullscreen .video-player__fullscreen svg * {
    /* stroke: white !important; */
}

.video-player__fullscreen svg,
.video-player__fullscreen svg * {
    stroke-width: 0.3rem !important;
}

.video-player.fullscreen .video-player__fullscreen svg,
.video-player.fullscreen .video-player__fullscreen svg * {
    stroke-width: 4px !important;
}

.video-player__fullscreen .open {
    display: none;
}

.video-player__fullscreen .closed {
    display: block;
}

.video-player.fullscreen .video-player__fullscreen .open {
    display: block;
}

.video-player.fullscreen .video-player__fullscreen .closed {
    display: none;
}

.hide {
    opacity: 0;
    visibility: none;
    pointer-events: none;
    transform: scale(0.0001);
}

/* Inputs */
.video-player input[type="range"] {
    position: relative;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    accent-color: rgba(0, 0, 0, 1);
    z-index: 1;
    padding: 0;
}

.video-player input[type="range"]::before {
    content: " ";
    height: 5px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    left: 0;
    right: 0;
    z-index: -2;
}

.video-player input[type="range"]::after {
    content: " ";
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg,rgba(255, 255, 255, 0.7) calc(100% - 1.5rem), rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    left: 0;
    width: var(--progress, 0);
    z-index: -1;
}

.video-player.fullscreen input[type="range"]::after {
    background-color: black;
}

.video-player input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 1.25rem;
    width: 100%;
}

.video-player input[type="range"]::-moz-range-track {
    background: transparent;
    height: 1.25rem;
    width: 100%;
}

.video-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: 0.125rem;
    height: 6px;
    width: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px);
}


.video-player input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: 0.25rem;
    height: 0.75rem;
    width: 2px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 1);
}

.video-player.fullscreen input[type="range"]::-moz-range-thumb {
    background-color: rgba(255, 255, 255, 1);
}