/**
 * Panda Video Embed - Estilos principais
 * Versão: 1.6 (estrutura com inner wrapper - compatível com todos os devices)
 */

.panda-video-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--panda-max-width, 800px);
  margin: 0 auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

/* Cria o espaço proporcional via padding-top */
.panda-video-inner {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

/* Todo conteúdo do player fica absoluto dentro do inner */
.panda-video-inner > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== CONTAINER DO VÍDEO ===== */
.panda-video-container video,
.panda-video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* ===== OVERLAY E BOTÃO ===== */
.panda-video-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.panda-video-wrapper.playing .panda-video-overlay {
  opacity: 0;
  pointer-events: none;
}

.panda-play-btn {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 3;
}

.panda-play-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.panda-play-btn img {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* ===== BARRA DE PROGRESSO ===== */
.panda-progress-bar {
  bottom: 0;
  height: 5px;
  background: rgba(255,255,255,0.15);
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.panda-progress-bar .progress {
  width: 0%;
  height: 100%;
  background: var(--panda-progress-color, #ff0000);
  transition: width 0.1s linear;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .panda-play-btn img {
    width: 60px;
    height: 60px;
  }

  .panda-progress-bar {
    height: 4px;
  }
}

@media (max-width: 480px) {
  .panda-play-btn img {
    width: 50px;
    height: 50px;
  }
}
