/* ============================================================
   Mirror Path TV theme + layout
   Mirror Path dark palette: warm ink, ivory and gold.
   ============================================================ */
:root {
  /* Mirror Path brand kit v1, dark / ink. Keep all theme colors here. */
  --bg:        #0e0d0b;
  --bg-2:      #171512;
  --card:      var(--bg-2);
  --card-2:    #2a2115;
  --gold:      #c9a45c;
  --gold-bright:#e8cf8e;
  --gold-deep: #8a6a45;
  --btn:       var(--gold);
  --btn-2:     var(--gold-bright);
  --on-gold:   var(--bg);
  --text:      #f4ecdc;
  --text-muted:#a89c85;
  --line:      #2a251d;
  --control-line: var(--gold-deep);
  --warn:      #d9a26a;
  --live:      #a83232;
  --live-pulse:rgba(168, 50, 50, 0.6);
  --live-clear:rgba(168, 50, 50, 0);
  --media:     #000;
  --nav-bg:    rgba(14, 13, 11, 0.94);
  --overlay:   rgba(14, 13, 11, 0.82);
  --overlay-soft:rgba(14, 13, 11, 0.35);
  --overlay-faint:rgba(14, 13, 11, 0.15);
  --overlay-control:rgba(14, 13, 11, 0.72);
  --gold-wash: rgba(201, 164, 92, 0.12);
  --gold-hover:rgba(201, 164, 92, 0.18);
  --gold-dot:  rgba(201, 164, 92, 0.3);
  --shadow:    rgba(0, 0, 0, 0.5);
  --radius:    6px;
  --radius-sm: 2px;
  --maxw:      1240px;
  /* Same type system as butlerbuilds.dev: Cormorant Garamond headings, Inter text, Cinzel wordmark only */
  --font-brand:   "Cinzel", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-prose:   var(--font-display);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
img { max-width: 100%; display: block; }
/* Make the HTML [hidden] attribute authoritative (it's overridden by display rules otherwise) */
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--text-muted); }

/* ---------- Nav (words only, gold underline) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.nav__brand {
  font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em;
  color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 9px;
}
.nav__brand img { height: 38px; width: 38px; object-fit: contain; flex-shrink: 0; }
.nav__wordmark { white-space: nowrap; }
.nav__brand b { color: var(--gold); font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.96rem; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); border-bottom-color: var(--gold); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--control-line); color: var(--gold);
  font-size: 1.2rem; line-height: 1; width: 40px; height: 38px; border-radius: var(--radius-sm); cursor: pointer;
}

/* ---------- Nav search (collapsed circle -> expanding text box) ---------- */
.nav__search { position: relative; display: inline-flex; align-items: center; margin-right: auto; margin-left: 6px; }
.nav__search-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid var(--control-line); background: transparent; color: var(--gold);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.nav__search-btn:hover, .nav__search.is-open .nav__search-btn { background: var(--gold-wash); border-color: var(--gold); }
.nav__search-input {
  width: 0; opacity: 0; height: 34px; margin-left: 0; padding: 0;
  border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; pointer-events: none;
  transition: width 0.28s ease, opacity 0.2s ease, margin-left 0.28s ease, padding 0.2s ease;
}
.nav__search.is-open .nav__search-input {
  width: 240px; opacity: 1; margin-left: 10px; padding: 0 6px;
  border-bottom-color: var(--gold); pointer-events: auto;
}
.nav__search-input::placeholder { color: var(--text-muted); }
.nav__search-input:focus { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn); color: var(--on-gold); }
.btn--primary:hover { background: var(--btn-2); color: var(--on-gold); }
.btn--ghost { background: transparent; border-color: var(--gold-deep); color: var(--gold); }
.btn--ghost:hover { background: var(--gold-wash); }
.btn--block { width: 100%; }

/* ============================================================
   Live band (top ~20vh)
   ============================================================ */
.live-band { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 0; }
.live-band__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.live-band__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; display: flex; align-items: center; gap: 9px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live-pulse); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 var(--live-pulse)} 70%{box-shadow:0 0 0 9px var(--live-clear)} 100%{box-shadow:0 0 0 0 var(--live-clear)} }

/* Now Playing — a peek reel. The highlighted item expands into [ info | video | SoulSite card ]
   and plays WITH sound; its neighbours stay narrow video tiles peeking in on both sides. Only the
   highlighted tile gets an iframe, so it is the only one that can make sound. */
.live-stage { min-width: 0; }
.spot-reel { position: relative; padding: 0 46px; }
.spot-viewport { overflow: hidden; container-type: inline-size; }
.spot-track { position: relative; display: flex; gap: 16px; transition: transform 0.4s ease; will-change: transform; }
.spot-track.no-anim, .spot-track.no-anim .spot { transition: none !important; }  /* first paint: measure final widths, no cut-off */
.spot { flex: 0 0 30%; min-width: 0; display: flex; align-items: center; gap: 14px; opacity: 0.5; transition: flex-basis 0.4s ease, opacity 0.3s ease; }
.spot.is-active { flex-basis: 74%; opacity: 1; z-index: 2; }
/* Height is pinned to the highlighted tile's 16:9 screen (74% of the reel minus the 165px info +
   200px SoulSite panels and two 14px gaps). The width animates on every switch; without a fixed
   height the outgoing tile briefly grew full-width and the whole band jumped taller. */
.spot { height: max(140px, calc((74cqw - 393px) * 9 / 16)); }

/* Side info + SoulSite card: only on the highlighted tile */
.spot__meta, .spot__soul { display: none; min-width: 0; }
.spot.is-active .spot__meta { display: flex; flex-direction: column; justify-content: center; flex: 0 0 165px; }
.spot.is-active .spot__soul { display: block; flex: 0 0 200px; }
.spot.is-active .spot__soul .soulcard { padding: 0; height: 100%; justify-content: center; }
.spot__eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.spot__eyebrow.is-live { color: var(--warn); }
.spot__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.spot__screen {
  position: relative; flex: 1 1 auto; height: 100%; background: var(--media);
  border: 1px solid var(--gold-deep); border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.spot.is-active .spot__screen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-deep), 0 12px 30px var(--shadow); }
.spot__screen iframe, .spot__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.spot:not(.is-active) .spot__screen::after { content: ""; position: absolute; inset: 0; background: var(--overlay-soft); }

.spot__livetag {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  background: var(--live); color: var(--text); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 4px;
}
.spot__chip {
  position: absolute; left: 8px; bottom: 8px; z-index: 4; max-width: calc(100% - 16px);
  background: var(--overlay); color: var(--text); font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Transparent layer over each tile: captures swipe (change member) + tap (center it / watch full) */
.spot__swipe { position: absolute; inset: 0; z-index: 5; background: transparent; border: 0; cursor: pointer; touch-action: pan-y; }

/* Arrows */
.spot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--overlay-control);
  color: var(--gold); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.spot-nav:hover { background: var(--gold-hover); border-color: var(--gold); }
.spot-nav--prev { left: 0; }
.spot-nav--next { right: 0; }

/* Dots */
.spot-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.spot-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: var(--gold-dot); cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.spot-dot.is-on { background: var(--gold); transform: scale(1.25); }
.spot-reel.is-single .spot-nav { display: none; }
.spot-reel.is-single ~ .spot-dots { display: none; }

/* Empty live state: message + SoulSite cards */
.live-empty { text-align: center; padding: 6px 0 4px; }
.live-empty__msg { color: var(--text-muted); margin-bottom: 14px; }
.live-empty__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* Live page (live.html): one embedded stream per live member */
.live-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.livecard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.livecard__screen { position: relative; aspect-ratio: 16/9; background: var(--media); }
.livecard__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.livecard__body { padding: 14px; }
.livecard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 10px; }

/* Shorts page (shorts.html): a static grid of small square cards, no auto-scroll.
   ~200px tiles so a desktop row holds about five; phones get two per row. */
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.shortcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.shortcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--media); cursor: pointer; }
.shortcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shortcard__media .tv-card__play { position: absolute; inset: 0; margin: auto; }
.shortcard__body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.shortcard__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.shortcard__desc {
  color: var(--text-muted); font-size: 0.86rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.shortcard__body .btn { margin-top: auto; }
@media (max-width: 620px) {
  .shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shortcard__body { padding: 10px; gap: 8px; }
  .shortcard__name { font-size: 1.05rem; }
  .shortcard__desc { -webkit-line-clamp: 3; }
  .shortcard__body .btn { padding: 8px 10px; font-size: 0.82rem; }
  .shortcard__media .tv-card__play svg { width: 40px; height: 40px; }
}

/* ============================================================
   Filter bar
   ============================================================ */
.filters { padding: 18px 0 6px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  background: transparent; border: 1px solid var(--gold-deep); color: var(--gold);
  border-radius: 999px; padding: 7px 14px; font-size: 0.86rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--gold-wash); }
.chip.is-active { background: var(--btn); border-color: var(--btn); color: var(--on-gold); }
.chip--live.is-active { background: var(--live); border-color: var(--live); color: var(--text); }

/* ============================================================
   TV-guide member grid (three-tier cards)
   ============================================================ */
.tv { padding: 16px 0 48px; }
.tv__grid { display: grid; gap: 12px; }
.tv-card {
  display: grid; grid-template-columns: 260px 1fr 220px; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.tv-card:hover { border-color: var(--gold); }
/* left: thumbnail (click to play) */
/* 16:9 thumbnail, centered in the row; 260px wide so it is about as tall as a typical card */
.tv-card__media { position: relative; cursor: pointer; background: var(--media); overflow: hidden; aspect-ratio: 16 / 9; align-self: center; }
.tv-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--overlay-faint); transition: background 0.15s;
}
.tv-card__media:hover .tv-card__play { background: var(--overlay-soft); }
.tv-card__play svg { width: 52px; height: 52px; color: var(--text); filter: drop-shadow(0 2px 6px var(--shadow)); }
.tv-card__livetag {
  position: absolute; top: 8px; left: 8px;
  background: var(--live); color: var(--text); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 4px;
}
/* middle: title + description */
.tv-card__body { padding: 10px 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.tv-card__title { font-weight: 600; font-size: 0.92rem; margin: 0 0 4px; line-height: 1.3; }
.tv-card__desc {
  color: var(--text-muted); font-size: 0.83rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tv-card__cats { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tv-card__cat { font-size: 0.68rem; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
/* right: SoulSite card */
.soulcard { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.soulcard__head { display: flex; align-items: center; gap: 9px; }
.soulcard__avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; flex-shrink: 0; background: var(--bg-2); }
.soulcard__name { font-weight: 700; font-size: 0.92rem; }
.soulcard__label { font-size: 0.64rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.soulcard__blurb {
  color: var(--text-muted); font-size: 0.82rem; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.soulcard__btn { margin-top: auto; padding: 6px 12px; font-size: 0.82rem; }

/* infinite-scroll sentinel + loader */
.tv__more { height: 1px; }
.tv__loading { text-align: center; color: var(--text-muted); padding: 16px; font-size: 0.9rem; }

/* ============================================================
   Lightbox player
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: var(--nav-bg); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox__inner {
  width: min(960px, 94vw); aspect-ratio: 16/9; background: var(--media);
  border: 1px solid var(--gold-deep); border-radius: var(--radius); overflow: hidden;
}
.lightbox__inner iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: 14px; right: 22px; font-size: 2.2rem; line-height: 1; color: var(--text); background: none; border: 0; cursor: pointer; }

/* ============================================================
   Concierge (AI) widget
   ============================================================ */
.ss-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold);
  background: var(--btn); color: var(--on-gold); cursor: pointer; box-shadow: 0 8px 22px var(--shadow);
}
.ss-fab svg { width: 26px; height: 26px; margin: 0 auto; }
.ss-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 90; width: min(360px, calc(100vw - 40px)); height: 480px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--gold-deep); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px var(--shadow);
}
.ss-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ss-head__id { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.ss-head__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--btn); }
.ss-head__x { background: none; border: 0; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.ss-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ss-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; }
.ss-msg--me { align-self: flex-end; background: var(--btn); color: var(--on-gold); border-bottom-right-radius: 4px; }
.ss-msg--bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ss-msg--bot a { color: var(--gold); font-weight: 600; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ss-chip {
  border: 1px solid var(--gold-deep); color: var(--gold); background: transparent;
  border-radius: 999px; padding: 6px 11px; font-size: 0.8rem; cursor: pointer; font-family: inherit;
}
.ss-chip:hover { background: var(--gold-wash); }
.ss-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.ss-input textarea {
  flex: 1; resize: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); padding: 9px 11px; font-family: inherit; font-size: 0.9rem; max-height: 110px;
}
.ss-input textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-color: var(--gold-deep); }
.ss-send { background: var(--btn); color: var(--on-gold); border: 0; border-radius: var(--radius-sm); width: 42px; cursor: pointer; font-size: 1.1rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 24px 0 16px; color: var(--text-muted); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 22px; padding-bottom: 16px; align-items: start; }
.footer-brand__logo {
  font-family: var(--font-brand); font-weight: 700; font-size: 1.1rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-brand__logo b { color: var(--gold); }
.footer-brand__logo img { height: auto; width: 300px; max-width: 100%; display: block; }
.footer-brand p { margin: 8px 0; max-width: 42ch; font-size: 0.86rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-social a, .footer-col a { color: var(--text-muted); }
.footer-social a:hover, .footer-col a:hover { color: var(--gold); }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 1.2rem; margin: 0 0 12px; }
.footer-col a { display: block; padding: 3px 0; font-size: 0.88rem; }
.footer-powered { text-align: center; padding: 2px 0 12px; font-size: 0.98rem; }
.footer-powered em { font-style: italic; color: var(--gold); font-family: var(--font-display); font-size: 1.15rem; }
.footer-powered a { color: var(--gold); font-weight: 600; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.84rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: var(--text-muted); }

/* ============================================================
   Responsive
   ============================================================ */
/* Nav collapses to the toggle earlier than the rest of the layout: the Cinzel links need the room. */
@media (max-width: 1000px) {
  .nav__toggle { display: block; flex-shrink: 0; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 6px 20px 14px;
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); } /* block so vertical padding + the gold underline take layout space instead of bleeding over the next item */
}
@media (max-width: 900px) {
  .spot { flex-basis: 66%; }                                    /* highlight the video, peek the neighbours */
  .spot.is-active { flex-basis: 82%; }
  .spot { height: calc(82cqw * 9 / 16); }
  .spot.is-active .spot__meta, .spot.is-active .spot__soul { display: none; }  /* no room for side panels on phones */
  .spot-reel { padding: 0 12px; }
  .spot-nav { width: 32px; height: 32px; font-size: 1.2rem; }
  .tv-card { grid-template-columns: 1fr; }
  .tv-card__body { border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .nav__inner { gap: 10px; }
  .nav__brand { font-size: 1rem; gap: 6px; }
  .nav__search { margin-left: 0; }
  /* Open search floats over the brand so the box gets the full width beside the toggle */
  .nav__search.is-open { position: absolute; left: 20px; right: 70px; background: var(--bg); z-index: 1; }
  .nav__search.is-open .nav__search-input { width: 100%; min-width: 0; }
  .panel { padding: 24px 16px; }
  h1.display { overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; }
  .channel-guide__questions { grid-template-columns: 1fr; }
}

/* Mobile live: single top player + category button handled in markup */
.mobile-cat { display: none; }

/* ============================================================
   iPhone safe areas (notch / Dynamic Island / home indicator)
   Paired with <meta viewport-fit=cover> + apple-mobile-web-app-status-bar-style.
   When installed to the Home Screen the web view runs full-bleed under the
   camera cutout, so we pad the fixed chrome by the OS-reported insets. env()
   is 0 on devices without insets, so these are no-ops on desktop/Android.
   ============================================================ */
.nav {
  /* Push the bar's content below the camera cutout and fill that strip with the page background. */
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* Keep side gutters clear of the notch in landscape, without shrinking them on normal screens. */
.container {
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
/* Floating concierge + its panel: lift above the home indicator. */
.ss-fab   { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); }
.ss-panel { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); }
/* Footer copy shouldn't sit under the home indicator. */
.footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
/* Lightbox: keep the close button clear of the notch, and pad the frame by the insets. */
.lightbox { padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.lightbox__close { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(22px + env(safe-area-inset-right, 0px)); }
@media (max-width: 620px) {
  .mobile-cat { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
}

/* ============================================================
   Forms, panels, prose (apply + legal pages)
   ============================================================ */
.section { padding: 44px 0; }
.section--tight { padding: 30px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin: 0 0 12px; }
h1.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0 0 14px; }
/* Reading text follows the editorial type; controls stay in Inter. */
.section-intro {
  color: var(--text-muted); max-width: 60ch; margin: 0 auto;
  font-family: var(--font-prose); font-size: 1.25rem; line-height: 1.5;
}
.text-center { text-align: center; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; max-width: 680px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-row .req { color: var(--gold); }
.form-help { color: var(--text-muted); font-size: 0.88rem; margin: -2px 0 9px; }
.form-row input, .form-row textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--control-line); border-radius: var(--radius-sm);
  color: var(--text); padding: 11px 13px; font-family: inherit; font-size: 1rem;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); opacity: 1; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-color: var(--gold-deep); }
.form-row textarea { resize: vertical; min-height: 100px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.9rem;
  background: var(--bg); border: 1px solid var(--control-line); border-radius: var(--radius-sm); padding: 9px 11px;
}
.choice:hover { border-color: var(--gold-deep); }
.choice input { width: 16px; height: 16px; accent-color: var(--btn); }
.form-status { color: var(--warn); font-size: 0.92rem; margin-top: 12px; }
.form-confirm { text-align: center; padding: 26px 8px; }
.form-confirm__mark {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  border: 2px solid var(--gold-deep); color: var(--gold); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.form-confirm p { font-size: 1.08rem; max-width: 42ch; margin: 0 auto; }

.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.6; font-family: var(--font-prose); font-size: 1.25rem; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold); }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; }
.legal-note {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px;
  color: var(--text-muted); font-size: 0.9rem; margin: 0 auto 26px; max-width: 740px;
}

/* ============================================================
   Collapsible filter bar (opens to the right, collapses into "All")
   ============================================================ */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-toggle {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--btn); color: var(--on-gold); border: 1px solid var(--btn);
  border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; font-family: inherit;
}
.filter-toggle__caret { transition: transform 0.25s; font-size: 0.85rem; }
.filterbar.open .filter-toggle__caret { transform: rotate(90deg); }
.filter-strip {
  flex: 1 1 auto; min-width: 0;
  display: none; flex-wrap: wrap; gap: 9px; align-items: center;
}
.filterbar.open .filter-strip { display: flex; }
.chip--fav.is-active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* ============================================================
   Members directory (members.html)
   ============================================================ */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.member-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.15s;
}
.member-card:hover { border-color: var(--gold); }
.member-card__head { display: flex; align-items: center; gap: 12px; }
.member-card__avatar {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold);
  object-fit: cover; background: var(--bg-2); flex-shrink: 0;
}
.member-card__name { font-weight: 700; font-size: 1.05rem; }
.member-card__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.member-card__cat { font-size: 0.68rem; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.member-card__blurb { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin: 0; }
.fav-btn {
  position: absolute; top: 10px; right: 12px; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--text-muted); transition: transform 0.1s;
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.is-fav { color: var(--gold); }

/* ============================================================
   Support button (footer)
   ============================================================ */
.footer-support { margin-top: 12px; }

/* ============================================================
   Auto-scrolling listings viewport (TV-guide channel)
   ============================================================ */
.tv__viewport {
  height: clamp(360px, 60vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-2);
}
.tv__viewport::-webkit-scrollbar { width: 8px; }
.tv__viewport::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 8px; }
.tv__hint { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .live-dot { animation: none; } }

/* Screen-reader-only text (the home page's h1: the channel itself is the visible header) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Visible context for discovery: readable copy, after the channel. */
.channel-guide { border-top: 1px solid var(--line); padding: 40px 0; }
.channel-guide h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.35; margin: 0 0 16px; }
.channel-guide__intro { max-width: 70ch; color: var(--text-muted); margin: 0 0 28px; }
.channel-guide__questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.channel-guide h3 { font-size: 1rem; margin: 0 0 8px; }
.channel-guide__questions p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
.channel-guide__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.channel-guide__links a, .discovery-note a { text-decoration: underline; text-underline-offset: 4px; }
.discovery-note { margin-top: 20px; margin-bottom: 28px; }
.member-card h2 { margin: 0; }
