/* ==================================================
   RESET GLOBAL
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  font-family: 'Roboto', Arial, sans-serif;
  overflow: hidden;
}

/* ==================================================
   PLAYER GRID
================================================== */
#player {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* vídeo | imagem | texto */
  width: 100vw;
  height: 100vh;
}

/* ==================================================
   COLUNAS
================================================== */
.col-video,
.col-slide,
.col-info {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* ==================================================
   VIDEO
================================================== */
#video {
  width: 100%;
  height: 100%;
}

/* ==================================================
   SLIDE (IMAGEM)
================================================== */
#slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background: #000;
}

/* ==================================================
   TEXTO - CONTAINER
================================================== */
.col-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
  text-align: center;
}

/* ================= TÍTULO ================= */
#titulo {
  font-size: 4vw;
  margin-bottom: 0.6em;
  line-height: 1.1;
  word-break: break-word;
}

/* ================= DESCRIÇÃO ================= */
#descricao {
  font-size: 2.4vw;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;

  /* 🔑 RESPEITA ENTER DO BANCO */
  white-space: pre-line;
}

/* ==================================================
   FALLBACK
================================================== */
#fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
  background: rgba(0,0,0,0.85);
}

#fallback h1 {
  font-size: 6vw;
  margin-bottom: .5em;
}

#fallback p {
  font-size: 3vw;
}

/* ==================================================
   AJUSTE PARA TVs WIDESCREEN
================================================== */
@media (min-aspect-ratio: 16/9) {
  #slide {
    object-fit: contain;
  }
}
