/* Pòdcasts (/podcasts/…): targeta d'episodi i pàgines. Prototip: prototips/podcasts/index.html */

.mzp-page {
  --mzp-display: var(--e-global-typography-primary-font-family, "Eksell display"), Georgia, serif;
  --mzp-text: var(--e-global-typography-text-font-family, "Nunito Sans"), "Nunito Sans", system-ui, sans-serif;
  max-width: 1400px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 64px) 96px;
  font-family: var(--mzp-text); color: #000;
}
.mzp-page h1, .mzp-page h2 { font-family: var(--mzp-display); font-weight: 400; line-height: 1; margin: 0; color: #000; }
.mzp-h1 { font-size: clamp(56px, 9vw, 120px); letter-spacing: -.01em; }
.mzp-h2 { font-size: clamp(32px, 4vw, 52px); margin: 72px 0 28px !important; }
.mzp-intro { max-width: 760px; font-size: 19px; line-height: 1.55; margin: 20px 0 0; }

/* ---------- Graella d'episodis: tantes columnes com hi càpiguen ---------- */
.mzp-grid { --min: 460px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min)), 1fr)); }
.mzp-grid--wide { --min: 1000px; }
.mzp-grid--narrow { --min: 360px; }

/* ---------- Targeta d'episodi ---------- */
.mzp-ep { container-type: inline-size; font-family: var(--mzp-text, "Nunito Sans", sans-serif); }
.mzp-ep__card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 24px; height: 100%;
  padding: 24px; border-radius: 14px; background: var(--bg, #333a44); color: #fff; box-sizing: border-box; }
.mzp-ep__cover { grid-row: span 2; display: block; width: 240px; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); background: rgba(0,0,0,.2); }
.mzp-ep__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mzp-ep__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-top: 18px; }
.mzp-ep .mzp-ep__title { margin: 0; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 800; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mzp-ep a { color: inherit; text-decoration: none; }
.mzp-ep__title a:hover, .mzp-ep__meta a:hover { text-decoration: underline; color: #fff; }
.mzp-ep__meta { font-size: 21px; line-height: 1.3; color: var(--tint, #c9ced6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mzp-ep button { font: inherit; color: #fff; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  box-shadow: none; text-transform: none; letter-spacing: normal; border-radius: 0; }
.mzp-ep button:hover, .mzp-ep button:focus { background: none; color: #fff; }
.mzp-ep button:focus-visible, .mzp-ep__bar:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mzp-ep__action { margin-top: 14px !important; display: inline-flex; align-items: center; gap: 22px; font-size: 19px !important; align-self: flex-start; }
.mzp-ep__action svg { width: 44px; height: 44px; flex: none; }

.mzp-ep__controls { align-self: end; display: flex; align-items: center; gap: 14px; min-width: 0; }
.mzp-ep__skip { flex: none; }
.mzp-ep__skip svg { width: 36px; height: 36px; display: block; font-family: var(--mzp-text, sans-serif); }
.mzp-ep__bar { flex: 1; min-width: 40px; height: 22px; display: flex; align-items: center; cursor: pointer; }
.mzp-ep__track { width: 100%; height: 6px; border-radius: 3px; background: rgba(0,0,0,.3); overflow: hidden; }
.mzp-ep__fill { height: 100%; width: 0; background: #fff; }
.mzp-ep__time { font-size: 21px; font-variant-numeric: tabular-nums; min-width: 4.4em; text-align: right; flex: none; }
.mzp-ep__more { padding: 4px 6px !important; flex: none; }
.mzp-ep__more svg { width: 28px; height: 28px; display: block; }
.mzp-ep .mzp-ep__play { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center;
  flex: none; transition: transform .1s; }
.mzp-ep .mzp-ep__play:hover, .mzp-ep .mzp-ep__play:focus { background: #fff; color: #000; transform: scale(1.05); }
.mzp-ep__play svg { width: 24px; height: 24px; }
.mzp-ep .mzp-i-pause, .mzp-ep.is-playing .mzp-i-play { display: none; }
.mzp-ep.is-playing .mzp-i-pause { display: block; }
.mzp-ep.is-loading .mzp-ep__play { animation: mzp-pulse 1s ease-in-out infinite; }
@keyframes mzp-pulse { 50% { opacity: .6; } }
.mzp-ep.is-error .mzp-ep__time { font-size: 15px; }

.mzp-ep__menu { position: absolute; right: 24px; bottom: 90px; z-index: 5; display: none; min-width: 220px; padding: 6px;
  background: #282828; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.mzp-ep__menu.is-open { display: block; }
.mzp-ep__menu a, .mzp-ep .mzp-ep__menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; color: #eee;
  font-size: 15px; line-height: 1.3; border-radius: 4px; }
.mzp-ep__menu a:hover, .mzp-ep .mzp-ep__menu button:hover { background: #3e3e3e; color: #fff; }

/* Mitjana: tot s'encongeix proporcionalment */
@container (max-width: 720px) {
  .mzp-ep__card { gap: 0 16px; padding: 16px; }
  .mzp-ep__cover { width: 132px; }
  .mzp-ep__body { padding-top: 4px; gap: 2px; }
  .mzp-ep .mzp-ep__title { font-size: 17px; }
  .mzp-ep__meta, .mzp-ep__time { font-size: 15px; }
  .mzp-ep__action { margin-top: 6px !important; gap: 12px; font-size: 14px !important; }
  .mzp-ep__action svg { width: 28px; height: 28px; }
  .mzp-ep__skip svg { width: 26px; height: 26px; }
  .mzp-ep__controls { gap: 10px; }
  .mzp-ep .mzp-ep__play { width: 44px; height: 44px; }
  .mzp-ep__play svg { width: 18px; height: 18px; }
  .mzp-ep__more svg { width: 22px; height: 22px; }
  .mzp-ep__menu { right: 16px; bottom: 66px; }
}
/* Estreta (mòbil o moltes columnes): els controls passen a sota, d'ample sencer */
@container (max-width: 520px) {
  .mzp-ep__card { grid-template-columns: 96px 1fr; gap: 14px; }
  .mzp-ep__cover { width: 96px; grid-row: auto; }
  .mzp-ep__body { padding-top: 0; }
  .mzp-ep__action { display: none !important; }
  .mzp-ep__controls { grid-column: 1 / -1; }
}

/* ---------- Llistat de pòdcasts (portades) ---------- */
.mzp-shows { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.mzp-show { display: block; color: #000 !important; text-decoration: none !important; }
.mzp-show img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: transform .2s; }
.mzp-show:hover img { transform: scale(1.02); }
.mzp-show__title { display: block; margin-top: 12px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.mzp-show__author { display: block; font-size: 15px; color: #555; margin-top: 2px; }

/* ---------- Fitxa del pòdcast ---------- */
.mzp-head { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 40px; align-items: start; }
.mzp-head__cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: block; }
.mzp-head__kicker { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.mzp-head__kicker a { color: inherit; }
.mzp-head .mzp-h1 { font-size: clamp(44px, 6vw, 88px); }
.mzp-head__author { font-size: 21px; margin: 14px 0 0; }
.mzp-desc { font-size: 18px; line-height: 1.6; max-width: 760px; margin-top: 22px; overflow-wrap: anywhere; }
.mzp-desc p { margin: 0 0 1em; }
.mzp-desc a { color: inherit; text-decoration: underline; }
.mzp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mzp-links a { display: inline-block; padding: 9px 18px; border: 1px solid #000; border-radius: 999px; color: #000; font-size: 15px; text-decoration: none; }
.mzp-links a:hover { background: #000; color: #fff; }
@media (max-width: 760px) {
  .mzp-page { padding-top: 28px; }
  .mzp-head { grid-template-columns: 1fr; gap: 24px; }
  .mzp-head__cover { max-width: 260px; }
}

/* ---------- Paginació ---------- */
.mzp-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 48px; font-size: 17px; }
.mzp-pager a { color: #000; padding: 10px 20px; border: 1px solid #000; border-radius: 999px; text-decoration: none; }
.mzp-pager a:hover { background: #000; color: #fff; }

/* ---------- Fitxa de l'episodi ---------- */
.mzp-back { display: inline-block; font-size: 16px; color: #000; margin-bottom: 24px; }
.mzp-about { margin-top: 48px; }
.mzp-about .mzp-h2 { margin-top: 0 !important; }

/* ---------- Formulari «Envia'ns el teu pòdcast» (/podcasts/envia/) ---------- */
.mzp-form { max-width: 760px; margin-top: 36px; display: grid; gap: 22px; }
.mzp-field { display: grid; gap: 8px; font-size: 16px; font-weight: 600; }
.mzp-page .mzp-field input, .mzp-page .mzp-field textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-weight: 400;
  font-size: 17px; color: #000; background: #fff; border: 1px solid #000; border-radius: 8px; }
.mzp-page .mzp-field input:focus, .mzp-page .mzp-field textarea:focus { outline: 2px solid #000; outline-offset: 1px; }
.mzp-field input[aria-invalid="true"] { border-color: #b3261e !important; }
.mzp-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mzp-error { display: block; color: #b3261e; font-style: normal; font-weight: 400; font-size: 15px; }
.mzp-help { font-size: 15px; margin-top: -8px; }
.mzp-help summary { cursor: pointer; text-decoration: underline; }
.mzp-help ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.mzp-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.mzp-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #000; }
.mzp-check a { color: inherit; text-decoration: underline; }
.mzp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.mzp-page .mzp-submit { justify-self: start; padding: 14px 28px; font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: #000;
  border: 1px solid #000; border-radius: 999px; cursor: pointer; }
.mzp-page .mzp-submit:hover, .mzp-page .mzp-submit:focus { background: #fff; color: #000; }
.mzp-notice { max-width: 760px; margin-top: 32px; padding: 24px 28px; border: 1px solid #000; border-radius: 12px; font-size: 18px; line-height: 1.55; }
.mzp-notice p { margin: 10px 0 0; }
.mzp-notice a { color: inherit; text-decoration: underline; }

/* Crida a enviar-ne un (pàgina /podcasts/) */
.mzp-cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 72px; padding: 28px 32px;
  border: 1px solid #000; border-radius: 14px; }
.mzp-cta p { margin: 0; font-size: 19px; line-height: 1.4; }
.mzp-cta a { display: inline-block; padding: 12px 24px; border-radius: 999px; background: #000; color: #fff !important; text-decoration: none; font-weight: 700; }
.mzp-cta a:hover { background: #fff; color: #000 !important; box-shadow: inset 0 0 0 1px #000; }

/* ---------- Capçalera amb foto (calca la de /creadors/, post-1154.css element 653383d) ---------- */
.mzp-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 60vh;
  padding: 4rem 4rem 0; box-sizing: border-box; overflow: hidden; color: #fff; }
.mzp-hero__img, .mzp-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mzp-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: .2; }
.mzp-hero .mzp-hero__title { position: relative; z-index: 2; margin: 0; font-family: "Eksell display", sans-serif; font-weight: 400;
  font-size: 200px; line-height: 210px; letter-spacing: -3px; color: #fff; animation: mzp-fade-up 1.25s ease both; }
.mzp-hero--long .mzp-hero__title { font-size: 130px; line-height: 140px; letter-spacing: -2px; }
@keyframes mzp-fade-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
  .mzp-hero { padding: 2rem 2rem 0; }
  .mzp-hero .mzp-hero__title, .mzp-hero--long .mzp-hero__title { font-size: 100px; line-height: 120px; letter-spacing: -1px; }
}
@media (max-width: 767px) {
  .mzp-hero .mzp-hero__title, .mzp-hero--long .mzp-hero__title { font-size: 60px; line-height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .mzp-hero .mzp-hero__title { animation: none; } }
.mzp-hero + .mzp-page { padding-top: 56px; }
.mzp-hero + .mzp-page > .mzp-intro:first-child, .mzp-hero + .mzp-page > .mzp-desc:first-child { margin-top: 0; }
.mzp-hero--xlong .mzp-hero__title { font-size: 100px; line-height: 110px; letter-spacing: -1px; }
@media (max-width: 1024px) { .mzp-hero--xlong .mzp-hero__title { font-size: 72px; line-height: 82px; } }
@media (max-width: 767px) { .mzp-hero--xlong .mzp-hero__title { font-size: 44px; line-height: 52px; } }
/* fitxa del pòdcast sota la capçalera: el títol ja és a dalt */
.mzp-hero + .mzp-page .mzp-head__author { margin-top: 0; font-size: 24px; font-weight: 700; }
