/* Logged-out home banner (hero-guest). Flat surfaces, posters carry the colour. Sits outside .wrap, so it sets its own gutters. */
.hb-guest { --hg-pad: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); width: 100%; background: var(--bg); }
.hg-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 82vh, 760px); border-bottom: 1px solid var(--line); }
.hg-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hg-trailer { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; container-type: size; }
.hg-tf { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hg-tf.on { opacity: 1; }
/* scrim: readable on the copy side, open on the right so posters and trailers show, melts into the page below */
.hg-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 36%, color-mix(in srgb, var(--bg) 30%, transparent) 70%, color-mix(in srgb, var(--bg) 12%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent) 0%, transparent 24%, transparent 66%, var(--bg) 100%); }
.hg-inner { position: relative; z-index: 3; width: 100%; padding: var(--s-7) var(--hg-pad) calc(var(--s-7) + var(--s-5)); }
.hg-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); max-width: 36rem; }
.hg-h1 { margin: 0; font: 800 clamp(44px, 6.6vw, 88px)/var(--lh-tight) var(--font-display); font-stretch: 80%; letter-spacing: -.02em; color: var(--text-strong); text-wrap: balance; }
.hg-lead { margin: 0; font-size: var(--t-md); line-height: var(--lh-body); color: var(--text); max-width: 32rem; }
.hg-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hg-free { margin: 0; font-size: var(--t-sm); color: var(--mute); }
.hg-tctl { position: absolute; z-index: 3; right: var(--hg-pad); bottom: var(--s-4); display: flex; align-items: center; gap: var(--s-2); max-width: calc(100% - 2 * var(--gutter)); }
.hg-tctl[hidden] { display: none; }
.hg-tnow, .hg-tpause { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--ctl-sm); padding: 0 var(--s-3); border-radius: var(--r-pill); font: 600 var(--t-xs)/1 var(--font-body); color: var(--media-ink); background: var(--media-chip); border: 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.hg-tnow span { overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }
.hg-tnow:hover, .hg-tpause:hover { filter: brightness(1.15); }
.hg-body { padding: var(--section-gap) var(--hg-pad); }

/* what you can do */
.hg-how { margin: 0; }
.hg-h2 { margin: 0 0 var(--s-5); font: 650 var(--t-xl)/var(--lh-snug) var(--font-display); color: var(--text-strong); }
.hg-blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.hg-block { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.hg-block h3 { margin: 0; font: 650 var(--t-lg)/var(--lh-snug) var(--font-display); color: var(--text-strong); }
.hg-block > p { margin: 0 0 var(--s-2); color: var(--mute); font-size: var(--t-base); line-height: var(--lh-body); max-width: 40rem; }
.hg-frag { padding: var(--card-pad); border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); min-width: 0; }
.hg-frag[hidden] { display: none; }
.hg-cap { margin: var(--s-3) 0 0; font-size: var(--t-xs); color: var(--faint); }
.hg-frag > .hg-cap:first-child { margin-top: 0; }
.hg-cap a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }

/* example list states */
.hg-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.hg-states .hg-cap { grid-column: 1 / -1; margin: 0; }
.hg-state { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; min-width: 0; }
.hg-pst { width: 100%; max-width: 112px; aspect-ratio: 2 / 3; border-radius: var(--r-poster); overflow: hidden; }
.hg-pst .poster, .hg-cp .poster { width: 100%; height: 100%; border-radius: inherit; }
.hg-tagline { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.hg-tagline svg { color: var(--accent-hi); flex: none; }

/* live title search */
.hg-find { display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3); height: var(--ctl-lg); border-radius: var(--r-md); color: var(--mute); cursor: text; background: var(--field); border: 1px solid var(--line-strong); }
.hg-find:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.hg-in { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--text-strong); font: 500 var(--t-base) var(--font-body); }
.hg-in::placeholder { color: var(--faint); }
.hg-res { margin-top: var(--s-3); } .hg-res:empty { display: none; }
.hg-res.busy { opacity: .6; }
.hg-card { display: flex; gap: var(--s-3); }
.hg-cp { width: 84px; flex: none; aspect-ratio: 2 / 3; border-radius: var(--r-poster); overflow: hidden; }
.hg-ci { min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.hg-ct { font: 650 var(--t-lg)/var(--lh-snug) var(--font-display); color: var(--text-strong); }
.hg-ci small { color: var(--mute); font-size: var(--t-sm); }
.hg-where { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-1) 0 0; font-size: var(--t-sm); color: var(--text); } .hg-where b { color: var(--text-strong); } .hg-where svg { flex: none; color: var(--accent-hi); }
.hg-where.dim { color: var(--mute); }
.hg-ov { margin: 0 0 var(--s-1); font-size: var(--t-sm); line-height: 1.45; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-cta2 { display: flex; align-items: center; gap: var(--s-4); margin-top: auto; flex-wrap: wrap; }
.hg-more { color: var(--accent-hi); font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 3px; }
.hg-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.hg-tab { font: 500 var(--t-sm) var(--font-body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 var(--s-3); min-height: var(--ctl-sm); cursor: pointer; }
.hg-tab:hover { background: var(--surface-3); } .hg-tab.on { color: var(--on-accent); background: var(--accent); border-color: transparent; font-weight: 700; }
.hg-none { margin: 0; font-size: var(--t-sm); color: var(--mute); } .hg-none a { color: var(--accent-hi); text-decoration: underline; }

/* share link */
.hg-url { display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3); height: var(--ctl-lg); border-radius: var(--r-md); background: var(--field); border: 1px solid var(--line-strong); color: var(--mute); font-size: var(--t-base); overflow: hidden; white-space: nowrap; }
.hg-url svg { flex: none; color: var(--accent-hi); } .hg-url b { color: var(--text-strong); font-weight: 650; }
.hg-share .hg-cap { margin-top: var(--s-3); }

/* public profiles */
.hg-people { display: flex; flex-direction: column; gap: var(--s-1); }
.hg-person { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); margin: 0 calc(var(--s-2) * -1); border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.hg-person:hover { background: var(--hover); }
.hg-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--pc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc) 70%, transparent); }
.hg-av .avimg, .hg-av svg { max-width: 100%; max-height: 100%; }
.hg-pn { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .hg-pn b { color: var(--text-strong); font-weight: 650; } .hg-pn small { color: var(--mute); font-size: var(--t-xs); }
.hg-people .hg-cap { margin-top: var(--s-2); }

.hg-end { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--section-gap); }
.hb-guest :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .hg-hero { min-height: 520px; }
  .hg-shade { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 88%, transparent) 60%, var(--bg)); }
  .hg-blocks { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
}
@media (max-width: 700px) {
  .hg-inner { padding-top: var(--s-6); }
  .hg-cta .btn, .hg-end .btn { flex: 1 1 100%; justify-content: center; }
  .hg-cp { width: 68px; }
}
