/* ==========================================================================
   Canto de Miguel - Estilos Principais (Clone Limpo / Sem Trackers)
   ========================================================================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #03081d;
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 22px 14px 18px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Aviso de urgência no topo */
.warning {
  color: #ffd83d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  padding: 0 8px;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Título Principal */
h1 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  margin: 0 8px 18px;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 0px #7a3b00;
}

/* Contador de visualizações ao vivo */
.live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  margin: 0 8px 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

.live strong {
  font-size: 17px;
  font-weight: 900;
}

.live-dot {
  width: 13px;
  height: 13px;
  background: #ff0000;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.9);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.55);
  animation: live-pulse 1.2s infinite;
}

@keyframes live-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Container do Vídeo */
.video-box {
  width: 100%;
  max-width: 390px;
  background: #c59f60;
  border-radius: 14px;
  padding: 4px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.video-container {
  width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Player VTurb dentro da borda dourada */
.video-box > vturb-smartplayer {
  border-radius: 10px;
  overflow: hidden;
}

/* Overlay do antigo player local (não carregado na página atual) */
.video-poster-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.video-poster-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button-big {
  width: 76px;
  height: 76px;
  background: rgba(0, 0, 0, 0.65);
  border: 3px solid #ffd83d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 216, 61, 0.4);
}

.play-button-big:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.85);
}

.play-button-big svg {
  width: 34px;
  height: 34px;
  fill: #ffd83d;
  margin-left: 4px;
}

/* Banner de áudio ativado (Smart Unmute) */
.unmute-banner {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #ffd83d;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: pulse-border 1.5s infinite;
}

.unmute-banner svg {
  width: 20px;
  height: 20px;
  fill: #ffd83d;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 216, 61, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 216, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 216, 61, 0); }
}

/* Controles de Vídeo Personalizados */
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .custom-controls,
.video-container.controls-visible .custom-controls {
  opacity: 1;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar-filled {
  height: 100%;
  background: #ffd83d;
  border-radius: 3px;
  width: 0%;
  position: relative;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 12px;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.ctrl-btn:hover {
  transform: scale(1.15);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.time-display {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #e0e0e0;
}

/* Botão de Chamada para Ação (CTA) */
.cta-container {
  width: 100%;
  max-width: 390px;
  margin-top: 26px;
  padding: 26px 20px 22px;
  border: 1px solid rgba(197, 159, 96, 0.6);
  border-radius: 16px;
  background: linear-gradient(155deg, #141b34, #080e24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.offer-label {
  margin: 0 0 18px;
  color: #dfc38e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.5;
}

.offer-original {
  margin: 0 0 4px;
  color: #a5acc1;
  font-size: 17px;
}

.offer-original del {
  text-decoration-color: #cf9b74;
  text-decoration-thickness: 2px;
}

.offer-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
}

.offer-price-prefix {
  color: #e1e5ee;
  font-size: 18px;
}

.offer-price strong {
  color: #ffd83d;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

.offer-price strong span {
  font-size: 42px;
  letter-spacing: -1px;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #238d17, #186b0e);
  border: 1px solid #42a831;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 0 #0d4208, 0 8px 22px rgba(24, 124, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cta-pulse 1.8s ease-in-out infinite;
}

.cta-button:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0d4208, 0 12px 24px rgba(24, 124, 0, 0.35);
}

@keyframes cta-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 0 #0d4208, 0 8px 22px rgba(24, 124, 0, 0.25);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 4px 0 #0d4208, 0 10px 30px rgba(66, 168, 49, 0.5);
  }
}

.cta-button:focus-visible {
  outline: 3px solid #ffd83d;
  outline-offset: 5px;
}

.cta-button svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .cta-button { animation: none; transition: none; }
}

/* Rodapé */
.footer {
  margin-top: 40px;
  padding: 25px 16px 40px;
  text-align: center;
  color: #8f96b0;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  max-width: 440px;
}

.footer-links {
  margin-bottom: 14px;
}

.footer-links a {
  color: #8f96b0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #7b839e;
}

.copyright {
  margin-top: 18px;
  font-size: 11px;
  color: #636b85;
}

/* Responsividade adicional */
@media (max-width: 420px) {
  .page {
    padding: 16px 12px;
  }
  h1 {
    font-size: 23px;
  }
  .warning {
    font-size: 14px;
  }
}
