.ny2026-video {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ny2026-video__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.ny2026-video__panel {
    position: relative;
    width: min(960px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.ny2026-video__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.ny2026-video__hint {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 52px;
    z-index: 2;
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111;
    background: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.ny2026-video__hint.is-visible {
    display: block;
}

.ny2026-video__btn.btn {
    /* inherit site style from .btn + .btn-orange; just tweak size for the bar */
    padding: 8px 10px;
    border-radius: 10px;
    font: 600 12px/1 'Inter Tight', Helvetica, sans-serif;
}

.ny2026-video__btn--icon.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding-left: 10px;
    padding-right: 10px;
}

.ny2026-video__btn--icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.ny2026-video__video {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 24px);
    background: #000;
    object-fit: contain;
}

/* Expanded mode */
.ny2026-video--expanded .ny2026-video__btn[data-action="restore"] {
    display: none;
}

/* Minimized mode (bottom-right) */
.ny2026-video--minimized {
    inset: auto;
    right: 16px;
    bottom: 16px;
    width: min(360px, calc(100vw - 32px));
    align-items: flex-end;
    justify-content: flex-end;
}

@media (min-width: 576px) {
    .ny2026-video--minimized {
        bottom: 95px;
    }
}

.ny2026-video--minimized .ny2026-video__backdrop {
    display: none;
}

.ny2026-video--minimized .ny2026-video__panel {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ny2026-video--minimized .ny2026-video__video {
    height: auto;
    aspect-ratio: 16 / 21;
    object-fit: cover;
    max-height: none;
}

.ny2026-video--minimized .ny2026-video__hint {
    display: none !important;
}

.ny2026-video--minimized .ny2026-video__btn[data-action="minimize"] {
    display: none;
}

/* Lock page scroll when expanded */
body.ny2026-video-open {
    overflow: hidden;
}

@media (max-width: 420px) {
    .ny2026-video__btn.btn {
        padding: 7px 10px;
        border-radius: 9px;
        font-size: 12px;
    }
}

/* Mobile: do not cover the whole screen even in "expanded" mode */
@media (max-width: 576px) {
    .ny2026-video {
        inset: auto;
        left: auto;
        right: 12px;
        bottom: 210px;
        width: calc((160vw - 24px) / 2);
        align-items: flex-end;
        justify-content: flex-end;
    }

    .ny2026-video__backdrop {
        display: none !important;
    }

    body.ny2026-video-open {
        overflow: auto;
    }

    .ny2026-video--expanded .ny2026-video__panel {
        width: 100%;
        max-height: 58vh;
    }

    .ny2026-video--expanded .ny2026-video__video {
        max-height: 58vh;
    }

    .ny2026-video--minimized {
        left: auto;
        width: min(160px, calc((100vw - 24px) / 2));
    }

    .ny2026-video--minimized .ny2026-video__panel {
        max-height: 19vh;
    }
}


