/* Focused podcast polish. Loaded last to consolidate legacy layout layers. */
body.mf-core-podcast-page {
  --mf-podcast-surface: rgba(6, 19, 13, 0.94);
  --mf-podcast-surface-raised: rgba(11, 31, 22, 0.96);
  --mf-podcast-line: rgba(244, 196, 48, 0.3);
  --mf-podcast-muted: #afbbb3;
}

body.mf-core-podcast-page .mf-core-container,
body.mf-core-podcast-page .mf-tribe-section,
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__inner {
  width: min(calc(100% - 2rem), 76rem) !important;
  max-width: 76rem !important;
  margin-inline: auto !important;
}

body.mf-core-podcast-page .mf-core-hero {
  min-height: 0 !important;
  padding-block: clamp(1.3rem, 2.8vw, 2.25rem) !important;
}

body.mf-core-podcast-page .mf-core-hero__grid {
  min-height: 0 !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
}

body.mf-core-podcast-page .mf-core-title {
  max-width: 15ch !important;
  font-size: clamp(2.45rem, 5vw, 4.5rem) !important;
  line-height: 0.92 !important;
}

body.mf-core-podcast-page .mf-core-nav,
body.mf-core-podcast-page .mf-core-nav .mf-core-container {
  min-height: 42px;
}

body.mf-core-podcast-page .mf-core-nav {
  position: static !important;
  top: auto !important;
}

body.mf-core-podcast-page .mf-core-section {
  padding-block: clamp(1.3rem, 2.6vw, 2.1rem) !important;
}

body.mf-core-podcast-page .mf-core-section__head {
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

body.mf-core-podcast-page .mf-core-section__head > div {
  max-width: 52rem;
}

body.mf-core-podcast-page .mf-core-section h2,
body.mf-core-podcast-page .mf-tribe-section h2,
body.mf-core-podcast-page #mf-official-content-network h2 {
  margin-block: 0.2rem 0.3rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem) !important;
  line-height: 0.96 !important;
}

body.mf-core-podcast-page .mf-core-section__head p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.86rem;
  line-height: 1.42;
}

body.mf-core-podcast-page #listen {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(9, 28, 19, 0.98), rgba(4, 14, 10, 0.96)), #06110c;
}

body.mf-core-podcast-page #listen::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #2e7d32, #f4c430 52%, #e53935);
  transform-origin: left;
  animation: mf-podcast-signal 5s ease-in-out infinite alternate;
}

body.mf-core-podcast-page #listen .mf-podcast-listen-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: none;
}

body.mf-core-podcast-page #listen .mf-spotify-safe-card {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(22rem, 1.35fr) auto;
  grid-template-areas: "label player actions" "title player actions" "copy player actions";
  align-items: center;
  gap: 0.25rem clamp(1rem, 2vw, 1.8rem);
  min-height: 0;
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
  border-radius: 8px;
  background: var(--mf-podcast-surface-raised);
}

body.mf-core-podcast-page #listen .mf-spotify-safe-card > .mf-core-label { grid-area: label; }
body.mf-core-podcast-page #listen .mf-spotify-safe-card > h3 { grid-area: title; margin: 0; }
body.mf-core-podcast-page #listen .mf-spotify-safe-card > p { grid-area: copy; font-size: 0.82rem; line-height: 1.35; }
body.mf-core-podcast-page #listen .mf-spotify-safe-card > .mf-core-actions { grid-area: actions; display: grid; gap: 0.45rem; }

body.mf-core-podcast-page .mf-podcast-inline-player {
  grid-area: player;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.8rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(247, 247, 244, 0.1);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  transition: border-color 180ms ease, background-color 180ms ease;
}

body.mf-core-podcast-page .mf-podcast-inline-player > .mf-core-label,
body.mf-core-podcast-page .mf-podcast-inline-player > strong { grid-column: 1; }
body.mf-core-podcast-page .mf-podcast-inline-player > span:not(.mf-core-label) { grid-column: 2; grid-row: 1; color: var(--mf-podcast-muted); font-size: 0.7rem; }
body.mf-core-podcast-page .mf-podcast-inline-player audio { grid-column: 1 / -1; width: 100%; height: 36px; margin-top: 0.25rem; }
body.mf-core-podcast-page .mf-podcast-inline-player.is-playing { border-color: rgba(70, 168, 62, 0.72); background: rgba(46, 125, 50, 0.12); }

body.mf-core-podcast-page .mf-tribe-section {
  margin-block: clamp(1rem, 2vw, 1.5rem) !important;
  padding: clamp(0.9rem, 1.8vw, 1.25rem) !important;
  border-radius: 8px !important;
  background: linear-gradient(120deg, rgba(5, 18, 12, 0.98), rgba(10, 29, 20, 0.96));
}

body.mf-core-podcast-page .mf-tribe-section__head { align-items: center; margin-bottom: 0.75rem; }
body.mf-core-podcast-page .mf-tribe-section__head p { margin: 0; font-size: 0.8rem; }

body.mf-core-podcast-page .mf-tribe-player {
  grid-template-columns: minmax(0, 1.62fr) minmax(16rem, 0.68fr) !important;
  gap: clamp(0.8rem, 1.5vw, 1.15rem) !important;
  margin-bottom: 0.8rem !important;
  padding: 0.75rem !important;
  border-radius: 7px !important;
}

body.mf-core-podcast-page .mf-tribe-player__frame { border-radius: 5px !important; }
body.mf-core-podcast-page .mf-tribe-player__meta { gap: 0.45rem !important; padding: 0.25rem; }
body.mf-core-podcast-page .mf-tribe-player__meta h3 { font-size: clamp(1.35rem, 2.3vw, 2rem) !important; line-height: 0.98 !important; }
body.mf-core-podcast-page .mf-tribe-player__meta p { font-size: 0.8rem; line-height: 1.4; -webkit-line-clamp: 4; }

body.mf-core-podcast-page .mf-tribe-list {
  display: flex !important;
  gap: 0.7rem !important;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.25rem;
}

body.mf-core-podcast-page .mf-tribe-card {
  flex: 0 0 min(19rem, 78vw);
  scroll-snap-align: start;
  border-radius: 7px !important;
}

body.mf-core-podcast-page .mf-tribe-card__body { gap: 0.35rem !important; padding: 0.7rem !important; }
body.mf-core-podcast-page .mf-tribe-card__body p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.78rem; }

body.mf-core-podcast-page .mf-tribe-card__actions,
body.mf-core-podcast-page .mf-podcast-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: auto;
}

body.mf-core-podcast-page .mf-podcast-play-here {
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 5px;
  color: #07110b;
  background: linear-gradient(100deg, #f4c430, #9ef044);
  font: 700 0.7rem/1 var(--font-ui, Montserrat, sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

body.mf-core-podcast-page #latest .mf-core-grid { gap: 0.75rem; }
body.mf-core-podcast-page #latest .mf-core-card { border-radius: 7px; }
body.mf-core-podcast-page #latest .mf-core-card__body { gap: 0.4rem; padding: 0.75rem; }
body.mf-core-podcast-page #latest .mf-core-card__body h3 { font-size: 1.25rem; line-height: 0.98; }
body.mf-core-podcast-page #latest .mf-core-card__body p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.78rem; line-height: 1.38; }

body.mf-core-podcast-page .mf-podcast-watch-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.65fr);
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--mf-podcast-line);
  border-radius: 7px;
  background: var(--mf-podcast-surface);
}

body.mf-core-podcast-page .mf-podcast-watch-stage[hidden] { display: none !important; }
body.mf-core-podcast-page .mf-podcast-watch-stage__frame { aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 5px; }
body.mf-core-podcast-page .mf-podcast-watch-stage__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
body.mf-core-podcast-page .mf-podcast-watch-stage__audio { display: grid; place-items: center; min-height: 100%; padding: clamp(1rem, 4vw, 2.5rem); background: linear-gradient(145deg, #07140d, #0d2418); }
body.mf-core-podcast-page .mf-podcast-watch-stage__audio audio { width: min(100%, 42rem); }
body.mf-core-podcast-page .mf-podcast-watch-stage__copy { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
body.mf-core-podcast-page .mf-podcast-watch-stage__copy h3 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.15rem); line-height: 0.98; }
body.mf-core-podcast-page .mf-podcast-watch-stage__status { margin: 0; color: var(--mf-podcast-muted); font-size: 0.78rem; line-height: 1.4; }

body.mf-core-podcast-page .mf-podcast-show-notes { border-top: 1px solid rgba(247, 247, 244, 0.1); padding-top: 0.45rem; }
body.mf-core-podcast-page .mf-podcast-show-notes summary { min-height: 36px; display: flex; align-items: center; color: var(--mf-podcast-muted); font-size: 0.72rem; font-weight: 700; cursor: pointer; }
body.mf-core-podcast-page .mf-podcast-show-notes p { margin: 0.25rem 0 0 !important; -webkit-line-clamp: initial !important; }

body.mf-core-podcast-page #mf-official-content-network { margin-top: 0 !important; padding-block: clamp(1.1rem, 2vw, 1.65rem) !important; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__header { grid-template-columns: 8.5rem minmax(0, 1fr) !important; gap: 1rem !important; align-items: center !important; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__art,
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__art img { min-height: 6.5rem !important; max-height: 6.5rem !important; border-radius: 6px !important; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__intro > p { margin: 0; font-size: 0.82rem; line-height: 1.4; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__trust { margin-top: 0.45rem; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__controls { margin: 0.75rem 0 0.6rem; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn__panel { min-height: 0 !important; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn-card-grid { gap: 0.65rem !important; }
body.mf-core-podcast-page #mf-official-content-network .mf-ocn-card { min-height: 8.5rem !important; padding: 0.8rem !important; border-radius: 6px !important; }

body.mf-core-podcast-page [data-podcast-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease, transform 420ms ease; }
body.mf-core-podcast-page [data-podcast-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes mf-podcast-signal {
  from { transform: scaleX(0.35); opacity: 0.65; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 58rem) {
  body.mf-core-podcast-page #listen .mf-spotify-safe-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label actions" "title actions" "copy actions" "player player";
  }

  body.mf-core-podcast-page .mf-tribe-player,
  body.mf-core-podcast-page .mf-podcast-watch-stage { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 42rem) {
  body.mf-core-podcast-page .mf-core-container,
  body.mf-core-podcast-page .mf-tribe-section,
  body.mf-core-podcast-page #mf-official-content-network .mf-ocn__inner { width: min(calc(100% - 1rem), 76rem) !important; }
  body.mf-core-podcast-page .mf-core-hero { padding-block: 1rem !important; }
  body.mf-core-podcast-page .mf-core-section { padding-block: 1rem !important; }
  body.mf-core-podcast-page .mf-core-section__head { align-items: flex-start; margin-bottom: 0.65rem; }

  body.mf-core-podcast-page #listen .mf-spotify-safe-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "title" "copy" "player" "actions";
  }

  body.mf-core-podcast-page #listen .mf-spotify-safe-card > .mf-core-actions { display: flex; overflow-x: auto; }
  body.mf-core-podcast-page .mf-podcast-inline-player > strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
    line-height: 1.25;
  }
  body.mf-core-podcast-page #listen .mf-spotify-safe-card > .mf-core-actions .mf-core-button {
    width: auto !important;
    flex: 1 1 auto;
    min-width: max-content;
    padding-inline: 0.65rem !important;
    font-size: 0.66rem !important;
  }
  body.mf-core-podcast-page .mf-tribe-section { width: 100% !important; margin-block: 0 !important; border-inline: 0 !important; }
  body.mf-core-podcast-page .mf-tribe-section__head { align-items: flex-start; }
  body.mf-core-podcast-page .mf-tribe-player { padding: 0.5rem !important; }
  body.mf-core-podcast-page #latest .mf-core-grid {
    display: flex !important;
    gap: 0.65rem !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
  }
  body.mf-core-podcast-page #latest .mf-core-card {
    flex: 0 0 min(19rem, 82vw);
    scroll-snap-align: start;
  }
  body.mf-core-podcast-page #mf-official-content-network .mf-ocn__header { grid-template-columns: 5rem minmax(0, 1fr) !important; }
  body.mf-core-podcast-page #mf-official-content-network .mf-ocn__art,
  body.mf-core-podcast-page #mf-official-content-network .mf-ocn__art img { min-height: 5rem !important; max-height: 5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.mf-core-podcast-page #listen::after { animation: none; transform: none; }
  body.mf-core-podcast-page [data-podcast-reveal] { opacity: 1; transform: none; transition: none; }
}
