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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none; /* esconde o cursor na TV */
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.layer.visible {
  opacity: 1;
}

/* Fundo: versão borrada e ampliada da foto, preenchendo a tela inteira
   (no lugar das faixas pretas). */
.layer .blur {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(28px) brightness(0.55);
  transform: scale(1.12); /* esconde as bordas borradas */
}

/* Foto nítida e INTEIRA por cima (sem cortar nada). */
.layer .sharp {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  will-change: transform;
}

/* Efeito Ken Burns (zoom lento) aplicado só na foto nítida */
.layer.kenburns.visible .sharp {
  animation: kenburns 20s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Legenda */
#caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 6vh;
  text-align: center;
  color: #fff;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.4vh;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding: 0 6vw;
}

#caption.show {
  opacity: 1;
}

/* Relógio + clima (canto superior direito) */
#topright {
  position: fixed;
  top: 4vh;
  right: 4vw;
  text-align: right;
  color: #fff;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

#clock {
  font-size: 4.5vh;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.92;
  line-height: 1.1;
}

#weather {
  font-size: 2.6vh;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.4vh;
}

/* Tela de status */
#status {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  z-index: 10;
  transition: opacity 0.6s ease-in-out;
}

#status.hidden {
  opacity: 0;
  pointer-events: none;
}

.status-box {
  text-align: center;
}

#status-text {
  margin-top: 24px;
  font-size: 2.6vh;
  font-weight: 400;
  max-width: 70vw;
  line-height: 1.5;
}

.spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
