/* 
    Video-player
*/

.video-player {
    position: relative;
    display: flex;
}

.archive-videoplayer {
    height: 6rem;
    width: auto;
}

/* Desktop */
@media only screen and (min-width: 64rem) {
    .video-player__video {
        height: 100%;
        width: auto;
    }
}

/* Fullscreen Mode */
.video-player.fullscreen {
    position: fixed;
    z-index: 5;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.video-player.fullscreen .video-player__video {
    width: 100%;
    height: 100vh;
    background-color: #0C0C0C;
}

.video-player .video-player__close {
    display: none;
    cursor: pointer;
}

.video-player.fullscreen .video-player__close {
    display: block;
    position: absolute;
    z-index: 6;
    top: 1rem;
    right: 1rem;
}
.video-player.fullscreen .video-player__close svg {
    width: 1.5rem;
    height: auto;
}

/* Controls */
.video-player__controls {
    position: absolute;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 1rem;
    top: calc(50% - 1.5rem);
    left: 50%;
    right: 50%;
}

/* Play */
.video-player__play {
    cursor: pointer;
    opacity: 1;
}

.video-player__play.active {
    opacity: 0;
    transition: opacity 1000ms ease;
}

.video-player__play.pause,
.video-player__play:hover {
    opacity: 1;
    transition: opacity 500ms ease;
}

.video-player__play svg {
    height: 2rem;
    width: auto;
    mix-blend-mode: difference;
    filter: difference(100%);
}

/* Desktop */
@media only screen and (min-width: 64rem) {
    .video-player__play svg {
        height: 3rem;
    }
}

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

/* 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 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);
}