/* Matters of Experience — podcast page and episode pages (desktop and phone).
   Structure after Apple Podcasts; the site's own type, grays, accent, borders.
   Everything on black. */

body:has(.moe) { background: #000 !important; }
.moe { --w: min(var(--w-medium, 960px), calc(100vw - 2 * var(--gutter, 40px)));
  background: #000; color: #fff; padding: 96px 0 140px; }
.moe *, .moe-bar * { box-sizing: border-box; }
.moe :is(p, div, span, a, h1, h2, h3, section, article, header, button),
.moe-bar :is(p, div, span, a, button) { text-align: left !important; }
.moe-wrap { width: var(--w); margin: 0 auto; }
.moe a, .moe-bar a { color: inherit; text-decoration: none; }
.moe img { max-width: none; }

/* Section headings (Apple: bold "Episodes"): Title style, smaller */
.moe h2.moe-h2 { font-family: var(--sans) !important; font-weight: 600 !important; font-size: 28px !important; line-height: 1.2 !important;
  color: #fff !important; margin: 0 !important; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Play icon: a triangle that turns into pause bars on .is-playing */
.moe-icon { display: block; flex: none; width: 0; height: 0; border-style: solid; border-color: transparent transparent transparent currentColor;
  border-width: .55em 0 .55em .9em; margin-left: .1em; }
.is-playing > .moe-icon { width: .8em; height: 1.1em; border: 0; margin: 0;
  background: linear-gradient(to right, currentColor 0 34%, transparent 34% 66%, currentColor 66% 100%); }

/* Pill buttons (the site's "View all" shape, larger) */
.moe-btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 24px; border-radius: 24px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1; cursor: pointer; white-space: nowrap;
  border: 1px solid #5a5a5a; background: transparent; color: #fff !important; transition: border-color .2s, background .2s; }
.moe-btn:hover { border-color: #fff; }
.moe-btn-primary { background: #fff; color: #000 !important; border-color: #fff; }
.moe-btn-primary:hover { background: #d9d9d9; border-color: #d9d9d9; }
.moe-btn .moe-icon { font-size: 14px; }

/* ── Show header (Apple: art left, name, publisher, meta, description, Latest Episode) ── */
.moe-show { padding-bottom: 56px; border-bottom: 1px solid #262626; }
.moe-show-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.moe-show-art { width: 300px; height: 300px; object-fit: cover; display: block; border-radius: 5px; border: 1px solid #3f3f3f; }
/* The title's capitals start exactly at the top of the cover art. */
.moe h1.moe-title { text-box: trim-both cap alphabetic; font-family: var(--serif) !important; font-weight: 300 !important; font-size: var(--display-size, 58px) !important;
  line-height: 1.05 !important; color: #fff !important; margin: 0 !important; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.moe-show-by { font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1.35; color: var(--accent); margin-top: 18px; }
.moe-show-by .moe-role { color: var(--gray); }
.moe-show-meta { font-family: var(--sans); font-size: var(--meta-size); line-height: var(--meta-lh); color: var(--gray); margin-top: 8px; }
.moe-clamp { position: relative; margin-top: 18px; max-width: 620px; }
.moe p.moe-show-desc { font-family: var(--sans) !important; font-weight: 300 !important; font-size: 17px !important; line-height: 1.55 !important;
  color: var(--gray-light, #a6a6a6) !important; margin: 0 !important; }
.moe-clamp.is-clamped p.moe-show-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.moe-more-link { position: absolute; right: 0; bottom: 0; padding: 0 0 0 48px; border: 0; cursor: pointer;
  background: linear-gradient(to right, rgba(0,0,0,0), #000 40%); color: #fff; font-family: var(--sans); font-weight: 500;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 26px; }
.moe-show-text > p.moe-show-desc { margin-top: 18px !important; max-width: 620px; }
.moe-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Episode list (Apple: date, title, description, play pill with length; art on the right) ── */
.moe-list { padding-top: 48px; }
.moe-list-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.moe-count { font-family: var(--sans); font-size: var(--meta-size); color: var(--gray) !important; }
a.moe-count:hover { color: #fff !important; }
.moe-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid #262626; }
.moe-row[hidden] { display: none !important; }
.moe-row-date { font-family: var(--sans); font-size: var(--meta-size); line-height: var(--meta-lh); color: var(--gray); }
.moe-row-title { display: block; margin-top: 4px; font-family: var(--sans); font-weight: var(--card-weight, 500); font-size: 22px; line-height: 1.25; color: #fff !important; }
.moe-row-title:hover { color: #d0d0d0 !important; }
.moe-row-guest { margin-top: 6px; font-family: var(--sans); font-size: var(--meta-size); line-height: var(--meta-lh); color: var(--accent); }
.moe-row-guest span { color: var(--gray); }
.moe p.moe-row-desc { font-family: var(--sans) !important; font-weight: 300 !important; font-size: 16px !important; line-height: 1.5 !important;
  color: var(--gray-light, #a6a6a6) !important; margin: 10px 0 0 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.moe-pill { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 18px 0 16px; margin-top: 16px; border-radius: 19px;
  border: 1px solid #3f3f3f; background: #141414; color: #fff; font-family: var(--sans); font-weight: 500; font-size: 15px; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.moe-pill:hover { border-color: #8a8a8a; background: #1c1c1c; }
.moe-pill .moe-icon { font-size: 12px; }
.moe-pill.is-playing { border-color: #fff; }
.moe-row-art { display: block; border-radius: 5px; border: 1px solid #3f3f3f; overflow: hidden; }
.moe-row-art img { width: 160px; height: 160px; object-fit: cover; display: block; transition: transform .2s ease-in-out; }
.moe-row-art:hover img { transform: scale(1.1); }
.moe-more-btn { display: flex; margin: 48px auto 0; }

/* Hosts: faces and names in the header, in place of a byline */
.moe-hosted { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.moe-faces { display: flex; flex: none; }
.moe-faces img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #000; display: block; }
.moe-faces img + img { margin-left: -10px; }
.moe-hosted .moe-show-by { margin-top: 0; }
.moe-show-by a { color: var(--accent) !important; border-bottom: 1px solid transparent; }
.moe-show-by a:hover { border-bottom-color: var(--accent); }

/* The show's email: one quiet line under the buttons */
.moe p.moe-write { font-family: var(--sans) !important; font-weight: 400 !important; font-size: 15px !important; line-height: 1.5 !important;
  color: var(--gray) !important; margin: 20px 0 0 !important; }
.moe-write a, .moe-prose a { color: #fff; border-bottom: 1px solid #555; word-break: break-word; }
.moe-write a:hover, .moe-prose a:hover { border-color: #fff; }

/* ── Episode page ── */
.moe-back { display: inline-block; margin-bottom: 14px; text-box: trim-both cap alphabetic; font-family: var(--sans); font-size: var(--meta-size); color: var(--accent) !important; }
.moe-back::after { content: ' ›'; }
.moe-back:hover { color: #fff !important; }
.moe h1.moe-ep-title { text-box: trim-both cap alphabetic; font-family: var(--sans) !important; font-weight: 500 !important; font-size: clamp(28px, 3vw, 38px) !important; line-height: 1.15 !important;
  color: #fff !important; margin: 6px 0 0 !important; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.moe-episode .moe-show-grid { align-items: start; }
.moe-episode p.moe-ep-info { margin-top: 18px !important; max-width: 620px; }
.moe-section { margin-top: 64px; }
.moe-prose { margin-top: 16px; font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; color: #cfcfcf; max-width: var(--w-text, 750px); }
.moe-prose p { margin: 0 0 1em !important; font: inherit !important; color: inherit !important; }
.moe-prose b, .moe-prose strong { font-weight: 500 !important; color: #fff; }
.moe-prose span { font-weight: inherit !important; }
.moe-transcript { max-height: 70vh; overflow-y: auto; padding: 20px 16px 0 0; border-top: 1px solid #262626; }
.moe-related { margin-top: 96px; padding-top: 0; }

/* ── Floating player (Apple: speed, −15, play, +30 | now playing) ── */
.moe-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000;
  width: min(960px, calc(100vw - 2 * var(--gutter, 40px))); height: 76px; padding: 0 12px 0 18px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  background: rgba(22,22,22,.94); border: 1px solid #333; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.moe-bar[hidden] { display: none; }
body.moe-bar-open .moe { padding-bottom: 220px; }
.moe-bar button { background: none; border: 0; padding: 0; cursor: pointer; color: #fff; font-family: var(--sans); }
.moe-bar-controls { display: flex; align-items: center; gap: 16px; }
.moe-bar-speed { width: 40px; font-size: 15px !important; font-weight: 500; color: #a6a6a6 !important; text-align: center !important; font-variant-numeric: tabular-nums; }
.moe-bar-speed:hover, .moe-bar-skip:hover { color: #fff !important; }
.moe-bar-skip { width: 40px; height: 40px; color: #cfcfcf !important; }
.moe-bar-skip svg { width: 40px; height: 40px; display: block; overflow: visible; }
.moe-bar-play { width: 44px; height: 44px; border-radius: 50% !important; background: #fff !important; color: #000 !important;
  display: flex; align-items: center; justify-content: center; font-size: 15px; }
.moe-bar-play .moe-icon { margin-left: .2em; }
.moe-bar-play.is-playing .moe-icon { margin: 0; }
.moe-bar-now { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0;
  padding-left: 24px; border-left: 1px solid #333; }
.moe-bar-art img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; display: block; }
.moe-bar-info { min-width: 0; }
.moe-bar-title { display: block; font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.3; color: #fff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moe-bar-guest { font-family: var(--sans); font-size: 13px; line-height: 1.3; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moe-bar-track { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.moe-bar-cur, .moe-bar-left { font-family: var(--sans); font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; min-width: 38px; }
.moe-bar-left { text-align: right !important; }
.moe-bar-close { width: 40px; height: 40px; font-size: 26px !important; line-height: 1; color: #8a8a8a !important; text-align: center !important; }
.moe-bar-close:hover { color: #fff !important; }

.moe-seek { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 14px; margin: 0; background: transparent; cursor: pointer; }
.moe-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #fff var(--pct, 0%), #3a3a3a var(--pct, 0%)); }
.moe-seek::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #fff var(--pct, 0%), #3a3a3a var(--pct, 0%)); }
.moe-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.moe-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.moe-seek:hover::-webkit-slider-thumb, .moe-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.moe-seek:hover::-moz-range-thumb, .moe-seek:focus-visible::-moz-range-thumb { opacity: 1; }

/* ── Narrower windows and phones ── */
@media (max-width: 900px) {
  .moe-show-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .moe-show-art { width: 220px; height: 220px; }
  .moe-row { grid-template-columns: minmax(0, 1fr) 120px; gap: 24px; }
  .moe-row-art img { width: 120px; height: 120px; }
  .moe-bar-speed { display: none; }
}
@media (max-width: 767px) {
  .moe { padding-top: 88px; padding-bottom: 56px; }
  body.moe-bar-open .moe { padding-bottom: 120px; }
  .moe-show-grid { grid-template-columns: 1fr; gap: 24px; }
  .moe-show-art { width: 100%; height: auto; aspect-ratio: 1; }  /* cover art full width on phones */
  .moe h2.moe-h2 { font-size: 24px !important; }
  .moe-section { margin-top: 48px; }
  .moe-related { margin-top: 56px; }
  .moe-more-btn { margin-top: 32px; }
  .moe-row { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; padding: 22px 0; }
  .moe-row-art img { width: 88px; height: 88px; }
  .moe-row-title { font-size: 18px; }
  .moe-bar { bottom: 10px; height: 68px; padding: 0 8px 0 12px; gap: 12px; grid-template-columns: auto minmax(0, 1fr) 32px; }
  .moe-bar-controls { gap: 8px; }
  .moe-bar-skip { display: none; }
  .moe-bar-now { padding-left: 0; border-left: 0; grid-template-columns: minmax(0, 1fr); }
  .moe-bar-art { display: none; }
  .moe-bar-close { width: 32px; }
  .moe-btn { height: 44px; padding: 0 18px; font-size: 15px; }
}
