/* Container — works on .lvl-hero-video or any Oxygen code block */
.lvl-hero-video,
.ct-code-block:has(.lvl-hero-video__play) {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.lvl-hero-video__teaser {
    width: 100%;
    height: auto;
    display: block;
}

.lvl-hero-video__full {
    width: 100%;
    height: auto;
}

/* Use !important to beat Oxygen's video { display: inline-block } */
.lvl-hero-video__full:not(:fullscreen) {
    display: none !important;
}

.is-playing .lvl-hero-video__play {
    display: none !important;
}

.is-playing .lvl-hero-video__teaser {
    display: none !important;
}

.is-playing .lvl-hero-video__full {
    display: block !important;
}

.lvl-hero-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.lvl-hero-video__play:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lvl-hero-video__play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
