.product-video-dialog {
    width: min(1180px, calc(100vw - 40px), calc((100dvh - 110px) * 16 / 9));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1117;
    color: #fff;
    box-shadow: 0 22px 90px #0008;
}
.product-video-dialog::backdrop { background: #07111dcc; }
.product-video-dialog .product-video-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 0 10px 0 20px;
    background: #fff;
    color: #17354e;
    font: 500 15px/1.4 "Microsoft YaHei", sans-serif;
}
.product-video-dialog .product-video-heading > span { font: inherit; }
.product-video-dialog .product-video-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #17354e;
    font: 28px/40px Arial, sans-serif;
    cursor: pointer;
}
.product-video-dialog .product-video-close:hover,
.product-video-dialog .product-video-close:focus-visible { background: #eaf1f7; outline: 2px solid #2689d4; }
.product-video-dialog .product-video-player {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 106px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #0b1117;
}
.product-video-dialog .product-video-error { margin: 0; padding: 14px 20px; color: #fff; font: 14px/1.5 sans-serif; }
@media (max-width: 640px) {
    .product-video-dialog { width: calc(100vw - 20px); border-radius: 8px; }
    .product-video-dialog .product-video-heading { padding-left: 12px; font-size: 13px; }
}
