
.movie-details-main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
  line-height: 1; 
  margin-bottom: 10px; 
}

.movie-details-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.movie-poster-section {
  position: relative;
}

.movie-poster-large {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-radius: 5px;
}

.movie-poster-large:hover {
  transform: scale(1.02);
}

.movie-info-section {
  padding: 20px 0;
}

.movie-title-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  color: #f65d2a;
}

.movie-description {
  margin-bottom: 25px;
}

.movie-description p {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #B0B0B0;
  text-align: justify;
}

.movie-metadata {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.metadata-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.metadata-label {
  font-weight: 600;
  color: var(--text-light);
  min-width: 80px;
  flex-shrink: 0;
  margin-bottom: 8px;
  color: #b74721;
}

.metadata-value cast {
  line-height: 1.4;
}

#movie-genres {
  margin-left: -4px;
  margin-top: -4px;
}

#movie-quality{

}

.genre-link {
  text-decoration: none;
  color: #B0B0B0;

}

.metadata-value {
  color: #B0B0B0;
  flex: 1;
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #FFD700;
  font-size: 1rem;
}

.star.empty {
  color: #444;
}

.rating-text {
  font-weight: 600;
  color: #B0B0B0;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tag {
  background-color: var(--primary-color);
  color: #B0B0B0;;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.quality-badge {
  background-color: var(--primary-color);
  color: #B0B0B0;
  padding: -8px 1px;
  border-radius: 6px;
  font-weight: 600;
  margin-block-start: 0dvb;
  display: inline-block;
}

.director {
  color: #B0B0B0;;
  font-weight: 500;
}

.cast {
  line-height: 1.6;
}

.cast-member {
  color: var(--primary-color);
  margin-right: 5px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 0;
  border-top: 1px solid #333;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trailer-btn {
  background-color: #FF6B35;
  color: white;
}

.trailer-btn:hover {
  background-color: #E55A2B;
  transform: translateY(-2px);
}

.watch-btn {
  background-color: var(--primary-color);
  color: white;
}

.watch-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.download-btn {
  background-color: #6C5CE7;
  color: white;
}

.download-btn:hover {
  background-color: #5A4FCF;
  transform: translateY(-2px);
}

.comments-section {
  background-color: var(--background-light);
  padding: 60px 0;
  margin-top: 40px;
}

.comments-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #333;
}

.comments-header h2 {
  font-size: 2rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-header h2 i {
  color: var(--primary-color);
}

.comments-stats {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.add-comment-form {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
}

.user-avatar {
  flex-shrink: 0;
}

.user-avatar i {
  font-size: 3rem;
  color: var(--primary-color);
}

.comment-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--background-dark);
  border: 1px solid #444;
  color: var(--text-light);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 191, 165, 0.2);
}

.rating-input {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rating-input label {
  color: var(--text-light);
  font-weight: 500;
}

.star-rating-input {
  display: flex;
  gap: 5px;
}

.star-rating-input i {
  font-size: 1.5rem;
  color: #444;
  cursor: pointer;
  transition: var(--transition);
}

.star-rating-input i:hover,
.star-rating-input i.active {
  color: #FFD700;
}

.submit-comment-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.submit-comment-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-user i {
  font-size: 2rem;
  color: var(--primary-color);
}

.user-info h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.comment-date {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.comment-rating {
  display: flex;
  gap: 2px;
}

.comment-rating i {
  color: #FFD700;
  font-size: 1rem;
}

.comment-text {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 1rem;
}

.no-comments {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

.no-comments i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-comments p {
  font-size: 1.2rem;
}

/* Estilos para la autenticación en comentarios */
.login-required-message {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.user-comment-form {
  width: 100%;
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(0, 191, 165, 0.1);
  border-radius: 8px;
  border-left: 4px solid #00bfa5;
}

.user-email-small {
  color: #bdbdbd;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 2px;
}

@media screen and (max-width: 992px) {
  .movie-details-container {
    grid-template-columns: 300px 1fr;
    gap: 30px;
  }
  
  .movie-title-large {
    font-size: 2rem;
  }
  
  .comments-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .movie-details-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .movie-poster-section {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .movie-info-section {
    padding: 0;
  }
  
  .movie-title-large {
    font-size: 1.8rem;
  }
  
  .metadata-row {
    flex-direction: column;
    gap: 5px;
    text-align: left;
  }
  
  .metadata-label {
    min-width: auto;
    font-size: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .add-comment-form {
    flex-direction: column;
    text-align: center;
  }
  
  .rating-input {
    justify-content: center;
  }
  
  .comments-header h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .movie-details-main {
    padding: 20px 15px;
  }
  
  .movie-title-large {
    font-size: 1.5rem;
  }
  
  .movie-description p {
    font-size: 1rem;
  }
  
  .action-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .comments-section {
    padding: 40px 0;
  }
  
  .comments-container {
    padding: 0 15px;
  }
  
  .add-comment-form {
    padding: 20px;
  }
  
  .comment-item {
    padding: 20px;
  }
  
  .comment-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}


.genre-tag {
  background-color: var(--primary-color);
  color: #B0B0B0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 2px 4px 2px 0;
}

.genre-tag:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}


.category-description {
  color: #B0B0B0;
  font-size: 1.1rem;
  margin-top: 10px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/*

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
  grid-column: 1 / -1;
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.no-results p {
  font-size: 1.1rem;
}
*/

.metadata-value.genres {
  display: inline;
  line-height: 1.6;
}

.genre-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 4px;
}

.genre-link:hover {
  color: var(--primary-dark);
  background-color: rgba(0, 191, 165, 0.1);
  text-decoration: underline;
}

.genre-link:after {
  content: ", ";
  color: #b0b0b0;
  text-decoration: none;
}

.genre-link:last-child:after {
  content: "";
}


.movie-trailer-section {
  margin: 20px 0;
  padding: 0;
}

.movie-trailer-section.hidden {
  display: none;
}

.trailer-container h2 {
  color: #00bfa5;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-align: center;
}

.main-trailer-player {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; 
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.main-trailer-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.movie-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 30px 0 20px 0;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.trailer-btn {
  background: #ff4757;
  color: white;
}

.trailer-btn:hover {
  background: #ff3742;
  transform: translateY(-2px);
}

.online-btn {
  background: #00bfa5;
  color: white;
}

.online-btn:hover {
  background: #00a792;
  transform: translateY(-2px);
}

.download-btn {
  background: #3742fa;
  color: white;
}

.download-btn:hover {
  background: #2f36f0;
  transform: translateY(-2px);
}


.content-container {
  margin: 20px 0;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #333;
}

.content-container.hidden {
  display: none;
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.container-header h3 {
  margin: 0;
  color: #00bfa5;
}


.servers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.server-item {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  text-align: center;
}

.server-item:hover {
  border-color: #00bfa5;
  transform: translateY(-2px);
}

.server-link {
  display: block;
  background: #00bfa5;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-bottom: 10px;
}

.server-link:hover {
  background: #008f7a;
  text-decoration: none;
}

.server-info {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
}

.server-quality {
  color: #ffd700;
  font-weight: 500;
}

.server-audio {
  color: #00bfa5;
  margin: 5px 0;
}


.download-link {
  background: #3742fa;
}

.download-link:hover {
  background: #2f36f0;
}


@media screen and (max-width: 768px) {
  .movie-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .servers-list {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .movie-actions {
    gap: 10px;
  }
  
  .action-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .content-container {
    padding: 15px;
  }
  
  .server-item {
    padding: 15px;
  }
}

/* Sección de Películas Recomendadas */
.recommended-movies {
  margin: 60px 0 40px;
  padding: 0 16px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.recommended-movies .section-header {
  margin-bottom: 30px;
}

#recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  padding: 0 8px;
}

/* Asegurar que máximo sean 6 películas por fila */
@media screen and (min-width: 1280px) {
  #recommended-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  #recommended-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  #recommended-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  #recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 479px) {
  #recommended-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.no-recommendations {
  text-align: center;
  padding: 60px 20px;
  color: #bdbdbd;
  grid-column: 1 / -1;
}

.no-recommendations i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-recommendations p {
  font-size: 1.1rem;
  color: #bdbdbd;
}

/* Mantener el mismo estilo que index.html para las tarjetas */
#recommended-grid .movie-card {
  background-color: #161718;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  cursor: pointer;
}

#recommended-grid .movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#recommended-grid .movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}

#recommended-grid .movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#recommended-grid .movie-card:hover .movie-poster img {
  transform: scale(1.05);
}

#recommended-grid .movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#recommended-grid .movie-card:hover .movie-overlay {
  opacity: 1;
}

#recommended-grid .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 191, 165, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#recommended-grid .movie-card:hover .play-button {
  opacity: 1;
}

#recommended-grid .play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #00bfa5;
}

#recommended-grid .movie-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #00bfa5;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

#recommended-grid .movie-info {
  padding: 15px;
}

#recommended-grid .movie-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
  line-height: 1.2;
}

#recommended-grid .movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #bdbdbd;
  font-size: 0.8rem;
}

#recommended-grid .movie-year {
  display: flex;
  align-items: center;
  gap: 5px;
}

#recommended-grid .movie-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

#recommended-grid .movie-rating i {
  color: #FFD700;
}

/* Estilos para el botón de favoritos */
.favorite-btn {
  background: #e84393;
  color: white;
}

.favorite-btn:hover {
  background: #d63031;
  transform: translateY(-2px);
}

.favorite-btn.added {
  background: #d63031;
}

.favorite-btn.added i {
  color: #ff6b6b;
}

/* Estados del botón de favoritos */
.favorite-btn .fa-heart {
  transition: all 0.3s ease;
}

.favorite-btn.added .fa-heart {
  transform: scale(1.2);
}

/* Loading state */
.favorite-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.favorite-btn.loading i {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/*css series*/
/* Estilos para temporadas desplegables */
.seasons-section {
  margin: 40px 0;
  padding: 0 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.seasons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.season-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #2a2a2a;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.season-header:hover {
  background-color: #333;
}

.season-header h3 {
  margin: 0;
  color: #00bfa5;
  font-size: 1.3rem;
}

.episodes-count {
  color: #bdbdbd;
  font-size: 0.9rem;
  background-color: #444;
  padding: 5px 10px;
  border-radius: 15px;
}

.episodes-grid {
  display: none;
  padding: 20px;
  background-color: #1a1a1a;
  gap: 15px;
  flex-direction: column;
}

.season-item.active .episodes-grid {
  display: flex;
}

.episode-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.episode-item:hover {
  border-color: #00bfa5;
  transform: translateY(-2px);
}

.episode-info {
  flex: 1;
}

.episode-number {
  color: #00bfa5;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.episode-title {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.episode-meta {
  display: flex;
  gap: 15px;
  color: #bdbdbd;
  font-size: 0.9rem;
}

.episode-actions {
  display: flex;
  gap: 10px;
}

.episode-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.watch-btn {
  background-color: #00bfa5;
  color: white;
}

.watch-btn:hover {
  background-color: #008f7a;
}

.download-btn {
  background-color: #3742fa;
  color: white;
}

.download-btn:hover {
  background-color: #2f36f0;
}

/* Indicador de flecha para temporadas desplegables */
.season-header::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #00bfa5;
  transition: transform 0.3s ease;
}

.season-item.active .season-header::after {
  transform: rotate(180deg);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .episode-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .episode-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .episode-btn {
    flex: 1;
    justify-content: center;
  }
  
  .season-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Estilos para cuando no hay temporadas */
.no-seasons {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

.no-seasons i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-seasons p {
  font-size: 1.2rem;
  color: var(--text-gray);
}

/* ===== ESTILOS PARA SERIES ===== */
/* Estilos para temporadas desplegables */
.seasons-section {
  margin: 40px 0;
}

.seasons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.season-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #333;
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.season-header:hover {
  background: rgba(0, 0, 0, 0.4);
}

.season-header h3 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.3rem;
}

.season-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.episodes-count {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.season-toggle {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.season-toggle.open {
  transform: rotate(180deg);
}

.episodes-grid {
  display: none;
  padding: 20px;
  background: var(--background-dark);
  border-top: 1px solid #333;
}

.episodes-grid.open {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.episode-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.episode-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.episode-info {
  margin-bottom: 15px;
}

.episode-number {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.episode-title {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.85rem;
}

.episode-actions {
  display: flex;
  gap: 10px;
}

.episode-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.watch-btn {
  background: #00bfa5;
  color: white;
}

.watch-btn:hover {
  background: #00bfa5;
}

.download-btn {
  background: #6C5CE7;
  color: white;
}

.download-btn:hover {
  background: #5A4FCF;
}

/* Estilos para cuando no hay temporadas */
.no-seasons {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

.no-seasons i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-seasons p {
  font-size: 1.2rem;
  color: var(--text-gray);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .episodes-grid.open {
    grid-template-columns: 1fr;
  }
  
  .season-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .season-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .episode-actions {
    flex-direction: column;
  }
}


