:root {
  --bg-0: #121212;
  --bg-1: #121212;
  --bg-2: #1a1a1a;
  --surface-0: #181818;
  --surface-1: #1e1e1e;
  --surface-2: #282828;
  --surface-hover: #2a2a2a;
  --line: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --fg: #ffffff;
  --muted: #a7a7a7;
  --subdued: #6a6a6a;
  --green: #1db954;
  --green-strong: #1ed760;
  --danger: #f15e6c;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

input,
button,
select {
  font: inherit;
}

button,
select,
input[type="range"] {
  color: inherit;
}

.shellRoot {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.shellSidebar {
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  background: #000000;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brandBlock {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: 8px;
}

.brandBlock:hover {
  background: var(--surface-2);
}

.brandBlock p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.brandBadge {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  object-fit: cover;
}

.mainNav {
  display: grid;
  gap: 0.15rem;
}

.mainNavItem {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

.mainNavItem:hover {
  color: #fff;
}

.mainNavItem.active {
  background: var(--surface-2);
  color: #fff;
}

.authBlock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  margin-top: auto;
  border-radius: 6px;
}

.authBlock:hover {
  background: var(--surface-2);
}

.authAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.authInfo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.authName {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.authLogout {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.authLogout:hover {
  color: #fff;
}

.authSignIn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.55rem 0.8rem;
  border-radius: 500px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, background 0.15s;
}

.authSignIn:hover {
  transform: scale(1.02);
  background: #f0f0f0;
}

.sidebarCard {
  margin-top: 0.5rem;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.sidebarCard span {
  font-size: 0.82rem;
  color: var(--muted);
}

.shellMainColumn {
  min-width: 0;
  background: var(--bg-0);
}

.contentSurface {
  padding: 1rem 1.2rem 6.5rem;
}

.pageColumn {
  display: grid;
  gap: 1.2rem;
}

.heroPanel,
.feedComposer,
.sectionBlock,
.podcastHero,
.episodeHeroCard,
.proseCard {
  border-radius: 8px;
  background: var(--surface-0);
}

.heroPanel {
  padding: clamp(1.2rem, 2vw, 1.8rem);
}

.heroPanel h1,
.heroPanel h2,
.podcastHeroMeta h1,
.episodeHeroCopy h1,
.sectionHeading h1,
.sectionHeading h3,
.proseCard h3 {
  margin: 0;
  font-weight: 700;
}

.sectionHeading h1 {
  font-size: 1.5rem;
}

.heroPanel p {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.heroStats {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.heroStats > div {
  border-radius: 8px;
  padding: 0.8rem;
  display: grid;
  gap: 0.2rem;
  background: var(--surface-2);
}

.heroStats strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.heroStats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.feedComposer {
  padding: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.feedComposer label {
  font-weight: 600;
}

.feedComposerRow {
  display: flex;
  gap: 0.6rem;
}

.feedComposer input {
  border: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 500px;
  padding: 0.65rem 0.85rem;
  flex: 1;
  min-width: 0;
}

.feedComposer input::placeholder {
  color: var(--subdued);
}

.meta,
.metaLine,
.tileBody p,
.proseText p,
.episodeCopy p,
.feedComposer p,
.sectionHeading span {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.formError {
  color: var(--danger);
  font-size: 0.88rem;
}

.formSuccess {
  color: var(--green-strong);
  font-size: 0.88rem;
}

.sectionBlock {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.sectionHeading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.podcastGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.podcastTile {
  border-radius: 8px;
  background: var(--surface-1);
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
  min-height: 100%;
  transition: background 0.2s;
}

.podcastTile:hover {
  background: var(--surface-hover);
}

.artworkLink {
  display: block;
}

.tileArtwork,
.podcastHeroArt,
.episodeHeroArt {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
}

.episodeArt,
.playerArt {
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
}

.tileArtwork.fallback,
.podcastHeroArt.fallback,
.episodeArt.fallback,
.episodeHeroArt.fallback,
.playerArt.fallback {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--subdued);
}

.tileBody {
  display: grid;
  gap: 0.35rem;
}

.tileTitle,
.episodeTitle,
.playerTrack {
  font-weight: 700;
  line-height: 1.3;
}

.tileFooter,
.metaLine,
.chipRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.statusPill,
.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 500px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border: none;
}

.statusPill.active {
  color: #fff;
  background: rgba(29, 185, 84, 0.3);
}

.statusPill.error {
  color: #fff;
  background: rgba(241, 94, 108, 0.3);
}

.statusPill.pending {
  color: var(--muted);
}

.emptyState {
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.inlineLink {
  color: var(--green-strong);
  font-size: 0.88rem;
}

.inlineLink:hover {
  text-decoration: underline;
}

.podcastHero,
.episodeHeroCard {
  padding: 1rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
}

.podcastHeroMeta,
.episodeHeroCopy {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.episodeList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.episodeRow {
  border-radius: 6px;
  background: transparent;
  padding: 0.6rem;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  transition: background 0.15s;
}

.episodeRow:hover {
  background: var(--surface-2);
}

.episodeArt {
  width: 74px;
  height: 74px;
}

.episodeCopy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.episodeCopy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heroActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blogPostImage {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.proseCard {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.proseText {
  display: grid;
  gap: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.proseText a {
  color: var(--green-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(29, 215, 96, 0.35);
}

.proseText a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.proseText ul,
.proseText ol {
  margin: 0;
  padding-left: 1.4em;
  color: var(--muted);
  font-size: 0.9rem;
}

.proseText li {
  line-height: 1.6;
}

/* ─── Player dock (Spotify-style) ─── */
.playerDock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #181818;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr minmax(120px, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 72px;
}

/* ─ Left: artwork + info ─ */
.playerLeft {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.playerDock .playerArt {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  flex-shrink: 0;
}

.playerMeta {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.playerTrack,
.playerPodcast {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playerTrack {
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
}

.playerTrack:hover {
  text-decoration: underline;
}

.playerPodcast {
  color: #a7a7a7;
  font-size: 0.7rem;
}

.playerPodcast:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─ Center: transport + timeline ─ */
.playerCenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.playerTransport {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pBtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #a7a7a7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s, transform 0.1s;
}

.pBtn:hover:not(:disabled) {
  color: #fff;
  transform: scale(1.05);
}

.pBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pSeekLabel {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pPlayBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.1s, background 0.15s;
}

.pPlayBtn:hover:not(:disabled) {
  transform: scale(1.06);
  background: #f0f0f0;
}

.pPlayBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Timeline / progress */
.playerTimeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  width: 100%;
}

.playerTime {
  color: #a7a7a7;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
}

.playerTime:last-child {
  text-align: right;
}

/* Custom range: progress bar */
.playerProgress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--green) var(--progress, 0%), #4d4d4d var(--progress, 0%));
  cursor: pointer;
  outline: none;
  transition: height 0.1s;
}

.playerProgress:hover {
  height: 6px;
}

.playerProgress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.playerProgress:hover::-webkit-slider-thumb {
  opacity: 1;
}

.playerProgress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.playerProgress:hover::-moz-range-thumb {
  opacity: 1;
}

.playerProgress::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

/* ─ Right: speed, sleep, volume ─ */
.playerRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pOptionBtn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #a7a7a7;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.pOptionBtn:hover {
  color: #fff;
  border-color: #fff;
}

.pSleep {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pOptionSelect {
  border: none;
  background: transparent;
  color: #a7a7a7;
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0.15rem 0;
}

.pOptionSelect:hover {
  color: #fff;
}

.pSleepBadge {
  font-size: 0.62rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Volume */
.pVolume {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pVolSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--green) var(--vol, 100%), #4d4d4d var(--vol, 100%));
  cursor: pointer;
  outline: none;
  transition: height 0.1s;
}

.pVolSlider:hover {
  height: 6px;
}

.pVolSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.pVolSlider:hover::-webkit-slider-thumb {
  opacity: 1;
}

.pVolSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.pVolSlider:hover::-moz-range-thumb {
  opacity: 1;
}

.pVolSlider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

/* ─── Marquee for mobile player ─── */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Mobile player ─── */
/* Mini play button hidden by default, shown on mobile */
.pPlayBtnMini {
  display: none;
}

@media (max-width: 640px) {
  .playerDock {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.35rem 0.6rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    min-height: auto;
  }

  .playerLeft {
    display: grid;
    grid-template-columns: 36px 1fr 32px;
    gap: 0.4rem;
    align-items: center;
  }

  .playerDock .playerArt {
    width: 36px;
    height: 36px;
  }

  .playerLeft::after {
    content: none;
  }

  .playerMeta {
    overflow: hidden;
  }

  .playerTrack {
    overflow: hidden;
    white-space: nowrap;
  }

  .playerTrack .marqueeInner {
    display: inline-block;
    animation: marqueeScroll 10s linear infinite;
    padding-right: 3rem;
  }

  .pPlayBtnMini {
    display: flex;
    width: 32px;
    height: 32px;
  }

  .playerCenter {
    order: 2;
  }

  .playerTransport {
    display: none;
  }

  .playerTimeline {
    gap: 0.3rem;
  }

  .playerRight {
    display: none;
  }
}

/* ─── Full-screen mobile player overlay ─── */
.playerFull {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #121212;
  overflow: hidden;
}

.playerFullInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  height: 100%;
  gap: 0.8rem;
  box-sizing: border-box;
}

.playerFullClose {
  align-self: flex-start;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #a7a7a7;
  cursor: pointer;
  padding: 0.25rem;
}

.playerFullArt {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
  flex: 0 1 auto;
  min-height: 0;
}

.playerFullMeta {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.15rem;
  flex-shrink: 0;
}

.playerFullTrack {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playerFullTrack:hover { text-decoration: underline; }

.playerFullPodcast {
  font-size: 0.85rem;
  color: #a7a7a7;
  text-decoration: none;
}

.playerFullPodcast:hover { text-decoration: underline; }

.playerFullTimeline {
  width: 100%;
  display: grid;
  gap: 0.2rem;
  flex-shrink: 0;
}

.playerFullProgress {
  height: 6px;
}

.playerFullTimes {
  display: flex;
  justify-content: space-between;
}

.playerFullTransport {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.pBtnLg {
  width: 44px;
  height: 44px;
}

.pBtnLg .pSeekLabel {
  font-size: 0.85rem;
}

.pPlayBtnLg {
  width: 52px;
  height: 52px;
}

.pPlayBtnLg svg {
  width: 24px;
  height: 24px;
}

.playerFullOptions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.controlButton {
  border-radius: 500px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text);
  padding: 0.42rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.controlButton:hover:not(:disabled) {
  border-color: #fff;
  transform: scale(1.02);
}

.controlButton:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.controlButton.primary {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  font-weight: 700;
}

.controlButton.primary:hover:not(:disabled) {
  background: var(--green-strong);
  border-color: var(--green-strong);
  transform: scale(1.04);
}

.controlButton.ghost {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.07);
}

.controlButton.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
}

.inlineAction {
  display: inline-flex;
  align-items: center;
}


/* Admin form */
.adminForm {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface-0);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.adminForm label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.adminForm input,
.adminForm textarea {
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.adminForm textarea {
  resize: vertical;
  min-height: 150px;
}

.adminFormActions {
  display: flex;
  gap: 0.5rem;
}

.sortOrderInput {
  padding: 0.4rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

/* Search */
.searchWrap {
  position: relative;
}

.searchInput {
  width: 100%;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 500px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.searchInput:focus {
  outline: none;
  background: #3e3e3e;
}

.searchInput::placeholder {
  color: var(--subdued);
}

.searchSpinner {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.searchDropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  max-height: 340px;
  overflow-y: auto;
}

.searchSection {
  padding: 0.4rem 0;
}

.searchSectionLabel {
  display: block;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subdued);
  font-weight: 700;
}

.searchItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  transition: background 0.1s;
}

.searchItem:hover {
  background: rgba(255, 255, 255, 0.1);
}

.searchThumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

.searchEmpty {
  padding: 0.9rem 0.75rem;
  color: var(--subdued);
  font-size: 0.85rem;
  text-align: center;
}

/* Episode progress bar */
.progressWrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.progressBar {
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  min-width: 4px;
  max-width: 120px;
}

.progressLabel {
  font-size: 0.68rem;
  color: var(--green);
}

/* Episode actions column */
.episodeActions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}

.markPlayedBtn {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
}

.episodePlayed {
  opacity: 0.5;
}

/* Filter row */
.filterRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chipActive {
  background: #fff;
  color: #000;
}

.chip {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Load more */
.loadMoreBtn {
  justify-self: center;
  margin: 0.5rem auto 0;
}

/* Favorite button small */
.favBtnSmall {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0;
  transition: color 0.15s, transform 0.1s;
}

.favBtnSmall:hover {
  color: var(--green);
  transform: scale(1.1);
}

/* Mobile hamburger menu */
.mobileMenuBtn {
  display: none;
  position: fixed;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  place-items: center;
}

.sidebarBackdrop {
  display: none;
}

/* Sidebar keyboard hint */
.sidebarHint {
  border-radius: 8px;
  background: var(--surface-2);
  padding: 0.65rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--subdued);
}

/* Skeleton loading animations */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, rgba(255,255,255,0.06) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeletonText {
  height: 1rem;
  margin: 0.3rem 0;
}

.skeletonShort {
  width: 35%;
}

.skeletonMedium {
  width: 60%;
}

.skeletonWide {
  width: 90%;
}

.skeletonArtwork {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

@media (max-width: 1260px) {
  .podcastGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .mobileMenuBtn {
    display: grid;
  }

  .sidebarBackdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(0, 0, 0, 0.6);
  }

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

  .shellSidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 40;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .shellSidebar.sidebarVisible {
    transform: translateX(0);
  }

  .contentSurface {
    padding: 0.5rem 0.4rem 5.5rem;
  }

  .pageColumn {
    gap: 0.75rem;
  }

  .podcastGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .heroStats {
    grid-template-columns: 1fr;
  }

  .feedComposerRow {
    flex-direction: column;
  }

  .podcastGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .podcastTile {
    padding: 0;
    background: transparent;
    min-height: 0;
  }

  .podcastTile .tileArtwork {
    width: 100%;
    height: auto;
  }

  .podcastTile .tileBody p,
  .podcastTile .tileFooter {
    display: none;
  }

  .podcastTile .tileTitle {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .podcastHero,
  .episodeHeroCard {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 0.75rem;
    gap: 0.75rem;
    align-items: start;
  }

  .podcastHeroArt,
  .episodeHeroArt {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
  }

  .podcastHeroMeta h1,
  .episodeHeroCopy h1 {
    font-size: 1.1rem;
  }

  .podcastHeroMeta p {
    font-size: 0.85rem;
  }

  .sectionHeading h1 {
    font-size: 1.15rem;
  }

  .sectionBlock {
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .proseCard {
    padding: 0.75rem;
  }

  .episodeRow {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 0.3rem;
    gap: 0.4rem;
    align-items: start;
  }

  .episodeArt {
    width: 44px;
    height: 44px;
    grid-row: 1 / 3;
  }

  .episodeTitle {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .episodeCopy p {
    display: none;
  }

  .metaLine {
    font-size: 0.7rem;
  }

  .episodeActions {
    display: none;
  }

  .controlButton {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  /* ── Spotify-style horizontal scroll on homepage ── */

  .filterRow {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }

  .filterRow::-webkit-scrollbar {
    display: none;
  }

  .filterRow .chip {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  /* Podcast grid → horizontal scroll */
  #homePodcastGrid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  #homePodcastGrid::-webkit-scrollbar {
    display: none;
  }

  #homePodcastGrid .podcastTile {
    flex: 0 0 38vw;
    scroll-snap-align: start;
    display: block;
    padding: 0;
    background: transparent;
    min-height: 0;
  }

  #homePodcastGrid .tileArtwork {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.35rem;
  }

  #homePodcastGrid .tileBody p,
  #homePodcastGrid .tileFooter {
    display: none;
  }

  #homePodcastGrid .tileTitle {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Episode lists → horizontal scroll cards */
  #homePopularList,
  #homeRecentList {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  #homePopularList::-webkit-scrollbar,
  #homeRecentList::-webkit-scrollbar {
    display: none;
  }

  #homePopularList > .episodeRow,
  #homeRecentList > .episodeRow {
    flex: 0 0 38vw;
    scroll-snap-align: start;
    display: block;
    padding: 0;
    background: transparent;
  }

  #homePopularList .episodeArt,
  #homeRecentList .episodeArt {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.35rem;
  }

  #homePopularList .episodeCopy p,
  #homePopularList .metaLine,
  #homePopularList .episodeActions,
  #homePopularList .episodeProgressBar,
  #homeRecentList .episodeCopy p,
  #homeRecentList .metaLine,
  #homeRecentList .episodeActions,
  #homeRecentList .episodeProgressBar {
    display: none;
  }

  #homePopularList .episodeTitle,
  #homeRecentList .episodeTitle {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .sectionHeading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .contentSurface {
    padding: 0.35rem 0.25rem 5rem;
  }

  .sectionBlock {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  #homePodcastGrid .podcastTile {
    flex: 0 0 42vw;
  }

  #homePopularList > .episodeRow,
  #homeRecentList > .episodeRow {
    flex: 0 0 42vw;
  }
}

