/* Real library key art leads SFW Home. Personal libraries keep their own hero. */
.home-spotlight[hidden] { display: none !important; }
:root:not([data-content-profile="sfw"]) .home-spotlight { display: none !important; }
:root[data-content-profile="sfw"] .home-hero.has-spotlight {
  --hsp-bg: #15100c;
  --hsp-text: #fff9ef;
  --hsp-muted: #c1c6cd;
  --hsp-amber: var(--hx-amber, #f6b544);
  --hsp-line: rgba(255, 255, 255, .18);
  padding: 0;
  border-color: var(--hsp-line); border-radius: 20px;
  background: var(--hsp-bg); box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
}
:root[data-content-profile="sfw"] .home-hero.has-spotlight > .home-hero-art,
:root[data-content-profile="sfw"] .home-hero.has-spotlight > .home-hero-inner { display: none; }
/* The hero is one height, whatever it features: the copy column is exactly as tall
   as its tallest content (a two-line title, three lines of synopsis, buttons, the
   progress line) and holds shorter content at its foot. So a title landing, a
   synopsis arriving, or a press on another poster never moves the page below.
   These sizes are the only numbers, and each is the slot's own line-height plus its
   margin, stated below rather than left to the font: a fallback font cannot change
   the sum. Change one here and on its rule together. */
.home-spotlight {
  --hsp-title-size: clamp(34px, 4.5vw, 68px);
  --hsp-title-lh: 1.02;
  --hsp-kicker-h: 26px;
  --hsp-meta-h: 36px;
  --hsp-overview-size: 14px;
  --hsp-overview-lines: 3;
  --hsp-overview-gap: 16px;
  --hsp-actions-h: 72px;
  --hsp-progress-h: 34px;
  --hsp-copy-h: calc(var(--hsp-kicker-h) + var(--hsp-title-size) * var(--hsp-title-lh) * 2 + var(--hsp-meta-h) + var(--hsp-overview-gap) + var(--hsp-overview-size) * 1.6 * var(--hsp-overview-lines) + var(--hsp-actions-h) + var(--hsp-progress-h));
  position: relative; isolation: isolate; width: 100%; min-width: 0; padding: 28px 36px 20px; color: var(--hsp-text);
}
/* A quiet tinted surface until the picture is ready; it fades in over it. */
.hsp-backdrop { position: absolute; z-index: -2; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(90% 120% at 78% 18%, #1a2230, transparent 70%); }
.hsp-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 36%; }
.hsp-backdrop img[hidden] { display: none; }
.hsp-backdrop.is-cover img { object-position: 80% 40%; }
.hsp-backdrop.is-cover img.is-in { opacity: .55; }
.home-spotlight::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(19,14,9, .97), rgba(19,14,9, .89) 25%, rgba(19,14,9, .28) 65%, rgba(19,14,9, .12)),
    linear-gradient(0deg, var(--hsp-bg), rgba(19,14,9, .78) 12%, transparent 72%, rgba(19,14,9, .25));
}
.hsp-header { display: flex; align-items: center; gap: 20px; padding-right: 52px; min-height: 28px; }
.hsp-greeting { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.hsp-date { font-size: 11px; color: var(--hsp-muted); letter-spacing: .08em; text-transform: uppercase; }
.hsp-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 36px; padding: 20px 0 24px; }
.hsp-copy { min-width: 0; max-width: 620px; min-height: var(--hsp-copy-h); display: flex; flex-direction: column; justify-content: flex-end; }
.hsp-kicker { margin: 0 0 12px; line-height: 14px; color: var(--hsp-amber); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.hsp-title { margin: 0; color: var(--hsp-text); font: 800 var(--hsp-title-size)/var(--hsp-title-lh) -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  /* The clamp clips at this box, and the tight line-height puts accents above it and
     descenders below it (Segoe UI's reach .114em past the line). This gives them room
     without taking any: the negative margin hands it straight back. */
  padding-block: .1em .13em; margin-block: -.1em -.13em; }
.hsp-meta { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; white-space: nowrap; margin: 18px 0 0; line-height: 18px; color: var(--hsp-muted); font-size: 13px; }
.hsp-meta > span { display: inline-block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hsp-meta > span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--hsp-line); }
.hsp-overview { margin: var(--hsp-overview-gap) 0 0; max-width: 52ch; color: var(--hsp-muted); font-size: var(--hsp-overview-size); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hsp-overview[hidden] { display: none; }
.hsp-actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; margin-top: 24px; min-width: 0; }
.hsp-actions .hsp-details { flex: none; white-space: nowrap; }
.hsp-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; min-width: 0; padding: 12px 22px; border-radius: 8px; font-family: inherit; font-weight: 650; font-size: 14px; line-height: 1.35; cursor: pointer; touch-action: manipulation; transition: background .16s, border-color .16s, transform .16s; }
/* Play is Hearth's plaque (home.css "The hero's plaque"): walnut bound in brass,
   an ink outline, the painted ember medallion. Not the cream rectangle any
   streaming site has. */
.hsp-actions .hsp-play {
  gap: 10px; padding: 0 20px 0 4px;
  border: 2px solid #c9973f; border-radius: 12px;
  background:
    radial-gradient(70px 56px at 24px 50%, rgba(255, 138, 52, .34), transparent 70%),
    linear-gradient(180deg, #3d2717 0%, #2a1a0f 58%, #20140c 100%);
  color: var(--hsp-text);
  font-family: var(--hx-font, inherit); font-weight: 600; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 226, 170, .32), 0 0 0 2px #0b0806, 0 4px 0 2px #0b0806;
  transition: transform .2s var(--hx-pop, ease), box-shadow .16s, border-color .16s;
}
.hsp-actions .hsp-play:hover {
  border-color: #f0c46a; transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 226, 170, .42), 0 0 0 2px #0b0806, 0 6px 0 2px #0b0806, 0 10px 24px rgba(255, 120, 40, .18);
}
.hsp-actions .hsp-play:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 226, 170, .3), 0 0 0 2px #0b0806, 0 1px 0 2px #0b0806; }
.hsp-play-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: contain; box-shadow: 0 0 0 2px #0b0806, 0 0 8px rgba(255, 128, 40, .3); transition: transform .45s var(--hx-pop, ease); }
.hsp-play:hover .hsp-play-mark { transform: rotate(-12deg) scale(1.06); }
.hsp-play-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hsp-details { background: rgba(27,21,15, .55); color: var(--hsp-text); border: 1px solid rgba(255, 255, 255, .36); }
.hsp-details:hover { background: rgba(255, 255, 255, .14); border-color: var(--hsp-text); }
.hsp-actions .hsp-watched { position: relative; width: 48px; padding: 0; flex: none; background: rgba(27,21,15, .55); color: var(--hsp-muted); border: 1px solid rgba(255, 255, 255, .22); }
.hsp-watched:hover, .hsp-watched:focus-visible { color: var(--hsp-amber); border-color: var(--hsp-amber); background: rgba(27,21,15, .72); }
.hsp-watched::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); padding: 6px 10px; border-radius: 6px; background: var(--hsp-text); color: var(--hsp-bg); font-size: 12px; font-weight: 650; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .14s, transform .14s; z-index: 2; }
.hsp-watched:hover::after, .hsp-watched:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.hsp-actions button:active { transform: translateY(1px); }
.hsp-actions button.is-busy { opacity: .65; pointer-events: none; }
.hsp-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; line-height: 16px; color: var(--hsp-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.hsp-progress-track { width: 112px; height: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; border-radius: 3px; }
.hsp-progress-track i { display: block; height: 100%; background: var(--hsp-amber); }
.hsp-shelf { min-width: 0; width: 100%; max-width: 570px; justify-self: end; }
.hsp-shelf-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.hsp-meter { margin-left: auto; color: var(--hsp-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hsp-controls { display: flex; gap: 4px; }
.hsp-step { width: 44px; height: 44px; border: 1px solid var(--hsp-line); border-radius: 50%; background: rgba(19,14,9, .6); color: var(--hsp-text); font-size: 20px; cursor: pointer; touch-action: manipulation; transition: background .16s, border-color .16s; }
.hsp-step:hover:not(:disabled) { border-color: var(--hsp-text); background: rgba(255, 255, 255, .12); }
.hsp-step:disabled { opacity: .3; cursor: default; }
/* A poster is one size whatever the count: a fifth of the row, at most 112px. */
.hsp-posters { --hsp-gap: 12px; display: grid; grid-template-columns: repeat(var(--hsp-picks, 5), min(112px, calc((100% - 4 * var(--hsp-gap)) / 5))); justify-content: end; gap: var(--hsp-gap); }
/* One poster is the start of a row, under its heading, not a stray at the far end. */
.hsp-posters:has(> .hsp-pick:only-child) { justify-content: start; }
.hsp-pick { display: block; min-width: 0; padding: 0; border: 0; background: none; color: var(--hsp-muted); text-align: left; cursor: pointer; touch-action: manipulation; }
.hsp-poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 7px; background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), #12171f; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transition: transform .18s, box-shadow .18s; }
.hsp-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hsp-poster img[hidden] { display: none; }
/* The title on the tile is for a picture that failed; a picture on its way shows the surface. */
.hsp-poster:not(.has-no-art) .hsp-poster-fallback { visibility: hidden; }
.hsp-poster-fallback { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px 6px; overflow: hidden; text-align: center; font-size: 12px; line-height: 1.35; color: var(--hsp-muted); }
.hsp-pick-title { display: block; min-width: 0; margin-top: 10px; font-size: 11px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsp-pick[aria-pressed="true"] { color: var(--hsp-text); }
.hsp-pick[aria-pressed="true"] .hsp-poster { box-shadow: 0 0 0 2px var(--hsp-amber), 0 8px 24px rgba(0, 0, 0, .45); transform: translateY(-5px); }
.hsp-pick:hover .hsp-poster { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--hsp-text), 0 10px 24px rgba(0, 0, 0, .4); }
.home-spotlight button:focus-visible { outline: 2px solid var(--hsp-amber); outline-offset: 5px; }
.hsp-library-note { margin: 0; padding-top: 16px; min-height: calc(1.5em + 17px); border-top: 1px solid var(--hsp-line); color: var(--hsp-muted); font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsp-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:root[data-content-profile="sfw"] .home-hero.has-spotlight .home-eye { top: 20px; right: 22px; width: 44px; height: 44px; }
.home-scroll.discreet .hsp-backdrop img,
.home-scroll.discreet .hsp-poster img { filter: blur(22px) saturate(.4); transform: scale(1.1); }
/* ── loading ── the real elements, carrying .hl-ph (home.css has the sweep) ── */
.hsp-kicker.hl-ph, .hsp-title.hl-ph, .hsp-meta > .hl-ph { width: fit-content; max-width: 100%; }
/* The page's own clamp: a sample that wraps further still draws two lines. */
.hsp-title.hl-ph { padding-block: 0; margin-block: 0; }
.hsp-meta > .hl-ph { margin-left: 0; border-left: 0; border-radius: 5px; }
.hsp-meta > .hl-ph + .hl-ph { margin-left: 12px; padding-left: 0; }
.hsp-overview.is-pending { display: grid; align-content: start; gap: calc(var(--hsp-overview-size) * .6); min-height: calc(var(--hsp-overview-size) * 1.6 * var(--hsp-overview-lines)); padding-top: calc(var(--hsp-overview-size) * .3); max-width: 52ch; }
.hsp-overview.is-settled { min-height: calc(var(--hsp-overview-size) * 1.6 * var(--hsp-overview-lines)); }
.hsp-overview-line { display: block; height: var(--hsp-overview-size); border-radius: 5px; }
.hsp-overview-line:nth-child(2) { width: 92%; }
.hsp-overview-line:nth-child(3) { width: 58%; }
.hsp-actions .hl-ph { pointer-events: none; cursor: default; box-shadow: none; }
.hsp-actions .hsp-play.hl-ph { padding-left: 54px; }
.hsp-progress-track.hl-ph { height: 3px; }
.hsp-pick.is-placeholder { cursor: default; pointer-events: none; }
.hsp-meter.hl-ph { border-radius: 5px; }
.hl-ph-text { color: transparent; }
/* Nobody knows yet what this library holds: the box stands, nothing is promised. */
.home-spotlight.is-neutral .hl-ph { visibility: hidden; }
.home-spotlight.is-neutral .hsp-shelf-head, .home-spotlight.is-neutral .hsp-library-note { visibility: hidden; }

@media (max-width: 1100px) {
  .home-spotlight { padding: 24px 28px 20px; --hsp-title-size: 46px; }
  .hsp-stage { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; }
  .hsp-posters { --hsp-gap: 8px; }
  .hsp-date { font-size: 10px; }
}
@media (max-width: 820px) {
  .hsp-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 72px; }
  .hsp-copy { max-width: 520px; }
  .hsp-shelf { max-width: 100%; }
  .hsp-posters { --hsp-gap: 14px; }
  .hsp-poster { max-height: 160px; }
  .hsp-date { display: none; }
  .home-spotlight::before { background: linear-gradient(0deg, var(--hsp-bg) 20%, rgba(19,14,9, .92) 45%, rgba(19,14,9, .12)); }
  .hsp-backdrop { height: 420px; }
  .hsp-backdrop img { object-position: 68% top; }
}
@media (max-width: 480px) {
  .home-spotlight {
    padding: 24px 20px 18px;
    --hsp-title-size: 38px; --hsp-title-lh: 1.06; --hsp-kicker-h: 23px; --hsp-meta-h: 30px;
    --hsp-overview-size: 13px; --hsp-overview-lines: 2; --hsp-overview-gap: 12px; --hsp-actions-h: 68px; --hsp-progress-h: 30px;
  }
  .hsp-stage { padding-top: 72px; padding-bottom: 20px; gap: 20px; }
  .hsp-kicker { font-size: 10px; line-height: 13px; margin-bottom: 10px; }
  .hsp-meta { font-size: 12px; margin-top: 12px; }
  .hsp-overview { -webkit-line-clamp: 2; margin-top: 12px; }
  .hsp-overview-line:nth-child(3) { display: none; }
  .hsp-overview-line:nth-child(2) { width: 62%; }
  .hsp-actions { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; grid-auto-flow: column; gap: 8px; margin-top: 20px; }
  .hsp-watched::after { left: auto; right: 0; transform: translate(0, 4px); }
  .hsp-watched:hover::after, .hsp-watched:focus-visible::after { transform: none; }
  .hsp-actions button { padding: 12px; font-size: 12px; gap: 8px; }
  .hsp-actions .hsp-details { padding: 10px; }
  .hsp-actions .hsp-play { padding-right: 6px; gap: 6px; font-size: 12.5px; }
  .hsp-play-mark { width: 32px; height: 32px; }
  .hsp-posters { --hsp-gap: 8px; }
  .hsp-pick-title { font-size: 10px; margin-top: 8px; }
  /* A word is never broken: a poster this narrow takes a smaller line, and clips the rare word that still will not fit. */
  .hsp-poster-fallback { padding: 8px 4px; font-size: 10.5px; }
  .hsp-library-note { font-size: 11px; }
  .hsp-backdrop { height: 340px; }
  .hsp-progress { margin-top: 14px; }
  :root[data-content-profile="sfw"] .home-hero.has-spotlight .home-eye { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-spotlight *, .home-spotlight *::before, .home-spotlight *::after { transition: none !important; animation: none !important; }
}
