/* Remove the gold divider where Our Work meets the social mosaic. */
.content > #work { border-bottom-color: transparent; }

/* Paint the tiles and taper once. Move only the soft reflection behind the episode content. */
.episodes {
  --episode-tile-size: 850px;
  position:relative;
  isolation:isolate;
  overflow:clip;
  background:
    linear-gradient(160deg, #351427ab, #4f201c82 48%, #182144ab),
    #572e28 url("ident/mosaic-wall.webp") repeat center top / var(--episode-tile-size) var(--episode-tile-size);
}
.episodes::after {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(to bottom, var(--ground) 60%, transparent)
      center top / 100% calc(var(--episode-padding) + 160px) no-repeat,
    linear-gradient(to top, var(--episode-fade-colors))
      center bottom / 100% var(--episode-padding) no-repeat;
}
.episode-glass-reflection {
  position:absolute; inset:0 0 auto; z-index:-2; pointer-events:none;
  height:clamp(14rem, 50vh, 28rem);
  background:radial-gradient(ellipse at center, #edcb9d24, #b2a1e012 44%, transparent 72%);
  transform:translate3d(0,-100%,0);
  will-change:transform;
}
@media (max-width: 47.5rem) {
  .episodes { --episode-tile-size:510px; }
}
@media (prefers-reduced-motion: reduce), (prefers-contrast: more), (forced-colors: active) {
  .episode-glass-reflection { display:none; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .episodes { background:var(--ground); }
  .episodes::after { content:none; }
}
/* Keep text crisp above the tinted mosaic without framing the art or titles. */
.episodes .episode-heading h2,
.episodes .episode-grid h3 {
  color: #fff9ed;
  text-shadow: 0 1px 1px #10080d, 0 2px 4px #10080d, 0 1px 10px #130a10e0;
}
.episodes .episode-grid time {
  color: #ffeabc;
  font-size: clamp(.9375rem, .9rem + .2vw, 1rem);
  font-weight: 700;
  text-shadow: 0 1px 1px #10080d, 0 1px 5px #10080d;
}
/* Give original artwork more presence without tinting, cropping, or boxing it. */
.episodes .episode-grid article > a > img { width: clamp(108px, 12.5vw, 168px); }
@media (max-width: 47.5rem) {
  .episodes .episode-grid article > a > img { width: clamp(72px, 23vw, 104px); }
}
.tm-lossless-note { text-shadow: 0 1px 2px #100a07, 0 1px 5px #100a07; }
.episode-grid h3 .tm-episode-divider {
  font-family: system-ui,sans-serif;
  font-size: .68em;
  font-weight: 400;
  color: inherit;
  letter-spacing: 0;
}
.tm-lossless p.tm-lossless-note {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.tm-social .tm-social-platforms {
  grid-template-columns: repeat(3, minmax(0, 88px));
  gap: clamp(.5rem, 1.3vw, .875rem);
}
.tm-social .tm-discord-note {
  font-size: .9375rem;
  line-height: 1.5;
  width: auto;
  max-width: 34rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: #f6f2e8;
  text-shadow: 0 1px 2px #100a07, 0 1px 5px #100a07;
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) > a {
  min-height: 82px;
  padding: 8px;
  background: #ffffff08;
  border: 1px solid #ffffff1f;
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) > a:hover {
  background: #ffffff14;
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) > a img {
  max-width: 100%;
  max-height: 46px;
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) .tm-podcast-tunein-badge {
  background: #f6f2e8;
  border-radius: 5px;
  min-height: 48px;
  width: 64px;
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) .tm-podcast-tunein-logo {
  width: 46px;
  height: 46px;
}
.tm-podcast-links .tm-upcoming-platforms .tm-podcast-pending-siriusxm > span {
  background: #f6f2e8;
  border-radius: 4px;
  padding: .35rem;
}
.tm-podcast-links .tm-upcoming-platforms .tm-podcast-platform,
.tm-podcast-support .tm-support-pending > * { opacity: .85; }
.tm-podcast-support .tm-support-available > :is(a,.tm-podcast-support-link),
.tm-podcast-support .tm-support-pending > .tm-podcast-pending-payment {
  width: 100%;
  min-width: 0;
}
.tm-podcast-support .tm-support-available a:hover { background: #392e20; }
.tm-podcast-support .tm-support-available a:focus-visible { outline: 2px solid #ffdc82; outline-offset: 3px; }
.tm-voice-label {
  margin: 0 0 .45rem;
  color: #ffe3ad;
  font: 650 .8rem/1.4 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tm-phone-card .tm-phone-privacy { display: block; width: fit-content; margin: .55rem 0 0; }
.voice-privacy .voice-privacy-inner {
  display: block;
  width: min(100%, 78ch);
}
.voice-privacy .voice-privacy-inner > * { max-width: none; }
.mosaic-surface {
  --footer-depth: clamp(108px, 14vw, 190px);
  background-image:
    linear-gradient(to bottom, var(--ground), transparent 72px, transparent calc(100% - var(--footer-depth) * 1.15), var(--ground)),
    url("ident/mosaic-wall.webp");
}
@container (max-width: 620px) {
  .tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 47.5rem) {
  .tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) > a { min-height: 66px; }
  .tm-podcast-links .tm-upcoming-platforms .tm-podcast-platform { min-width: 0; }
}
@media (prefers-contrast: more),(forced-colors: active) {
  .mosaic-surface { background-image: none; }
  .episodes .episode-heading h2,
  .episodes .episode-grid :is(h3,time), .tm-lossless-note { text-shadow: none; }
  .tm-social .tm-discord-note { text-shadow: none; }
}
.tm-passes .tm-wallet-limited {
  max-width: 44ch;
  font-size: .9375rem;
  line-height: 1.5;
}
.tm-linktree-public {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #ffe3ad;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#stage-mic {
  border: 1px solid #d6a84a;
  background: #231713;
  color: #fff2d9;
}
#stage-mic:focus-visible { outline: 2px solid #fff2d9; outline-offset: 4px; }
#stage-mic[aria-pressed="true"] { background: #7d2323; }

/* One compact control slot: playing does not add a row or move the list. */
.episode-grid { row-gap: clamp(20px, 2vw, 29px); }
.tm-lossless-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 54px;
  align-items: center;
}
.tm-lossless-controls > :is(button,audio) { grid-area: 1 / 1; }
.tm-lossless-controls > button { justify-self: start; z-index: 1; }
.tm-lossless-controls > audio { margin-block: 0; height: 54px; }
.tm-lossless p#tm-lossless-status:not([data-error]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .tm-lossless[data-active] audio:not([hidden]) {
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
  }
  .tm-lossless[data-active]:is(:hover,:has(:focus-visible),:focus-within:not(:has(button:focus))) audio:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  .tm-lossless[data-active]:is(:hover,:has(:focus-visible),:focus-within:not(:has(button:focus))) .tm-lossless-controls > button {
    opacity: 0;
    pointer-events: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .tm-lossless[data-active] .tm-lossless-controls > button { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-lossless audio { transition: none !important; }
}

/* Readable labels with no new text boxes over the mosaic. */
.episode-grid article time { font-size: .9375rem; font-weight: 700; }
.episode-grid article a > div > span:not(.tm-episode-divider) { font-size: 1rem; font-weight: 600; }
.tm-social .tm-discord-note,.tm-podcast-support .tm-podcast-support-note {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 550;
  color: #fff8e9;
  text-shadow: 0 1px 2px #100a07, 0 1px 5px #100a07;
}
.tm-social .tm-social-platforms {
  grid-template-columns: repeat(3, minmax(0, 88px));
  grid-auto-flow: row;
}
.tm-social .tm-social-platforms > .tm-social-link { grid-column: auto; min-width: 0; }

/* The source is square with substantial blank padding; enlarge the mark
   without redrawing it, clipping only the outer background. */
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) .tm-podcast-tunein-badge {
  display: grid;
  place-items: center;
  width: min(100%, 108px);
  height: 56px;
  overflow: hidden;
  background: #1b2039;
}
.tm-podcast-links .tm-podcast-platforms:not(.tm-upcoming-platforms) .tm-podcast-tunein-logo {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: 56px;
  height: 56px;
  max-height: 56px;
  transform: scale(2.8);
}
@media (prefers-contrast: more),(forced-colors: active) {
  .tm-social .tm-discord-note,.tm-podcast-support .tm-podcast-support-note { color: inherit; text-shadow: none; }
}

/* Follow-up to the live review: breathing room and a comfortable reading width. */
.tm-business-inquiries > a.email + .small {
  margin-block-start: .6rem;
}
.mosaic-band .content > .tm-podcast-support + .editorial.contact {
  margin-block-start: clamp(1rem, 2.2vw, 2rem);
}
.theater-descent .tm-disclosure-credits {
  display: block;
}
.theater-descent .tm-disclosure-credits .music-credit,
.voice-privacy .voice-privacy-inner {
  width: 100%;
  max-width: 49rem;
  margin-inline: auto;
  box-sizing: border-box;
}
.theater-descent .tm-disclosure-credits .music-credit {
  padding: 0;
  margin: 0 auto .8rem;
}
.theater-descent .tm-disclosure-credits #music-toggle {
  margin-inline-start: max(0px, calc((100% - 49rem) / 2));
}
.voice-privacy .voice-privacy-inner {
  width: min(calc(100% - 2 * var(--tm-gutter, 1rem)), 49rem);
  padding-inline: 0;
}
