/* Zinema — veil stage + transition chrome.
   Object classes mirror the Kinema player's (.kn-o), scoped to the veil box;
   the veil is position:fixed full-viewport with a cover-scaled 16:9 stage box
   inside (sizes are set from JS). */

.zn-veil {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow: hidden;
    pointer-events: all;
    background: transparent;
}
.zn-veilbox {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}
.zn-veil .kn-o {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}
.zn-veil .kn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-wrap;
    line-height: 1.1;
}
.zn-veil .kn-img { object-fit: cover; }

/* Waiting on the fetch while covered: a thin ruby loading line at the top. */
html[data-zinema-state="hold"] .zn-veil::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 40%;
    background: #FF4D26;
    animation: zn-load 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes zn-load {
    from { transform: translateX(-100%); }
    to   { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) {
    html[data-zinema-state="hold"] .zn-veil::after { animation: none; width: 100%; }
}
