/* Estilos para las categorías */
.category-card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
  }
  
  .category-header {
    padding: 15px;
    background: #007bff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    scroll-margin-top: 80px;
  }
  
  
  .category-header:hover {
    background-color: #0069d9;
  }
  
  .category-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .movie-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
  }
  
  .toggle-icon {
    transition: transform 0.3s ease;
  }
  
  .movie-list,
  .empty-category {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .movie-list.expanded,
  .empty-category.expanded {
    max-height: 2000px; /* Valor suficientemente grande */
  }
  
  .movie-list {
    padding: 0 15px;
  }
  
  .movie-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  
  .movie-item:last-child {
    border-bottom: none;
  }
  
  .movie-title {
    font-weight: 500;
  }
  
  .movie-duration {
    color: #666;
    font-size: 0.9rem;
  }
  
  .empty-category {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
  }
  
  /* Resaltado de categoría */
  .category-highlight {
    animation: highlight-fade 3s ease-out;
    box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.5);
  }
  
  @keyframes highlight-fade {
    0% {
      box-shadow: 0 0 0 10px rgba(0, 123, 255, 0.7);
    }
    100% {
      box-shadow: 0 0 0 5px rgba(0, 123, 255, 0);
    }
  }
  
  /* Transición para el cambio de página */
  .page-container {
    display: none;
  }
  
  .page-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  