/* pod.css — /podcasts, sus series y episodios, /archivo y la barra del reproductor de episodios
   (assets/js/podcasts.js). Se carga en todas las páginas: la barra sigue abajo mientras se navega.
   Usa las variables de la plantilla (style.css): --accent, --i12, --i28, --i5, --i7… */

/* ── Arriba ── */
.pod-intro { padding-top: clamp(20px, 3vw, 40px); }
.pod-intro .h2 { margin: 8px 0 10px; }
.pod-lead { max-width: 64ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--i7); }
.pod-lead a { text-decoration: underline; text-underline-offset: 3px; }
.pod-vacio { padding: 40px 0; letter-spacing: .12em; }
.pod-sec { margin-top: clamp(48px, 6vw, 88px); }
.pod-sec .sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: clamp(16px, 2vw, 26px); }
.pod-sec .sec-head .push { margin-left: auto; }

/* ── Portadas ── */
.pod-portada { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; border: 1px solid var(--i12); }
.pod-portada--letra { color: #fff; font: 800 clamp(48px, 7vw, 96px) / 1 'Orbitron', sans-serif; }
.pod-portada--xl { max-width: 340px; }

/* ── El destacado (lo más nuevo, la serie, el episodio) ── */
.pod-destacado { display: grid; grid-template-columns: minmax(180px, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.pod-destacado-t { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pod-destacado-t .h2 a:hover { color: var(--accent); }
.pod-destacado-t .mono a:hover { color: var(--accent); }
.pod-texto { max-width: 62ch; color: var(--i7); line-height: 1.55; font-size: 16px; }
.pod-acciones { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.pod-avance-xl { flex: 1 1 160px; max-width: 280px; height: 4px; background: var(--i12); }
.pod-avance-xl i { display: block; height: 100%; width: 0; background: var(--accent); }
.pod-compartir { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; letter-spacing: .1em; }
.pod-copiar { padding: 6px 10px; border: 1px solid var(--i28); background: none; color: var(--accent); cursor: pointer; font: inherit; letter-spacing: .1em; }
.pod-copiar:hover { border-color: var(--accent); }
.pod-rss { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 560px; }
.pod-rss-fila { display: flex; gap: 8px; }
.pod-rss-fila .rq { flex: 1; min-width: 0; font: 400 13px 'DM Mono', ui-monospace, monospace; }
.pod-notas { max-width: 72ch; font-size: 17px; line-height: 1.65; color: var(--i7); }

/* ── El botón ▶ ── */
.pod-play { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--accent); background: none; color: var(--accent); display: grid; place-items: center; cursor: pointer; font-size: 14px; transition: background .15s, color .15s; }
.pod-play:hover, .pod-play.is-on { background: var(--accent); color: #fff; }
.pod-play--xl { width: 64px; height: 64px; font-size: 20px; background: var(--accent); color: #fff; }
.pod-play--no { border-color: var(--i28); color: var(--i28); cursor: default; }
.pod-play-i { line-height: 1; transform: translateX(1px); }

/* ── Las series ── */
.pod-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pod-serie { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pod-serie-t { font: 700 18px / 1.2 'Archivo', sans-serif; }
.pod-serie:hover .pod-serie-t { color: var(--accent); }
.pod-serie:hover .pod-portada { border-color: var(--accent); }

/* ── Las filas de episodios ── */
.pod-lista { display: flex; flex-direction: column; }
.pod-fila { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--i12); }
.pod-fila-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pod-fila-t > a:first-child { font: 600 17px / 1.3 'Archivo', sans-serif; }
.pod-fila-t > a:first-child:hover { color: var(--accent); }
.pod-fila-de { letter-spacing: .1em; }
.pod-fila-de:hover { color: var(--accent); }
.pod-fila-barra { display: block; height: 2px; max-width: 260px; background: transparent; }
.pod-fila-barra i { display: block; height: 100%; width: 0; background: var(--accent); }
.pod-fila-f, .pod-fila-d { letter-spacing: .08em; white-space: nowrap; }
.pod-mes { margin: 28px 0 4px; letter-spacing: .14em; }
.pod-mes:first-child { margin-top: 0; }

/* ── El buscador del archivo ── */
.pod-buscar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pod-buscar input[type=search] { flex: 1 1 280px; min-width: 0; }
.pod-buscar select { flex: 0 1 230px; min-width: 0; }
.pod-cuenta { margin-top: 12px; letter-spacing: .12em; }
.pod-paginas { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; letter-spacing: .1em; }
.pod-paginas a { color: var(--accent); }

@media (max-width: 760px) {
  .pod-destacado { grid-template-columns: minmax(0, 1fr); }
  .pod-portada--xl { max-width: 240px; }
  .pod-fila { grid-template-columns: 44px minmax(0, 1fr); }
  .pod-fila-f, .pod-fila-d { grid-column: 2; }
  .pod-fila-f { margin-top: -4px; }
  .pod-fila-d { display: none; }
}

/* ── La barra del reproductor (fija abajo; en el teléfono, arriba de la barra de la app) ── */
.pod-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px clamp(12px, 3vw, 40px); background: rgba(14, 12, 11, .97); color: #fff; border-top: 2px solid var(--accent, #C9502A); box-shadow: 0 -8px 30px rgba(0, 0, 0, .35); }
.pod-con-barra { padding-bottom: 76px; }
.pod-b { flex: none; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; cursor: pointer; font-size: 13px; letter-spacing: .04em; }
.pod-b:hover { border-color: var(--accent, #C9502A); color: var(--accent, #C9502A); }
.pod-b--play { width: 48px; height: 48px; border-radius: 50%; background: var(--accent, #C9502A); border-color: var(--accent, #C9502A); font-size: 16px; }
.pod-b--play:hover { color: #fff; filter: brightness(1.1); }
.pod-barra-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pod-barra-titulo { font: 600 15px 'Archivo', sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-barra-de { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-barra-linea { display: flex; align-items: center; gap: 10px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.pod-barra-linea input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent, #C9502A); }
@media (max-width: 900px) {
  .pod-barra { bottom: calc(var(--tb-barra-alto, 72px) + 22px); }   /* + el botón ▶ del centro, que sobresale */
  .pod-con-barra { padding-bottom: calc(172px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .pod-barra { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; }
  .pod-barra [data-b=vel], .pod-barra [data-b=menos] { display: none; }
}

/* "Presentado por" (los patrocinadores de Producciones, Views/sitio/podcasts/_partes.php → $pod_presenta) */
.pr-presenta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 0; }
.pr-presenta-t { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pr-presenta a, .pr-presenta .pr-presenta-m { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 600; }
.pr-presenta a:hover span { text-decoration: underline; }
.pr-presenta img { height: 34px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
