/* === PLAYER APENAS (não toca no backoffice) === */

/* Reset mínimo só no player */
.player, .player * { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background:#000; color:#fff; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial; }

/* Layout: conteúdo + ticker (48px) */
.player {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 48px;
  width: 100vw;
  height: 100vh;
}

/* Palco */
.stage {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Crossfade de slides */
.slide {
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition: opacity 600ms ease;
  will-change: opacity;
}
.slide.active { opacity: 1; }

/* Fundo desfocado + zoom (apenas para imagens: .bg-blur é injectado no JS) */
.slide .bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  opacity: 0.7;
  z-index: 0;
  animation: bgZoom 20s ease-in-out infinite alternate;
}
@keyframes bgZoom {
  from { transform: scale(1) translateZ(0); }
  to   { transform: scale(1.1) translateZ(0); }
}

/* Conteúdo principal do slide */
.slide img:not(.bg-blur),
.slide video {
  position: relative;
  z-index: 1;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Ticker */
.ticker {
  background: rgb(255, 102, 0);          
  border-top: 1px solid rgba(0,0,0,.15);
  overflow: hidden;
}
.ticker__viewport {
  position: relative;
  width: 100%;
  height: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;                    
}
.ticker__track {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  display: flex;
  align-items: center;                    
  white-space: nowrap;
  transform: translateX(0);               
}
.ticker__text {
  display: inline-block;
  padding: 0 24px;
  line-height: 1;
  color: #fff;                            
  font-weight: 600;
}




/* Container do logo + relógio */
.clock-wrapper {
  position: fixed;
  top: 10px; /* ajustado para não colar no topo */
  left: 44px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px; /* reduzido para manter proporção */
}

/* Logo */
.logo-espe {
  height: 90px; /* menor, mas proporcional */
  width: auto;
  margin-left: -45px; /* proporcional à nova altura */
  display: block;
}

/* Relógio */
.clock {
  padding: 8px 12px;
  border-radius: 8px;
  background: #ff6600;
  color: #fff;
  font: 400 11px/1 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  letter-spacing: .4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  user-select: none;
  pointer-events: none;
}

/* Fundo (wallpaper) apenas para slides de vídeo */
.slide.slide--video::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../assets/video-bg.png") center center no-repeat;
  background-size: cover;
  z-index: 0;
}

/* garante que o vídeo fica acima do fundo e não pinta preto */
.slide.slide--video video{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;     
  background: transparent; 
}

/* Meteo Widget */
.meteo-widget {
  position: fixed;
  top: 25px;
  right: 25px;
  background: #FF6600;
  padding: 5px;           /* reduzido do original 12px */
  border-radius: 10px;    
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.meteo-widget iframe {
  width: 100px;   /* maior que metade, mas proporcional */
  height: 100px;  /* proporcional ao width */
  border: 1.5px solid #FF6600;
  border-radius: 8px;
  display: block;
}


