/* Skin Science for Kids — podcast + video */

/* ---------- episode card ---------- */
.episode {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; overflow: hidden;
  background: var(--white); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink);
}
.ep-art {
  background: var(--purple); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 28px; position: relative; overflow: hidden; border-right: 2px solid var(--ink);
}
.ep-art::before, .ep-art::after { content: ""; position: absolute; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.18); }
.ep-art::before { width: 260px; height: 260px; }
.ep-art::after { width: 340px; height: 340px; }
.ep-num { position: relative; margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--white); }
.pod-cellie { position: relative; z-index: 1; }
.pod-cellie.listening .c-bob { animation-duration: 0.9s; }

.ep-body { padding: 30px 32px; }
.ep-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 10px; }
.ep-guest { font-size: 1.02rem; margin-bottom: 20px; }

/* ---------- player ---------- */
.pod-player audio { width: 100%; }
.pod-ui { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--purple-soft); border-radius: 20px; padding: 14px 16px; }
.pod-ui[hidden] { display: none; }
.pod-toggle {
  width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--pink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.15s;
}
.pod-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pod-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pod-toggle svg { width: 30px; height: 30px; fill: var(--white); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.pod-toggle .i-pause, .pod-toggle.playing .i-play { display: none; }
.pod-toggle.playing .i-pause { display: block; }

.pod-track { position: relative; min-width: 0; }
.pod-bars { height: 30px; display: flex; align-items: flex-end; gap: 3px; margin-bottom: 4px; }
.pod-bars i { flex: 1; background: #c9bff0; border-radius: 3px; min-height: 4px; transform-origin: bottom; transform: scaleY(0.35); transition: transform 0.3s; }
.pod-player.is-playing .pod-bars i { background: var(--purple); animation: bar 1.1s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.pod-seek {
  --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 6px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--pink) var(--p), var(--white) var(--p)); border: 1.5px solid var(--ink);
}
.pod-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--ink); }
.pod-seek::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--ink); }
.pod-times { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.pod-extra { display: flex; gap: 6px; }
.pod-extra button {
  min-width: 48px; min-height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--white);
  font: 700 0.9rem var(--body); color: var(--ink); cursor: pointer;
}
.pod-extra button:hover { background: var(--white); box-shadow: inset 0 -3px 0 var(--pink); }

/* ---------- big ideas ---------- */
.takeaways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.takeaways .info-card { position: relative; padding-top: 30px; }
.tk-num {
  position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: var(--white);
  border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800;
}

/* ---------- quotes ---------- */
.quote-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pull-quote { margin: 0; background: var(--yellow); border-radius: 24px; padding: 30px 32px; position: relative; }
.pull-quote.alt { background: var(--pink-soft); }
.pull-quote blockquote { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; color: var(--ink); }
.pull-quote figcaption { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.pull-quote figcaption::before { content: "— "; }

/* ---------- chapters + talk ---------- */
.two-col-pod { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
.chapters { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; max-width: none !important; }
.chapters li { margin: 0; }
.chapters button {
  width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; cursor: pointer; padding: 10px 14px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: 600 0.95rem var(--body); color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.chapters button:hover { border-color: var(--purple); background: var(--purple-soft); }
.chapters button.now { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chapters button.now .ch-time { background: var(--pink); color: var(--white); }
.ch-time { flex: 0 0 auto; min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.82rem; padding: 3px 8px; border-radius: 8px; background: var(--purple-soft); color: var(--ink); }
.talk-box { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 22px; position: sticky; top: 20px; }
.talk-box .cellie-says { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.talk-box .cellie-bubble p { margin: 0; font-size: 0.92rem; font-weight: 500; }
.talk-box .says-title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.talk-box ul { margin: 0; padding-left: 20px; }
.talk-box li { font-size: 0.95rem; margin-bottom: 8px; }

/* ---------- YouTube (click to load) ---------- */
.yt-facade { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 2px solid var(--ink); background: var(--night); box-shadow: 6px 6px 0 var(--ink); }
.yt-facade iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: var(--night); display: block; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; transition: transform 0.4s ease, opacity 0.3s; }
.yt-play:hover img { transform: scale(1.03); opacity: 1; }
.yt-button {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--pink); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--ink); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.yt-play:hover .yt-button { transform: scale(1.1); }
.yt-button svg { width: 38px; height: 38px; fill: var(--white); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; margin-left: 4px; }

.watch-block { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 28px; }
.now-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--pink); color: var(--white); font-weight: 700; font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.now-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: blink-dot 1.6s infinite; }
@keyframes blink-dot { 50% { opacity: 0.3; } }
.watch-copy h3 { font-size: 1.6rem; margin-bottom: 8px; }

@media (max-width: 820px) {
  .episode { grid-template-columns: minmax(0, 1fr); }
  .ep-art { border-right: 0; border-bottom: 2px solid var(--ink); padding: 22px; }
  .ep-body { padding: 22px 20px; }
  .pod-ui { grid-template-columns: auto minmax(0, 1fr); }
  .pod-extra { grid-column: 1 / -1; justify-content: center; }
  .takeaways, .quote-row, .two-col-pod, .watch-block { grid-template-columns: minmax(0, 1fr); }
  .talk-box { position: static; }
}
@media (prefers-reduced-motion: reduce) { .pod-bars i { animation: none !important; } }
@media print { .pod-player, .yt-facade { display: none; } }
