:root {
  color-scheme: light;
  --sky: #ffffff;
  --paper: #fffdf6;
  --ink: #111111;
  --muted: #5a5a5a;
  --mint: #6fcf9c;
  --yellow: #ffea4f;
  --orange: #ff7043;
  --line: 2px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --font: "Alegreya Sans", system-ui, sans-serif;
  --episode-title-font: "Roboto Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --brand: "Bree Serif", Georgia, serif;
  --content-width: 1580px;
}

* { box-sizing: border-box; }
html { background: var(--sky); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin-top: 0; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sky);
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease;
}

/* Line-on-scroll is paused while Brandon tries the header with no line at all:
.app-header.is-scrolled { border-bottom-color: var(--ink); } */

.header-main {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 64px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #ffffff;
  position: relative;
  top: 4px;
}

.header-search:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.header-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.header-search input { width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font-size: 1.05rem; }
.header-search input::placeholder { color: #666666; }
.header-app-button { position: relative; top: 4px; justify-self: end; }

@media (min-width: 701px) {
  .wordmark,
  .header-search {
    align-self: end;
  }

  .wordmark { margin-bottom: 11px; } /* centres the TH logo on the nav, search and button */
  .header-search { top: 0; margin-bottom: 16px; }
}

.desktop-app-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark {
  display: block;
  line-height: 0;
}

/* The TH block logo (Assets/treehorn-th-logo.svg). */
.wordmark img { display: block; width: auto; height: 56px; }

/* Double-clicking controls shouldn't select text (and trigger the browser's selection popup).
   Titles, blurbs and transcripts stay selectable. */
.app-header, .filter-chip, .card-play, .episode-footer, .web-player, .episode-detail-play,
.collection-tile, .show-poster, .episode-art-link, .mobile-card-meta, .episode-show-row { -webkit-user-select: none; user-select: none; }
/* A slightly moved double-click would start Chrome's link drag (a floating "Treehorn / treehorn.app" label). */
.app-header a, .filter-chip, .collection-tile, .show-poster, .episode-art-link, .episode-art-link img { -webkit-user-drag: none; }

.wordmark--small { font-size: 3.1rem; }

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer nav a {
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.site-footer nav a:hover { background: rgba(17, 17, 17, 0.1); }

.shadow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.shadow-button:hover { transform: translate(1px, 1px); box-shadow: 4px 4px 0 var(--ink); }
.shadow-button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.shadow-button--mint { background: var(--mint); }
.shadow-button--yellow { background: var(--yellow); }

.show-filter-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.show-filter-wrap::-webkit-scrollbar { display: none; }

.show-filters {
  width: min(var(--content-width), calc(100% - 40px));
  min-width: max-content;
  margin: 0 auto;
  padding: 10px 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-chip {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 19px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active { background: var(--yellow); }

.listener-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 90px; /* same top space as the browse pages, so headings line up */
}

.lineup-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
}

.listener-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 0.84rem;
  white-space: nowrap;
}

.listener-state[hidden] { display: none; }

.status-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}

.episode-feed {
  display: flex;
  flex-direction: column;
}

.day-heading {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
}

.day-group + .day-group {
  margin-top: 64px;
  padding-top: 0;
  border-top: 0;
}

.day-group + .day-group::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 44px;
  background: var(--ink);
  box-shadow: -18px 0 0 var(--ink), 18px 0 0 var(--ink);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 48px;
}

.episode-card {
  --card-accent: var(--paper);
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: var(--line);
  border-radius: 6px;
  background: var(--card-accent);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}



.card-hit-area {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card-hit-area:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -5px;
}

.episode-art-column {
  position: relative;
  min-width: 0;
}

.episode-art-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  border-bottom: var(--line);
  background: #e9e4d8;
  overflow: hidden;
}

/* Art and title open the episode page; the square button in the footer plays in place. */
.episode-art-link { display: block; width: 100%; height: 100%; }
.card-play {
  position: relative;
  z-index: 3;
  width: 56px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.card-play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.card-play-icon { width: 30px; height: 30px; fill: currentColor; }
.card-play-icon--play { margin-left: -1px; } /* the triangle path sits right of centre; this lands it optically centred */
/* Hover: lemon sticker pop; press pushes it back flat. */
@media (hover: hover) and (pointer: fine) {
  .card-play:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
}
.card-play:active { background: var(--yellow); transform: none; box-shadow: none; }
.card-play-icon--pause { display: none; }
.card-play-bars { display: none; height: 20px; align-items: flex-end; gap: 3px; }
.card-play-bars i { width: 4px; height: 100%; border-radius: 1px; background: var(--ink); transform-origin: bottom; animation: card-play-bars 0.9s ease-in-out infinite alternate; }
.card-play-bars i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.card-play-bars i:nth-child(3) { animation-duration: 1.05s; animation-delay: -0.5s; }
.card-play-bars i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.15s; }
@keyframes card-play-bars { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
/* While playing, the card shows sound bars (clicking them pauses); the mini player holds the full controls. */
.episode-card.is-playing .card-play-icon--play { display: none; }
.episode-card.is-playing .card-play-bars { display: flex; }
/* Loading: a small spinner in the button until audio starts, then the sound bars. */
.episode-card.is-loading .card-play-icon--play { display: none; }
.episode-card.is-loading:not(.is-playing) .card-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -10px; width: 20px; height: 20px; box-sizing: border-box; border: 2.5px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: card-play-spin 0.75s linear infinite; }
@keyframes card-play-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .card-play-bars i { animation: none; }
  .card-play-bars i:nth-child(odd) { transform: scaleY(0.55); }
}

.card-play--mobile { display: none; }
.episode-title a, .mobile-card-title a { color: inherit; text-decoration: none; }
.episode-title a:hover, .mobile-card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.episode-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.episode-art-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(17, 17, 17, 0.08) 22px 24px),
    var(--card-accent);
  font-family: var(--brand);
  font-size: clamp(2rem, 4vw, 4rem);
  text-align: center;
}

.mobile-card-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobile-card-meta { display: none; }
.mobile-card-title { display: none; }
.mobile-card-share { display: none; }
.mobile-card-show-row { display: none; }

.player-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: playback-spin 0.72s linear infinite;
}
@keyframes playback-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .player-spinner { animation-duration: 1.4s; }
}

.episode-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 21px 22px 20px;
}

.episode-show-row {
  min-height: 32px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.episode-show-art {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fff;
  object-fit: cover;
}

.episode-show {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.episode-title {
  margin-bottom: 14px;
  font-family: var(--episode-title-font);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.08;
}

.episode-blurb {
  margin-bottom: 6px;
  color: #303030;
  font-size: 1.18rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.episode-footer > span,
.mobile-card-meta { text-transform: uppercase; }

.duration-unit { text-transform: lowercase; }

.card-share {
  position: relative;
  z-index: 4;
  padding: 3px 0 1px;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.card-share[data-share-episode] { border-bottom: 0; }

.card-share .share-icon {
  display: inline-block;
  margin-left: 5px;
  font-size: 1.22em;
  line-height: 1;
  transform: translateY(-1px);
}

.episode-card--skeleton {
  padding: 0;
  overflow: hidden;
  cursor: default;
  background: #F5EFE3;
}

.episode-card--skeleton:hover { transform: none; }

.skeleton-art {
  display: block;
  aspect-ratio: 3 / 2;
  border-bottom: var(--line);
  background: linear-gradient(90deg, #e4e0d8 20%, #f8f5ed 50%, #e4e0d8 80%);
  background-size: 220% 100%;
  animation: skeleton-slide 1.5s linear infinite;
}

.skeleton-copy {
  position: relative;
  flex: 1;
  min-height: 319px;
  display: block;
  /* Mirrors the card body: show icon + name, two title lines, three blurb lines, date. */
  background:
    linear-gradient(#cbc7bf 0 0) 22px 21px / 26px 26px no-repeat,
    linear-gradient(#d8d4cc 0 0) 57px 28px / 38% 11px no-repeat,
    linear-gradient(#cbc7bf 0 0) 22px 63px / 84% 22px no-repeat,
    linear-gradient(#cbc7bf 0 0) 22px 92px / 58% 22px no-repeat,
    linear-gradient(#dedad2 0 0) 22px 138px / 86% 13px no-repeat,
    linear-gradient(#dedad2 0 0) 22px 165px / 80% 13px no-repeat,
    linear-gradient(#dedad2 0 0) 22px 192px / 52% 13px no-repeat,
    linear-gradient(#d8d4cc 0 0) 22px calc(100% - 34px) / 40% 11px no-repeat;
}

.skeleton-copy::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 56px;
  height: 50px;
  box-sizing: border-box;
  border: 2px solid #cbc7bf;
  border-radius: 5px;
}

.day-heading-skeleton {
  display: block;
  width: 175px;
  height: 21px; /* border-box: 21 + 3 + 23 = the real day heading's 47px to the grid */
  margin: 3px 0 23px;
  border: 1.5px solid rgba(17, 17, 17, 0.22);
  background: linear-gradient(90deg, #e4e0d8 20%, #f8f5ed 50%, #e4e0d8 80%);
  background-size: 220% 100%;
  animation: skeleton-slide 1.5s linear infinite;
}

@keyframes skeleton-slide { to { background-position: -220% 0; } }

.empty-state {
  max-width: 620px;
  padding: 32px;
  border: var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.empty-state h2 { font-family: var(--brand); font-size: 2.2rem; margin-bottom: 8px; }

.mobile-promo {
  margin-top: 72px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: var(--line);
  border-radius: 6px;
  background: var(--mint);
}

.mobile-promo h2 {
  max-width: none;
  margin-bottom: 0;
  font-family: var(--font);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-promo-copy { display: grid; gap: 9px; }

.mobile-promo-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-app-actions {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 24px;
  transform: translateY(8px);
}

.platform-download {
  display: grid;
  grid-template-columns: 50px 120px;
  align-items: start;
  gap: 16px;
}

.platform-mark {
  width: 50px;
  height: 120px;
  display: grid;
  place-items: center;
}

.platform-logo { width: 52px; height: 52px; object-fit: contain; }
.platform-logo--android { width: 46px; height: 56px; }

.desktop-app-qr {
  width: 120px;
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  text-align: center;
}

.desktop-app-qr-frame {
  width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--line);
  background: #fff;
}

.desktop-app-qr img { aspect-ratio: 1; transform: scale(1.07); }
.desktop-app-qr span { font-family: var(--mono); font-size: 0.92rem; font-weight: 700; line-height: 1.25; }

.desktop-app-placeholder {
  width: 120px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.desktop-app-placeholder-frame {
  width: 120px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: var(--line);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(17, 17, 17, 0.05) 10px 20px),
    #fff;
}

.desktop-app-placeholder-frame span {
  padding: 10px 14px;
  border: var(--line);
  background: var(--yellow);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.desktop-app-placeholder > span { font-family: var(--mono); font-size: 0.92rem; font-weight: 700; line-height: 1.25; }
.mobile-app-button { display: none; }

.web-player {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  border: var(--line);
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: none;
}

.player-inner {
  min-height: 92px;
  padding: 10px 14px 10px 10px;
  display: grid;
  grid-template-columns: 108px minmax(180px, 1fr) 54px minmax(240px, 1.4fr) auto 44px;
  align-items: center;
  gap: 14px;
}

.player-art { width: 108px; height: 72px; border: 1.5px solid var(--ink); object-fit: cover; background: #e7e2d7; }
.player-copy { min-width: 0; }
.player-show { margin: 0 0 3px; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.player-title { margin: 0; overflow: hidden; font-family: var(--episode-title-font); font-size: 0.95rem; font-weight: 700; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.player-mobile-time,
.player-back { display: none; }

@media (min-width: 701px) {
  .player-inner { min-height: 112px; padding: 12px 16px 12px 12px; grid-template-columns: 126px minmax(200px, 1fr) 72px minmax(240px, 1.4fr) auto 48px; gap: 16px; }
  .player-art { width: 126px; height: 84px; }
  .player-copy { align-self: start; padding-top: 4px; }
  .player-show { margin-bottom: 6px; font-size: 0.84rem; line-height: 1.15; }
  .player-title { display: -webkit-box; font-size: 1.32rem; line-height: 1.08; text-overflow: clip; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

.player-toggle {
  width: 52px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.player-back {
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.player-back svg { width: 30px; height: 30px; overflow: visible; }
.player-back path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.player-back text { fill: currentColor; font-family: var(--mono); font-size: 8px; font-weight: 600; text-anchor: middle; }

.player-icon { width: 25px; height: 25px; color: var(--ink); fill: currentColor; }
.player-icon--pause { display: none; }
.web-player.is-playing .player-icon--play { display: none; }
.web-player.is-playing .player-icon--pause { display: block; }
.web-player.is-loading .player-icon { display: none; }
.web-player.is-loading .player-spinner { display: block; }

.player-progress-wrap {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.9rem;
}

#player-current { text-align: right; }
#player-duration { text-align: left; }

.player-progress {
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.player-progress::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #3f3f3f;
}

.player-progress::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.player-progress::-moz-range-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #3f3f3f;
}

.player-progress::-moz-range-progress {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #3f3f3f;
}

.player-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: none;
}

.player-share,
.player-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.player-share { text-decoration: underline; text-underline-offset: 3px; }
.player-close {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
}
.player-close::before,
.player-close::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}
.player-close::before { transform: rotate(45deg); }
.player-close::after { transform: rotate(-45deg); }

@media (min-width: 701px) {
  .player-toggle { width: 70px; height: 64px; }
  .player-icon { width: 36px; height: 36px; }
  .player-share { font-size: 1.08rem; }
  .player-close { width: 48px; height: 48px; }
  .player-close::before,
  .player-close::after { width: 34px; }
}

.player-message { margin: 0; padding: 8px 16px; border-top: 1.5px solid var(--ink); background: #ffd6d0; font-size: 0.82rem; }

.site-footer {
  position: relative;
  min-height: 510px;
  padding: 102px max(20px, calc((100% - var(--content-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  border-top: var(--line);
  background: #9b7653;
  color: var(--ink);
  overflow: hidden;
}

.site-footer > * { transform: translateY(-85px); }

.footer-mascot {
  width: clamp(124px, 9vw, 165px); /* computer-guy.svg is cropped tight; same on-screen size as the old padded PNG */
  height: auto;
  justify-self: start;
  pointer-events: none;
  user-select: none;
}

.noscript-message { margin: 0; padding: 14px; background: #ffd6d0; text-align: center; }

@media (min-width: 701px) {
  .episode-show-row { order: -1; min-height: 26px; margin-bottom: 12px; gap: 9px; }
  .episode-show-art { width: 26px; height: 26px; flex-basis: 26px; }
  .episode-show { font-size: 0.92rem; }
}

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

@media (max-width: 1000px) {
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-inner { grid-template-columns: 96px minmax(160px, 1fr) 50px minmax(190px, 1fr) 44px; }
  .player-art { width: 96px; height: 64px; }
  .player-share { display: none; }
}

@media (max-width: 700px) {
  .header-main { width: calc(100% - 24px); min-height: 68px; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; }
  .wordmark img { height: 40px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; min-height: 42px; }
  .header-app-button { min-height: 38px; padding: 8px 12px; font-size: 0.78rem; box-shadow: 4px 4px 0 var(--ink); }
  .show-filters { width: max-content; margin-left: 12px; padding-right: 12px; }
  .listener-shell { width: calc(100% - 24px); padding: 34px 0 66px; }
  .lineup-heading { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  h1 { font-size: 1.7rem; }
  .listener-state { font-size: 0.65rem; }
  .day-heading { font-size: 1rem; margin-bottom: 16px; }
  .day-group + .day-group { margin-top: 42px; padding-top: 0; }
  .day-group + .day-group::before { width: 7px; height: 7px; margin-bottom: 30px; box-shadow: -16px 0 0 var(--ink), 16px 0 0 var(--ink); }
  .episode-grid { grid-template-columns: 1fr; gap: 20px; }
  .episode-card { display: block; min-height: 0; }
  .episode-card.is-tap-confirmed { animation: mobile-card-tap 240ms ease-out; }
  @keyframes mobile-card-tap {
    0%, 100% { transform: translate(0, 0); box-shadow: var(--shadow); }
    45% { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--ink); }
  }
  .episode-art-column { position: static; display: grid; grid-template-columns: 50% 50%; align-items: stretch; }
  .episode-art-wrap { grid-column: 1; grid-row: 1; align-self: start; width: auto; aspect-ratio: 3 / 2; min-height: 0; margin: 16px 0 0 16px; border: var(--line); }
  .episode-art { object-fit: contain; }
  .mobile-card-controls { grid-column: 2; grid-row: 1; position: static; inset: auto; width: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; row-gap: 8px; margin: 0; padding: 16px 12px 0; pointer-events: auto; }
  .mobile-card-show-row { display: none; }
  .mobile-card-show-art { display: none; }
  .mobile-card-show-name { min-width: 0; margin: 0; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; line-height: 1.15; letter-spacing: 0.045em; text-transform: uppercase; }
  .mobile-card-meta { grid-row: 1; display: block; min-width: 0; font-family: var(--mono); font-size: 0.82rem; line-height: 1.3; text-align: left; white-space: nowrap; }
  .mobile-card-title { grid-row: 2; display: -webkit-box; min-width: 0; margin: 0; overflow: hidden; font-family: var(--episode-title-font); font-size: 1.22rem; font-weight: 600; line-height: 1.06; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .mobile-card-share { position: absolute; right: 12px; bottom: 20px; display: inline-flex; align-items: center; padding: 0; line-height: 1.1; }
  .episode-card-body { padding: 12px 12px 14px 16px; }
  .episode-title { display: none; }
  .episode-blurb { display: none; }
  .episode-card-body > .episode-show-row { display: flex; }
  .episode-show-row { min-height: 36px; margin-bottom: 0; gap: 10px; }
  .episode-show-art { width: 36px; height: 36px; flex-basis: 36px; }
  .episode-show { font-size: 0.78rem; }
  .episode-footer { display: none; }
  .episode-card--skeleton { display: grid; grid-template-columns: 50% 50%; grid-template-rows: auto auto; min-height: 200px; }
  .episode-card--skeleton::before { content: ""; grid-column: 2; grid-row: 1; align-self: start; height: 110px; margin: 16px 12px 0; background: linear-gradient(#cbc7bf 0 0) 0 3px / 48% 10px no-repeat, linear-gradient(#cbc7bf 0 0) 0 31px / 90% 17px no-repeat, linear-gradient(#cbc7bf 0 0) 0 56px / 76% 17px no-repeat, linear-gradient(#cbc7bf 0 0) 0 81px / 58% 17px no-repeat; }
  .skeleton-art { position: relative; grid-column: 1; grid-row: 1; align-self: start; width: auto; min-height: 0; aspect-ratio: 3 / 2; margin: 16px 0 0 16px; border: var(--line); }
  .skeleton-copy::after { right: 12px; bottom: 12px; width: 44px; height: 40px; }
  .skeleton-copy { grid-column: 1 / -1; grid-row: 2; min-height: 62px; background-size: 36px 36px, 45% 9px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; background-position: 16px 12px, 62px 25px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  .day-heading-skeleton { width: 190px; height: 21px; margin: 1px 0 16px; }
  .mobile-promo { align-items: flex-start; flex-direction: column; gap: 20px; padding: 22px; }
  .mobile-promo-copy { gap: 7px; }
  .mobile-promo-eyebrow { font-size: 0.78rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; white-space: nowrap; }
  .mobile-promo h2 { font-size: 1.4rem; line-height: 1.05; white-space: normal; }
  .desktop-app-actions { display: none; }
  .desktop-app-qr { display: none; }
  .mobile-app-button { display: inline-flex; background: #fff; }
  .web-player { bottom: 10px; width: calc(100% - 20px); }
  .player-inner { min-height: 68px; padding: 8px 10px; grid-template-columns: 72px minmax(0, 1fr) 28px 40px 28px; grid-template-rows: auto; align-content: center; gap: 6px; }
  .player-art { width: 72px; height: 48px; object-fit: contain; }
  .player-copy { align-self: center; }
  .player-show { margin-bottom: 2px; font-size: 0.64rem; }
  .player-title { font-size: 0.9rem; line-height: 1.08; }
  .player-title-track { display: inline-block; min-width: max-content; will-change: transform; }
  .player-title.is-marquee { text-overflow: clip; }
  .player-mobile-time { display: block; margin: 3px 0 0; font-family: var(--mono); font-size: 0.76rem; line-height: 1; }
  .player-back { display: grid; width: 28px; height: 28px; }
  .player-back svg { width: 25px; height: 25px; }
  .player-toggle { width: 38px; height: 38px; box-shadow: none; }
  .player-icon { width: 22px; height: 22px; }
  .player-close { width: 28px; height: 28px; }
  .player-close::before,
  .player-close::after { width: 19px; height: 2px; }
  .player-progress-wrap { display: none; }
  .player-share { display: none; }
  .site-footer { min-height: 360px; grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; gap: 16px; padding: 56px 20px 48px; }
  .site-footer > * { transform: none; }
  .footer-mascot { width: 124px; grid-row: 2; justify-self: center; }
  .site-footer nav { width: 100%; grid-row: 1; display: flex; justify-content: space-between; gap: 0; transform: translateY(-18px); }
  .site-footer nav a { padding: 8px 0; font-size: 1rem; font-weight: 500; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 700px) {
  .card-play--mobile { position: absolute; right: 12px; bottom: 12px; display: grid; width: 44px; height: 40px; border-radius: 5px; }
  .card-play--mobile .card-play-icon { width: 24px; height: 24px; }
}
