/* Reset e Configuração Básica do Player */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --primary-color: #2563eb;
  --accent-color: #60a5fa;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
}

.player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.player-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  cursor: pointer;
}

/* Otimização para 9:16 (Vertical) */
.player-wrapper[data-aspect-ratio="9:16"] video {
  object-fit: cover;
}

/* -------------------------------------------
   BARRA SUPERIOR DE TÍTULO MINIMALISTA
------------------------------------------- */
.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 30;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.player-title-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.2px;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------
   OVERLAY CLIQUE PARA OUVIR (SMART AUTOPLAY)
------------------------------------------- */
.unmute-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.unmute-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.unmute-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  text-align: center;
}

/* ==========================================================================
   ESTILOS DE BOTÕES MINIMALISTAS (OVERLAY DE ENTRADA)
   ========================================================================== */

/* 1. MODELO 1: MINIMALISTA CLÁSSICO (IMAGEM 1) */
.vsl-btn-minimal-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
}

.vsl-btn-minimal-play:hover {
  transform: scale(1.06);
}

.vsl-btn-minimal-play .vsl-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vsl-btn-minimal-play:hover .vsl-icon-circle {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.vsl-btn-minimal-play .vsl-icon-circle svg {
  width: 28px;
  height: 28px;
  fill: #cbd5e1;
  margin-left: 3px; /* Centralização ótica do triângulo */
  transition: fill 0.2s ease;
}

.vsl-btn-minimal-play:hover .vsl-icon-circle svg {
  fill: #fff;
}

.vsl-btn-minimal-play .vsl-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color, #60a5fa);
  letter-spacing: -0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.vsl-btn-minimal-play .vsl-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: -6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* 2. MODELO 2: ÁUDIO & SOM MINIMALISTA */
.vsl-btn-minimal-sound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
}

.vsl-btn-minimal-sound:hover {
  transform: scale(1.06);
}

.vsl-btn-minimal-sound .vsl-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, border-color 0.2s;
}

.vsl-btn-minimal-sound:hover .vsl-icon-circle {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.vsl-btn-minimal-sound .vsl-icon-circle svg {
  width: 30px;
  height: 30px;
  fill: #cbd5e1;
  transition: fill 0.2s ease;
}

.vsl-btn-minimal-sound:hover .vsl-icon-circle svg {
  fill: #fff;
}

.vsl-btn-minimal-sound .vsl-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.vsl-btn-minimal-sound .vsl-subtitle {
  font-size: 0.82rem;
  color: var(--primary-color, #60a5fa);
  font-weight: 600;
  margin-top: -6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
}

/* 3. MODELO 3: PÍLULA FLUTUANTE MODERNA */
.vsl-btn-pill-modern {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.vsl-btn-pill-modern:hover {
  transform: scale(1.05);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.vsl-btn-pill-modern .vsl-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-color, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vsl-btn-pill-modern .vsl-icon-badge svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 2px;
}

.vsl-btn-pill-modern .vsl-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.vsl-btn-pill-modern .vsl-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.vsl-btn-pill-modern .vsl-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* 4. MODELO 4: CÍRCULO OUTLINE FINO (GLASS) */
.vsl-btn-outline-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
}

.vsl-btn-outline-circle:hover {
  transform: scale(1.06);
}

.vsl-btn-outline-circle .vsl-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, background 0.2s;
}

.vsl-btn-outline-circle:hover .vsl-icon-circle {
  border-color: var(--primary-color, #60a5fa);
  background: rgba(0, 0, 0, 0.55);
}

.vsl-btn-outline-circle .vsl-icon-circle svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
}

.vsl-btn-outline-circle .vsl-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.vsl-btn-outline-circle .vsl-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-top: -6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* 5. MODELO 5: DISCRETO / ULTRA MINIMALISTA */
.vsl-btn-discreet-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
  padding: 10px;
}

.vsl-btn-discreet-play:hover {
  transform: scale(1.08);
}

.vsl-btn-discreet-play .vsl-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.vsl-btn-discreet-play .vsl-icon-circle svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 2px;
}

.vsl-btn-discreet-play .vsl-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.vsl-btn-discreet-play .vsl-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: -6px;
}

/* 6. MODELO 6: BARRA FLUTUANTE SMART (TOP/CENTER) */
.vsl-btn-floating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s;
}

.vsl-btn-floating-bar:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.3);
}

.vsl-btn-floating-bar svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color, #60a5fa);
  flex-shrink: 0;
}

.vsl-btn-floating-bar .vsl-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.vsl-btn-floating-bar .vsl-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.vsl-btn-floating-bar .vsl-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* -------------------------------------------
   INDICADOR DE PLAY / PAUSE CENTRAL TEMPORÁRIO
------------------------------------------- */
.center-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
}

.center-play-indicator.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.center-play-indicator svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* -------------------------------------------
   CONTROLES INFERIORES DO PLAYER
------------------------------------------- */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.player-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-controls.force-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Barra de Progresso */
.progress-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-container:hover {
  height: 8px;
}

.progress-container.disabled-seek {
  cursor: default !important;
}

.progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  transition: width 0.2s ease;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-color, #2563eb);
  border-radius: 4px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.ctrl-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ctrl-btn:active {
  transform: scale(0.92);
}

.ctrl-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.time-display {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

/* Spinner de Carregamento */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-color, #2563eb);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  z-index: 35;
}

.loading-spinner.active {
  display: block;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modal de Retomada Inteligente */
.resume-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 60;
}

.resume-toast.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.resume-btn {
  background: var(--primary-color, #2563eb);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.resume-dismiss {
  background: transparent;
  color: #94a3b8;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ==========================================================================
   SUPRESSÃO DO BADGE NETLIFY (POWERED BY NETLIFY / FEEDBACK DRAWER)
   ========================================================================== */
#netlify-drawer,
netlify-drawer,
#netlify-feedback,
.netlify-badge,
[data-netlify-drawer],
[class*="netlify-drawer"],
[class*="feedback-drawer"],
iframe[src*="netlify.com"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
