#envideo * { box-sizing: border-box; }
#envideo {
    --vp-primary-color: #F00;
    --vp-control-button-width: 48px;
    --vp-control-container-height: 48px;
    --vp-preview-bottom: 75px;
    --vp-middle-box-size: 52px;
    --vp-option-menu-width: 250px;
    --vp-font-family: Roboto, Arial, Helvetica, sans-serif;
    --vp-bg-color: #000;
    --vp-text-color: #eee;
    --vp-secondary-text-color: #ddd;
    --vp-highlight-color: rgba(0, 0, 0, 0);
    --vp-control-gap: 8px;
    --vp-progress-bar-height: 16px;
    --vp-caption-position-bottom: 20px;

    box-sizing: border-box;
    font-family: var(--vp-font-family);
    background: var(--vp-bg-color);
    color: var(--vp-text-color);
    text-align: left;
    direction: ltr;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: var(--vp-highlight-color);
    position: relative;
    overflow: hidden;

    font-size: 11px;
    display: flex;
    /*width: fit-content;*/
    width: 100%;
    height: 100%;
    max-height: min(100vh, 100%);
    max-width: min(100vw, 100%);

}

#envideo.full-screen {
    width: 100vw;
    min-width: 100vw;
    height: min(100vh, 100%);
    min-height: min(100vh, 100%);
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2147483647;
    background-color: #000;
    overflow: hidden;
}

@supports (height: 100dvh) {
    #envideo.full-screen {
        height: 100dvh;
        min-height: 100dvh;
    }
}

/*  large-mode  =   video > 1200px */
#envideo.large-mode {
    --vp-control-button-width: 54px;
    --vp-control-container-height: 54px;
    --vp-middle-box-size: 78px;
}

/*  desktop-mode =   1200px > video > 768px  */
#envideo.desktop-mode {
    --vp-control-button-width: 48px;
    --vp-control-container-height: 48px;
    --vp-preview-bottom: 60px;
    --vp-option-menu-width: 180px;}

/* tablet-mode = 768px > video > 576px */
#envideo.tablet-mode {
    --vp-control-button-width: 36px;
    --vp-control-container-height: 40px;
    --vp-preview-bottom: 50px;
    --vp-option-menu-width: 180px;
}

/* small-mode =  video < 576px   */
#envideo.small-mode {
    --vp-control-button-width: 32px;
    --vp-control-container-height: 40px;
    --vp-preview-bottom: 50px;
    --vp-option-menu-width: 180px;
}

#envideo svg {
    max-height: 20px;
    width: auto;
    max-width: 100%;
    height: 100%;
    fill: #fff;
    position: relative;
}
#envideo.large-mode svg { max-height: 24px; }
#envideo.small-mode svg { max-height: 18px; }

#envideo .en-vp-control-btn.en-vp-control-unmute svg,
#envideo .en-vp-control-btn.en-vp-control-mute svg {
    max-height: 17px;
}
#envideo.large-mode .en-vp-control-btn.en-vp-control-unmute svg,
#envideo.large-mode .en-vp-control-btn.en-vp-control-mute svg {
    max-height: 20px;
}
#envideo.small-mode .en-vp-control-btn.en-vp-control-unmute svg,
#envideo.small-mode .en-vp-control-btn.en-vp-control-mute svg {
    max-height: 14px;
}

#envideo .en-vp-control-btn.en-vp-control-subtitle svg { max-height: 23px;}
#envideo.large-mode .en-vp-control-btn.en-vp-control-subtitle svg { max-height: 27px;}
#envideo.small-mode .en-vp-control-btn.en-vp-control-subtitle svg { max-height: 18px;}


#envideo .en-svg-fill { fill: #FFF; }
#envideo .en-svg-shadow { stroke: #000; stroke-opacity: .15; stroke-width: 2px; fill: none; }


#envideo .video-controller { z-index: 4; }
#envideo .gradient-bottom { z-index: 3; }

#envideo .en-vp-control-btn {
    color: #ffffff;
    width: var(--vp-control-button-width);
    aspect-ratio: 1;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: .9;
    padding: 0 2px;
    transition: opacity .1s cubic-bezier(.4, 0, 1, 1);
    overflow: hidden;
    height: 100%;
    font-size: 100%;
    font-family: inherit;
    line-height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#envideo .en-vp-control-btn.en-vp-control-play-previous,
#envideo .en-vp-control-btn.en-vp-control-play-next {
    width: calc(var(--vp-control-button-width) + 4px);
}
#envideo .en-vp-control-btn.en-vp-control-play,
#envideo .en-vp-control-btn.en-vp-control-pause {
    width: calc(var(--vp-control-button-width) - 2px);
}
#envideo .en-vp-control-btn.en-vp-control-mute,
#envideo .en-vp-control-btn.en-vp-control-unmute {
    padding: 6px;
}
#envideo .en-vp-control-btn.en-vp-control-mini-player { padding: 0 4px; }

#envideo .en-vp-control-btn.hidden, .hidden { display: none; }

#envideo .video-controller {
    width: 100%;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
}

#envideo .player-wrapper:hover .video-controller { opacity: 1; transition: opacity 3s; }

#envideo .controller-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-inline: 12px;
    font-size: 109%;
}

#envideo .video-holder { background: var(--vp-bg-color); display: flex; justify-content: center; align-items: center; }

#envideo .en-vp-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--vp-control-container-height);
    line-height: 1;
    font-size: 109%;
    text-align: left;
    direction: ltr;
}

#envideo .en-vp-left-controls, .en-vp-right-controls { display: flex; align-items: center; }
#envideo .en-vp-left-controls { justify-content: flex-start; }
#envideo .en-vp-right-controls { justify-content: flex-end; }

#envideo > video { margin: auto; max-height: 100%; max-width: 100%; height: auto; z-index: 0; }

#envideo .time-stamp {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-secondary-text-color);
    gap: 4px;
    padding-inline: var(--vp-control-gap);
    transition: margin .2s cubic-bezier(0, 0, .2, 1), width .2s cubic-bezier(0, 0, .2, 1);
}

#envideo .video-title { margin-top: 20px; margin-left: 40px; margin-bottom: 40px; }

#envideo .sound { display: flex; align-items: center; }

#envideo .volume-container {
    display: inline-block;
    width: 0;
    height: 100%;
    transition: margin .2s cubic-bezier(.4, 0, 1, 1), width .2s cubic-bezier(.4, 0, 1, 1);
    cursor: pointer;
    overflow: hidden;
}

#envideo .volume-container:focus-within,
#envideo .sound:hover .volume-container {
    opacity: 1;
    overflow: visible;
    width: 52px;
    margin-right: 3px;
    transition: margin .2s cubic-bezier(0, 0, .2, 1), width .2s cubic-bezier(0, 0, .2, 1);
}

#envideo.small-mode .sound:hover ~ .time-stamp { gap: 0; padding: 0; }
#envideo.big-mode .sound:hover .volume-container { width: 78px; margin-right: 5px; }

#envideo input[type="range"] {
    width: 50px;
    max-width: 100%;
    appearance: none;
    margin: 0;
    padding: 0;
    background: #fff;
    display: block;
    height: 3px;
    border: none;
}

#envideo input[type="range"]::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    appearance: none;
    background: #ffffff;
    border-radius: 9px;
    vertical-align: middle;
}

#envideo:not(.subtitle-active) .subtitle-container {
    display: none;
}


#envideo.subtitle-active .subtitle-container {
    position: absolute;
    bottom: var(--vp-caption-position-bottom);
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    transition: bottom 0.3s ease;
    z-index: 4;
}

#envideo.subtitle-active .subtitle-container span {
    display: inline-block;
    white-space: pre-wrap;
    background: rgba(8, 8, 8, 0.75);
    color: #fff;
    fill: #fff;
    padding-inline: 0.25em;
}

/*@supports (-webkit-touch-callout: none) {*/
/*    #envideo.subtitle-active .subtitle-container span {*/
/*        font-size: clamp(14.21975px, 0.01781 * 100vw + 7.09691px, 42.711111px);*/
/*}*/

#envideo.subtitle-missing .en-vp-control-btn.en-vp-control-subtitle {
    position: relative;
}

#envideo.subtitle-active .en-vp-control-btn.en-vp-control-subtitle svg rect {
    fill: var(--vp-primary-color);
}

#envideo .en-vp-control-btn.en-vp-control-subtitle {
    position: relative;
}

#envideo .en-vp-control-btn.en-vp-control-subtitle:before {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    height: 3px;
    width: 0;
    max-width: 24px;
    background: var(--vp-primary-color);
    transition: width 0.4s ease-in-out;
}

#envideo.small-mode .en-vp-control-btn.en-vp-control-subtitle:before {
    bottom: 6px;
    max-width: 18px;
}

#envideo.subtitle-active .en-vp-control-btn.en-vp-control-subtitle:before {
    width: 100%;
}

#envideo .auto-play {
    width: 52px;
    height: 15px;
    border-radius: 10px;
    background: #ffffffaa;
    position: relative;
    border: none;
}

#envideo .auto-play:after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: left 0.2s ease-in-out, right 0.2s ease-in-out;
    background-position: center center;
}

/* Progress Bar */
#envideo .progress-bar-container {
    width: 100%;
    height: var(--vp-progress-bar-height);
    cursor: pointer;
    position: relative;
}

#envideo .progress-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, .2);
    transform: scaleY(.6);
    transition: transform .1s cubic-bezier(.4, 0, 1, 1);
}

#envideo .progress-bar-container:hover .progress-bar,
#envideo .progress-bar-container .progress-bar:hover {
    transform: none;
}

#envideo .progress-indicator {
    width: 0;
    height: 100%;
    background: var(--vp-primary-color);
    position: relative;
}

#envideo .progress-indicator:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 13px;
    height: 13px;
    background: var(--vp-primary-color);
    border-radius: 50%;
    transition: transform .1s cubic-bezier(.4, 0, 1, 1);
    transform: scale(0) translate(50%, -50%);
}

#envideo .progress-bar-container:hover .progress-bar .progress-indicator:before,
#envideo .progress-bar-container .progress-bar:hover .progress-indicator:before {
    transform: translate(50%, -50%);
}

#envideo .en-hover-progress {
    z-index: 35;
    background: rgba(0, 0, 0, .125);
    opacity: 0;
    transition: opacity .25s cubic-bezier(0, 0, .2, 1);
}

#envideo.control-buttons-active {
    --vp-caption-position-bottom: calc(20px + var(--vp-control-container-height) + var(--vp-progress-bar-height));
}


/* Preview Thumbnail */
#envideo #preview-container {
    position: absolute;
    bottom: var(--vp-preview-bottom);
    display: none;
    max-width: 300px;
}

#envideo #preview-container .preview-container-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

#envideo #preview-container .preview-container-inner canvas {
    width: 100%;
    height: 90px;
    max-width: 100%;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
    background: #000;
}

#envideo #preview-container .preview-container-inner video {
    max-width: calc(100% - 4px);
    max-height: calc(100% - 4px);
    position: absolute;
    top: 0;
    transform: translateY(-100%);
}

#envideo #preview-container .preview-container-inner span {
    text-shadow: 0 0 4px rgba(0, 0, 0, .75);
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    font-size: 118%;
    font-weight: 500;
    line-height: 15px;
    background: none;
    display: inline;
    border-radius: 2px;
    padding: 5px 9px;
}

/* Player Options */
#envideo .player-options-wrapper {
    position: relative;
    right: 12px;
    bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(28, 28, 28, .9);
    text-shadow: 0 0 2px rgba(0, 0, 0, .5);
    transition: opacity .1s cubic-bezier(0, 0, .2, 1);
    user-select: none;
}

#envideo select {
    background: transparent;
    color: #fff;
    border: none;
    outline: none;
}

#envideo select option {
    color: #fff;
}

#envideo .video-controller.hidden {
    display: flex;
    opacity: 0;
    transition: opacity .1s cubic-bezier(.4, 0, 1, 1);
}

#envideo .video-controller {
    transition: opacity .25s cubic-bezier(0, 0, .2, 1);
}

#envideo .gradient-bottom {
    position: absolute;
    bottom: 0;
    height: 40%;
    width: 100%;
    transition: opacity .25s cubic-bezier(0, 0, .2, 1);
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.0));
}

#envideo.control-buttons-active .gradient-bottom {
    opacity: 1;
}

#envideo .player-option-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    color: #eee;
    min-width: var(--vp-option-menu-width);
    padding: 8px 0;
    border-radius: 12px;
}

#envideo .player-option {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

#envideo .player-option:focus-within,
#envideo .player-option:hover {
    background: rgba(255, 255, 255, .1);
}

#envideo .player-option-icon {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

#envideo .player-option-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

#envideo .player-option-label {
    flex: 1;
    font-size: 118%;
    font-weight: 500;
    text-align: left;
}

#envideo .player-option-content {
    padding: 0 15px;
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
    font-size: 109%;
    text-align: right;
}

#envideo .player-option select { width: 60px; }
#envideo.small-mode .player-option select { width: 50px; }

#envideo .en-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    margin-left: -32px;
    z-index: 18;
    pointer-events: none;
}

#envideo.en-big-mode .en-spinner {
    width: 128px;
    margin-left: -64px;
}

#envideo .en-spinner-message {
    position: absolute;
    left: 50%;
    margin-top: 50%;
    width: 300px;
    font-size: 127%;
    line-height: 182%;
    margin-left: -150px;
    display: none;
    text-align: center;
    background-color: black;
    opacity: .5;
}

#envideo .en-spinner-container {
    pointer-events: none;
    position: absolute;
    width: 100%;
    padding-bottom: 100%;
    top: 50%;
    left: 50%;
    margin-top: -50%;
    margin-left: -50%;
    animation: en-spinner-linspin 1.568s linear infinite;
    -webkit-animation: en-spinner-linspin 1.568s linear infinite;
}

#envideo .en-spinner-rotator {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-animation: en-spinner-easespin 5332ms cubic-bezier(.4, 0, .2, 1) infinite both;
    animation: en-spinner-easespin 5332ms cubic-bezier(.4, 0, .2, 1) infinite both;
}

#envideo .en-spinner-left,
#envideo .en-spinner-right {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

#envideo .en-spinner-left {
    right: 49%;
}

#envideo .en-spinner-right {
    left: 49%;
}

#envideo .en-spinner-circle {
    box-sizing: border-box;
    position: absolute;
    width: 200%;
    height: 100%;
    border-style: solid;
    border-color: #ddd #ddd transparent;
    border-radius: 50%;
    border-width: 6px;
}

#envideo .en-big-mode .en-spinner-circle {
    border-width: 12px;
}

#envideo .en-spinner-left .en-spinner-circle {
    left: 0;
    right: -100%;
    border-right-color: transparent;
    -webkit-animation: en-spinner-left-spin 1333ms cubic-bezier(.4, 0, .2, 1) infinite both;
    animation: en-spinner-left-spin 1333ms cubic-bezier(.4, 0, .2, 1) infinite both;
}

#envideo .en-spinner-right .en-spinner-circle {
    left: -100%;
    right: 0;
    border-left-color: transparent;
    -webkit-animation: en-right-spin 1333ms cubic-bezier(.4, 0, .2, 1) infinite both;
    animation: en-right-spin 1333ms cubic-bezier(.4, 0, .2, 1) infinite both;
}

@-webkit-keyframes en-spinner-linspin {
    to { -webkit-transform: rotate(1turn); }
}

@keyframes en-spinner-linspin {
    to { -webkit-transform: rotate(1turn); transform: rotate(1turn); }
}

@-webkit-keyframes en-spinner-easespin {
    12.5% { -webkit-transform: rotate(135deg); }
    25% { -webkit-transform: rotate(270deg); }
    37.5% { -webkit-transform: rotate(405deg); }
    50% { -webkit-transform: rotate(540deg); }
    62.5% { -webkit-transform: rotate(675deg); }
    75% { -webkit-transform: rotate(810deg); }
    87.5% { -webkit-transform: rotate(945deg); }
    to { -webkit-transform: rotate(3turn); }
}

@keyframes en-spinner-easespin {
    12.5% { -webkit-transform: rotate(135deg); transform: rotate(135deg); }
    25% { -webkit-transform: rotate(270deg); transform: rotate(270deg); }
    37.5% { -webkit-transform: rotate(405deg); transform: rotate(405deg); }
    50% { -webkit-transform: rotate(540deg); transform: rotate(540deg); }
    62.5% { -webkit-transform: rotate(675deg); transform: rotate(675deg); }
    75% { -webkit-transform: rotate(810deg); transform: rotate(810deg); }
    87.5% { -webkit-transform: rotate(945deg); transform: rotate(945deg); }
    to { -webkit-transform: rotate(3turn); transform: rotate(3turn); }
}

@-webkit-keyframes en-spinner-left-spin {
    from { -webkit-transform: rotate(130deg); }
    50% { -webkit-transform: rotate(-5deg); }
    to { -webkit-transform: rotate(130deg); }
}

@keyframes en-spinner-left-spin {
    from { -webkit-transform: rotate(130deg); transform: rotate(130deg); }
    50% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
    to { -webkit-transform: rotate(130deg); transform: rotate(130deg); }
}

@-webkit-keyframes en-right-spin {
    from { -webkit-transform: rotate(-130deg); }
    50% { -webkit-transform: rotate(5deg); }
    to { -webkit-transform: rotate(-130deg); }
}

@keyframes en-right-spin {
    from { -webkit-transform: rotate(-130deg); transform: rotate(-130deg); }
    50% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
    to { -webkit-transform: rotate(-130deg); transform: rotate(-130deg); }
}

#envideo.full-screen video {
    width: 100%;
    height: 100%;
}

#envideo.full-screen .video-holder {
    width: 100%;
    height: 100%;
}

@keyframes middle-box-fadeout {
    from { opacity: 1; }
    to { opacity: 0; -webkit-transform: scale(2); transform: scale(2); }
}

#envideo .middle-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--vp-middle-box-size);
    height: var(--vp-middle-box-size);
    margin-left: calc(var(--vp-middle-box-size) * -0.5);
    margin-top: calc(var(--vp-middle-box-size) * -0.5);
    background: rgba(0, 0, 0, .5);
    border-radius: calc(calc(var(--vp-middle-box-size) / 2));
    -webkit-animation: middle-box-fadeout .5s linear 1 normal forwards;
    animation: middle-box-fadeout .5s linear 1 normal forwards;
    pointer-events: none;
    z-index: 5;
}

#envideo .middle-box .middle-box-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#envideo .middle-box .middle-box-icon {
    width: 40px;
    height: 40px;
    margin: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}


#envideo video {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#envideo video::-webkit-media-controls { display: none !important;}
#envideo video::-webkit-media-controls-panel { display: none !important;}
#envideo video::-webkit-media-controls-start-playback-button { display: none !important;}

#envideo .disabled {
    opacity: .6;
    pointer-events: none;
}

#video-available-message {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    gap: 0.75em;
    color: #999;
    width: 100%;
    height: 100%;
}


#envideo #video-available-message svg {
    max-height: var(--exclamation-mark-size);
    width: var(--exclamation-mark-size);
    height: var(--exclamation-mark-size);
    fill: #999;
    display: block;
}


#envideo.large-mode #video-available-message svg { --exclamation-mark-size: 48px;}
#envideo.desktop-mode #video-available-message svg { --exclamation-mark-size: 40px;}
#envideo.tablet-mode #video-available-message svg { --exclamation-mark-size: 32px;}
#envideo.small-mode #video-available-message svg { --exclamation-mark-size: 24px;}



