* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../img/videobg.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

#video-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      rgba(0, 0, 0, 0.18) 2px,
      rgba(0, 0, 0, 0.18) 3px
    ),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(0, 0, 0, 0.28) 70%,
      rgba(0, 0, 0, 0.45) 100%
    );
  animation: crt-flicker 0.16s steps(2) infinite;
}

.tv-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 9999;
}

.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 10;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.slide iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
}

.videos-empty {
  margin: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #111;
  color: #111;
  font: 700 14px/1.3 'Courier New', Courier, monospace;
}

@keyframes crt-flicker {
  0% { opacity: 0.94; }
  100% { opacity: 1; }
}
