/*
 * Shared lazy-YouTube facade player (poster + play button → click-to-load
 * youtube-nocookie iframe). Promoted out of landing-desktop.css so the SAME
 * player styles the marketing showcase/library AND the tenant app (the Videos
 * page + the Install-to-Home-Screen modal). One player, no duplication.
 *
 * Markup:    app/Views/landing/partials/_video_facade.php
 * Behaviour: public/assets/js/video-facade.js  (window.FireDoorVideoFacade)
 *
 * Theme-neutral by design: the two design-token references keep their exact
 * marketing values where those tokens are defined (the landing bundle) and
 * fall back to sensible neutral / app values everywhere else — nothing new is
 * invented, and the marketing site is byte-for-byte unchanged.
 */

.lp-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--lp-video-showcase-rule, rgba(15, 23, 42, 0.12));
    background: #000;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.lp-video__trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: block;
}

.lp-video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-video__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.04) 0%, rgba(8, 11, 18, 0.30) 100%);
    transition: background 0.2s ease;
}

.lp-video__trigger:hover .lp-video__scrim,
.lp-video__trigger:focus-visible .lp-video__scrim {
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.10) 0%, rgba(8, 11, 18, 0.40) 100%);
}

.lp-video__trigger:focus-visible {
    outline: 3px solid var(--lp-shared-section-accent, var(--accent, #c49510));
    outline-offset: -3px;
}

.lp-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease;
    pointer-events: none;
}

.lp-video__play svg {
    display: block;
    width: 76px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.lp-video__play-bg {
    fill: #1f1f1f;
    fill-opacity: 0.78;
    transition: fill 0.18s ease, fill-opacity 0.18s ease;
}

.lp-video__trigger:hover .lp-video__play {
    transform: translate(-50%, -50%) scale(1.06);
}

.lp-video__trigger:hover .lp-video__play-bg {
    fill: #cc0000;
    fill-opacity: 1;
}

.lp-video__badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(8, 11, 18, 0.66);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
}

.lp-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lp-video__noscript {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 720px) {
    .lp-video__play svg {
        width: 60px;
    }
}
