.product-gallery-dialog-video[hidden],
.product-gallery-dialog-video [hidden] {
    display: none !important;
}

.product-gallery-stage > .detail-favorite { z-index: 3; }

.product-gallery-dialog-video {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-gallery-dialog-video { background: #141815; }
.product-gallery-cover-video-play { z-index: 2; box-shadow: 0 8px 28px #0004; }
.product-gallery-cover-video-play[hidden] { display: none !important; }

.product-gallery-video-poster {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    pointer-events: none;
}

.product-gallery-dialog-video .product-gallery-video-poster {
    position: relative;
    inset: auto;
    width: min(360px, calc(100% - 2rem));
    height: min(640px, 100%);
    border-radius: 12px;
    background: #141815;
}

.product-gallery-dialog-video video {
    display: block;
    width: min(360px, calc(100% - 2rem));
    height: min(640px, 100%);
    max-height: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #141815;
    border-radius: 12px;
}

.product-gallery-video-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    justify-items: center;
    gap: .55rem;
    min-width: 128px;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 18px;
    background: #17211de8;
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer;
}

.product-gallery-video-play:focus-visible,
.product-video-thumbnail:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.product-gallery-video-play:disabled { cursor: progress; }

.product-video-play-icon,
.product-video-thumbnail-play {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.product-video-play-icon { width: 48px; height: 48px; }
.product-video-thumbnail-play { position: absolute; left: 50%; top: 44%; width: 28px; height: 28px; transform: translate(-50%, -50%); box-shadow: 0 2px 9px #0005; }
.product-video-play-icon::after,
.product-video-thumbnail-play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid var(--accent);
}
.product-video-thumbnail-play::after { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 8px; }

.product-gallery-video-error {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 4.5rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: .55rem .8rem;
    transform: translateX(-50%);
    border-radius: 10px;
    background: #fff;
    color: #a12b35;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
}
.product-video-thumbnail { position: relative; }
.product-video-thumbnail img { filter: brightness(.8); }
.product-video-thumbnail-label {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    padding: .15rem .38rem;
    border-radius: 99px;
    background: #171c1ae8;
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    line-height: 1.1;
}

@media (max-width: 760px) {
    .product-gallery-video-play { min-width: 116px; padding: .65rem .8rem; font-size: .7rem; }
    .product-video-play-icon { width: 42px; height: 42px; }
}
