/* totem-individual.css - Estilos do Player de Vídeo Individual */

#individual-video-player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000000; /* Fica por cima de absolutamente tudo */
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.individual-video-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-player-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#individual-video-local {
  object-fit: contain;
}

/* Garante que o iframe do YouTube individual preencha 100% do container sem bordas */

#individual-video-youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  margin: 0;
  padding: 0;
  pointer-events: none !important; /* Bloqueia cliques para evitar pause/controles */
}

/* Overlay invisível que fica sobre o iframe do YouTube bloqueando a UI nativa dele */
#individual-video-youtube-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Não bloqueia cliques do btn-close que está acima via z-index */
}

.btn-close-player {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 1000005;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-close-player:hover {
  background: #b81c22;
  border-color: #b81c22;
  transform: scale(1.05);
}

.btn-close-icon {
  width: 20px;
  height: 20px;
}

.individual-video-title {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000001;
}

/* Loading Overlay para o Player do YouTube */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
}

.video-loading-overlay p {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

.video-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
