/* Everything is scoped to .otp so it cannot change the rest of the theme.
   Fonts and text colour are inherited from the theme. */
.otp {
  --otp-accent: #8a1c3c;
  --otp-line: color-mix(in srgb, currentColor 18%, transparent);
  --otp-muted: color-mix(in srgb, currentColor 68%, transparent);
  max-width: 54rem;
  margin-inline: auto;
  line-height: 1.6;
}
.otp *, .otp *::before, .otp *::after { box-sizing: border-box; }
.otp a { color: var(--otp-accent); }
.otp :focus-visible { outline: 3px solid var(--otp-accent); outline-offset: 2px; }
.otp [hidden] { display: none !important; }

.otp .otp-show { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.otp .otp-show img { width: 6rem; height: 6rem; border-radius: 0.5rem; object-fit: cover; margin: 0; }
.otp .otp-show-text { flex: 1 1 16rem; min-width: 0; }
.otp .otp-show-title { font-size: 1.9em; font-weight: 700; line-height: 1.15; margin: 0 0 0.25rem; }
.otp .otp-show-author { margin: 0; color: var(--otp-muted); }
.otp .otp-follow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; align-items: center; }
.otp .otp-follow span { color: var(--otp-muted); font-size: 0.95em; margin-right: 0.25rem; }

.otp .otp-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--otp-line); }
.otp .otp-tools label { font-weight: 600; font-size: 0.95em; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.otp .otp-tools input {
  font: inherit; font-weight: 400; color: inherit; background: transparent;
  border: 1px solid var(--otp-line); border-radius: 0.5rem;
  padding: 0.5rem 0.75rem; width: 18rem; max-width: 100%; margin: 0;
}
.otp .otp-count { color: var(--otp-muted); font-size: 0.95em; font-variant-numeric: tabular-nums; }

.otp .otp-ep {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem;
  padding-block: 2rem; margin: 0; border-bottom: 1px solid var(--otp-line);
  scroll-margin-top: 6rem;
}
.otp .otp-art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0.5rem; object-fit: cover; background: var(--otp-line); display: block; margin: 0; }
.otp .otp-meta { font-size: 0.82em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--otp-muted); font-variant-numeric: tabular-nums; margin: 0 0 0.4rem; }
.otp .otp-meta b { color: var(--otp-accent); font-weight: 600; }
.otp .otp-title { font-size: 1.4em; font-weight: 700; line-height: 1.2; margin: 0 0 0.75rem; text-wrap: balance; }
.otp .otp-title a { color: inherit; text-decoration: none; }
.otp .otp-title a:hover { text-decoration: underline; }
.otp .otp-notes { overflow-wrap: anywhere; }
.otp .otp-notes > :first-child { margin-top: 0; }
.otp .otp-notes p, .otp .otp-notes ul, .otp .otp-notes ol { margin: 0 0 0.8em; }
.otp .otp-notes ul, .otp .otp-notes ol { padding-left: 1.3em; }
.otp .otp-notes.otp-clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.otp .otp-more {
  font: inherit; font-weight: 600; font-size: 0.95em; color: var(--otp-accent); background: none; border: 0; box-shadow: none;
  padding: 0.25rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.otp .otp-listen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.otp a.otp-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.95em; line-height: 1.3; text-decoration: none;
  color: inherit; background: transparent;
  border: 1px solid var(--otp-line); border-radius: 999px; padding: 0.45rem 0.95rem;
}
.otp a.otp-btn:hover { border-color: var(--otp-accent); color: var(--otp-accent); }
.otp a.otp-btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

.otp .otp-status { padding: 3rem 0; color: var(--otp-muted); text-align: center; }
.otp .otp-status button, .otp .otp-older {
  font: inherit; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--otp-accent);
  border: 0; border-radius: 999px; padding: 0.65rem 1.4rem;
}
.otp .otp-pager { display: flex; justify-content: center; padding-top: 2rem; }

@media (max-width: 40rem) {
  .otp .otp-ep { grid-template-columns: 1fr; gap: 1rem; }
  .otp .otp-art { max-width: 14rem; }
  .otp .otp-tools label, .otp .otp-tools input { width: 100%; }
}

/* ---- Sidebar mini list: [podcast_latest] ---- */
.otp-mini {
  --otp-accent: #8a1c3c;
  --otp-line: color-mix(in srgb, currentColor 18%, transparent);
  --otp-muted: color-mix(in srgb, currentColor 68%, transparent);
  width: 100%; max-width: 275px; line-height: 1.4; font-size: 0.95rem;
}
.otp-mini *, .otp-mini *::before, .otp-mini *::after { box-sizing: border-box; }
.otp-mini :focus-visible { outline: 3px solid var(--otp-accent); outline-offset: 2px; }
.otp-mini ul.otp-mini-list { list-style: none; margin: 0; padding: 0; }
.otp-mini li.otp-mini-item { margin: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--otp-line); list-style: none; }
.otp-mini li.otp-mini-item:first-child { padding-top: 0; }
.otp-mini li.otp-mini-item::before { content: none; }
.otp-mini .otp-mini-top { display: flex; gap: 0.75rem; align-items: flex-start; }
.otp-mini img.otp-mini-art { width: 64px; height: 64px; flex: none; border-radius: 6px; object-fit: cover; background: var(--otp-line); margin: 0; }
.otp-mini .otp-mini-text { min-width: 0; }
.otp-mini .otp-mini-meta { margin: 0 0 0.15rem; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--otp-muted); font-variant-numeric: tabular-nums; }
.otp-mini .otp-mini-title { margin: 0; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.otp-mini .otp-mini-links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.otp-mini a.otp-mini-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  color: inherit; border: 1px solid var(--otp-line); border-radius: 999px; padding: 0.3rem 0.6rem;
}
.otp-mini a.otp-mini-link:hover { border-color: var(--otp-accent); color: var(--otp-accent); }
.otp-mini a.otp-mini-link svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.otp-mini a.otp-mini-more { display: inline-block; margin-top: 0.8rem; font-weight: 600; color: var(--otp-accent); }
.otp-mini .otp-mini-status { margin: 0; color: var(--otp-muted); }
.otp-mini .otp-mini-status a { color: var(--otp-accent); }
