/* Reusable cinema trailer showcase card (silent ambient loop + click-to-play YouTube nocookie embed) */
.bi-trailer-shell {
    width: 100%;
    max-width: 920px;
    margin: 2.25rem auto 0;
}

.bi-trailer-shell.bi-trailer-compact {
    max-width: 560px;
    margin: 1.5rem auto 1.25rem;
}

.bi-trailer-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #0b1016;
    border: 1px solid rgba(206, 152, 54, 0.45);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
}

.bi-trailer-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #0b1016;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font: inherit;
}

.bi-trailer-trigger:focus-visible {
    outline: 3px solid #ce9836;
    outline-offset: 3px;
}

.bi-trailer-poster,
.bi-trailer-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.bi-trailer-trigger:hover .bi-trailer-video,
.bi-trailer-trigger:hover .bi-trailer-poster {
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .bi-trailer-video {
        display: none;
    }
    .bi-trailer-trigger:hover .bi-trailer-poster {
        transform: none;
    }
}

.bi-trailer-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 18, 0.14) 0%,
        rgba(8, 12, 18, 0.30) 55%,
        rgba(8, 12, 18, 0.78) 100%
    );
    pointer-events: none;
}

.bi-trailer-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    pointer-events: none;
}

.bi-trailer-play {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(12, 16, 22, 0.84);
    border: 2px solid #d49e38;
    color: #f8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bi-trailer-compact .bi-trailer-play {
    width: 58px;
    height: 58px;
}

.bi-trailer-trigger:hover .bi-trailer-play {
    transform: scale(1.08);
    background: #d49e38;
    border-color: #f3d285;
    color: #0b1016;
}

.bi-trailer-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(12, 16, 22, 0.84);
    border: 1px solid rgba(212, 158, 56, 0.65);
    color: #f8f5ee;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bi-trailer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    background: rgba(12, 16, 22, 0.82);
    border: 1px solid rgba(212, 158, 56, 0.55);
    color: #f3d285;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}

.bi-trailer-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bi-trailer-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.88;
}

.bi-trailer-caption a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
