/* Vídeos - Estilo Web 1.0 */
.cabecalho-videos {
  text-align: center;
  padding: 20px 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

.cabecalho-videos h2 {
  color: #666;
  font-size: 20px;
  margin: 0 0 8px 0;
  font-weight: bold;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cabecalho-videos p {
  color: #444;
  font-size: 13px;
  margin: 0;
  font-style: italic;
  font-family: 'Georgia', serif;
}

.colecao-videos {
  margin-bottom: 25px;
}

.video-item {
  background: #000;
  padding: 25px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  position: relative;
}

.video-item:last-child {
  border-bottom: none;
}

.video-player {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 16px;
  background: #000;
  border: 1px solid #333;
  overflow: hidden;
}

.video-iframe {
  width: 100%;
  height: 315px;
  border: none;
  display: block;
}

.video-pinterest {
  position: relative;
  width: 100%;
  height: 315px;
  background: #000;
  border: 1px solid #333;
  overflow: hidden;
}

.video-pinterest iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-info {
  margin-top: 16px;
}

.video-titulo {
  color: #ccc;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  font-style: italic;
  font-family: 'Georgia', serif;
}

.video-plataforma {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  font-family: 'Georgia', serif;
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 6px;
  border: 1px solid #333;
  background: #000;
}

.video-data {
  color: #888;
  font-size: 11px;
  font-family: 'Georgia', serif;
}

.video-remover {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: 1px solid #333;
  color: #444;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  font-family: 'Georgia', serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .video-remover {
  opacity: 1;
}

.video-remover:hover {
  color: #666;
  border-color: #444;
}

.info-videos {
  margin: 25px 0;
  padding: 15px;
  background: #000;
  border-top: 1px solid #333;
}

.info-videos h3 {
  color: #666;
  font-size: 13px;
  margin: 0 0 10px 0;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

.filtros-videos-secao,
.estatisticas-videos,
.adicionar-video-secao {
  margin-bottom: 20px;
}

.filtros-videos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filtro-btn {
  background: none;
  border: 1px solid #333;
  color: #444;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Georgia', serif;
}

.filtro-btn:hover {
  color: #666;
  border-color: #444;
}

.filtro-btn.active {
  color: #666;
  border-color: #444;
  background: #000;
}

.estatisticas-videos p,
.adicionar-video-secao p {
  color: #444;
  font-size: 12px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  margin: 0 0 5px 0;
}



/* Estados de filtro */
.video-item.oculto {
  display: none;
}

/* Estados de loading e erro */
.video-loading {
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  font-family: 'Georgia', serif;
}

.video-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top: 2px solid #666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.video-error {
  background: #111;
  color: #844;
  padding: 20px;
  text-align: center;
  font-family: 'Georgia', serif;
  border: 1px solid #844;
}

/* Melhorias nos filtros */
.filtros-videos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filtro-btn {
  background: none;
  border: 1px solid #333;
  color: #444;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.filtro-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 102, 102, 0.1), transparent);
  transition: left 0.5s ease;
}

.filtro-btn:hover::before {
  left: 100%;
}

.filtro-btn:hover {
  color: #666;
  border-color: #444;
  transform: translateY(-1px);
}

.filtro-btn.active {
  color: #666;
  border-color: #444;
  background: #000;
  box-shadow: inset 0 0 10px rgba(102, 102, 102, 0.2);
}

.filtro-btn:active {
  transform: translateY(0);
}

/* Melhorias na estatística */
.estatisticas-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.estatisticas-videos p {
  background: #000;
  padding: 10px;
  border: 1px solid #333;
  text-align: center;
  margin: 0;
  transition: all 0.2s ease;
}

.estatisticas-videos p:hover {
  border-color: #444;
  background: rgba(68, 68, 68, 0.05);
}

.estatisticas-videos strong {
  color: #bbb;
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .cabecalho-videos h2 {
    font-size: 18px;
  }

  .cabecalho-videos p {
    font-size: 12px;
  }

  .video-item {
    padding: 20px 15px;
    margin-bottom: 18px;
  }

  .video-iframe,
  .video-pinterest {
    height: 250px;
  }

  .video-titulo {
    font-size: 15px;
    line-height: 1.7;
  }

  .video-plataforma {
    font-size: 11px;
  }

  .filtros-videos {
    justify-content: center;
  }

  .estatisticas-videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .cabecalho-videos {
    padding: 15px 10px;
  }

  .video-item {
    padding: 18px 12px;
    margin-bottom: 16px;
  }

  .cabecalho-videos h2 {
    font-size: 16px;
  }

  .video-iframe,
  .video-pinterest {
    height: 200px;
  }

  .video-titulo {
    font-size: 14px;
    line-height: 1.6;
  }

  .video-plataforma {
    font-size: 10px;
  }

  .filtros-videos {
    flex-direction: column;
    align-items: center;
  }

  .filtro-btn {
    width: 100%;
    max-width: 200px;
  }

  .estatisticas-videos {
    grid-template-columns: 1fr;
  }
}

/* Animações suaves */
.video-item {
  transition: all 0.3s ease;
}

.video-item:hover {
  border-color: #444;
  background: rgba(68, 68, 68, 0.02);
}

/* Melhorias de acessibilidade */
.filtro-btn:focus,
.video-remover:focus {
  outline: 2px solid #666;
  outline-offset: 2px;
}

/* Estados de foco para navegação por teclado */
.video-remover:focus {
  opacity: 1;
}

/* Suporte a reduced motion */
@media (prefers-reduced-motion: reduce) {
  .filtro-btn::before,
  .video-loading::after {
    animation: none;
  }

  .video-item,
  .filtro-btn,
  .estatisticas-videos p {
    transition: none;
  }
}
