/* Shared Bunny video player — façade, lightbox, embed shell */

.as-video-facade {
    cursor: pointer;
    background: #121212 !important;
}

.as-video-facade-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.88;
}

.as-video-play-btn {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.as-video-play-btn:hover,
.as-video-play-btn:focus-visible {
    background: rgba(0, 0, 0, 0.42);
    outline: none;
}

.as-video-play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #c9a227);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.35);
    display: block;
    position: relative;
}

.as-video-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #111;
}

.as-video-active .video-embed-wrap,
.as-video-active .video-thumb-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.as-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.as-video-lightbox[hidden]:not(.is-open) {
    display: none !important;
}

.as-video-lightbox.is-open {
    display: flex !important;
}

.as-video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}

.as-video-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100vw - 40px));
    background: linear-gradient(145deg, #1a1a1a, #121212);
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.as-video-lightbox__player {
    width: 100%;
}

.as-video-lightbox__shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    min-height: 0;
}

.as-video-lightbox__shell .video-embed-wrap,
.as-video-lightbox__shell .video-thumb-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.as-video-lightbox__shell .video-embed-iframe,
.as-video-lightbox__shell .video-thumb-iframe,
.as-video-lightbox__shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.as-video-lightbox__shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.as-video-lightbox__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: #1a1a1a;
    color: #ffd700;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

body.as-video-lightbox-open {
    overflow: hidden;
}
