/* ============================= */
/* ESTILOS PERFIL DE USUARIO     */
/* ============================= */
.perfil-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.perfil-hero-card {
  background: linear-gradient(135deg, #231942 0%, #1E1A36 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 4px 24px rgba(162, 89, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.perfil-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.perfil-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #2D2350;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #A259FF;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.10);
  overflow: hidden;
}
.perfil-identity-text {
  flex: 1;
  min-width: 0;
}
.perfil-chip-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.perfil-badge {
  background: #A259FF;
  color: #fff;
  border-radius: 1rem;
  padding: 0.18rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-block;
}
.perfil-badge.soft {
  background: #231942;
  color: #A259FF;
  border: 1px solid #A259FF;
}
.perfil-badge.success {
  background: #4CAF50;
  color: #fff;
}
.perfil-badge.danger {
  background: #F44336;
  color: #fff;
}
.perfil-sub {
  color: #A259FF;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.perfil-bio {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.perfil-generos {
  margin-bottom: 0.5rem;
}
.perfil-meta-inline {
  display: flex;
  gap: 1.2rem;
  color: #bbb;
  font-size: 0.98rem;
  flex-wrap: wrap;
}
.perfil-quick-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
}
.stat-card {
  background: #231942;
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.08);
}
.stat-icon {
  font-size: 1.7rem;
  color: #A259FF;
}
.perfil-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.perfil-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.perfil-column.side {
  flex: 1.1;
  min-width: 260px;
  max-width: 350px;
}
.perfil-card {
  background: #231942;
  border-radius: 1.1rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.08);
  padding: 1.3rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.perfil-card-header {
  margin-bottom: 0.7rem;
}
.perfil-card-header .eyebrow {
  color: #A259FF;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.perfil-card-header h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
}
.perfil-card-header .muted {
  color: #bbb;
  font-size: 0.98rem;
}
.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chip {
  background: #A259FF;
  color: #fff;
  border-radius: 1rem;
  padding: 0.18rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.chip.muted {
  background: #231942;
  color: #A259FF;
  border: 1px solid #A259FF;
}
.chip.success {
  background: #4CAF50;
  color: #fff;
}
.chip.warning {
  background: #FF9800;
  color: #fff;
}
.chip.compact {
  font-size: 0.85rem;
  padding: 0.12rem 0.5rem;
}
.chip.removable button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1em;
  margin-left: 0.3em;
  cursor: pointer;
}
.listas-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.lista-card {
  background: #1E1A36;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.lista-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lista-chip-row {
  display: flex;
  gap: 0.5rem;
}
.actividad-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.actividad-card {
  background: #1E1A36;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.actividad-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #231942;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #A259FF;
  margin-right: 0.7rem;
}
.actividad-icon.success {
  background: #4CAF50;
  color: #fff;
}
.actividad-icon.accent {
  background: #FFD24A;
  color: #231942;
}
.actividad-card .eyebrow {
  color: #A259FF;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.actividad-card h4 {
  color: #fff;
  font-size: 1.08rem;
  margin: 0 0 0.2rem 0;
}
.actividad-card .muted {
  color: #bbb;
  font-size: 0.98rem;
}
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #A259FF;
  background: #231942;
  border-radius: 1rem;
  padding: 2.5rem 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  gap: 0.7rem;
}
.perfil-form label {
  color: #A259FF;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
  display: block;
}
.perfil-form input, .perfil-form textarea {
  width: 100%;
  padding: 0.7rem 1.1rem;
  border-radius: 0.7rem;
  border: 2px solid #A259FF;
  background: #231942;
  color: #fff;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  margin-bottom: 0.5rem;
  transition: border 0.2s;
}
.perfil-form input:focus, .perfil-form textarea:focus {
  border-color: #6A1B9A;
}
.perfil-form .chips {
  margin-bottom: 0.5rem;
}
.perfil-form .toggle-group {
  display: flex;
  gap: 1.2rem;
  margin: 0.7rem 0 1rem 0;
}
.perfil-form .toggle-group label {
  font-size: 0.98rem;
  color: #bbb;
  font-weight: 500;
  margin: 0;
}
.perfil-form .ghost-btn {
  background: none;
  border: 2px solid #A259FF;
  color: #A259FF;
  border-radius: 2rem;
  padding: 0.5rem 1.3rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.perfil-form .ghost-btn:hover {
  background: #A259FF;
  color: #fff;
}
.avatar-uploader {
  margin-bottom: 1rem;
}
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.perfil-avatar.preview {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}
.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-message {
  font-size: 0.95rem;
  color: #A259FF;
}
.form-message.success {
  color: #4CAF50;
}
.form-message.error {
  color: #F44336;
}
/* Responsive para perfil */
@media (max-width: 1024px) {
  .perfil-section {
    flex-direction: column;
    gap: 2rem;
  }
  .perfil-column.side {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .perfil-page {
    padding: 1rem 0.2rem 2rem 0.2rem;
    gap: 1.2rem;
  }
  .perfil-hero-card {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    gap: 1rem;
  }
  .perfil-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  .stat-card {
    padding: 0.7rem 0.7rem;
    font-size: 0.95rem;
  }
  .perfil-section {
    gap: 1.2rem;
  }
  .perfil-card {
    padding: 0.8rem 0.6rem 0.7rem 0.6rem;
    gap: 0.7rem;
  }
  .actividad-card, .lista-card {
    padding: 0.7rem 0.6rem;
    gap: 0.7rem;
  }
  .actividad-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin-right: 0.4rem;
  }
  .placeholder {
    padding: 1.2rem 0.3rem;
    font-size: 1rem;
  }
}
/* Ajustes para logos y botón de reproducir en canales IPTV */
.iptv-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #2D2350;
  border-radius: 0.6rem;
  background: transparent;
  transition: background 0.2s;
  flex-wrap: nowrap;
}
.iptv-channel:hover {
  background: #2D2350;
}
.iptv-channel-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iptv-channel-icon img, .iptv-channel-icon i {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #18122B;
}
.iptv-channel-info {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}
.iptv-channel-info h4 {
  font-size: 1.08rem;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iptv-channel-info p {
  font-size: 0.92rem;
  color: #A259FF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-play-iptv {
  flex: 0 0 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-left: 0.5rem;
}
.btn-play-iptv:hover {
  background: linear-gradient(135deg, #B87FFF 0%, #7B2DA8 100%);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .iptv-channel {
    gap: 0.5rem;
    padding: 0.5rem 0.2rem;
  }
  .iptv-channel-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }
  .iptv-channel-icon img, .iptv-channel-icon i {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
  }
  .btn-play-iptv {
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    font-size: 1rem;
    margin-left: 0.2rem;
  }
  .iptv-channel-info h4 {
    font-size: 0.95rem;
  }
  .iptv-channel-info p {
    font-size: 0.8rem;
  }
}
/* Mejoras responsivas para lista de canales IPTV */
@media (max-width: 768px) {
  .iptv-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.2rem;
  }
  .iptv-channels-list {
    padding: 0.7rem 0.5rem;
    border-radius: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .iptv-channels-list h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .iptv-channels {
    max-height: 320px;
    padding: 0.2rem 0;
  }
  .iptv-channel {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0.3rem;
    gap: 0.7rem;
  }
  .iptv-channel-icon img, .iptv-channel-icon i {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .iptv-channel-info h4 {
    font-size: 1rem;
  }
  .iptv-channel-info p {
    font-size: 0.85rem;
  }
  .btn-play-iptv {
    min-width: 36px;
    min-height: 36px;
    font-size: 1.1rem;
    padding: 0.3rem 0.3rem;
  }
}
/* ============================= */
/* ESTILOS PARA NOTIFICAR GRUPO  */
/* ============================= */
.notificar-grupo-section {
  background: #1E1A36;
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.08);
}
.notificar-grupo-section h2 {
  color: #A259FF;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
#formNotificarGrupo {
  display: flex;
  gap: 1rem;
  align-items: center;
}
#mensajeNotificar {
  flex: 1;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 2px solid #A259FF;
  background: #231942;
  color: #fff;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border 0.2s;
}
#mensajeNotificar:focus {
  border-color: #6A1B9A;
}
#notificarStatus {
  margin-top: 0.7rem;
  font-size: 1.05rem;
  min-height: 1.2em;
}
.btn-notificar {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.7rem;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.10);
  transition: all 0.2s;
}
.btn-notificar:hover {
  background: linear-gradient(135deg, #B87FFF 0%, #7B2DA8 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(162, 89, 255, 0.18);
}

/* ============================= */
/* BOTONES EDITAR Y ELIMINAR     */
/* ============================= */
.btn-edit-admin {
  background: #231942;
  color: #4CAF50;
  border: 2px solid #4CAF50;
  border-radius: 2rem;
  padding: 0.5rem 1.3rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.btn-edit-admin:hover {
  background: #4CAF50;
  color: #fff;
}
.btn-delete-admin {
  background: #231942;
  color: #F44336;
  border: 2px solid #F44336;
  border-radius: 2rem;
  padding: 0.5rem 1.3rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.btn-delete-admin:hover {
  background: #F44336;
  color: #fff;
}
.results-container, .catalog-admin-grid {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.results-container::-webkit-scrollbar, .catalog-admin-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
/* ============================= */
/* ESTILOS PARA RESULTADOS Y CATÁLOGO ADMIN */
/* ============================= */

.result-card-admin {
  background: #1E1A36;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(162, 89, 255, 0.10);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid transparent;
  position: relative;
}
.result-card-admin:hover {
  box-shadow: 0 8px 32px rgba(162, 89, 255, 0.18);
  border-color: #A259FF;
  transform: translateY(-2px) scale(1.01);
}
.result-card-admin .result-poster {
  width: 80px;
  height: 120px;
  border-radius: 0.7rem;
  object-fit: cover;
  background: #231942;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.result-card-admin .result-info {
  flex: 1;
  min-width: 0;
}
.result-card-admin .result-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.result-card-admin .result-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.result-card-admin .badge-admin {
  background: #A259FF;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.18rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}
.result-card-admin .badge-admin.year {
  background: #fff;
  color: #A259FF;
  border: 1px solid #A259FF;
}
.result-card-admin .result-overview {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.result-card-admin .result-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.result-card-admin .btn-add-admin {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.10);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.result-card-admin .btn-add-admin:hover {
  background: linear-gradient(135deg, #B87FFF 0%, #7B2DA8 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(162, 89, 255, 0.18);
}

/* Catálogo admin: tarjetas */
.catalog-admin-item {
  background: #1E1A36;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(162, 89, 255, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid transparent;
  position: relative;
}
.catalog-admin-item:hover {
  box-shadow: 0 8px 32px rgba(162, 89, 255, 0.18);
  border-color: #A259FF;
  transform: translateY(-2px) scale(1.01);
}
.catalog-admin-item .catalog-poster {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #231942;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.catalog-admin-item .catalog-info {
  padding: 1.1rem 1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.catalog-admin-item .catalog-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.2rem 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.catalog-admin-item .catalog-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.catalog-admin-item .badge-admin {
  background: #A259FF;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.18rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-block;
}
.catalog-admin-item .badge-admin.year {
  background: #fff;
  color: #A259FF;
  border: 1px solid #A259FF;
}
.catalog-admin-item .catalog-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.catalog-admin-item .btn-edit-admin, .catalog-admin-item .btn-delete-admin {
  background: #231942;
  color: #A259FF;
  border: 1.5px solid #A259FF;
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.catalog-admin-item .btn-edit-admin:hover {
  background: #A259FF;
  color: #fff;
}
.catalog-admin-item .btn-delete-admin:hover {
  background: #F44336;
  color: #fff;
  border-color: #F44336;
}
/* ============================= */
/* ESTILOS PARA LOGIN Y REGISTRO */
/* ============================= */

/* ============================= */
/* ESTILOS PARA PANEL ADMIN      */
/* ============================= */
/* ============================= */
/* ESTILOS PARA ADMIN TABS Y SECCIONES */
/* ============================= */

.admin-tabs {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.admin-tab {
  background: #231942;
  color: #fff;
  border: 2px solid #2D2350;
  border-radius: 2rem 2rem 0 0;
  padding: 0.8rem 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  outline: none;
}
.admin-tab.active, .admin-tab:hover {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  border-color: #A259FF;
  z-index: 2;
}
.tab-badge {
  background: #F44336;
  color: #fff;
  border-radius: 1rem;
  padding: 0.1rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.5rem;
  display: inline-block;
}

.admin-tabs-content {
  background: #231942;
  border-radius: 0 0 1.2rem 1.2rem;
  box-shadow: 0 2px 12px rgba(162, 89, 255, 0.08);
  padding: 2.2rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
}

.admin-section {
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 1.2rem;
}
.section-header h2 {
  color: #A259FF;
  font-size: 1.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-subtitle {
  color: #bbb;
  font-size: 1rem;
  margin: 0;
}
.section-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.btn-sync {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.12);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-sync:hover {
  background: linear-gradient(135deg, #B87FFF 0%, #7B2DA8 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(162, 89, 255, 0.18);
}

.search-section {
  background: #1E1A36;
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.06);
}
.search-box-admin {
  display: flex;
  align-items: center;
  background: #231942;
  border-radius: 2rem;
  border: 2px solid #2D2350;
  padding: 0.1rem 1rem 0.1rem 0.7rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.search-box-admin i {
  color: #A259FF;
  font-size: 1.1rem;
  margin-right: 0.7rem;
}
.search-box-admin input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 0.5rem;
  flex: 1;
}
.search-box-admin input::placeholder {
  color: #888;
}
.search-loading {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #A259FF;
  font-size: 1.1rem;
}
.results-container {
  background: #18122B;
  border-radius: 1rem;
  padding: 1.2rem;
  min-height: 60px;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.04);
  margin-bottom: 1.2rem;
}
.catalog-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.sync-loading {
  color: #A259FF;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pedidos-admin-container {
  background: #1E1A36;
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.06);
  min-height: 120px;
}

@media (max-width: 900px) {
  .admin-tabs-content {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .admin-section {
    margin-bottom: 1.2rem;
  }
  .catalog-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.7rem;
  }
}

.admin-header {
  background: linear-gradient(135deg, #2D2350 0%, #1E1A36 100%);
  padding: 2rem 2rem 1.5rem 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 18px rgba(162, 89, 255, 0.10);
  margin-bottom: 2.5rem;
  text-align: center;
}
.admin-header h1 {
  color: #A259FF;
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.admin-header p {
  color: #ccc;
  font-size: 1.1rem;
  margin: 0;
}

.admin-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.stat-card {
  background: #231942;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(162, 89, 255, 0.10);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(162, 89, 255, 0.18);
}
.stat-icon {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.18);
}
.stat-info h3 {
  color: #fff;
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
}
.stat-info p {
  color: #A259FF;
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 700px) {
  .admin-stats {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .stat-card {
    width: 100%;
    justify-content: flex-start;
    padding: 1.2rem 1.5rem;
  }
}

.auth-page {
  background: linear-gradient(135deg, #18122B 0%, #231942 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 3rem auto;
  background: #231942;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(162, 89, 255, 0.3));
}

.auth-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-icon {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(162, 89, 255, 0.25);
}

.auth-container h2 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.msg {
  background: rgba(244,67,54,0.12);
  color: #F44336;
  border: 1px solid #F44336;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: #1E1A36;
  border-radius: 2rem;
  margin-bottom: 1.2rem;
  border: 2px solid #2D2350;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.1rem 1rem 0.1rem 0.5rem;
  width: 100%;
}

.input-icon {
  color: #A259FF;
  font-size: 1.1rem;
  margin-right: 0.7rem;
}

.input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 0.5rem;
  flex: 1;
}

.input-group input::placeholder {
  color: #888;
}

.auth-container button[type="submit"] {
  width: 100%;
  padding: 0.9rem 0;
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(162, 89, 255, 0.18);
  transition: all 0.3s;
}

.auth-container button[type="submit"]:hover {
  background: linear-gradient(135deg, #B87FFF 0%, #7B2DA8 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(162, 89, 255, 0.25);
}

.auth-container a {
  color: #A259FF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-container a:hover {
  color: #fff;
  text-decoration: underline;
}
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  background: #18122B;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

header {
  background: #1E1A36;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

header h1 {
  color: #A259FF;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin: 0;
  font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(162, 89, 255, 0.4);
}

/* Logo del header */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-container a:hover {
  transform: scale(1.05);
}

.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(162, 89, 255, 0.3));
}

nav {
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li {
  position: relative;
}

/* Botones circulares del header */
.nav-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D2350 0%, #1E1A36 100%);
  border: 2px solid #A259FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #A259FF;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(162, 89, 255, 0.3);
  padding: 0;
  flex-shrink: 0;
  position: relative;
}

.nav-btn:hover {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.6);
  border-color: #fff;
  color: #fff;
}

.nav-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.nav-btn i {
  display: block;
  line-height: 1;
}

/* Badge de notificaciones */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1E1A36;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  animation: pulse-notification 2s ease-in-out infinite;
  line-height: 1;
}

@keyframes pulse-notification {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.6);
  }
}

.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2D2350;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.notification-item.unread {
  background: rgba(162, 89, 255, 0.05);
  border-left: 3px solid #A259FF;
}

.notification-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.notification-icon.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.notification-icon.info {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.notification-icon.warning {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-content p {
  margin: 0 0 0.25rem 0;
  color: #fff;
  font-size: 0.9rem;
}

.notification-content strong {
  font-weight: 600;
}

.notification-content span {
  display: block;
  color: #999;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.notification-content small {
  color: #666;
  font-size: 0.75rem;
}

.notifications-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #2D2350;
  text-align: center;
  background: #1E1A36;
  border-radius: 0 0 1rem 1rem;
}

.notifications-footer a {
  color: #A259FF;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.notifications-footer a:hover {
  color: #B87FFF;
}

.loading-notif, .no-notif {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.loading-notif i, .no-notif i {
  font-size: 2.5rem;
  color: #A259FF;
  margin-bottom: 0.75rem;
  display: block;
}

.loading-notif p, .no-notif p {
  margin: 0;
  font-size: 0.9rem;
}

.notification-icon.error {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
}

/* Modal de Notificaciones */
.modal-notificaciones {
  max-width: 800px !important;
}

.modal-header-notif {
  background: linear-gradient(135deg, #2D2350 0%, #1E1A36 100%);
  padding: 1.5rem 2rem;
  border-radius: 1.5rem 1.5rem 0 0;
  border-bottom: 2px solid #A259FF;
}

.modal-title-notif {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-notif i {
  font-size: 1.5rem;
  color: #A259FF;
}

.modal-title-notif h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-body-notif {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #A259FF #231942;
}

.modal-body-notif::-webkit-scrollbar {
  width: 8px;
}

.modal-body-notif::-webkit-scrollbar-track {
  background: #231942;
  border-radius: 1rem;
}

.modal-body-notif::-webkit-scrollbar-thumb {
  background: #A259FF;
  border-radius: 1rem;
}

.modal-footer-notif {
  background: linear-gradient(135deg, #2D2350 0%, #1E1A36 100%);
  padding: 1.25rem 2rem;
  border-radius: 0 0 1.5rem 1.5rem;
  border-top: 2px solid #A259FF;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mark-all-btn {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  border: none;
  border-radius: 2rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.4);
}

.mark-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162, 89, 255, 0.6);
  background: linear-gradient(135deg, #B87FFF 0%, #7B2DA8 100%);
}

.mark-all-btn:active {
  transform: translateY(0);
}

.notif-card {
  background: #231942;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.notif-card:hover {
  border-color: #A259FF;
  background: #2D2350;
  transform: translateX(5px);
}

.notif-card.unread {
  border-color: #A259FF;
  background: rgba(162, 89, 255, 0.1);
  box-shadow: 0 0 15px rgba(162, 89, 255, 0.2);
}

.notif-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.notif-icon.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.notif-icon.info {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

/* Metadata en modal (TMDB) */
.media-metadata {
  margin: 0.75rem 0 1rem 0;
  color: #ddd;
  font-size: 0.9rem;
}
.media-metadata .meta-original {
  font-style: italic;
  color: #bbb;
  margin-bottom: 0.25rem;
}
.media-metadata .meta-tagline {
  color: #bfb3ff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.media-metadata .meta-row { display:flex; flex-wrap:wrap; gap:0.6rem; margin:0.25rem 0; }
.media-metadata .meta-item { background:rgba(255,255,255,0.03); padding:0.25rem 0.6rem; border-radius:0.5rem; color:#ddd; }
.media-metadata .meta-links { margin-top:0.5rem; }
.media-metadata .meta-links a, .media-metadata .meta-links button { color:#fff; text-decoration:none; margin-right:0.6rem; }
.btn-small { background:linear-gradient(135deg,#A259FF,#7B2DA8); border:none; color:#fff; padding:0.35rem 0.6rem; border-radius:0.45rem; cursor:pointer; }
.meta-main-cast { margin-top:0.6rem; display:flex; gap:0.6rem; align-items:center; flex-wrap:wrap; }
.meta-main-cast .mc-item { display:flex; flex-direction:column; align-items:center; width:64px; }
.meta-main-cast .mc-item img { width:64px; height:64px; object-fit:cover; border-radius:50%; border:2px solid rgba(255,255,255,0.06); }
.meta-main-cast .mc-item small { display:block; text-align:center; font-size:0.75rem; margin-top:0.25rem; color:#ddd; }
.meta-updated { margin-top:0.5rem; color:#9aa; font-size:0.8rem; }

/* Header badges: director, certification and company logos */
.modal-meta .badge-director, .modal-meta .badge-cert {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #ddd;
  background: rgba(255,255,255,0.03);
  padding: 0.25rem 0.5rem;
  border-radius: 0.45rem;
}
.modal-meta .badge-companies img.company-logo {
  height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 3px;
}
.modal-meta .badge-companies .company-name { font-size:0.8rem; color:#ddd; margin-left:6px; }

/* Pill para la clasificación (badge visual) */
.modal-meta .badge-cert .cert-pill,
.cert-pill {
  display: inline-block;
  background: linear-gradient(90deg,#FFD24A,#FFB142);
  color: #111;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.82rem;
  margin-left: 0.35rem;
  line-height: 1;
}

/* Estilos para sección de cast en modal */
#castSection {
  margin-bottom: 2rem;
  background: rgba(45, 35, 80, 0.3);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(162, 89, 255, 0.2);
}

#castSection h3 {
  color: #A259FF;
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.modal-cast {
  padding: 0.5rem 0 1rem 0;
}
.cast-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cast-list {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  scroll-behavior: smooth;
  padding-bottom: 6px; /* small spacing to avoid touching the edge */
}
.cast-preview .cast-list { flex: 1 1 auto; }
.cast-item {
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cast-item:focus { outline: none; }
.cast-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  border: 2px solid rgba(162,89,255,0.12);
}
.cast-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cast-name {
  font-size: 0.7rem;
  color: #ddd;
  display: block;
  line-height: 1.1;
}

/* Asegurar que los nombres usen Poppins (siempre que esté cargada) */
.cast-name, .cast-item {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.cast-name {
  font-size: 0.72rem; /* ajustar ligeramente para legibilidad */
  color: #f1eef9;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* mostrar hasta 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cast-more {
  background: linear-gradient(135deg,#A259FF 0%,#6A1B9A 100%);
  color: #fff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(162,89,255,0.18);
}
.cast-list::-webkit-scrollbar { display: none; }
.cast-list { -ms-overflow-style: none; scrollbar-width: none; }

/* Badge para filtro por actor */
.actor-filter-badge {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  background: rgba(35,25,66,0.6);
  border-radius: 999px;
  border: 1px solid rgba(162,89,255,0.12);
  color: #fff;
  font-size: 0.9rem;
}
.actor-filter-badge strong { color: #A259FF; margin-left: 0.25rem; }
.clear-actor-filter {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}


.notif-icon.warning {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.notif-icon.error {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content h4 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.notif-content p {
  margin: 0 0 0.75rem 0;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notif-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.notif-footer small {
  color: #999;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mark-read-btn {
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  border: none;
  border-radius: 1.5rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mark-read-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(162, 89, 255, 0.4);
}

.read-badge {
  color: #4CAF50;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

/* Dropdown del usuario */
.user-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: #231942;
  border-radius: 0.85rem;
  padding: 0.4rem;
  min-width: 170px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 2px solid #A259FF;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown hover eliminado - ahora usa modal */

.dropdown-menu a,
.dropdown-menu .user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  color: #fff;
  text-decoration: none;
  border-radius: 0.6rem;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: #2D2350;
  color: #A259FF;
  transform: translateX(4px);
}

.dropdown-menu .user-info {
  color: #A259FF;
  font-weight: 600;
  border-bottom: 1px solid #2D2350;
  margin-bottom: 0.2rem;
  cursor: default;
  padding-bottom: 0.5rem;
}

.dropdown-menu i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #A259FF;
  background: linear-gradient(135deg, #2D2350 0%, #1A132F 100%);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-avatar.small {
  width: 28px;
  height: 28px;
  border-width: 1.5px;
}

main {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: auto;
  width: 100%;
  overflow-x: hidden;
}

section {
  background: transparent;
  margin-bottom: 2rem;
  padding: 0;
}

/* Controles del catálogo */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #A259FF;
  font-size: 1.1rem;
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3.25rem;
  background: #231942;
  border: 2px solid #2D2350;
  border-radius: 2rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.search-bar input:focus {
  border-color: #A259FF;
  box-shadow: 0 4px 16px rgba(162, 89, 255, 0.3);
}

.search-bar input::placeholder {
  color: #666;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.year-filter-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #231942;
  border: 2px solid #2D2350;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.year-filter-wrapper:hover {
  background: #2D2350;
  border-color: #A259FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.3);
}

.year-filter-wrapper i {
  color: #A259FF;
  font-size: 0.9rem;
  pointer-events: none;
}

.year-filter {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  min-width: 120px;
}

.year-filter:focus {
  outline: none;
}

.year-filter option {
  background: #18122B;
  color: #fff;
  padding: 0.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #231942;
  border: 2px solid #2D2350;
  border-radius: 2rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn i {
  font-size: 1.1rem;
}

.filter-btn:hover {
  background: #2D2350;
  border-color: #A259FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  border-color: #A259FF;
  color: #fff;
  box-shadow: 0 4px 16px rgba(162, 89, 255, 0.5);
}

.filter-btn.active:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Catálogo Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.catalog-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #231942;
}

.catalog-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(162, 89, 255, 0.2);
}

.catalog-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.no-poster {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #2D2350 0%, #1E1A36 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A259FF;
  font-size: 3rem;
}

.catalog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(30, 26, 54, 0.95) 0%, rgba(30, 26, 54, 0.8) 60%, transparent 100%);
  color: #fff;
}

.catalog-overlay h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.catalog-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalog-badges .badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(162, 89, 255, 0.9);
  border-radius: 0.4rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.catalog-badges .badge-rating {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.catalog-badges .badge-year {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive para catálogo */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .catalog-item img, .no-poster {
    height: 225px;
  }
  
  .catalog-overlay {
    padding: 0.75rem;
  }
  
  .catalog-overlay h3 {
    font-size: 0.9rem;
  }
  
  .catalog-badges .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Sección IPTV */
.iptv-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.iptv-player-container {
  position: relative;
  background: #1E1A36;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.iptv-player-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #A259FF;
  background: linear-gradient(135deg, #1E1A36 0%, #231942 100%);
}

.iptv-player-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.iptv-player-placeholder p {
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

.iptv-player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iptv-player-info {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  backdrop-filter: blur(10px);
}

.iptv-player-info i {
  color: #A259FF;
}

.iptv-channels-list {
  background: #231942;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.iptv-channels-list h3 {
  color: #A259FF;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.iptv-channels-list h3 i {
  font-size: 1rem;
}

.iptv-channels {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #A259FF #231942;
}

.iptv-channels::-webkit-scrollbar {
  width: 6px;
}

.iptv-channels::-webkit-scrollbar-track {
  background: #231942;
}

.iptv-channels::-webkit-scrollbar-thumb {
  background: #A259FF;
  border-radius: 3px;
}

.loading-notif {
  text-align: center;
  color: #ccc;
  padding: 2rem;
}

.loading-notif i {
  font-size: 2rem;
  color: #A259FF;
  margin-bottom: 1rem;
}

.loading-notif p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/* Responsive para IPTV */
@media (max-width: 1024px) {
  .iptv-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .iptv-channels-list {
    order: -1;
  }
}

/* Modal del reproductor */
.player-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.player-modal.active {
  display: flex;
}

.player-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.player-modal-content {
  position: relative;
  background: #1E1A36;
  border-radius: 1rem;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  max-height: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 2001;
}

.player-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #A259FF;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.player-close:hover {
  background: #A259FF;
  transform: rotate(90deg);
}

#playerIframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive para player modal */
@media (max-width: 768px) {
  .player-modal-content {
    width: 95%;
    height: 70vh;
  }
}

/* Modal de detalles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #1E1A36 0%, #231942 100%);
  border-radius: 1.5rem;
  max-width: 1100px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(162, 89, 255, 0.1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 2px solid rgba(162, 89, 255, 0.3);
  z-index: 1001;
  margin: auto;
  backdrop-filter: blur(20px);
}

.modal.active .modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content::-webkit-scrollbar {
  display: none;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #A259FF;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: #A259FF;
  transform: rotate(90deg);
}

.modal-header {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(30, 26, 54, 1) 0%, rgba(30, 26, 54, 0.8) 60%, transparent 100%);
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.modal-header-overlay h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.modal-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.modal-meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
}

.modal-meta .badge i {
  font-size: 0.85rem;
}

.modal-meta .badge-rating {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.modal-meta .badge-year {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botón de reproducir en header: separación icono/texto y fuente Poppins */
.modal-play-btn {
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* separa icono del texto */
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7b5cff, #a259ff);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(123, 92, 255, 0.3);
}

.modal-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 92, 255, 0.4);
}

.modal-play-btn i { margin-left: 0; margin-right: 0.35rem; }

/* Asegurar visibilidad y tamaño de logos y director badge */
.modal-meta .badge-companies img.company-logo { 
  display: inline-block; 
  height: 20px; 
  margin-left: 0.3rem; 
  border-radius: 3px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-meta .badge-director { 
  display: inline-flex; 
  align-items: center;
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.modal-body {
  padding: 2.5rem;
  max-height: calc(90vh - 400px);
  overflow-y: auto;
  background: #1E1A36;
  border-radius: 0 0 1.5rem 1.5rem;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #1E1A36;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #A259FF;
  border-radius: 1rem;
}

.synopsis {
  margin-bottom: 2rem;
  background: rgba(45, 35, 80, 0.3);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(162, 89, 255, 0.2);
}

.synopsis h3 {
  color: #A259FF;
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.synopsis p {
  color: #ccc;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.season-selector {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #2D2350;
  display: flex;
  justify-content: center;
}

.season-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #231942;
  border: 2px solid #2D2350;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
  cursor: pointer;
  min-width: 200px;
}

.season-dropdown:hover {
  border-color: #A259FF;
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.3);
}

.season-dropdown i.fa-list-ol {
  color: #A259FF;
  font-size: 1rem;
}

.season-dropdown select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.season-dropdown select option {
  background: #231942;
  color: #fff;
  padding: 0.5rem;
}

.season-dropdown i.arrow-season {
  color: #A259FF;
  font-size: 0.8rem;
  transition: transform 0.3s;
  pointer-events: none;
  margin-left: auto;
}

.season-dropdown:hover i.arrow-season {
  transform: rotate(180deg);
}

.season-dropdown .season-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  flex: 1;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  border: none;
  border-radius: 2rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(162, 89, 255, 0.4);
}

.play-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px rgba(162, 89, 255, 0.6);
}

.play-btn i {
  font-size: 1.2rem;
}

/* Lista de episodios */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #231942;
  border-radius: 1rem;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.episode-item:hover {
  background: #2D2350;
  border-color: #A259FF;
  transform: translateX(5px);
}

/* New two-column episodes panel for series detail modal */
.episodes-panel {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: flex-start;
}
.episodes-left {
  width: 320px;
  max-width: 40%;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.episode-detail {
  flex: 1 1 auto;
  background: #171228;
  border-radius: 0.75rem;
  padding: 1rem;
  min-height: 160px;
}
.episode-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  cursor: pointer;
  color: #ddd;
  margin-bottom: 0.45rem;
  transition: all 0.18s ease;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
}
.episode-list-item:hover { transform: translateX(4px); background: #241a3a; border-color: rgba(162,89,255,0.12); }
.episode-list-item.active { background: #2D2350; border-color: #A259FF; }
.episode-list-item .epi-num {
  background: rgba(255,255,255,0.05);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  color: #fff;
  min-width: 42px;
  text-align: center;
}
.episode-list-item .epi-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #ddd;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}
.detail-title { color: #fff; margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.detail-meta { color: #aaa; font-size: 0.9rem; margin-bottom: 0.75rem; }
.detail-body { color: #ddd; font-size: 0.95rem; margin-bottom: 0.75rem; }
.detail-actions { margin-top: 0.5rem; }

.detail-still img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 0.5rem; margin-bottom: 0.6rem; }
.detail-overview { color: #ddd; line-height: 1.45; }
.detail-guest { margin-top: 0.75rem; }
.guest-list { display:flex; gap:0.6rem; flex-wrap:wrap; }
.guest-item { width: 72px; text-align:center; color:#ddd; }
.guest-item img { width:72px; height:72px; object-fit:cover; border-radius:8px; display:block; margin:0 auto 0.4rem; }
.guest-name { font-size:0.75rem; }
.guest-noimg { width:72px; height:72px; background:rgba(255,255,255,0.03); border-radius:8px; display:inline-block; margin-bottom:0.4rem; }

@media (max-width: 880px) {
  .episodes-panel { flex-direction: column; }
  .episodes-left { width: 100%; max-height: 220px; }
}

.episode-info {
  flex: 1;
}

.episode-info h4 {
  color: #fff;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.episode-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.episode-number {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.episode-title {
  color: #ddd;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-info p {
  color: #999;
  margin: 0;
  font-size: 0.85rem;
}

.play-btn-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A259FF 0%, #6A1B9A 100%);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-btn-small:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.4);
}

/* Responsive para modal */
@media (max-width: 768px) {
  .modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .modal-header {
    height: 250px;
  }
  
  .modal-header-overlay {
    padding: 1rem;
  }
  
  .modal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .modal-title-section {
    width: 100%;
  }
  
  .modal-header-overlay h2 {
    font-size: 1.3rem;
  }
  
  .modal-meta {
    gap: 0.5rem;
    font-size: 0.7rem;
  }
  
  .modal-meta .badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .synopsis, #castSection {
    padding: 1rem;
  }
  
  .synopsis h3, #castSection h3 {
    font-size: 1.2rem;
  }
}

