/* ============================================================
   CAPAS SOBRE EL VIDEO — estilos compartidos (ver video-overlays.js)
   ============================================================ */
.lbov-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
    --lbov-u: 1px;
}
.lbov-item {
    position: absolute;
    transform-origin: center center;
}
.lbov-text {
    width: max-content;
    max-width: 88%;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.15;
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    user-select: none;
    -webkit-user-select: none;
}
.lbov-s-neon { font-weight: 700; }
.lbov-s-typewriter {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    padding: .2em .5em;
    border-radius: .2em;
    background: rgba(0, 0, 0, .72);
}
.lbov-s-marker {
    font-weight: 700;
    padding: .12em .45em;
    border-radius: .3em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.lbov-s-elegant {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
}
.lbov-bg {
    background: rgba(0, 0, 0, .55);
    padding: .2em .5em;
    border-radius: .35em;
}

/* ---- Pegatinas (paquete propio, emoji o imagen del usuario) ---- */
.lbov-sticker {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.lbov-text { z-index: 2; }
.lbov-sk-in { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lbov-sk-in svg, .lbov-sk-in img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.lbov-sk-in img.lbov-flag { width: 100%; height: auto; max-height: 100%; border-radius: 4%; box-shadow: 0 0 0 .025em rgba(255, 255, 255, .9); }
.lbov-sk-in span { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }

/* ---- Vista previa de "Publicar video": caja exacta del video ---- */
#reelPublishSheet .lbpv-ovbox {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 18px);
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
@media (min-width: 769px) {
    #reelPublishSheet .lbpv-phone > .lbpv-ovbox {
        left: 6px;
        top: 6px;
        right: 6px;
        bottom: 6px;
        width: auto;
        height: auto;
        border-radius: 22px;
    }
}

/* Texto en curva (arco / círculo): sin cajas de fondo */
.lbov-curve, .lbov-curve.lbov-bg, .lbov-curve.lbov-s-typewriter, .lbov-curve.lbov-s-marker {
    background: none !important;
    padding: 0 !important;
}
.lbov-t { max-width: 100%; }

/* ---- Pantalla verde: capa con el video sin el color quitado (ver mountChroma) ---- */
.lbov-chroma {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.lbov-chroma-cv { width: 100%; height: 100%; display: block; }

/* ---- Reels: pantalla completa que conserva textos y pantalla verde (ver reelFullscreen) ---- */
.reel-fs-ctl { display: none; }
.reel-slide.lb-fs { background: #000; }
.reel-slide.lb-fs::after { display: none; }
.reel-slide.lb-fs video.reel-media { object-fit: contain; background: #000; }
.reel-slide.lb-fs .reel-actions,
.reel-slide.lb-fs .reel-info,
.reel-slide.lb-fs .reel-link-wrap { display: none !important; }
.reel-slide.lb-fs .reel-fs-ctl {
    display: flex; position: absolute; top: 14px; right: 14px; z-index: 30; gap: 10px;
}
.reel-fs-ctl button {
    width: 42px; height: 42px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
    background: rgba(10, 12, 24, 0.62); color: #fff; font-size: 17px;
    display: grid; place-items: center;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.reel-fs-ctl button:hover { background: rgba(10, 12, 24, 0.85); }
.reel-fs-ctl .reel-fs-x { background: #FF3CAC; }

/* ---- Miniaturas con pantalla verde: los botones y avisos quedan POR ENCIMA del recorte ----
   (la capa .lbov-chroma tiene z-index 1; sin esto el botón de play quedaba tapado) */
.post-video-wrap > .post-video-play-badge { z-index: 2; pointer-events: none; }
.video-thumbnail-modern > .video-overlay { z-index: 2; }
.videos-carousel-thumb > .videos-carousel-play,
.videos-carousel-thumb > .videos-carousel-sensitive { z-index: 3; }
.lb-pp-post-cell > .lb-open-reel > div[style*="pointer-events:none"] { z-index: 3; }
/* Un video con pantalla verde dentro de una miniatura: el <video> real va debajo del recorte */
.lb-chroma-thumb-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
