.hiupv-product-additional-info > p,
.hiupv-product-footer > p,
.hiupv-extra-content > p,
.hiupv-right-column-product > p{
    margin-top: 20px;
    color: #000;
    font-size: 18px;
    background: #f6f6f6;
    border-top: 5px solid #333;
    padding: 14px 5px 17px 20px;
}
.product-images > li.thumb-container{
    vertical-align: top;
}
.thumb-video{
    width: 100px;
    height: 100px;
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.thumb-video{
    position: relative;
}
.hiupv-play{
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    background: url(../img/play.png) no-repeat;
    background-size: 100% 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.hiupv-product-images {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}
.product__thumbnails-list .hiupv-thumb-container {
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
}
.product__thumbnails-list .hiupv-video-thumb-wrapper {
    position: relative;
    display: block;
}
.product__thumbnails-list .hiupv-thumb-img {
    display: block;
    width: 100%;
    height: auto;
}
.product__thumbnails-list .hiupv-video-thumb-wrapper .hiupv-play {
    pointer-events: none;
    z-index: 2;
}
.product__thumbnails-list .hiupv-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1c1c1c;
}
.thumb-video.hiupv-thumb-missing,
.hiupv-thumb-video.hiupv-thumb-missing {
    background-color: #1c1c1c;
    background-image: none;
}

/* Match product-image footprint: hidden sizer img keeps slide size stable */
#product-images .hiupv-video-slide,
.js-product-carousel .hiupv-video-slide,
.js-product-images-modal-carousel .hiupv-video-slide,
[data-ps-ref="product-images-modal-carousel"] .hiupv-video-slide,
.modal.quickview .hiupv-video-slide {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
}
#product-images .hiupv-video-sizer,
.js-product-carousel .hiupv-video-sizer,
.js-product-images-modal-carousel .hiupv-video-sizer,
[data-ps-ref="product-images-modal-carousel"] .hiupv-video-sizer,
.modal.quickview .hiupv-video-sizer {
    display: block;
    width: 100%;
    height: auto;
    visibility: hidden;
}
#product-images .hiupv-video-embed,
.js-product-carousel .hiupv-video-embed,
.js-product-images-modal-carousel .hiupv-video-embed,
[data-ps-ref="product-images-modal-carousel"] .hiupv-video-embed,
.modal.quickview .hiupv-video-embed {
    position: absolute;
    inset: 0;
}
#product-images .hiupv-video-embed video.hiupv-product-images,
.js-product-carousel .hiupv-video-embed video.hiupv-product-images,
.js-product-images-modal-carousel .hiupv-video-embed video.hiupv-product-images,
[data-ps-ref="product-images-modal-carousel"] .hiupv-video-embed video.hiupv-product-images,
.modal.quickview .hiupv-video-embed video.hiupv-product-images {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
    border: 0;
    background: #000;
}

/* Classic Quick View: video thumbs must match image thumbs (~4.938rem) */
.quickview .images-container .product-images > li.hiupv-thumb-container {
    display: inline;
}
.quickview .images-container .product-images > li.hiupv-thumb-container .thumb-video {
    width: 100%;
    max-width: 4.938rem;
    height: auto;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0.8125rem;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Classic product cover: overlay player; image stays in-flow for sizing */
.product-cover.hiupv-cover-playing {
    position: relative;
    overflow: hidden;
}
.product-cover.hiupv-cover-playing .hiupv-cover-media-hidden {
    visibility: hidden;
}
.product-cover.hiupv-cover-playing .hiupv-cover-layer-hidden {
    display: none !important;
}
.product-cover.hiupv-cover-playing .hiupv-cover-player {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
}
.product-cover.hiupv-cover-playing .hiupv-cover-player video.hiupv-product-images {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

/* Classic cover: zoom control while video plays (native .layer is hidden) */
.product-cover.hiupv-cover-playing .hiupv-cover-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}
.product-cover.hiupv-cover-playing .hiupv-cover-zoom-btn:hover,
.product-cover.hiupv-cover-playing .hiupv-cover-zoom-btn:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}
.product-cover.hiupv-cover-playing .hiupv-cover-zoom-btn svg {
    display: block;
}

/* Native zoom modal — Classic cover + thumbs */
#product-modal .js-modal-product-images .hiupv-thumb-container,
.js-product-images-modal .js-modal-product-images .hiupv-thumb-container {
    display: inline-block;
    vertical-align: top;
}
#product-modal .js-modal-product-images .hiupv-thumb-container .js-modal-thumb-video,
.js-product-images-modal .js-modal-product-images .hiupv-thumb-container .js-modal-thumb-video {
    position: relative;
    display: block;
    width: 9.25rem;
    height: 9.25rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}
#product-modal .js-modal-product-images .hiupv-thumb-container .hiupv-play,
.js-product-images-modal .js-modal-product-images .hiupv-thumb-container .hiupv-play {
    pointer-events: none;
    z-index: 2;
}
/* Wrapper around cover picture/img — sizes to the image, player overlays it.
   inline-block so Classic's large cover (can exceed .modal-dialog) is not shrunk. */
#product-modal .hiupv-modal-cover-host,
.js-product-images-modal .hiupv-modal-cover-host {
    position: relative;
    display: inline-block;
    max-width: none;
    line-height: 0;
    vertical-align: top;
}
#product-modal .hiupv-modal-cover-host.hiupv-modal-cover-playing,
.js-product-images-modal .hiupv-modal-cover-host.hiupv-modal-cover-playing {
    overflow: hidden;
}
#product-modal .hiupv-modal-cover-host .hiupv-cover-media-hidden,
.js-product-images-modal .hiupv-modal-cover-host .hiupv-cover-media-hidden {
    visibility: hidden;
}
#product-modal .hiupv-modal-cover-player,
.js-product-images-modal .hiupv-modal-cover-player {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
}
#product-modal .hiupv-modal-cover-player video.hiupv-product-images,
.js-product-images-modal .hiupv-modal-cover-player video.hiupv-product-images {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

/* Hummingbird zoom modal carousel video slides use the shared .hiupv-video-slide rules above */

/* Creative Elements gallery integration */
.elementor-main-swiper .hiupv-ce-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.elementor-main-swiper .hiupv-ce-slide video.hiupv-product-images {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    background: #000;
}
.elementor-main-swiper .hiupv-ce-lightbox-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}
.elementor-main-swiper .hiupv-ce-lightbox-btn:hover,
.elementor-main-swiper .hiupv-ce-lightbox-btn:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}
.elementor-main-swiper .hiupv-ce-lightbox-btn svg {
    display: block;
}
.elementor-thumbnails-swiper .hiupv-ce-thumb {
    cursor: pointer;
}
.elementor-thumbnails-swiper .hiupv-ce-thumb .hiupv-ce-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.elementor-thumbnails-swiper .hiupv-ce-thumb .hiupv-video-thumb-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}
.elementor-thumbnails-swiper .hiupv-ce-thumb .hiupv-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.elementor-thumbnails-swiper .hiupv-ce-thumb .hiupv-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 60px;
    background: #1c1c1c;
}
.elementor-thumbnails-swiper .hiupv-ce-thumb .hiupv-play {
    pointer-events: none;
    z-index: 2;
}

.hiupv-product-list-videos {
    text-align: center;
}
.hiupv-product-list-button-16{
    margin-bottom: 10px;
}
#thumbs_list li.video-thumbnail a{
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}
.product-images > li.thumb-container {
    display: inline-block;
}
.hiupv-videos video:focus,
.hiupv-product-images:focus {
    outline: none;
}

.hiupv-video-column {
    display: -ms-grid;
    display: grid;
    gap: 10px;
}

.hiupv-video-mobile-column-1 {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
}
.hiupv-video-mobile-column-2 {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
}
.hiupv-video-mobile-column-3 {
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}
.hiupv-video-mobile-column-4 {
    -ms-grid-columns: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.hiupv-video-mobile-column-5 {
    -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.hiupv-video-mobile-column-6 {
    -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

@media (min-width: 576px) {
    .hiupv-video-tablet-column-1 {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    .hiupv-video-tablet-column-2 {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
    .hiupv-video-tablet-column-3 {
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .hiupv-video-tablet-column-4 {
        -ms-grid-columns: 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .hiupv-video-tablet-column-5 {
        -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    .hiupv-video-tablet-column-6 {
        -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .hiupv-video-column-1 {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    .hiupv-video-column-2 {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
    .hiupv-video-column-3 {
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .hiupv-video-column-4 {
        -ms-grid-columns: 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .hiupv-video-column-5 {
        -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    .hiupv-video-column-6 {
        -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}/* ==========================================================================
   Product-list video modal (custom — replaces Magnific Popup)
   Layouts: --lightbox (Magnific-like) | --cinema (immersive filmstrip)
   ========================================================================== */

.hiupv-pl-modal [hidden] {
    display: none !important;
}

body.hiupv-pl-modal-open {
    overflow: hidden;
}

.hiupv-pl-modal {
    --hiupv-pl-bg: #050505;
    --hiupv-pl-text: #f5f5f5;
    --hiupv-pl-muted: rgba(245, 245, 245, 0.58);
    --hiupv-pl-ring: #ffffff;
    --hiupv-pl-glow: rgba(255, 255, 255, 0.22);

    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hiupv-pl-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hiupv-pl-modal__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(55, 55, 65, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
        rgba(0, 0, 0, 0.92);
}

.hiupv-pl-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    color: var(--hiupv-pl-text);
    outline: none;
    transform: translateY(14px) scale(0.97);
    opacity: 0.92;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.hiupv-pl-modal.is-open .hiupv-pl-modal__dialog {
    transform: none;
    opacity: 1;
}

.hiupv-pl-modal__close {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hiupv-pl-text);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.15s ease, transform 0.15s ease;
}

.hiupv-pl-modal__close:hover,
.hiupv-pl-modal__close:focus {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.hiupv-pl-modal__close:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.hiupv-pl-modal__stage {
    position: relative;
}

.hiupv-pl-modal__player {
    position: relative;
    transition: opacity 0.16s ease, filter 0.16s ease;
}

.hiupv-pl-modal__player.is-switching {
    opacity: 0.35;
    filter: brightness(0.7);
}

.hiupv-pl-modal__scaler {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 28px 80px rgba(0, 0, 0, 0.65);
}

.hiupv-pl-modal__scaler iframe,
.hiupv-pl-modal__scaler video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
}

.hiupv-pl-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.18s ease, background 0.15s ease;
}

.hiupv-pl-modal__player:hover .hiupv-pl-modal__nav,
.hiupv-pl-modal__nav:focus {
    opacity: 1;
}

.hiupv-pl-modal__nav--prev {
    left: 10px;
}

.hiupv-pl-modal__nav--next {
    right: 10px;
}

.hiupv-pl-modal__nav:hover,
.hiupv-pl-modal__nav:focus {
    background: rgba(0, 0, 0, 0.62);
    outline: none;
}

.hiupv-pl-modal__nav:focus-visible {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.hiupv-pl-modal__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    min-height: 1.4em;
}

.hiupv-pl-modal__meta-text {
    flex: 1 1 auto;
    min-width: 0;
}

.hiupv-pl-modal__product-name {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hiupv-pl-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hiupv-pl-modal__video-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hiupv-pl-text);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hiupv-pl-modal__counter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--hiupv-pl-muted);
    transition: opacity 0.2s ease;
}

.hiupv-pl-modal__video-title.is-pulse {
    opacity: 0.25;
    transform: translateY(4px);
}

.hiupv-pl-modal__counter.is-pulse {
    opacity: 0.25;
}

.hiupv-pl-modal__dock {
    position: relative;
    margin-top: 22px;
}

.hiupv-pl-modal__dock::before,
.hiupv-pl-modal__dock::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 36px;
    z-index: 2;
    pointer-events: none;
}

.hiupv-pl-modal__dock::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.95), transparent);
}

.hiupv-pl-modal__dock::after {
    right: 0;
    background: linear-gradient(270deg, rgba(5, 5, 5, 0.95), transparent);
}

.hiupv-pl-modal__filmstrip {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 6px 28px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.hiupv-pl-modal__filmstrip::-webkit-scrollbar {
    height: 5px;
}

.hiupv-pl-modal__filmstrip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.hiupv-pl-modal__thumb {
    flex: 0 0 auto;
    width: 176px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    scroll-snap-align: center;
}

.hiupv-pl-modal__thumb-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    filter: brightness(0.72);
    transform: scale(1);
    transition:
        filter 0.2s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease;
}

.hiupv-pl-modal__thumb-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hiupv-pl-modal__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.hiupv-pl-modal__thumb-now {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.hiupv-pl-modal__thumb:hover .hiupv-pl-modal__thumb-media,
.hiupv-pl-modal__thumb:focus .hiupv-pl-modal__thumb-media {
    filter: brightness(0.92);
    transform: translateY(-2px);
}

.hiupv-pl-modal__thumb:hover .hiupv-pl-modal__thumb-play,
.hiupv-pl-modal__thumb:focus .hiupv-pl-modal__thumb-play {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

.hiupv-pl-modal__thumb:focus {
    outline: none;
}

.hiupv-pl-modal__thumb:focus-visible .hiupv-pl-modal__thumb-media {
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

.hiupv-pl-modal__thumb.is-active .hiupv-pl-modal__thumb-media {
    filter: brightness(1);
    transform: scale(1.04);
    box-shadow:
        inset 0 0 0 2px var(--hiupv-pl-ring),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 24px var(--hiupv-pl-glow);
}

.hiupv-pl-modal__thumb.is-active .hiupv-pl-modal__thumb-play {
    opacity: 0;
}

.hiupv-pl-modal__thumb.is-active .hiupv-pl-modal__thumb-now {
    opacity: 1;
    transform: none;
}

/* ----- Lightbox (Magnific-like centered iframe) ----- */

.hiupv-pl-modal--lightbox .hiupv-pl-modal__dialog {
    max-width: 900px;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__close {
    top: -48px;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__close:hover,
.hiupv-pl-modal--lightbox .hiupv-pl-modal__close:focus {
    background: rgba(255, 255, 255, 0.1);
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__nav {
    opacity: 0.85;
    width: 48px;
    height: 72px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__nav--prev {
    left: -56px;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__nav--next {
    right: -56px;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__player:hover .hiupv-pl-modal__nav,
.hiupv-pl-modal--lightbox .hiupv-pl-modal__nav:focus {
    opacity: 1;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__nav:hover,
.hiupv-pl-modal--lightbox .hiupv-pl-modal__nav:focus {
    background: rgba(0, 0, 0, 0.55);
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__meta {
    justify-content: center;
    margin-top: 14px;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__video-title {
    display: none;
}

.hiupv-pl-modal--lightbox .hiupv-pl-modal__counter {
    background: transparent;
    padding: 0;
    min-width: 0;
    font-size: 12px;
    opacity: 0.75;
}

/* ----- Cinema (immersive filmstrip) ----- */

.hiupv-pl-modal--cinema .hiupv-pl-modal__dialog {
    max-width: 1080px;
}

.hiupv-pl-modal--cinema .hiupv-pl-modal__close {
    top: -8px;
    right: -8px;
}

.hiupv-pl-modal--cinema .hiupv-pl-modal__scaler {
    border-radius: 10px;
}

.hiupv-pl-modal--cinema .hiupv-pl-modal__nav {
    width: 44px;
    height: 72px;
}

@media (max-width: 991px) {
    .hiupv-pl-modal {
        padding: 16px 12px 20px;
        align-items: center;
    }

    .hiupv-pl-modal--lightbox .hiupv-pl-modal__dialog,
    .hiupv-pl-modal--cinema .hiupv-pl-modal__dialog {
        max-width: 100%;
    }

    .hiupv-pl-modal--lightbox .hiupv-pl-modal__close {
        top: -40px;
        right: 0;
    }

    .hiupv-pl-modal--lightbox .hiupv-pl-modal__nav--prev {
        left: 6px;
    }

    .hiupv-pl-modal--lightbox .hiupv-pl-modal__nav--next {
        right: 6px;
    }

    .hiupv-pl-modal--lightbox .hiupv-pl-modal__nav {
        width: 40px;
        height: 56px;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0.9;
    }

    .hiupv-pl-modal--cinema .hiupv-pl-modal__close {
        top: -4px;
        right: 0;
    }

    .hiupv-pl-modal--cinema .hiupv-pl-modal__nav {
        opacity: 0.85;
    }

    .hiupv-pl-modal__video-title {
        font-size: 17px;
    }

    .hiupv-pl-modal__thumb {
        width: 140px;
    }

    .hiupv-pl-modal__dock::before,
    .hiupv-pl-modal__dock::after {
        width: 24px;
    }

    .hiupv-pl-modal__filmstrip {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 575px) {
    .hiupv-pl-modal {
        padding: 12px 10px 16px;
    }

    .hiupv-pl-modal__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hiupv-pl-modal__video-title {
        font-size: 16px;
    }

    .hiupv-pl-modal__nav {
        opacity: 0.75;
        width: 36px;
        height: 52px;
    }

    .hiupv-pl-modal__thumb {
        width: 120px;
    }

    .hiupv-pl-modal__thumb-now {
        font-size: 9px;
        padding: 2px 6px;
    }
}
