.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #0f172a;
  overflow: hidden;
  border-radius: 0.5rem;
}

#mainVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-btn {
  background: rgba(59, 130, 246, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.5rem;
}

.play-btn:hover {
  background: rgba(59, 130, 246, 1);
  transform: scale(1.1);
}

.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1rem;
  z-index: 3;
}

.video-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.progress-bar {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  height: 0.25rem;
  position: relative;
}

.progress-fill {
  background: #3b82f6;
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.1s ease;
}

/* Estilos para fullscreen */
.video-player:fullscreen {
  background: #000;
}

.video-player:fullscreen .video-thumbnail {
  border-radius: 0;
}

.video-player:fullscreen #mainVideo {
  border-radius: 0;
}

/* Estilos para o hero background video */
.course-card {
  position: relative;
  overflow: hidden;
  transform: translateY(70px);
  z-index: 0;
}

#heroBackgroundVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

#heroHoverImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Melhorar visibilidade do conteúdo do card */
.course-card > * {
  position: relative;
  z-index: 1;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.1);
  z-index: 0;
  transition: all 0.3s ease;
}

.course-card:hover::before {
  background: rgba(15, 23, 42, 0.6);
}

/* Loading state */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 4;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #3b82f6;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
