:root {
    color-scheme: dark;
    --vm-bg: #050506;
    --vm-fg: #f7f8f9;
    --vm-muted: rgba(255, 255, 255, .56);
    --vm-line: rgba(255, 255, 255, .09);
    --vm-panel: rgba(13, 14, 17, .94);
    --vm-ease: cubic-bezier(.22, 1, .36, 1);
    --vm-radius: 12px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--vm-bg);
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--vm-fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[role="slider"]:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .72);
    outline-offset: 2px;
}

.vm {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: var(--vm-bg);
    user-select: none;
    -webkit-user-select: none;
    --sub-scale: 1;
    --sub-bg: rgba(0, 0, 0, .38);
    --sub-color: #fff;
}

.vm::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.vm.is-idle {
    cursor: none;
}

.vm-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.vm-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}

.vm-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    outline: none;
}

.vm-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(130% 100% at 50% 38%, transparent 52%, rgba(0, 0, 0, .32) 100%);
    opacity: .85;
}

/* ------------------------------------------------------------------ loader */

.vm-loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    overflow: hidden;
    transition: opacity .42s ease;
}

.vm-loader.is-out {
    opacity: 0;
    pointer-events: none;
}

.vm-loader-art {
    position: absolute;
    inset: -2%;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: vmDrift 26s ease-in-out infinite alternate;
    opacity: .92;
}

@keyframes vmDrift {
    from { transform: scale(1.04); }
    to { transform: scale(1.1) translate3d(0, -1.2%, 0); }
}

.vm-loader-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(5, 5, 6, .93) 0%, rgba(5, 5, 6, .58) 32%, rgba(5, 5, 6, .36) 62%, rgba(5, 5, 6, .52) 100%),
        radial-gradient(120% 90% at 50% 44%, transparent 34%, rgba(0, 0, 0, .5) 100%);
}

.vm-loader-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(78vw, 360px);
}

.vm-loader-label {
    margin-bottom: 13px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

.vm-loader-queue {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.vm-attempt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(14, 15, 18, .46);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .9);
    overflow: hidden;
    animation: vmAttemptIn .32s var(--vm-ease) both;
}

@keyframes vmAttemptIn {
    from { opacity: 0; transform: translateY(6px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.vm-attempt.is-leaving {
    opacity: .45;
    transform: scale(.985);
    transition: opacity .25s ease, transform .25s ease;
}

.vm-attempt-icon {
    position: relative;
    z-index: 2;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: grid;
    place-items: center;
}

.vm-attempt-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.8px solid rgba(255, 255, 255, .2);
    border-top-color: rgba(255, 255, 255, .95);
    animation: vmSpin .8s linear infinite;
}

@keyframes vmSpin {
    to { transform: rotate(360deg); }
}

.vm-attempt .ico {
    width: 17px;
    height: 17px;
}

.vm-attempt.is-ready .vm-attempt-icon {
    color: #7ee2a8;
}

.vm-attempt.is-failed .vm-attempt-icon {
    color: #ff8f8f;
}

.vm-attempt-name {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.005em;
    color: #fff;
}

.vm-attempt-state {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .58);
}

.vm-attempt-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 8%;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .17));
    border-radius: 999px;
    animation: vmFill 7s cubic-bezier(.12, .7, .2, 1) forwards;
}

.vm-attempt.is-ready .vm-attempt-fill {
    animation: none;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .16));
    transition: width .4s ease;
}

.vm-attempt.is-failed .vm-attempt-fill {
    animation: none;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 90, 90, .08), rgba(255, 90, 90, .16));
}

@keyframes vmFill {
    0% { width: 8%; }
    35% { width: 42%; }
    70% { width: 70%; }
    100% { width: 84%; }
}

.vm-loader-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 clamp(18px, 4vw, 46px) clamp(18px, 4.4vh, 46px);
    pointer-events: none;
}

.vm-loader-title {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(22px, 3.4vw, 42px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.024em;
    color: #fff;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .55);
    animation: vmRise .56s var(--vm-ease) both;
}

.vm-loader-sub {
    margin-top: 9px;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .012em;
    color: rgba(255, 255, 255, .62);
    animation: vmRise .56s var(--vm-ease) .06s both;
}

@keyframes vmRise {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------- ui */

.vm-ui {
    position: absolute;
    inset: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, visibility .26s ease;
    pointer-events: none;
}

.vm-ui.is-active {
    opacity: 1;
    visibility: visible;
}

.vm-ui button {
    pointer-events: auto;
}

.vm-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 60px;
    pointer-events: none;
}

.vm-top-grad {
    position: absolute;
    inset: 0 0 -40px;
    background: linear-gradient(to bottom, rgba(4, 5, 6, .66), rgba(4, 5, 6, 0));
}

.vm-top-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.vm-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.vm-chip {
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.vm-top-title {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.005em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.vm-top-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38vw;
}

.vm-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vm-badge {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(10, 11, 14, .42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .8);
}

.vm-bigplay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(10, 11, 14, .42);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(.92);
    transition: opacity .2s ease, transform .25s var(--vm-ease), visibility .2s;
    box-shadow: 0 18px 60px -16px rgba(0, 0, 0, .7);
    pointer-events: auto;
}

.vm-bigplay .ico {
    width: 30px;
    height: 30px;
    margin-left: -2px;
}

.vm.is-paused:not(.is-loading) .vm-bigplay {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.vm-bigplay:hover {
    background: rgba(255, 255, 255, .14);
}

.vm.is-playing .vm-bigplay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vm-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 20px max(18px, env(safe-area-inset-bottom));
    pointer-events: none;
}

.vm-bottom-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 5, 6, .9) 0%, rgba(4, 5, 6, .55) 34%, rgba(4, 5, 6, 0) 100%);
}

.vm-seekwrap {
    position: relative;
    z-index: 2;
    padding: 0 4px;
    margin-bottom: 4px;
}

.vm-seek {
    display: flex;
    align-items: center;
    height: 22px;
    cursor: pointer;
    touch-action: none;
    pointer-events: auto;
}

.vm-seek-track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    transition: height .14s ease;
}

.vm-seek:hover .vm-seek-track,
.vm-seek.is-dragging .vm-seek-track {
    height: 6px;
}

.vm-seek-buffer,
.vm-seek-played {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: inherit;
}

.vm-seek-buffer {
    background: rgba(255, 255, 255, .28);
}

.vm-seek-played {
    background: #fff;
}

.vm-seek-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    transform: scale(0);
    transition: transform .12s ease;
}

.vm-seek:hover .vm-seek-thumb,
.vm-seek.is-dragging .vm-seek-thumb {
    transform: scale(1);
}

.vm-seek-hover {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, .2);
    opacity: 0;
}

.vm-seek:hover .vm-seek-hover {
    opacity: 1;
}

.vm-tip {
    position: absolute;
    bottom: 27px;
    left: 0;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(8, 9, 11, .92);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
}

.vm-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.vm-bar-left,
.vm-bar-right {
    display: flex;
    align-items: center;
    gap: 1px;
    min-width: 0;
}

.vm-bar-right {
    justify-content: flex-end;
}

.vm-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .94);
    cursor: pointer;
    transition: background-color .15s ease, transform .12s ease;
}

.vm-btn:hover {
    background: rgba(255, 255, 255, .12);
}

.vm-btn:active {
    transform: scale(.94);
}

.vm-btn .ico {
    width: 22px;
    height: 22px;
    display: block;
}

.vm-btn.is-on {
    color: #fff;
}

.vm-btn.is-on::after {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.vm-btn {
    position: relative;
}

.vm-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
}

.vm-time-sep {
    color: rgba(255, 255, 255, .38);
}

.vm-vol {
    display: flex;
    align-items: center;
    gap: 2px;
}

.vm-vol-range {
    width: 0;
    opacity: 0;
    height: 20px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    transition: width .22s var(--vm-ease), opacity .18s ease, margin .22s var(--vm-ease);
}

.vm-vol:hover .vm-vol-range,
.vm-vol:focus-within .vm-vol-range {
    width: 72px;
    opacity: 1;
    margin: 0 4px 0 2px;
}

.vm-vol-range::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
}

.vm-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    margin-top: -4px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}

.vm-vol-range::-moz-range-track {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
}

.vm-vol-range::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

/* --------------------------------------------------------------- subtitles */

.vm-subs {
    position: absolute;
    left: 50%;
    top: var(--video-top, 0px);
    bottom: var(--video-bottom, 0px);
    z-index: 4;
    transform: translateX(-50%);
    width: min(88%, 980px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .24em;
    padding: 0 0 clamp(78px, 12vh, 122px);
    text-align: center;
    pointer-events: none;
    transition: padding .2s ease;
}

.vm-subs[data-pos="middle"] {
    justify-content: center;
    padding: 0;
}

.vm-subs[data-pos="top"] {
    justify-content: flex-start;
    padding: clamp(56px, 9vh, 96px) 0 0;
}

.vm-subs.is-off {
    display: none;
}

.vm-sub-line {
    display: inline-block;
    max-width: 100%;
    padding: .16em .5em;
    border-radius: .28em;
    background: var(--sub-bg);
    color: var(--sub-color);
    font-size: calc(clamp(15px, 2.5vmin, 30px) * var(--sub-scale));
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: .002em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    white-space: pre-line;
}

/* ------------------------------------------------------------------ panels */

.vm-panels {
    position: absolute;
    right: 18px;
    bottom: 84px;
    z-index: 45;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.vm-panel {
    width: 344px;
    max-height: min(72vh, 580px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: var(--vm-panel);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    backdrop-filter: blur(26px) saturate(160%);
    box-shadow: 0 28px 80px -18px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04) inset;
    pointer-events: auto;
    animation: vmPanelIn .19s var(--vm-ease) both;
}

.vm-panel[hidden] {
    display: none;
}

@keyframes vmPanelIn {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.vm-panel-head {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 54px;
    padding: 0 10px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.vm-panel-title {
    flex: 1;
    padding-left: 6px;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.005em;
    color: #fff;
}

.vm-panel-x,
.vm-panel-back {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .66);
    cursor: pointer;
}

.vm-panel-x:hover,
.vm-panel-back:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.vm-panel-x .ico,
.vm-panel-back .ico {
    width: 18px;
    height: 18px;
}

.vm-panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.vm-panel-body::-webkit-scrollbar {
    width: 8px;
}

.vm-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
}

.vm-section-label {
    padding: 12px 12px 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}

.vm-row {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background-color .13s ease;
}

.vm-row:hover {
    background: rgba(255, 255, 255, .07);
}

.vm-row-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: rgba(255, 255, 255, .7);
    display: grid;
    place-items: center;
}

.vm-row-ico .ico {
    width: 18px;
    height: 18px;
}

.vm-row-label {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-row-sub {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, .45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-row-value {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-row.is-selected .vm-row-value {
    color: #fff;
}

.vm-row-value .ico {
    width: 16px;
    height: 16px;
}

.vm-row .vm-row-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
}

.vm-row.is-selected .vm-row-check {
    opacity: 1;
}

.vm-row-check .ico {
    width: 17px;
    height: 17px;
}

.vm-row.is-busy .vm-row-value {
    color: rgba(255, 255, 255, .8);
}

.vm-row-spin {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-top-color: #fff;
    animation: vmSpin .8s linear infinite;
}

.vm-switch {
    flex: 0 0 auto;
    width: 36px;
    height: 21px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    transition: background-color .18s ease;
}

.vm-switch::after {
    content: "";
    display: block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(0);
    transition: transform .2s var(--vm-ease);
}

.vm-row.is-on .vm-switch {
    background: #fff;
}

.vm-row.is-on .vm-switch::after {
    background: #0b0c0f;
    transform: translateX(15px);
}

.vm-panel-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.vm-reset {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 7px;
}

.vm-reset:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.vm-panel-note {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .3);
}

/* server rows */
.vm-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    flex: 0 0 8px;
}

.vm-server-dot.is-live {
    background: #7ee2a8;
    box-shadow: 0 0 9px rgba(126, 226, 168, .6);
}

/* episode rows */
.vm-panel.is-episodes {
    width: 392px;
}

.vm-seasons {
    display: flex;
    gap: 6px;
    padding: 4px 8px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.vm-seasons::-webkit-scrollbar {
    display: none;
}

.vm-season-tab {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.vm-season-tab.is-on {
    background: #fff;
    border-color: #fff;
    color: #0a0b0d;
}

.vm-ep {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.vm-ep:hover {
    background: rgba(255, 255, 255, .06);
}

.vm-ep.is-current {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .12);
}

.vm-ep-thumb {
    position: relative;
    flex: 0 0 108px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: #111;
}

.vm-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}

.vm-ep-num {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .68);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
}

.vm-ep-body {
    min-width: 0;
    flex: 1;
}

.vm-ep-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-ep-meta {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

.vm-ep.is-current .vm-ep-meta {
    color: rgba(255, 255, 255, .7);
}

/* style controls */
.vm-style-row {
    padding: 10px 12px;
}

.vm-style-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
}

.vm-style-val {
    font-size: 11.5px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.vm-range {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.vm-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.vm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    margin-top: -4.5px;
    border-radius: 50%;
    background: #fff;
    border: 0;
}

.vm-range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.vm-range::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.vm-choice {
    display: flex;
    gap: 6px;
    padding: 0 12px 10px;
}

.vm-choice button {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: rgba(255, 255, 255, .68);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.vm-choice button.is-on {
    background: #fff;
    border-color: #fff;
    color: #0a0b0d;
}

.vm-sync {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 12px 14px;
}

.vm-sync button {
    width: 34px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.vm-sync button:hover {
    background: rgba(255, 255, 255, .08);
}

.vm-sync-val {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .8);
}

/* shortcuts */
.vm-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 12px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .68);
}

.vm-shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 23px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-bottom-width: 2px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
}

/* ----------------------------------------------------------------- skip */

.vm-skip {
    position: absolute;
    right: 24px;
    bottom: 96px;
    z-index: 24;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #0a0b0d;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
    animation: vmRise .24s var(--vm-ease) both;
}

.vm-skip[hidden] {
    display: none;
}

.vm-skip .ico {
    width: 16px;
    height: 16px;
}

.vm-skip:hover {
    background: #fff;
}

/* --------------------------------------------------------------- up next */

.vm-upnext {
    position: absolute;
    right: 22px;
    bottom: 92px;
    z-index: 26;
    width: 342px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(11, 12, 15, .93);
    border: 1px solid rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: 0 26px 70px -20px rgba(0, 0, 0, .85);
    animation: vmUpIn .3s var(--vm-ease) both;
}

.vm-upnext[hidden] {
    display: none;
}

@keyframes vmUpIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.vm-upnext-art {
    position: relative;
    aspect-ratio: 16 / 8.4;
    overflow: hidden;
}

.vm-upnext-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
}

.vm-upnext-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 12, 15, .96), rgba(11, 12, 15, .1));
}

.vm-upnext-body {
    padding: 0 16px 15px;
}

.vm-upnext-kicker {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.vm-upnext-title {
    margin-top: 5px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-upnext-meta {
    margin-top: 3px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .5);
}

.vm-upnext-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
}

.vm-upnext-play {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0a0b0d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.vm-upnext-play .ico {
    width: 14px;
    height: 14px;
}

.vm-upnext-later {
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.vm-upnext-later:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.vm-upnext-close {
    position: absolute;
    right: 9px;
    top: 9px;
    z-index: 3;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    cursor: pointer;
}

.vm-upnext-close .ico {
    width: 14px;
    height: 14px;
}

.vm-upnext-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, .12);
}

.vm-upnext-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.vm-upnext-progress span.is-running {
    animation: vmUpCountdown 9s linear forwards;
}

@keyframes vmUpCountdown {
    from { width: 0; }
    to { width: 100%; }
}

/* ---------------------------------------------------------------- misc ui */

.vm-buffer {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 12;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(8, 9, 11, .38);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.vm-buffer span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: rgba(255, 255, 255, .9);
    animation: vmSpin .85s linear infinite;
}

.vm-buffer[hidden] {
    display: none;
}

.vm-toasts {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    max-width: min(78vw, 380px);
}

.vm-toast {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(12, 13, 16, .92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .8);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    animation: vmToastIn .26s var(--vm-ease) both;
}

.vm-toast.is-out {
    animation: vmToastOut .22s ease forwards;
}

.vm-toast .ico {
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 255, .6);
    flex: 0 0 15px;
}

@keyframes vmToastIn {
    from { opacity: 0; transform: translateY(-7px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes vmToastOut {
    to { opacity: 0; transform: translateY(-5px); }
}

.vm-error {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 6, 8, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.vm-error[hidden] {
    display: none;
}

.vm-error-card {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(14, 15, 19, .96);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
    text-align: center;
    animation: vmPanelIn .22s var(--vm-ease) both;
}

.vm-error-ico {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .82);
}

.vm-error-ico .ico {
    width: 24px;
    height: 24px;
}

.vm-error h2 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -.015em;
}

.vm-error p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .55);
}

.vm-error-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.vm-btn-solid,
.vm-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}

.vm-btn-solid {
    border: 0;
    background: #fff;
    color: #0a0b0d;
}

.vm-btn-solid .ico {
    width: 15px;
    height: 15px;
}

.vm-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: rgba(255, 255, 255, .8);
}

.vm-btn-ghost:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.vm-hud {
    position: absolute;
    left: 50%;
    bottom: 118px;
    z-index: 23;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(10, 11, 14, .85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    pointer-events: none;
    animation: vmToastIn .18s ease both;
}

.vm-hud[hidden] {
    display: none;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 720px) {
    .vm-top {
        padding: 14px 14px 50px;
    }

    .vm-top-meta {
        display: none;
    }

    .vm-bottom {
        padding: 56px 10px max(10px, env(safe-area-inset-bottom));
    }

    .vm-bar-left,
    .vm-bar-right {
        gap: 0;
    }

    .vm-btn {
        width: 36px;
        height: 36px;
    }

    .vm-btn .ico {
        width: 21px;
        height: 21px;
    }

    .vm-btn-skip {
        display: none;
    }

    .vm-vol-range {
        display: none;
    }

    .vm-time {
        margin-left: 5px;
        font-size: 11.5px;
    }

    .vm-bar-right #btn-cast,
    .vm-bar-right #btn-pip {
        display: none;
    }

    .vm-panels {
        left: 10px;
        right: 10px;
        bottom: 72px;
        justify-content: stretch;
    }

    .vm-panel,
    .vm-panel.is-episodes {
        width: 100%;
        max-height: min(68vh, 540px);
    }

    .vm-loader-center {
        width: min(84vw, 340px);
    }

    .vm-loader-title {
        font-size: 26px;
    }

    .vm-loader-sub {
        font-size: 11px;
    }

    .vm-skip {
        right: 14px;
        bottom: 72px;
    }

    .vm-upnext {
        left: 10px;
        right: 10px;
        bottom: 72px;
        width: auto;
    }

    .vm-subs {
        width: 92%;
        padding-bottom: clamp(70px, 11vh, 104px);
    }

    .vm-subs[data-pos="top"] {
        padding-top: clamp(44px, 7vh, 72px);
    }

    .vm-hud {
        bottom: 92px;
    }
}

@media (max-height: 340px) {
    .vm-loader-meta {
        display: none;
    }

    .vm-loader-label {
        margin-bottom: 9px;
    }

    .vm-attempt {
        height: 42px;
    }

    .vm-top {
        display: none;
    }

    .vm-skip {
        bottom: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-loader-art {
        animation: none;
    }

    .vm-loader-title,
    .vm-loader-sub,
    .vm-attempt,
    .vm-panel,
    .vm-upnext,
    .vm-toast {
        animation: none;
    }

    .vm-attempt-ring,
    .vm-buffer span,
    .vm-row-spin {
        animation: vmSpin 1.6s linear infinite;
    }
}

.vm:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.vm:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}
