/* ==========================================================================
   Amnet Resources: Single Podcast Episode Reader Stylesheet
   Source: Graymatters Podcast System & Amnet Resources Architecture
   Hardened for Dark Stage 16:9 Video Player, Speaker Profile,
   Show Notes, Takeaways, Prev/Next Navigation & Zero Mobile Overflow
   ========================================================================== */

/* ---- Cascade Guards ---- */
.pod-stage [hidden],
.screen iframe[hidden],
.play[hidden],
.cap[hidden],
.scrim[hidden],
.bio[hidden] {
  display: none !important;
}

/* ---- Dark Stage Hero Section ---- */
.pod-hero {
  background: var(--ink, #1d2024);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-dark, #2d2f36);
}

.pod-hero .wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 48px 64px;
  position: relative;
}

.pod-hero .crumbs {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: #a3a7ae;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.pod-hero .crumbs a {
  color: #a3a7ae;
  text-decoration: none;
  transition: color .2s ease;
}

.pod-hero .crumbs a:hover {
  color: var(--accent, #ee5b42);
}

.pod-hero .crumbs .here {
  color: #fff;
  font-weight: 500;
}

/* 2-Column Hero Grid */
.pod-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.pod-hero-grid > * {
  min-width: 0;
}

/* Hero Left: Meta & Typography */
.pod-hero-left {
  display: flex;
  flex-direction: column;
}

.pod-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent, #ee5b42);
  color: #fff;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.pod-badge.subtle {
  background: rgba(255, 179, 164, 0.12);
  color: #ffb3a4;
  border: 1px solid rgba(255, 179, 164, 0.28);
}

.pod-meta-bar {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .15em;
  color: #ffb3a4;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.pod-hero h1 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pod-stand {
  font-size: 17px;
  line-height: 1.6;
  color: #c9ccd2;
  margin: 0 0 28px;
  max-width: 50ch;
  overflow-wrap: anywhere;
}

/* Speaker Header Pill */
.pod-speaker-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule-dark, #2d2f36);
  border-radius: 4px;
  margin-bottom: 28px;
}

.pod-speaker-bar .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent, #ee5b42);
  color: #fff;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pod-speaker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pod-speaker-info .sp-label {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: .16em;
  color: #a3a7ae;
  text-transform: uppercase;
}

.pod-speaker-info .sp-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.pod-speaker-info .sp-title {
  font-size: 13px;
  color: #a3a7ae;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Actions & Share */
.pod-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---- Stage Player on Dark Canvas ---- */
.pod-stage {
  display: flex;
  flex-direction: column;
  background: #15171a;
  border: 1px solid var(--rule-dark, #2d2f36);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  overflow: hidden;
}

.pod-stage .screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #2c3440 0%, #15171a 60%);
}

.pod-stage .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, opacity .35s ease;
}

.pod-stage .screen:hover img {
  transform: scale(1.03);
}

.pod-stage .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 23, 26, 0.1) 20%, rgba(21, 23, 26, 0.92) 100%);
  pointer-events: none;
}

.pod-stage .play {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--accent, #ee5b42);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(238, 91, 66, 0.55);
  animation: podPulse 2.4s infinite;
  transition: transform .25s ease, background .2s ease;
  z-index: 4;
}

.pod-stage .play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ff6e56;
}

.pod-stage .play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.pod-stage .play svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  margin-left: 4px;
}

@keyframes podPulse {
  70% { box-shadow: 0 0 0 22px rgba(238, 91, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 91, 66, 0); }
}

.pod-stage .cap {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.pod-stage .cm {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .16em;
  color: #ffb3a4;
  text-transform: uppercase;
}

.pod-stage .ch {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 26px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 28ch;
}

.pod-stage .screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 5;
}

.pod-stage .sbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--rule-dark, #2d2f36);
  background: #15171a;
}

.pod-stage .now {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #a3a7ae;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pod-stage .now b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #ee5b42);
  display: inline-block;
  animation: podBlink 1.6s ease-in-out infinite;
}

@keyframes podBlink {
  50% { opacity: 0.3; }
}

.pod-stage .ep-link {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent, #ee5b42);
  padding-bottom: 2px;
  transition: color .2s ease;
}

.pod-stage .ep-link:hover {
  color: #ffb3a4;
}

/* ---- Editorial Body Section ---- */
.pod-body {
  background: #fff;
  color: var(--body, #454850);
  padding: 72px 0 88px;
}

.pod-body .wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

.pod-body-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.pod-body-grid > * {
  min-width: 0;
}

/* Section Eyebrow Header */
.eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.eyebrow.kd {
  margin-top: 48px;
}

/* Show Notes Prose Typography */
.pod-notes-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body, #454850);
}

.pod-notes-prose p {
  margin: 0 0 20px;
}

.pod-notes-prose p:last-child {
  margin-bottom: 0;
}

/* Key Discussions Numbered List */
.pod-learn {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line, #dbdee2);
}

.pod-learn li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #dbdee2);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink, #1d2024);
}

.pod-learn .ln {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 26px;
  line-height: 1;
  color: var(--accent, #ee5b42);
  font-weight: 500;
}

/* Right Sidebar: Speaker Card */
.pod-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pod-speaker-card {
  background: var(--mist, #f2f4f7);
  border: 1px solid var(--line, #dbdee2);
  padding: 32px 28px;
  border-radius: 4px;
}

.pod-speaker-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pod-speaker-header .fc-lg {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink, #1d2024);
  color: #fff;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent, #ee5b42);
  flex-shrink: 0;
}

.pod-speaker-titles b {
  display: block;
  font-size: 17px;
  color: var(--ink, #1d2024);
  margin-bottom: 4px;
}

.pod-speaker-titles span {
  display: block;
  font-size: 13.5px;
  color: var(--muted, #6b6e75);
  line-height: 1.4;
}

.pod-speaker-bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body, #454850);
}

.pod-speaker-bio p {
  margin: 0 0 14px;
}

.pod-speaker-bio p:last-child {
  margin-bottom: 0;
}

/* Share Block */
.share2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line, #dbdee2);
  border-radius: 4px;
}

.share2 span:first-child {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted, #6b6e75);
  text-transform: uppercase;
  margin-right: 4px;
}

.share2 a,
.share2 button {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue, #0061a8);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.share2 a:hover,
.share2 button:hover {
  background: var(--mist, #f2f4f7);
  color: var(--accent, #ee5b42);
}

.share2 button:focus-visible {
  outline: 2px solid var(--accent, #ee5b42);
}

.share2 .copied-toast {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: var(--accent, #ee5b42);
  margin-left: auto;
  font-weight: 500;
}

/* ---- Previous / Next Episode Navigation ---- */
.pod-nav-wrap {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line, #dbdee2);
}

.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pn a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  border: 1px solid var(--line, #dbdee2);
  border-radius: 4px;
  text-decoration: none;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pn a:hover {
  border-color: var(--accent, #ee5b42);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pn a.next {
  text-align: right;
  align-items: flex-end;
}

.pn .pl {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent, #ee5b42);
  text-transform: uppercase;
  font-weight: 500;
}

.pn .ph2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink, #1d2024);
  font-weight: 400;
}

.pn a:hover .ph2 {
  color: var(--accent, #ee5b42);
}

/* ---- Related / More Episodes Band ---- */
.dark.more {
  background: var(--ink, #1d2024);
  color: #fff;
  padding: 64px 0 72px;
  border-top: 1px solid var(--rule-dark, #2d2f36);
}

.dark.more .wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

.mhd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  gap: 24px;
}

.mhd .h2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
  margin: 0;
}

.tl2 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent, #ee5b42);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s;
}

.tl2:hover {
  color: #ffb3a4;
}

.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.mc {
  background: #15171a;
  border: 1px solid var(--rule-dark, #2d2f36);
  border-radius: 4px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .2s, border-color .2s, transform .2s;
}

.mc:hover {
  background: #202328;
  border-color: var(--accent, #ee5b42);
  transform: translateY(-2px);
}

.mc .mt2 {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #ffb3a4;
  text-transform: uppercase;
}

.mc .mh {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 20px;
  line-height: 1.25;
  color: #fff;
}

.mc .mb {
  font-size: 13.5px;
  color: #a3a7ae;
  line-height: 1.5;
  margin-top: auto;
}

.mc .mg {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent, #ee5b42);
  margin-top: 8px;
}

/* ---- Contact Conversation Band ---- */
.band {
  background: var(--grey, #ebedf0);
  border-top: 1px solid var(--line, #dbdee2);
  padding: 72px 0;
}

.band .wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line, #dbdee2);
  border-radius: 4px;
  padding: 64px 56px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-card h2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink, #1d2024);
  margin: 0 0 16px;
}

.contact-card p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body, #454850);
  margin: 0 0 32px;
  max-width: 52ch;
}

.contact-card .btn-accent {
  display: inline-block;
  background: var(--accent, #ee5b42);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  margin-bottom: 44px;
  transition: background .2s;
}

.contact-card .btn-accent:hover {
  background: #d94b34;
}

.contact-card .contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line, #dbdee2);
}

.contact-card .contacts .nm {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink, #1d2024);
  margin-bottom: 4px;
}

.contact-card .contacts .rl {
  font-size: 13.5px;
  color: var(--muted, #6b6e75);
  margin-bottom: 8px;
}

.contact-card .contacts a {
  font-size: 14px;
  color: var(--blue, #0061a8);
  text-decoration: none;
}

.contact-card .contacts a:hover {
  text-decoration: underline;
}

/* ---- Responsive Adaptations ---- */
@media (max-width: 1024px) {
  .pod-hero .wrap,
  .pod-body .wrap,
  .dark.more .wrap,
  .band .wrap {
    padding-left: 28px;
    padding-right: 28px;
  }

  .pod-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pod-hero h1 {
    font-size: 38px;
  }

  .pod-body-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pn {
    grid-template-columns: 1fr;
  }

  .pn a.next {
    text-align: left;
    align-items: flex-start;
  }

  .contact-card {
    padding: 44px 28px;
  }

  .contact-card .contacts {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .pod-hero .wrap {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .pod-hero h1 {
    font-size: 32px;
  }

  .pod-stand {
    font-size: 16px;
  }

  .pod-stage .play {
    width: 60px;
    height: 60px;
  }

  .pod-stage .play svg {
    width: 24px;
    height: 24px;
  }

  .pod-stage .ch {
    font-size: 19px;
  }

  .mhd {
    flex-direction: column;
    align-items: flex-start;
  }
}
