.video-player {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.video-player-grid {
    display: grid;
    column-gap: 1.25rem;
    grid-template-columns: repeat(8, 1fr);
}

.video-player-grid.fullscreen {
    display: block;
}

.video-player video {
    border-radius: 4px;
}

.video-player__play img {
    width: 13px;
    height: 15px;
}

.video-player.fullscreen {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    translate: 0 !important;
    background-color: black;
    border-radius: 0 !important;
    color: white;
}

.video-player__video {
    max-height: calc(90vh - 4rem);
    height: 100%;
    width: 100%;
    flex-grow: 1;
    display: block;
    cursor: pointer;
}

.video-player__controls {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;    
}

.video-player.fullscreen .video-player__controls {
    /* background: linear-gradient(0deg, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 0) 100%); */
    background-color: #EEEEEE;
    backdrop-filter: blur(5px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.6rem;
}

/* Play */
.video-player__play {
    /* padding-left: 0.9rem; */
    padding-top: 0.2rem;
}

.video-player__play path {
    fill: black;
}

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

/* Volume */
.video-player__volume {
    width: 8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.5px;
}

.video-player__volume svg {
    margin-top: 0.3rem;
    width: 1.5rem;
    height: auto;
}


/* 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;
    width: 100%;
    padding: 0;
}

.video-player input[type="range"]::before {
    content: " ";
    height: 5px;
    border-radius: 1px;
    background-color: #C3C3C3;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    left: 0;
    right: 0;
    z-index: -2;
}

.video-player input[type="range"]::after {
    content: " ";
    height: 5px;
    background-color: black;
    border-radius: 1px;
    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;
    /* background: rgba(245, 71, 0, 1);; */
    height: 1.25rem;
    width: 100%;
}

.video-player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: 0.125rem;
    height: 1rem;
    width: 0.25rem;
    border-radius: 1px;
    z-index: 10;
    background-color: black;
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.15);
}


.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);
}