html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none;
}

#stage {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

/* Pantallas en vertical: se gira el contenido entero */
#stage.rot90, #stage.rot270 {
  width: 100vh; height: 100vw;
  top: 50%; left: 50%;
}
#stage.rot90  { transform: translate(-50%, -50%) rotate(90deg); }
#stage.rot270 { transform: translate(-50%, -50%) rotate(-90deg); }
#stage.rot180 { transform: rotate(180deg); }

.item {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: #000;
}

video.item, img.item { object-fit: contain; }
.item.visible { opacity: 1; }

#status {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 8px 14px;
  font: 20px/1.3 sans-serif;
  color: #ccc;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
}
