.youtube-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 10px;
  padding-top: 5px; /* Adicionar um pouco de espaço no topo */
}

.youtube-slider-wrapper {
  position: relative;
  overflow: visible; /* Alterado de 'hidden' para 'visible' para permitir que o efeito de hover transborde */
  width: 100%;
  padding-top: 5px; /* Espaço adicional para o efeito de hover */
}

.youtube-slider-track {
  display: flex;
  cursor: grab;
  user-select: none;
  padding-bottom: 5px;
  padding-top: 5px; /* Espaço adicional para o efeito de hover */
  overflow-x: auto;
  overflow-y: visible; /* Permitir overflow vertical para o efeito de hover */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE e Edge */
}

.youtube-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.youtube-slider-track:active {
  cursor: grabbing;
}

.youtube-slider-item {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 15px;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 10px;
  overflow: visible; /* Importante: permite que a sombra e o border-radius sejam visíveis no hover */
  padding: 2px; /* Pequeno padding para garantir que a sombra seja visível */
  margin-top: 3px; /* Espaço para o movimento no hover não ser cortado */
}

.youtube-slider-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.youtube-slider-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Proporção 16:9 */
  background-color: #000;
  overflow: hidden;
  border-radius: 10px;
}

.youtube-slider-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none; /* Evita arrastar a imagem */
  -webkit-user-drag: none;
  transform-origin: center;
}

.youtube-slider-item:hover .youtube-slider-thumbnail img {
  transform: scale(1.05);
}

.youtube-slider-title {
  padding: 8px 2px;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.3;
  height: 48px; /* Aproximadamente 2 linhas */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  color: #000; /* Cor padrão */
  transition: transform 0.3s ease;
}

/* Opções de estilo */
.youtube-slider-container.style-dark .youtube-slider-title {
  color: #fff;
}

.youtube-slider-container.style-light .youtube-slider-title {
  color: #000;
}

.youtube-slider-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px; /* Gradiente mais largo para melhor efeito */
  height: 100%;
  /* Gradiente de fallback - será substituído pelo inline */
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
  z-index: 5; /* Valor maior para garantir que fique na frente de outros elementos */
}

/* Carregamento */
.youtube-slider-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estilos de erro */
.youtube-slider-error {
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  color: #666;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
}

.youtube-slider-error a {
  color: #3498db;
  text-decoration: underline;
  font-weight: bold;
}

.youtube-slider-error a:hover {
  text-decoration: none;
}

/* Container para slider vazio */
.youtube-slider-container:empty {
  display: none;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .youtube-slider-item {
    width: 250px;
  }

  .youtube-slider-gradient {
    width: 100px; /* Gradiente menor em telas menores */
  }
}

@media (max-width: 480px) {
  .youtube-slider-item {
    width: 200px;
    margin-right: 10px;
  }

  .youtube-slider-gradient {
    width: 70px; /* Gradiente ainda menor em telas muito pequenas */
  }
} 