/* Podcasts beta — aislado del CSS crítico del sitio */
#podcasts-beta {
  --pb-ink: #1a3548;
  --pb-muted: #3d5160;
  --pb-line: #d9e0e6;
  --pb-blue: #1f6a9e;
  --pb-bg: #f4f7fa;
  --pb-card: #fff;
  --pb-accent: #1faa5a;
  padding: 14px 0 40px;
  color: var(--pb-ink);
}

#podcasts-beta.container_body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#podcasts-beta .container_main {
  box-sizing: border-box;
  /* Mismo gutter horizontal que .column3 del listado de radios */
  padding-left: 8px;
  padding-right: 8px;
}

html.dark-mode #podcasts-beta {
  --pb-ink: #e8eef3;
  --pb-muted: #a8b8c4;
  --pb-line: #2a3a46;
  --pb-bg: #121a21;
  --pb-card: #1a2430;
  --pb-accent: #2ecc71;
}

#podcasts-beta .pb-banner {
  display: none;
}

#podcasts-beta .pb-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pb-muted);
}

#podcasts-beta .pb-crumb a {
  color: var(--pb-blue);
  font-weight: 600;
  text-decoration: none;
}

#podcasts-beta .pb-crumb a:hover,
#podcasts-beta .pb-crumb a:focus {
  text-decoration: underline;
  outline: none;
}

#podcasts-beta .pb-crumb__sep {
  color: var(--pb-line);
  font-weight: 400;
  user-select: none;
}

#podcasts-beta .pb-crumb__current {
  color: var(--pb-ink);
  font-weight: 600;
}

#podcasts-beta .pb-page-head {
  margin: 0 0 18px;
}

#podcasts-beta .pb-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  background: var(--pb-bg);
  max-width: 420px;
}

#podcasts-beta .pb-tab {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-muted);
  background: transparent;
  cursor: pointer;
}

#podcasts-beta .pb-tab.is-active {
  color: #fff;
  background: var(--pb-blue);
}

#podcasts-beta .pb-filter-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pb-muted);
}

#podcasts-beta .pb-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

#podcasts-beta .pb-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pb-muted);
  max-width: none;
}

#podcasts-beta .pb-filter-panel {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  background: var(--pb-card);
  box-shadow: 0 4px 14px rgba(26, 53, 72, 0.05);
}

/* El CSS global del sitio a veces pisa el atributo HTML hidden */
#podcasts-beta .pb-filter-panel[hidden],
#podcasts-beta .pb-filter-panel.is-hidden {
  display: none !important;
}

#podcasts-beta .pb-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: center;
}

#podcasts-beta .pb-filter-row--single {
  grid-template-columns: minmax(220px, 420px);
}

#podcasts-beta .pb-filter-row--podcasts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#podcasts-beta .pb-filter-row--videos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  #podcasts-beta .pb-filter-row,
  #podcasts-beta .pb-filter-row--podcasts,
  #podcasts-beta .pb-filter-row--videos {
    grid-template-columns: 1fr;
  }
  #podcasts-beta .pb-filter-row--single {
    grid-template-columns: 1fr;
  }
}

#podcasts-beta .pb-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#podcasts-beta .pb-filter-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#podcasts-beta .pb-filter-field--inline .pb-filter-label {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

#podcasts-beta .pb-filter-field--inline .pb-select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

#podcasts-beta .pb-filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pb-muted);
}

#podcasts-beta .pb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#podcasts-beta .pb-chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--pb-line);
  border-radius: 999px;
  background: var(--pb-bg);
  color: var(--pb-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

#podcasts-beta .pb-chip.is-active {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
}

#podcasts-beta .pb-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

#podcasts-beta .pb-input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  background: var(--pb-card);
  color: var(--pb-ink);
  font-size: 16px;
}

#podcasts-beta .pb-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: var(--pb-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#podcasts-beta .pb-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

#podcasts-beta .pb-select {
  min-height: 40px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #b7c4ce;
  background: #fff;
  color: #0f2433;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-text-fill-color: #0f2433;
  opacity: 1;
}

#podcasts-beta .pb-select option {
  color: #0f2433;
  font-weight: 600;
  background: #fff;
}

#podcasts-beta .pb-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 8px;
  padding: 14px 12px;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  background: var(--pb-card);
}

#podcasts-beta .pb-pager[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}

#podcasts-beta .pb-pager__btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  background: var(--pb-bg);
  color: var(--pb-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#podcasts-beta .pb-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#podcasts-beta .pb-pager__btn:not(:disabled):hover {
  border-color: var(--pb-blue);
  color: var(--pb-blue);
}

#podcasts-beta .pb-pager__info {
  font-size: 13px;
  color: var(--pb-muted);
  text-align: center;
}

#podcasts-beta .pb-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--pb-muted);
}

#podcasts-beta .pb-hint.is-error {
  color: #b42318;
}

#podcasts-beta .pb-hint.is-loading {
  margin: 28px 0 36px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#podcasts-beta .pb-loading {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 360px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 248, 251, 0.96) 100%);
  border: 1px solid var(--pb-line);
  box-shadow: 0 10px 28px rgba(26, 53, 72, 0.08);
}

#podcasts-beta .pb-loading__visual {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

#podcasts-beta .pb-loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(31, 106, 158, 0.16);
  border-top-color: var(--pb-blue);
  animation: pb-spin 0.85s linear infinite;
}

#podcasts-beta .pb-loading__eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

#podcasts-beta .pb-loading__eq i {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 99px;
  background: var(--pb-blue);
  opacity: 0.85;
  animation: pb-eq 0.9s ease-in-out infinite;
}

#podcasts-beta .pb-loading__eq i:nth-child(1) { animation-delay: 0s; height: 8px; }
#podcasts-beta .pb-loading__eq i:nth-child(2) { animation-delay: 0.12s; height: 14px; }
#podcasts-beta .pb-loading__eq i:nth-child(3) { animation-delay: 0.24s; height: 18px; }
#podcasts-beta .pb-loading__eq i:nth-child(4) { animation-delay: 0.12s; height: 12px; }
#podcasts-beta .pb-loading__eq i:nth-child(5) { animation-delay: 0s; height: 8px; }

#podcasts-beta .pb-loading__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#podcasts-beta .pb-loading__label {
  font-size: 14px;
  font-weight: 650;
  color: var(--pb-ink, #1a3548);
  letter-spacing: 0.01em;
}

#podcasts-beta .pb-loading__track {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(31, 106, 158, 0.12);
  overflow: hidden;
}

#podcasts-beta .pb-loading__bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6a9e 0%, #3d8fc4 50%, #1f6a9e 100%);
  background-size: 200% 100%;
  animation: pb-progress 1.25s ease-in-out infinite;
}

@keyframes pb-spin {
  to { transform: rotate(360deg); }
}

@keyframes pb-eq {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes pb-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  #podcasts-beta .pb-loading__ring,
  #podcasts-beta .pb-loading__eq i,
  #podcasts-beta .pb-loading__bar {
    animation: none;
  }
  #podcasts-beta .pb-loading__bar {
    width: 55%;
    transform: none;
  }
}

#podcasts-beta .pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

#podcasts-beta .pb-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--pb-card);
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#podcasts-beta .pb-card:hover,
#podcasts-beta .pb-card:focus {
  border-color: #8eb6d1;
  box-shadow: 0 10px 24px rgba(26, 53, 72, 0.12);
  transform: translateY(-2px);
  outline: none;
}

#podcasts-beta .pb-card__art-wrap {
  aspect-ratio: 1;
  width: 100%;
  background:
    linear-gradient(180deg, #eef3f7 0%, #e2eaf0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

html.dark-mode #podcasts-beta .pb-card__art-wrap {
  background: linear-gradient(180deg, #1c2833 0%, #152028 100%);
}

#podcasts-beta .pb-card__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
  background: transparent;
}

#podcasts-beta .pb-card__body {
  padding: 12px 13px 14px;
  min-height: 78px;
  border-top: 1px solid var(--pb-line);
}

#podcasts-beta .pb-card__title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#podcasts-beta .pb-card__author {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--pb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Hero player integrado (portada + título + controles) —— */
#podcasts-beta .pb-hero {
  margin: 0 0 22px;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, #e8f3fb 0%, #f7fbfe 55%, #ffffff 100%);
  border: 1px solid #c9dce8;
  box-shadow: 0 10px 28px rgba(26, 53, 72, 0.1);
}

html.dark-mode #podcasts-beta .pb-hero {
  background: linear-gradient(160deg, #1a2c3a 0%, #152430 100%);
  border-color: #2a3f4f;
}

#podcasts-beta .pb-hero__main {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  #podcasts-beta .pb-hero__main {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }
}

#podcasts-beta .pb-hero__art {
  width: 140px;
  height: 140px;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(26, 53, 72, 0.16);
  padding: 6px;
  box-sizing: border-box;
}

html.dark-mode #podcasts-beta .pb-hero__art {
  background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
  #podcasts-beta .pb-hero__art {
    width: 96px;
    height: 96px;
  }
}

#podcasts-beta .pb-hero__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.2;
}

@media (max-width: 640px) {
  #podcasts-beta .pb-hero__title {
    font-size: 18px;
  }
}

#podcasts-beta .pb-hero__author {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--pb-muted);
}

#podcasts-beta .pb-hero__ep {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--pb-ink);
}

#podcasts-beta .pb-hero__ep-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--pb-muted);
}

#podcasts-beta .pb-hero__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#podcasts-beta .pb-hero__controls {
  padding-top: 12px;
  border-top: 1px solid rgba(26, 53, 72, 0.08);
}

html.dark-mode #podcasts-beta .pb-hero__controls {
  border-top-color: rgba(255, 255, 255, 0.08);
}

#podcasts-beta .pb-hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

#podcasts-beta .pb-ctrl {
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(26, 53, 72, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--pb-ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

html.dark-mode #podcasts-beta .pb-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--pb-ink);
}

#podcasts-beta .pb-ctrl--pp {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border: none;
  background: var(--pb-accent);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(31, 170, 90, 0.35);
}

#podcasts-beta .pb-ctrl--pp.is-playing {
  background: #178a48;
}

#podcasts-beta .pb-ctrl--speed {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: var(--pb-blue);
  border-color: rgba(31, 106, 158, 0.28);
}

#podcasts-beta .pb-ctrl--speed:hover,
#podcasts-beta .pb-ctrl--speed:focus {
  border-color: var(--pb-blue);
  background: rgba(31, 106, 158, 0.08);
  outline: none;
}

#podcasts-beta .pb-hero__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

#podcasts-beta .pb-hero__time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--pb-muted);
  min-width: 2.8em;
}

#podcasts-beta .pb-hero__time:last-child {
  text-align: right;
}

#podcasts-beta .pb-hero__seek {
  width: 100%;
  height: 28px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--pb-accent);
}

#podcasts-beta .pb-hero__seek:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#pb-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Episodios */
#podcasts-beta .pb-eps-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

#podcasts-beta .pb-eps {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pb-card);
}

#podcasts-beta .pb-ep {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pb-line);
  cursor: pointer;
}

#podcasts-beta .pb-ep:last-child {
  border-bottom: none;
}

#podcasts-beta .pb-ep.is-current {
  background: rgba(31, 170, 90, 0.08);
}

#podcasts-beta .pb-ep__title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

#podcasts-beta .pb-ep__meta {
  margin: 0;
  font-size: 12px;
  color: var(--pb-muted);
}

#podcasts-beta .pb-ep__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pb-accent);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

#podcasts-beta .pb-ep__play.is-playing {
  background: #178a48;
}

#podcasts-beta .pb-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 4px;
  padding: 48px 24px 44px;
  text-align: center;
  color: var(--pb-muted);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(31, 106, 158, 0.06), transparent 70%),
    linear-gradient(180deg, #fafcfd 0%, #f0f4f7 100%);
  border: 1px solid var(--pb-line);
  border-radius: 16px;
  min-height: 220px;
}

html.dark-mode #podcasts-beta .pb-empty {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(31, 106, 158, 0.14), transparent 70%),
    linear-gradient(180deg, #152028 0%, #121a21 100%);
}

#podcasts-beta .pb-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  color: var(--pb-blue);
  opacity: 0.85;
}

#podcasts-beta .pb-empty__icon svg {
  width: 40px;
  height: 40px;
}

#podcasts-beta .pb-empty__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pb-ink);
  line-height: 1.3;
  max-width: 28em;
}

#podcasts-beta .pb-empty__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--pb-muted);
  max-width: 32em;
}

#podcasts-beta .pb-empty__query {
  color: var(--pb-ink);
  font-weight: 600;
}

#podcasts-beta .pb-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

#podcasts-beta .pb-empty__btn {
  appearance: none;
  border: 1px solid var(--pb-line);
  background: #fff;
  color: var(--pb-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

html.dark-mode #podcasts-beta .pb-empty__btn {
  background: #1a2630;
  color: var(--pb-ink);
}

#podcasts-beta .pb-empty__btn:hover,
#podcasts-beta .pb-empty__btn:focus {
  border-color: var(--pb-blue);
  color: var(--pb-blue);
  outline: none;
}

#podcasts-beta .pb-empty__btn--primary {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
}

#podcasts-beta .pb-empty__btn--primary:hover,
#podcasts-beta .pb-empty__btn--primary:focus {
  background: #185a88;
  border-color: #185a88;
  color: #fff;
}

#podcasts-beta .pb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
