:root {
  --shp-bg: #f8fafc;
  --shp-surface: #ffffff;
  --shp-surface-soft: #f8fafc;
  --shp-border: #e2e8f0;
  --shp-border-strong: #cbd5e1;
  --shp-text: #0f172a;
  --shp-muted: #475569;
  --shp-subtle: #94a3b8;
  --shp-indigo: #6366f1;
  --shp-blue: #3b82f6;
  --shp-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shp-sidebar-width: 30rem;
  --shp-sidebar-offset: var(--shp-sidebar-width);
  --shp-dock-height: 8rem;
}

body.shp-feed-preview {
  margin: 0;
  min-height: 100vh;
  background: var(--shp-bg);
  color: var(--shp-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.shp-feed-preview *,
body.shp-feed-preview *::before,
body.shp-feed-preview *::after {
  box-sizing: border-box;
}

body.shp-feed-preview img {
  display: block;
  max-width: 100%;
}

body.shp-feed-preview a,
body.shp-feed-preview button,
body.shp-feed-preview input {
  font: inherit;
}

.shp-preview-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shp-preview-state {
  width: min(100% - 2rem, 60rem);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.shp-preview-state__card {
  padding: 2rem;
  border: 1px solid var(--shp-border);
  border-radius: 1.5rem;
  background: var(--shp-surface);
  box-shadow: var(--shp-shadow);
}

.shp-preview-eyebrow,
.shp-preview-section-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.shp-preview-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shp-muted);
}

.shp-preview-state__card h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
}

.shp-preview-state__message {
  margin: 0;
  max-width: 52ch;
  color: var(--shp-muted);
  line-height: 1.8;
}

.shp-preview-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.shp-preview-shell {
  width: 100%;
}

.shp-preview-sidebar {
  background: #f8fafc;
}

.shp-preview-sidebar__hosted {
  display: none;
}

.shp-preview-sidebar__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 2.5rem 1rem 1rem;
  max-width: 42rem;
}

.shp-preview-cover-link {
  display: block;
  width: 12rem;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.28);
}

.shp-preview-cover {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.shp-preview-cover--fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--shp-blue), var(--shp-blue));
  color: white;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
}

.shp-preview-showcopy {
  margin-top: 2rem;
  text-align: center;
}

.shp-preview-showcopy__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.shp-preview-showcopy__tagline {
  margin: 0.75rem 0 0;
  color: var(--shp-muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.shp-preview-sidebar__section {
  margin-top: 2rem;
}

.shp-preview-section-title {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--shp-text);
}

.shp-preview-section-title__bars {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  flex: none;
}

.shp-preview-section-title__bars::before,
.shp-preview-section-title__bars::after {
  content: "";
  position: absolute;
  inset: 0;
}

.shp-preview-section-title__bars::before {
  background: #c4b5fd;
  transform: translateX(-0.08rem);
}

.shp-preview-section-title__bars::after {
  background: #f9a8d4;
  transform: translateX(0.22rem) translateY(-0.22rem) scale(0.7);
}

.shp-preview-section-title__bars--blue::before {
  background: #a5b4fc;
}

.shp-preview-section-title__bars--blue::after {
  background: #93c5fd;
}

.shp-preview-section-title span:last-child {
  margin-left: 0.85rem;
}

.shp-preview-about {
  margin-top: 0.5rem;
  color: var(--shp-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.shp-preview-about > *:first-child {
  margin-top: 0;
}

.shp-preview-linklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.shp-preview-linklist__item {
  display: inline-flex;
  align-items: center;
  color: var(--shp-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.shp-preview-linklist__item:hover {
  color: var(--shp-text);
}

.shp-preview-linklist__icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  fill: currentColor;
  stroke: currentColor;
}

.shp-preview-main {
  position: relative;
  border-top: 1px solid var(--shp-border);
  background: var(--shp-surface);
}

.shp-preview-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6.5rem;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  opacity: 0.8;
  pointer-events: none;
}

.shp-preview-wave__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shp-preview-main__inner {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
}

.shp-preview-main__heading {
  position: relative;
  margin: 0;
  padding: 4rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.shp-preview-episodes {
  border-top: 1px solid #f1f5f9;
}

.shp-preview-episode-card {
  padding: 2.5rem 0;
  border-top: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.shp-preview-episode-card:first-child {
  border-top: 0;
}

.shp-preview-episode-card.is-current {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.05), transparent 18rem);
}

.shp-preview-episode-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.shp-preview-episode-card__time {
  order: -1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--shp-muted);
}

.shp-preview-episode-card__title {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}

.shp-preview-episode-card__title a {
  color: inherit;
  text-decoration: none;
}

.shp-preview-episode-card__title a:hover {
  text-decoration: underline;
}

.shp-preview-episode-card__excerpt {
  margin: 0.25rem 0 0;
  color: var(--shp-muted);
  line-height: 1.75;
}

.shp-preview-episode-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-top: 1rem;
}

.shp-preview-text-button,
.shp-preview-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--shp-blue);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.shp-preview-text-button {
  transition: color 0.2s ease;
}

.shp-preview-text-button:hover,
.shp-preview-text-link:hover {
  color: var(--shp-indigo);
}

.shp-preview-text-button.is-current {
  color: var(--shp-indigo);
}

.shp-preview-text-button--muted {
  color: var(--shp-muted);
}

.shp-preview-text-button--muted:hover {
  color: var(--shp-text);
}

.shp-preview-text-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shp-preview-text-button__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.shp-preview-divider {
  color: #cbd5e1;
  font-weight: 700;
}

.shp-preview-mobile-footer {
  padding: 2.5rem 0 calc(var(--shp-dock-height) + 4rem);
  border-top: 1px solid var(--shp-border);
  background: #f8fafc;
}

.shp-preview-mobile-footer__about p {
  margin: 0.5rem 0 0;
  color: var(--shp-muted);
  line-height: 1.8;
}

.shp-preview-mobile-footer__hosted {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 700;
  color: var(--shp-text);
}

.shp-preview-mobile-footer__hosted span {
  color: var(--shp-muted);
}

.shp-preview-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.85rem 1rem env(safe-area-inset-bottom, 0.85rem);
  background: linear-gradient(to top, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.88));
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}

.shp-preview-dock.is-hidden {
  display: none;
}

.shp-preview-dock__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 96rem;
  margin: 0 auto;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
}

.shp-preview-dock__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.shp-preview-dock__title {
  margin: 0;
  color: var(--shp-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shp-preview-dock__controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  min-width: 0;
}

.shp-preview-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.shp-preview-control:hover {
  background: #f1f5f9;
  color: var(--shp-text);
}

.shp-preview-control svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  stroke: currentColor;
}

.shp-preview-control--play {
  width: 3rem;
  height: 3rem;
  background: #0f172a;
  color: white;
}

.shp-preview-control--play:hover {
  background: #0f172a;
  color: white;
}

.shp-preview-control--hero {
  width: 4.75rem;
  height: 4.75rem;
  flex: none;
  border-radius: 999px;
}

.shp-preview-control--hero svg {
  width: 36px;
  height: 36px;
}

.shp-preview-control__icon--loading {
  animation: shp-preview-spin 0.85s linear infinite;
}

.shp-preview-control--mute {
  border: 1px solid var(--shp-border);
  background: #fff;
}

.shp-preview-control[data-preview-action=backward] svg,
.shp-preview-control[data-preview-action=forward] svg {
  width: 24px;
  height: 24px;
}

.shp-preview-dock__progress {
  flex: 1 1 18rem;
  min-width: 12rem;
  position: relative;
  display: flex;
  align-items: center;
  height: 1.5rem;
}

.shp-preview-dock__progress-visual {
  position: relative;
  width: 100%;
  height: 0.5rem;
  overflow: visible;
  border-radius: 999px;
  background: #e2e8f0;
}

.shp-preview-dock__progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #334155;
}

.shp-preview-dock__progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.28rem;
  height: 1rem;
  border-radius: 999px;
  background: #334155;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.shp-preview-dock__progress input {
  -webkit-appearance: none;
          appearance: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  outline: none;
}

.shp-preview-dock__time {
  min-width: 6.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--shp-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shp-preview-dock__speed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  border: 1px solid var(--shp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--shp-muted);
  font-size: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.shp-preview-dock__speed:hover {
  background: #eef2ff;
  color: var(--shp-text);
  border-color: #c7d2fe;
}

.shp-preview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--shp-border);
  background: white;
  color: var(--shp-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.shp-preview-chip--primary {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: var(--shp-indigo);
}

.shp-preview-chip.is-hidden,
.shp-preview-control .is-hidden,
.shp-preview-text-button .is-hidden {
  display: none !important;
}

.shp-preview-modal-open {
  overflow: hidden;
}

.shp-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.shp-preview-modal[hidden] {
  display: none !important;
}

.shp-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.shp-preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  max-height: min(85vh, 56rem);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
}

.shp-preview-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--shp-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.shp-preview-modal__close:hover {
  color: var(--shp-text);
  background: #eef2ff;
}

.shp-preview-modal__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shp-subtle);
}

.shp-preview-modal__title {
  margin: 0.5rem 0 0;
  padding-right: 3rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
}

.shp-preview-modal__content {
  margin-top: 1.25rem;
  color: var(--shp-muted);
  line-height: 1.8;
}

.shp-preview-modal__content > *:first-child {
  margin-top: 0;
}

.shp-preview-modal__content > *:last-child {
  margin-bottom: 0;
}

.shp-preview-modal__content a {
  color: var(--shp-blue);
}

@keyframes shp-preview-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 64rem) {
  .shp-preview-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    width: var(--shp-sidebar-width);
    align-items: flex-start;
    overflow-y: auto;
  }
  .shp-preview-sidebar__hosted {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    display: flex;
    width: 4rem;
    flex: none;
    align-items: center;
    padding: 3rem 1.4rem;
    font-size: 0.875rem;
    line-height: 1.75;
    white-space: nowrap;
    writing-mode: vertical-rl;
  }
  .shp-preview-sidebar__hosted span {
    color: var(--shp-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  }
  .shp-preview-sidebar__hosted strong {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--shp-text);
    font-weight: 700;
  }
  .shp-preview-sidebar__inner {
    min-height: 100%;
    flex: 1;
    margin: 0;
    padding: 3rem 2rem;
    border-inline: 1px solid var(--shp-border);
  }
  .shp-preview-cover-link {
    width: 100%;
    max-width: none;
    border-radius: 1.5rem;
  }
  .shp-preview-showcopy {
    margin-top: 2.5rem;
    text-align: left;
  }
  .shp-preview-linklist {
    display: grid;
    justify-content: start;
    gap: 1rem;
  }
  .shp-preview-main {
    -webkit-margin-start: var(--shp-sidebar-offset);
            margin-inline-start: var(--shp-sidebar-offset);
    margin-bottom: calc(var(--shp-dock-height));
    border-top: 0;
  }
  .shp-preview-main__heading {
    padding-top: 3rem;
  }
  .shp-preview-mobile-footer {
    display: none;
  }
  .shp-preview-dock {
    inset-inline-start: var(--shp-sidebar-offset);
    padding-inline: 1.25rem;
  }
}

@media (min-width: 93.75rem) {
  .shp-preview-main__inner {
    width: min(100% - 4rem, 50rem);
    -webkit-margin-start: 3rem;
            margin-inline-start: 3rem;
    -webkit-margin-end: auto;
            margin-inline-end: auto;
  }
}

@media (max-width: 63.999rem) {
  .shp-preview-mobile-footer {
    display: block;
  }
  .shp-preview-dock__title {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  .shp-preview-sidebar__inner,
  .shp-preview-main__inner {
    width: min(100% - 1.5rem, 42rem);
  }
  .shp-preview-main__heading {
    padding-top: 3.5rem;
  }
  .shp-preview-dock {
    padding: 0.75rem 0.75rem env(safe-area-inset-bottom, 0.75rem);
  }
  .shp-preview-dock__inner {
    padding: 0.85rem;
    gap: 0.85rem;
  }
  .shp-preview-dock__body {
    align-items: stretch;
  }
  .shp-preview-dock__controls {
    gap: 0.5rem;
  }
  .shp-preview-dock__time {
    min-width: 0;
    font-size: 0.76rem;
  }
  .shp-preview-dock__progress {
    flex: 1 1 100%;
    min-width: 0;
    order: 10;
  }
}

@media (max-width: 39.99rem) {
  .shp-preview-dock {
    padding: 0.65rem 0.75rem env(safe-area-inset-bottom, 0.65rem);
  }
  .shp-preview-dock__inner {
    position: relative;
    padding: 1.1rem 0.75rem 0.75rem;
    gap: 0.75rem;
  }
  .shp-preview-control--hero {
    width: 40px;
    height: 40px;
  }
  .shp-preview-control--hero svg {
    width: 22px;
    height: 22px;
  }
  .shp-preview-dock__body {
    align-items: flex-end;
  }
  .shp-preview-dock__controls {
    width: 100%;
    justify-content: flex-end;
    gap: 0.4rem;
    padding-top: 0.1rem;
  }
  .shp-preview-dock__time {
    display: none;
  }
  .shp-preview-dock__progress {
    position: absolute;
    top: 0;
    left: calc(0.75rem + 5px);
    width: calc(100% - 1.5rem - 10px);
    min-width: 0;
    height: 0.75rem;
    order: initial;
  }
  .shp-preview-dock__progress-visual {
    height: 0.35rem;
  }
  .shp-preview-dock__progress-thumb {
    height: 0.85rem;
  }
}