.custom-video .video__head { text-align: center; }
.custom-video .video__head .xn-h2,
.custom-video .video__head .xn-lead { margin-left: auto; margin-right: auto; }
.custom-video .video__head:empty { display: none; }

.custom-video .video__frame {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 44px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.custom-video .video__head:empty + .video__frame { margin-top: 0; }
.custom-video .video__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--xn-gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.custom-video .video__frame.is-playing::before { display: none; }

.custom-video .video__trigger {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.custom-video .video__trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .45) 100%);
    transition: opacity .3s;
}
.custom-video .video__poster { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.custom-video .video__trigger:hover .video__poster { transform: scale(1.03); }

.custom-video .video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--xn-gradient);
    box-shadow: 0 10px 40px rgba(246, 91, 128, .45);
    transform: translate(-50%, -50%);
    transition: transform .2s;
}
.custom-video .video__play svg { display: block; width: 40%; height: 40%; margin: 0; fill: #fff; }
.custom-video .video__trigger:hover .video__play,
.custom-video .video__trigger:focus-visible .video__play { transform: translate(-50%, -50%) scale(1.08); }
.custom-video .video__trigger:focus-visible { outline: 3px solid var(--xn-pink); outline-offset: -3px; }

.custom-video .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.custom-video .video__frame--empty { display: flex; align-items: center; justify-content: center; color: #8a8a94; font-size: 15px; }

.custom-video .video__cta { justify-content: center; margin-top: 36px; }

@media (max-width: 820px) {
    .custom-video .video__frame { margin-top: 32px; border-radius: 18px; }
    .custom-video .video__play { width: 72px; height: 72px; }
}
