/* =========================================================
   Detalle de episodio — depende de common.css
   ========================================================= */

.back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: 1.1rem;
  transition: color .12s, transform .15s ease;
}

.back:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  transform: translateX(-3px);
}

.detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: 196px 1fr;
  align-items: flex-start;
}

.cover {
  width: 196px;
  height: 196px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #ede8e1;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* El h1 del episodio es más contenido que el del podcast en cabecera */
.detail h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Badge de fecha */
.detail .meta {
  display: inline-block;
  margin: .45rem 0 .9rem;
  border-radius: 999px;
  background: rgba(181, 71, 14, .09);
  color: var(--accent);
  padding: .2em .75em;
  font-size: .78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* =========================================================
   Descripción del episodio
   ========================================================= */
.detail .desc {
  margin: 1rem 0 0;
  font-size: .97rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.detail .desc p {
  margin: .6rem 0;
  color: var(--muted);
}

.detail .desc h2, .detail .desc h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 1.2rem 0 .4rem;
  font-size: 1rem;
  font-weight: 600;
}

.detail .desc ul, .detail .desc ol {
  color: var(--muted);
  padding-left: 1.5rem;
  margin: .5rem 0;
}

.detail .desc li { margin: .3rem 0; }

.detail .desc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.detail .desc a:hover { text-decoration: underline; }

/* =========================================================
   Audio
   ========================================================= */
.player {
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  margin-top: .9rem;
}

.audio-meta {
  color: var(--muted);
  margin: .4rem 0 .3rem;
  font-size: .87rem;
  overflow-wrap: anywhere;
}

.download {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .4em 1.1em;
  border-radius: 999px;
  background: rgba(181, 71, 14, .08);
  border: 1px solid rgba(181, 71, 14, .2);
  font-size: .88rem;
  transition: background .15s, color .15s, border-color .15s;
}

.download:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .detail {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .cover {
    width: 156px;
    height: 156px;
    margin: 0 auto;
  }

  .player { width: 100%; max-width: 100%; }
}

@media (max-width: 460px) {
  .cover {
    width: min(100%, 200px);
    height: auto;
    aspect-ratio: 1/1;
  }
}
