/* ==========================================================================
   VTUBE SMART PLAYER v4.0 — VISUAL GRÁFICO PROPRIETÁRIO (assets/vtube-ui/01..06.jpg)
   - 01-smart-autoplay-card.jpg: Card Gráfico de Smart Autoplay Pulsante no Centro
   - 02/03/04-mini-hook-*.jpg: Banners Gráficos nos 3 Mini-Ganchos (00:22, 00:58, 01:46)
   - 05-tela-pausa-vsl-27.jpg: Pôster 9:16 de Fundo na Tela de Pausa e Continuar Assistindo
   - Stream HLS Full HD 1080x1920 Sem Perda (Zero selo de resolução no player)
   ========================================================================== */

:root {
  --vturb-blue: rgba(19, 92, 224, 0.90);
  --vturb-blue-solid: #135ce0;
  --vturb-dark-overlay: rgba(10, 14, 23, 0.92);
  --vtube-pink: #C9316E;
  --vtube-green: #16A34A;
  --vtube-radius: 22px;
}

.vtube-shell {
  width: 100%;
  max-width: 356px;
  margin: 16px auto 10px;
  position: relative;
  z-index: 10;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.vtube-shell.vtube-cinema {
  max-width: 378px;
}

/* Top Pill Live Indicator (Limpo, sem selo HD) */
.vtube-top-bar {
  background: linear-gradient(90deg, #4A2410 0%, #C9316E 55%, #733C1D 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(115, 60, 29, 0.22);
  border: 2px solid #ffffff;
  border-bottom: none;
}

.vtube-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.28);
  animation: vtube-blink 1.2s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

/* Player Container (9:16 Vertical Native / Responsive) */
.vtube-player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #090D16;
  border-radius: 0 0 var(--vtube-radius) var(--vtube-radius);
  overflow: hidden;
  border: 3px solid #ffffff;
  border-top: none;
  box-shadow: 0 24px 54px rgba(43, 20, 10, 0.34), 0 0 0 1.5px rgba(201, 49, 110, 0.28);
  cursor: pointer;
  touch-action: manipulation;
}

.vtube-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #090D16;
  pointer-events: none;
}

.vtube-player video::-webkit-media-controls,
.vtube-player video::-webkit-media-controls-enclosure,
.vtube-player video::-webkit-media-controls-panel,
.vtube-player video::-webkit-media-controls-play-button,
.vtube-player video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* ==========================================================================
   1. SMART AUTOPLAY™ COM ARTE PRÓPRIA (assets/vtube-ui/01-smart-autoplay-card.jpg)
   Exibe o card gráfico 800x800 pulsando suavemente no centro do vídeo mudo.
   ========================================================================== */
.vtube-unmute-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(10, 14, 23, 0.14) 0%, rgba(10, 14, 23, 0.42) 100%);
  padding: 18px;
  text-align: center;
  z-index: 6;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vtube-player.is-playing-sound .vtube-unmute-overlay,
.vtube-player.has-resume-prompt .vtube-unmute-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vtube-unmute-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 246px;
  width: 78%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.62), 0 0 0 2.5px rgba(255, 255, 255, 0.92);
  animation: vtube-vturb-pulse 1.65s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtube-autoplay-custom-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  pointer-events: none;
}

/* ==========================================================================
   2. CONTINUAR ASSISTINDO™ COM ARTE 9:16 (assets/vtube-ui/05-tela-pausa-vsl-27.jpg)
   Exibe o pôster 9:16 de fundo com os botões nítidos e clicáveis por cima.
   ========================================================================== */
.vtube-resume-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #090D16;
  padding: 16px 14px 20px;
  text-align: center;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.vtube-player.has-resume-prompt .vtube-resume-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vtube-overlay-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.vtube-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 13, 22, 0.12) 0%,
    rgba(9, 13, 22, 0.28) 42%,
    rgba(9, 13, 22, 0.88) 72%,
    rgba(9, 13, 22, 0.96) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.vtube-resume-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 316px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(12, 18, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 13px 12px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.vtube-resume-title,
.snt .vtube-resume-title {
  font-family: "Montserrat", sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vtube-resume-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.vtube-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(19, 92, 224, 0.92);
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
  color: #ffffff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  width: 100%;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.vtube-resume-btn[data-resume-action="restart"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.vtube-resume-btn:hover {
  transform: scale(1.02);
  background: #135ce0;
}

.vtube-resume-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffffff;
}

.vtube-resume-icon-circle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ==========================================================================
   3. MINI-GANCHOS™ COM BANNERS PRÓPRIOS (02, 03 e 04-mini-hook-*.jpg)
   Deslizam suavemente no topo do player nos segundos 00:22, 00:58 e 01:46.
   ========================================================================== */
.vtube-mini-hook {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  z-index: 7;
  background: transparent;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.58), 0 0 0 2px rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.vtube-mini-hook.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vtube-mh-custom-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13px;
}

/* ==========================================================================
   4. TELA DE PAUSA COM ARTE 9:16 (assets/vtube-ui/05-tela-pausa-vsl-27.jpg)
   Exibe o pôster 9:16 de pausa + botões clicáveis de Continuar ou Desconto R$ 27
   ========================================================================== */
.vtube-pause-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #090D16;
  padding: 16px 14px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 5;
  text-align: center;
  overflow: hidden;
}

.vtube-player.is-paused.is-playing-sound .vtube-pause-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vtube-pause-controls-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 316px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(12, 18, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.vtube-pause-hook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(90deg, #135ce0 0%, #2563EB 100%);
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 92, 224, 0.45);
}

/* Card Dourado de Desconto R$ 27,00 dentro da VSL (Pause & Continuar Assistindo) */
.vtube-vsl-discount-card {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  width: 100%;
  background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 55%, #D97706 100%);
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 9px 12px;
  color: #3A1807 !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.28;
  text-align: center;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: vtube-vturb-pulse 1.9s infinite ease-in-out;
}

.vtube-vsl-discount-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.65);
}

.vtube-vsl-discount-card .vtube-disc-sub {
  display: inline-block;
  background: #16A34A;
  color: #ffffff !important;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

/* ==========================================================================
   5. BARRA DE PROGRESSO INTELIGENTE NÃO-LINEAR (Smart Progress Bar VTurb)
   ========================================================================== */
.vtube-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: rgba(9, 20, 36, 0.65);
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
}

.vtube-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #135ce0 0%, #0EA5E9 55%, #22C55E 100%);
  box-shadow: 0 0 10px rgba(19, 92, 224, 0.85);
  transition: width 0.25s linear;
  position: relative;
}

/* Micro barra de seguranca/status embaixo do player */
.vtube-security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #5C3A28;
  text-align: center;
  line-height: 1.35;
}

.vtube-security-strip .sound-tip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF4B0;
  border: 1px solid #F0D96B;
  color: #4A2410;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

/* ==========================================================================
   6. DESBLOQUEIO SINCRONIZADO NO PITCH (.vtube-delayed)
   ========================================================================== */
.vtube-delayed {
  display: none !important;
  opacity: 0;
}

body.vtube-pitch-unlocked .vtube-delayed,
.vtube-delayed.is-unlocked {
  display: block !important;
  animation: vtube-reveal-smooth 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.vtube-pitch-unlocked .vtube-delayed-flex,
.vtube-delayed-flex.is-unlocked {
  display: flex !important;
  animation: vtube-reveal-smooth 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.vtube-pitch-unlocked .vtube-hide-on-unlock {
  display: none !important;
}

/* Botao discreto de Modo Preview Editor */
.vtube-editor-preview-bar {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(253, 230, 138, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.vtube-editor-preview-bar button,
.vtube-editor-preview-bar a {
  background: linear-gradient(90deg, #16A34A, #22C55E);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.vtube-editor-preview-bar button:hover,
.vtube-editor-preview-bar a:hover {
  transform: scale(1.04);
}

.vtube-editor-preview-bar .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   KEYFRAMES VTURB v4.0
   ========================================================================== */
@keyframes vtube-vturb-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.68), 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

@keyframes vtube-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

@keyframes vtube-reveal-smooth {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
