/* ==========================================================================
   RUSPOST — PODCAST (Spotify)
   Basado en la estética de Programas (YouTube)
   ========================================================================== */

:root {
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --color-yellow-original: #fffb18;
  --color-yellow-200: oklch(94.5% 0.129 101.54);
  --color-gray-100: oklch(96.7% 0.003 264.542);

  --rp-accent: var(--color-yellow-200);
  --rp-bg: #0a0a0a;
  --rp-surface: #171717;
  --rp-border: #262626;
  --rp-text: #ffffff;
  --rp-muted: color-mix(in oklch, var(--color-gray-100) 65%, black);
}

/* Base */
.rp-podcast-page,
.rp-programas-page.rp-podcast-page {
  min-height: 100vh;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: var(--font-sans);
}

.rp-podcast-page .rp-container,
.rp-programas-page.rp-podcast-page .rp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 540px) {
  .rp-podcast-page .rp-container,
  .rp-programas-page.rp-podcast-page .rp-container {
    padding: 0 18px;
  }
}

.rp-podcast-page a,
.rp-programas-page.rp-podcast-page a {
  color: inherit;
  text-decoration: none;
}

.rp-podcast-page svg.rp-ico,
.rp-programas-page.rp-podcast-page svg.rp-ico {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ==========================================================================
   HERO (misma estructura rp-prog-hero)
   ========================================================================== */
.rp-prog-hero {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.rp-prog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rp-prog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .60;
  filter: grayscale(100%) contrast(1.25);
}

.rp-prog-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.65), rgba(10,10,10,0) 55%, rgba(10,10,10,1)),
    linear-gradient(to top, rgba(10,10,10,1), rgba(10,10,10,.25), rgba(10,10,10,0));
}

.rp-prog-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 72px;
}

.rp-prog-hero-inner { max-width: 780px; }

.rp-prog-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-yellow-original);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.rp-prog-title {
  margin: 0 0 18px 0;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-family: var(--font-sans);
  color: var(--rp-text);
}

.rp-prog-title .dot { color: var(--color-yellow-original); }

.rp-prog-desc {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: var(--rp-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ==========================================================================
   HERO meta (carátula + botones) para taxonomy
   ========================================================================== */
.rp-program-meta {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.rp-program-cover {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.rp-program-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-program-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-program-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.rp-program-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.30);
  transform: translateY(-1px);
}

.rp-program-btn:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.rp-prog-sections { padding: 80px 0 40px; }

.rp-prog-wrap {
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.rp-prog-section { position: relative; }

.rp-prog-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.rp-prog-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--rp-text);
}

.rp-prog-section-title a { color: inherit; }

.rp-prog-section-line {
  flex: 0 0 auto;
  width: 34px;
  height: 2px;
  background: var(--color-yellow-original);
}

/* Controles carrusel */
.rp-prog-controls {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.rp-prog-iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.rp-prog-iconbtn:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
}

.rp-prog-iconbtn:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   CARRUSEL
   ========================================================================== */
.rp-prog-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rp-prog-track::-webkit-scrollbar { display: none; }

.rp-prog-ep {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  border-radius: 4px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,.08);
  scroll-snap-align: start;
}

@media (max-width: 420px) {
  .rp-prog-ep { width: 280px; }
}

.rp-prog-ep-media {
  position: relative;
  overflow: hidden;
}

.rp-prog-ep img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: transform .7s ease, opacity .3s ease, filter .35s ease;
}

.rp-prog-ep-grad {
  position: absolute;
  background: linear-gradient(to top, rgba(10,10,10,.92), rgba(10,10,10,0));
  opacity: .85;
}

.rp-prog-ep-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--color-yellow-original);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

.rp-prog-ep-meta { padding: 14px 16px 16px; }

.rp-prog-ep-meta h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--rp-text);
}

.rp-prog-ep-underline {
  display: block;
  width: 0;
  height: 3px;
  background: var(--color-yellow-original);
  margin-top: 10px;
  transition: width .5s ease;
}

/* Hover EP */
.rp-prog-ep:hover img {
  opacity: .45;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.rp-prog-ep:hover .rp-prog-ep-underline { width: 48px; }

.rp-prog-ep:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 3px;
}

/* CTA + flecha (EP) */
.rp-prog-ep-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  color: var(--color-yellow-original);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.rp-prog-ep-cta {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  color: var(--color-yellow-original);
}

.rp-prog-ep-cta-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--color-yellow-original);
  border-radius: 4px;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(6px);
  color: var(--color-yellow-original);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.rp-prog-ep:hover .rp-prog-ep-cta {
  opacity: 1;
  transform: scale(1);
}

.rp-prog-ep:hover .rp-prog-ep-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Lista tipo “episodios” (si la usas en taxonomy)
   ========================================================================== */
.rp-podcast-list { padding: 60px 0 40px; }

.rp-ep {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .rp-ep {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .rp-ep-right { grid-column: 1 / -1; }
}

.rp-ep-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rp-ep-left { z-index: 2; display: grid; place-items: center; }

.rp-ep-play {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  color: var(--color-yellow-original);
}

.rp-ep-mid { z-index: 2; }

.rp-ep-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rp-ep-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--color-yellow-original);
  padding: 5px 8px;
  border-radius: 6px;
}

.rp-ep-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.rp-ep-duration {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rp-ep-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.rp-ep-desc {
  margin: 0;
  color: rgba(255,255,255,.70);
  line-height: 1.6;
  font-weight: 300;
}

.rp-ep-guest { color: rgba(255,255,255,.78); font-weight: 600; }

.rp-ep-right {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.rp-ep-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-ep-actions { display: flex; gap: 10px; }

.rp-iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.rp-iconbtn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.30);
  transform: translateY(-1px);
}

.rp-iconbtn:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Empty + paginación
   ========================================================================== */
.rp-prog-empty,
.rp-podcast-empty {
  padding: 64px 0;
  color: color-mix(in oklch, var(--color-gray-100) 55%, black);
}

.rp-podcast-pagination ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 18px 0 0;
  margin: 0;
  flex-wrap: wrap;
}

.rp-podcast-pagination a,
.rp-podcast-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font-weight: 900;
}

.rp-podcast-pagination .current {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.30);
  color: var(--color-yellow-original);
}

/* ==========================================================================
   Reveal (mismo sistema)
   ========================================================================== */
[data-reveal] {
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.rp-program-meta{
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-areas:
    "cover title"
    "links links";
  gap: 14px 18px;
  align-items: center;
  margin-top: 18px;
}

.rp-program-cover{ grid-area: cover; }
.rp-program-cover img{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.rp-program-meta .rp-prog-title{
  grid-area: title;
  margin: 0;
}

.rp-program-links{
  grid-area: links;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Mobile: apila bonito */
@media (max-width: 560px){
  .rp-program-meta{
    grid-template-columns: 72px 1fr;
  }
  .rp-program-cover img{
    width: 72px;
    height: 72px;
  }
}
