/* ============================================================
   PärPod — parpod.net
   ============================================================ */

:root {
  --bg: #0a0810;
  --bg-card: #13101a;
  --bg-accent: #110e18;
  --text: #ddd6e8;
  --text-muted: #8a7d9c;
  --text-light: #5a4f6d;
  --pink: #ff2d78;
  --pink-hot: #ff0055;
  --pink-soft: #ff6ba6;
  --pink-pale: #ffb3d1;
  --pink-glow: rgba(255, 45, 120, 0.12);
  --pink-glow-strong: rgba(255, 45, 120, 0.25);
  --lilac: #b896ff;
  --lilac-soft: rgba(184, 150, 255, 0.1);
  --thread-bg: #17122a;
  --thread-text: #b896ff;
  --border: #241d32;
  --border-light: #1c1628;
  --code-bg: #120e1a;
  --connection-line: #322650;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', monospace;

  --max-width: 72rem;
  --content-width: 46rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #3a1a40;
  color: var(--pink-pale);
}

a { color: var(--pink-soft); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}
.site-logo:hover { color: var(--text); }

.logo-mark {
  width: 1.8rem;
  height: 1.8rem;
  background: var(--pink);
  color: white;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav { display: flex; gap: 0.15rem; }

.site-nav a {
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--pink);
  background: var(--pink-glow);
}

/* ============================================================
   HOME
   ============================================================ */

body.home {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 0, 117, 0.18), transparent 16rem),
    radial-gradient(circle at 85% 20%, rgba(103, 76, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 78% 72%, rgba(255, 45, 120, 0.12), transparent 16rem),
    linear-gradient(180deg, #0b0720 0%, #090614 45%, #080511 100%);
}

body.home .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  background: rgba(7, 5, 18, 0.58);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

body.home .site-main {
  overflow: hidden;
}

.home-stage {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 5.5rem 2rem 0;
  position: relative;
}

.stage-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 0 16px rgba(255, 45, 120, 0.4));
}

.doodle-loop {
  border: 4px solid transparent;
  border-top-color: #ff4f95;
  border-left-color: #ff4f95;
  border-radius: 999px;
}

.doodle-loop-a {
  width: 11rem;
  height: 11rem;
  top: 1rem;
  right: 9rem;
  transform: rotate(18deg);
}

.doodle-loop-b {
  width: 5rem;
  height: 5rem;
  top: 2.5rem;
  left: 1rem;
  border-top-color: #6d58ff;
  border-left-color: #6d58ff;
  filter: drop-shadow(0 0 16px rgba(109, 88, 255, 0.45));
}

.doodle-zig {
  width: 9rem;
  height: 2rem;
  border-bottom: 4px solid #6d58ff;
  border-radius: 50%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 14px rgba(109, 88, 255, 0.4));
}

.doodle-zig-a {
  top: 15rem;
  right: 17rem;
}

.doodle-star {
  width: 3.4rem;
  height: 3.4rem;
  top: 12rem;
  right: 2rem;
}

.doodle-star::before,
.doodle-star::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #ff4f95;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 2px;
}

.doodle-orb {
  width: 14rem;
  height: 10rem;
  right: 6rem;
  top: 6rem;
  background: radial-gradient(circle at 30% 30%, rgba(129, 105, 255, 0.28), rgba(129, 105, 255, 0.12) 45%, transparent 70%);
  border-radius: 48% 52% 50% 50%;
  filter: blur(1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: end;
  min-height: 34rem;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 42rem;
  padding: 2rem 0 3rem;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff77b2;
  margin-bottom: 1.25rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-size: clamp(4.5rem, 13vw, 8.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.84;
  color: #ffd6e8;
  margin-bottom: 1.6rem;
  text-shadow:
    0 0 10px rgba(255, 73, 150, 0.8),
    0 0 24px rgba(255, 73, 150, 0.42),
    0 0 42px rgba(255, 73, 150, 0.18);
}

.hero-stats {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 233, 244, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff5ca0;
}

.hero-side {
  display: grid;
  gap: 1.25rem;
  align-self: center;
}

.thread-rail {
  justify-self: start;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.thread-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 203, 226, 0.62);
  padding-top: 0.2rem;
}

.thread-rail-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.thread-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(18, 13, 43, 0.72);
  border: 1px solid rgba(255, 88, 158, 0.55);
  border-radius: 999px;
  color: #ffd4e9;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: 0 0 0 1px rgba(255, 88, 158, 0.08), 0 0 22px rgba(255, 88, 158, 0.12);
}

.thread-chip:hover {
  border-color: #ff7db4;
  color: #fff1f7;
  background: rgba(37, 18, 58, 0.84);
  transform: translateX(4px);
}

.chip-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(109, 88, 255, 0.18);
  color: #cdb9ff;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
}

.chip-name { font-size: 0.82rem; }

.spotlight-card {
  padding: 1.6rem 1.8rem;
  border: 2px solid rgba(255, 94, 170, 0.78);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(17, 12, 38, 0.96), rgba(13, 10, 30, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 104, 177, 0.16),
    0 0 24px rgba(255, 72, 150, 0.18),
    inset 0 0 22px rgba(255, 72, 150, 0.05);
  max-width: 25rem;
}

.spotlight-episode {
  border-color: rgba(122, 104, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(122, 104, 255, 0.14),
    0 0 24px rgba(122, 104, 255, 0.18),
    inset 0 0 22px rgba(122, 104, 255, 0.05);
}

.spotlight-kicker,
.spotlight-meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}

.spotlight-kicker {
  color: #ff6daa;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.spotlight-episode .spotlight-kicker {
  color: #bcaaff;
}

.spotlight-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}

.spotlight-card h2 a {
  color: #ffd6e8;
}

.spotlight-card h2 a:hover {
  color: #fff5fa;
}

.spotlight-card p {
  color: rgba(240, 224, 242, 0.78);
  font-size: 0.96rem;
  line-height: 1.55;
}

.spotlight-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: rgba(255, 218, 235, 0.5);
}

.home-featured {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}

.split-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.content-lane {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.lane-header {
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid rgba(255, 87, 157, 0.18);
  border-radius: 1.1rem;
  background: rgba(10, 8, 24, 0.66);
}

.content-lane:first-child .lane-header {
  border-color: rgba(122, 104, 255, 0.26);
  box-shadow: inset 0 0 18px rgba(122, 104, 255, 0.04);
}

.content-lane:last-child .lane-header {
  border-color: rgba(255, 87, 157, 0.18);
  box-shadow: inset 0 0 18px rgba(255, 87, 157, 0.03);
}

.lane-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff77b2;
  margin-bottom: 0.7rem;
}

.content-lane:first-child .lane-kicker {
  color: #bcaaff;
}

.content-lane:last-child .lane-kicker {
  color: #ff77b2;
}

.lane-header h2 {
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffe1ed;
  margin-bottom: 0.6rem;
}

.lane-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
  grid-auto-flow: dense;
}

.mosaic-item {
  background: rgba(13, 10, 31, 0.94);
  padding: 1.25rem 1.3rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid rgba(255, 87, 157, 0.35);
  border-radius: 0.95rem;
  box-shadow: 0 0 0 1px rgba(255, 87, 157, 0.04);
  min-height: 12rem;
}

.mosaic-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 114, 177, 0.72);
  box-shadow: 0 0 20px rgba(255, 87, 157, 0.16);
}

.mosaic-wide {
  grid-column: span 2;
  grid-row: span 1;
  padding: 1.85rem 1.7rem;
  border-width: 2px;
  transform: rotate(-1.4deg);
  box-shadow:
    0 0 0 1px rgba(255, 86, 156, 0.14),
    0 0 28px rgba(255, 86, 156, 0.12);
}

.mosaic-wide:hover {
  transform: rotate(-1.4deg) translateY(-3px);
}

.mosaic-tall {
  grid-row: span 2;
  transform: rotate(1.2deg);
  min-height: 23rem;
}

.mosaic-tall:hover {
  transform: rotate(1.2deg) translateY(-3px);
}

.mosaic-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 226, 239, 0.52);
}

.mosaic-piece .mosaic-type { color: #ff6daa; }
.mosaic-episode .mosaic-type { color: #bcaaff; }

.home-mosaic-episodes .mosaic-item {
  border-color: rgba(122, 104, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(122, 104, 255, 0.05);
}

.home-mosaic-episodes .mosaic-item:hover {
  border-color: rgba(160, 145, 255, 0.72);
  box-shadow: 0 0 20px rgba(122, 104, 255, 0.18);
}

.home-mosaic-episodes .mosaic-wide {
  box-shadow:
    0 0 0 1px rgba(122, 104, 255, 0.14),
    0 0 28px rgba(122, 104, 255, 0.12);
}

.home-mosaic-pieces .mosaic-item {
  border-color: rgba(255, 87, 157, 0.35);
}

.home-mosaic-pieces .mosaic-item:hover {
  border-color: rgba(255, 114, 177, 0.72);
  box-shadow: 0 0 20px rgba(255, 87, 157, 0.16);
}

.mosaic-item h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.mosaic-wide h3,
.mosaic-tall h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.mosaic-item h3 a { color: #ffe3ee; }
.mosaic-item h3 a:hover { color: #fff8fb; }

.mosaic-item p {
  color: rgba(236, 221, 240, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mosaic-wide p,
.mosaic-tall p {
  font-size: 0.92rem;
  max-width: 28rem;
  -webkit-line-clamp: 6;
}

.home-everything {
  padding: 1.4rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.everything-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 88, 158, 0.4);
  border-radius: 999px;
  color: rgba(255, 229, 240, 0.78);
  background: rgba(15, 11, 34, 0.7);
  transition: transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.everything-link:hover {
  transform: translateY(-1px);
  border-color: #ff75b1;
  color: #fff8fb;
  background: rgba(31, 18, 52, 0.86);
}

/* ============================================================
   CARDS (list pages)
   ============================================================ */

.content-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(14, 10, 31, 0.94);
  padding: 1.45rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(255, 87, 157, 0.26);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(255, 87, 157, 0.04),
    inset 0 0 18px rgba(255, 87, 157, 0.03);
  position: relative;
}

.card-episodes {
  border-color: rgba(122, 104, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(122, 104, 255, 0.05),
    inset 0 0 18px rgba(122, 104, 255, 0.03);
}

.card-episodes:hover {
  border-color: rgba(160, 145, 255, 0.66);
  box-shadow:
    0 0 0 1px rgba(160, 145, 255, 0.08),
    0 0 20px rgba(122, 104, 255, 0.14);
}

.card-pieces {
  border-color: rgba(255, 87, 157, 0.26);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 117, 177, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 117, 177, 0.08),
    0 0 20px rgba(255, 87, 157, 0.12);
}

.card > * {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: auto;
}

.card-link:focus-visible {
  outline: 2px solid #ff75b1;
  outline-offset: 4px;
}

.card .card-threads,
.card .card-threads * {
  pointer-events: auto;
}

.card h3 {
  font-size: 1.08rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card h3 { color: #ffe4ef; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.63rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.card-category { color: #ff74b0; }
.card-series { color: #bcaaff; }

.card-ep, .card-duration, .card-source, .card-date {
  color: rgba(245, 225, 239, 0.48);
}

.card-subtitle {
  color: rgba(236, 221, 240, 0.72);
  font-size: 0.85rem;
  line-height: 1.5;
}

.card-threads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.thread-pill {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: #cdb9ff;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(109, 88, 255, 0.26);
  background: rgba(84, 65, 170, 0.08);
  border-radius: 999px;
  transition: all 0.15s;
}

.thread-pill:hover {
  border-color: rgba(255, 112, 176, 0.56);
  color: #ffe2ee;
  background: rgba(255, 112, 176, 0.08);
}

.card-connections {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: rgba(245, 225, 239, 0.48);
  margin-top: auto;
  padding-top: 0.85rem;
}

/* ---- Section titles (list pages) ---- */
.section-title {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pink);
  font-family: var(--font-mono);
}

/* ============================================================
   SINGLE PAGE
   ============================================================ */

.single {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.single-header {
  margin-bottom: 3rem;
}

.single-episode .poster-panel {
  border-color: rgba(122, 104, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(122, 104, 255, 0.14),
    0 0 28px rgba(122, 104, 255, 0.1),
    inset 0 0 22px rgba(122, 104, 255, 0.04);
}

.single-piece .poster-panel {
  border-color: rgba(255, 94, 170, 0.78);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-series { color: #bcaaff; }
.meta-category { color: #ff74b0; }
.meta-episode, .meta-date, .meta-source, .meta-reading { color: rgba(245, 225, 239, 0.5); }

.single h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: #ffe1ed;
}

.single-subtitle {
  font-size: 1rem;
  color: rgba(236, 221, 240, 0.74);
  line-height: 1.6;
  margin-top: 1rem;
  font-style: normal;
  max-width: 38rem;
}

.single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.single-action-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 87, 157, 0.26);
  color: #ffe2ee;
  background: rgba(255, 87, 157, 0.08);
}

.single-action-pill:hover {
  border-color: rgba(255, 117, 177, 0.64);
  background: rgba(255, 87, 157, 0.14);
  color: #fff8fb;
}

.single-episode .single-action-pill {
  border-color: rgba(122, 104, 255, 0.28);
  color: #e4dbff;
  background: rgba(122, 104, 255, 0.1);
}

.single-episode .single-action-pill:hover {
  border-color: rgba(160, 145, 255, 0.64);
  background: rgba(122, 104, 255, 0.16);
}

.single-threads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.2rem;
}

/* ---- Audio player ---- */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(14, 10, 31, 0.94);
  border: 1px solid rgba(255, 87, 157, 0.24);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 18px rgba(255, 87, 157, 0.03);
}

.single-episode .audio-player {
  border-color: rgba(122, 104, 255, 0.24);
  box-shadow: inset 0 0 18px rgba(122, 104, 255, 0.03);
}

.play-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: transparent;
  color: var(--pink);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover {
  background: var(--pink);
  color: white;
}

.player-info {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(245, 225, 239, 0.5);
  flex-shrink: 0;
}

.player-progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--pink);
  transition: width 0.1s linear;
}

.single-episode .progress-bar {
  background: #7a68ff;
}

.tts-player { border-color: var(--lilac-soft); }
.tts-player .play-btn { border-color: var(--lilac); color: var(--lilac); }
.tts-player .play-btn:hover { background: var(--lilac); color: var(--bg); }

/* ---- Prose ---- */
.single-body {
  background: rgba(10, 8, 24, 0.7);
  border: 1px solid rgba(109, 88, 255, 0.12);
  border-radius: 1.4rem;
  padding: 1.8rem 1.6rem 2rem;
  box-shadow: inset 0 0 26px rgba(109, 88, 255, 0.03);
  font-size: 1rem;
  line-height: 1.8;
}

.single-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.single-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--lilac);
}

.single-body p { margin-bottom: 1.25rem; }

.single-body blockquote {
  border-left: 2px solid var(--pink);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: rgba(236, 221, 240, 0.7);
  background: rgba(255, 87, 157, 0.05);
  border-radius: 0 1rem 1rem 0;
}

.single-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 1.5rem 0;
}

.single-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--pink-soft);
}

.single-body pre code { color: var(--text); }

.single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  overflow: hidden;
}

.single-body th, .single-body td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.single-body th {
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.single-body ul, .single-body ol { margin: 0 0 1.25rem 1.5rem; }
.single-body li { margin-bottom: 0.3rem; }
.single-body li::marker { color: var(--pink); }
.single-body strong { font-weight: 600; color: var(--text); }

.single-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ---- Connections ---- */
.connections {
  margin-top: 3rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(255, 87, 157, 0.24);
  border-radius: 1.2rem;
  background: rgba(14, 10, 31, 0.84);
}

.connections-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pink);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.connections-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.connections-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(109, 88, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(109, 88, 255, 0.05);
  transition: all 0.15s;
}

.connections-list li:hover {
  border-color: rgba(255, 112, 176, 0.38);
}

.connection-episodes {
  border-color: rgba(122, 104, 255, 0.2) !important;
  background: rgba(122, 104, 255, 0.06) !important;
}

.connection-pieces {
  border-color: rgba(255, 87, 157, 0.2) !important;
  background: rgba(255, 87, 157, 0.05) !important;
}

.connection-kind {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 225, 239, 0.55);
}

.connection-episodes .connection-kind {
  color: #bcaaff;
}

.connection-pieces .connection-kind {
  color: #ff77b2;
}

.connection-link { font-weight: 600; font-size: 0.9rem; }
.connection-missing { color: var(--text-light); font-style: italic; }
.connection-reason { font-size: 0.75rem; color: var(--text-light); line-height: 1.4; }

/* ============================================================
   LIST PAGES
   ============================================================ */

.list-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.list-header {
  margin-bottom: 3rem;
}

.list-header h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #ffe1ed;
}

.list-description {
  color: rgba(236, 221, 240, 0.72);
  font-size: 0.92rem;
  margin-top: 0.7rem;
  max-width: 38rem;
}

.poster-panel {
  position: relative;
  padding: 1.65rem 1.55rem;
  border: 2px solid rgba(255, 94, 170, 0.78);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(16, 11, 38, 0.96), rgba(11, 9, 26, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 104, 177, 0.14),
    0 0 28px rgba(255, 72, 150, 0.1),
    inset 0 0 22px rgba(255, 72, 150, 0.04);
}

.list-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff77b2;
  margin-bottom: 0.9rem;
}

.poster-strip {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(109, 88, 255, 0.16);
  border-radius: 1rem;
  background: rgba(11, 8, 24, 0.72);
}

/* Thread list page */
.thread-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.thread-grid-large { gap: 0.5rem; }

.thread-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.05rem;
  background: rgba(14, 10, 31, 0.94);
  border: 1px solid rgba(255, 87, 157, 0.28);
  border-radius: 999px;
  color: #ffe1ed;
  font-size: 0.85rem;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.thread-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 117, 177, 0.58);
  box-shadow: 0 0 18px rgba(255, 87, 157, 0.12);
}

.thread-name { font-weight: 600; }

.thread-count {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: rgba(245, 225, 239, 0.5);
}

/* Series page */
.thread-page .content-grid { margin-top: 1rem; }

/* ============================================================
   TAXONOMY: SERIES
   ============================================================ */

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 6, 19, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 87, 157, 0.18);
  border-radius: 1.25rem;
  background: rgba(13, 10, 31, 0.88);
  box-shadow: inset 0 0 18px rgba(255, 87, 157, 0.03);
}

.footer-about p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.footer-meta { margin-top: 0.25rem; font-size: 0.75rem !important; color: var(--text-light) !important; }

.footer-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pink);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.footer-feeds ul { list-style: none; }
.footer-feeds li { font-size: 0.82rem; line-height: 1.8; }

/* ---- Feeds page ---- */
.feeds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
  background: var(--bg-card);
}

.feed-item:hover { border-color: var(--pink); }

.feed-icon {
  width: 2rem;
  height: 2rem;
  background: var(--pink);
  color: white;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.feed-info h3 { font-size: 0.92rem; font-weight: 600; }
.feed-info p { font-size: 0.75rem; color: var(--text-muted); }

/* ---- 404 ---- */
.hero-title + .hero-sub { color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .header-inner {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav { flex-wrap: wrap; }
  .site-nav a { font-size: 0.65rem; padding: 0.3rem 0.4rem; }
  .home-stage { padding: 4rem 1.25rem 0; margin-bottom: 2.5rem; }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
  }
  .split-content {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding: 1rem 0 0.5rem; }
  .hero-title { font-size: clamp(3.5rem, 18vw, 5.2rem); }
  .hero-side { justify-items: start; }
  .thread-rail { grid-template-columns: 1fr; }
  .thread-rail-label {
    writing-mode: initial;
    transform: none;
    padding-top: 0;
  }
  .spotlight-card {
    padding: 1.35rem 1.2rem;
    border-radius: 1rem;
  }
  .home-featured { padding-top: 0.5rem; }
  .home-mosaic { grid-template-columns: 1fr; }
  .mosaic-wide,
  .mosaic-tall {
    grid-column: auto;
    grid-row: auto;
    transform: none;
    padding: 1.5rem;
  }
  .mosaic-wide:hover,
  .mosaic-tall:hover {
    transform: translateY(-3px);
  }
  .mosaic-wide h3,
  .mosaic-tall h3 { font-size: 1.25rem; }
  .home-everything { padding: 1rem 0 0; flex-wrap: wrap; }
  .doodle-loop-a { right: -1rem; top: 0; }
  .doodle-zig-a,
  .doodle-star-a,
  .doodle-orb-a { opacity: 0.65; }
  .content-grid { padding: 0 1.25rem; grid-template-columns: 1fr; }
  .single { padding: 2rem 1.25rem 3rem; }
  .poster-panel { padding: 1.25rem 1.1rem; border-radius: 1rem; }
  .single-body { padding: 1.25rem 1rem 1.5rem; border-radius: 1rem; }
  .single h1 { font-size: 1.8rem; }
  .list-page { padding: 2rem 1.25rem 3rem; }
  .thread-card { width: 100%; justify-content: space-between; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .audio-clip-player { flex-wrap: wrap; }
  .audio-clip-label { width: 100%; margin-top: 0.25rem; }
}

/* ---- Audio Clip (inline shortcode) ---- */
.audio-clip {
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.audio-clip-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
}

.audio-clip-play {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-glow);
  border: 1px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.audio-clip-play:hover { background: var(--pink-glow-strong); }
.audio-clip-play:active { transform: scale(0.93); }

.audio-clip-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.audio-clip-bar {
  height: 100%;
  width: 0%;
  background: var(--pink);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.audio-clip-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 3ch;
}

.audio-clip-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.audio-clip-transcript-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.audio-clip-transcript-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.audio-clip-transcript-toggle[aria-expanded="true"] .ac-chevron {
  transform: rotate(180deg);
}
.ac-chevron { transition: transform 0.2s; }

.audio-clip-transcript {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.audio-clip-transcript[hidden] { display: none; }
.audio-clip-transcript p { margin-bottom: 0.5rem; }
.audio-clip-transcript p:last-child { margin-bottom: 0; }
.audio-clip-transcript strong { color: var(--text); }

/* ---- Model Quote (inline blockquote + play) ---- */
.model-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--pink);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.model-quote-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}
.model-quote-text p { margin-bottom: 0.4rem; }
.model-quote-text p:last-child { margin-bottom: 0; }
.model-quote-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
}
.model-quote-attr {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-style: normal;
}
.model-quote-play {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-glow);
  border: 1px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.model-quote-play:hover { background: var(--pink-glow-strong); }
.model-quote-play:active { transform: scale(0.93); }
