* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 1920px;
  height: 1080px;
  background: transparent; /* important: vMix/OBS browser source needs a real transparent bg */
  overflow: hidden;
}

#stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: transparent;
}

#video-ulaz, #video-izlaz {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  display: none;
  object-fit: cover;
  z-index: 1;
}

/* Static freeze-frame bitmap shown instead of a paused <video> - avoids a
   known Chromium/CEF bug where paused alpha-channel video can render blank. */
#freeze-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  display: none;
  z-index: 1;
}

/* Krol text CLIP BOX - defines the visible window where text scrolls
   (left/top/width/height). Text enters/exits exactly at this box's edges,
   not the full screen. Default values here are overridden live by the
   panel's "Pozicija i tajming teksta" settings via overlay.js. */
#krol-text-clip {
  position: absolute;
  left: 0;
  top: 950px;
  width: 1920px;
  height: 90px;
  overflow: hidden;
  z-index: 2;
}

#krol-text {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: none;
  white-space: nowrap;
  color: #000000;
  font-weight: 700;
  line-height: 90px;
  will-change: transform;
}
