.podcast-catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tarjeta Cerrada del Podcast */
.podcast-series-card {
  background: var(--bg-card, #11131F);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.podcast-series-card:hover {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 12px 36px rgba(192, 132, 252, 0.1);
}

.podcast-series-card.is-open {
  border-color: rgba(192, 132, 252, 0.5);
}

/* Cabecera / Banner Clickeable */
.podcast-series-summary {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.08) 0%, rgba(17, 19, 31, 0.6) 100%);
  transition: background 0.2s ease;
}

.podcast-series-summary:hover {
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.15) 0%, rgba(17, 19, 31, 0.8) 100%);
}

.podcast-series-main-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.podcast-series-cover {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.podcast-series-card:hover .podcast-series-cover {
  transform: scale(1.03);
}

.podcast-series-text {
  flex: 1;
  min-width: 0;
}

.podcast-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #C084FC;
  background: rgba(192, 132, 252, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.podcast-series-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  line-height: 1.3;
}

.podcast-series-desc {
  font-size: 13px;
  color: var(--text-secondary, #94A3B8);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-series-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-toggle-episodes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.15);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.35);
  transition: all 0.2s ease;
}

.podcast-series-card:hover .btn-toggle-episodes {
  background: #C084FC;
  color: #0B0C16;
}

.toggle-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.podcast-series-card.is-open .toggle-arrow {
  transform: rotate(180deg);
}

/* Panel Desplegable que contiene el reproductor y los 21 episodios */
.podcast-series-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background: rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.podcast-series-card.is-open .podcast-series-drawer {
  display: block;
}

/* Reproductor Activo del Podcast dentro del cajón */
.podcast-active-playback {
  padding: 24px 28px 20px;
  background: rgba(17, 19, 31, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.podcast-now-playing-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
}

.podcast-np-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.podcast-np-title {
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.podcast-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-podcast-play-main {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C084FC;
  color: #0B0C16;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.4);
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}
.btn-podcast-play-main:hover {
  transform: scale(1.08);
  background: #D8B4FE;
}
.btn-podcast-play-main svg {
  width: 18px;
  height: 18px;
}

.podcast-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.podcast-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.podcast-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #C084FC;
  cursor: pointer;
}

.podcast-time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary, #64748B);
}

/* Listado de Episodios */
.podcast-episodes-section {
  padding: 24px 28px 32px;
}

.episodes-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.episodes-list-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.episodes-count-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--text-secondary);
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.episode-item-card:hover {
  background: rgba(192, 132, 252, 0.06);
  border-color: rgba(192, 132, 252, 0.25);
  transform: translateX(4px);
}

.episode-item-card.is-active-episode {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.45);
}

.episode-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.episode-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.episode-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-play-episode-card {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.episode-item-card:hover .btn-play-episode-card {
  background: rgba(192, 132, 252, 0.8);
  color: #0B0C16;
}

.episode-item-card.is-active-episode .btn-play-episode-card {
  background: #C084FC;
  color: #0B0C16;
}

.episode-details {
  flex: 1;
  min-width: 0;
}

.episode-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-desc-text {
  font-size: 11px;
  color: var(--text-secondary, #94A3B8);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--text-tertiary, #64748B);
}

.episode-right-time {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .podcast-series-summary {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .podcast-series-actions {
    width: 100%;
  }
  .btn-toggle-episodes {
    width: 100%;
    justify-content: center;
  }
  .podcast-active-playback {
    padding: 16px;
  }
  .podcast-episodes-section {
    padding: 16px;
  }
  .episode-right-time {
    display: none;
  }
}
