/* ==========================================================================
   Previously — Unified browse styles · BUILD #7 (2026-10-17)
   --------------------------------------------------------------------------
   Bible scheme, page-scoped to Browse: black #000 ground, surfaces
   #101010 / #1B1B1B, lines #2C2C2C, silver #A5ACAF secondary, signal red
   #E10600 reserved accents, Marathon ('Previously Display') 400 for
   display type. The cream / Playfair / brick layer (browse.css,
   tokens.css desert mapping, desk-kit, wave2-fronts) is RETIRED from
   this page — not recolored. Floating law: no outlined trays; modules
   sit on the black ground with soft shadows and gradient blends.
   Underline tabs only (no pills). Seamless swipe rails (no arrows).
   ========================================================================== */

body.b-scope { background: #000; color: #fff; }
/* Page-scoped token pin (Build #7): browse/css/tokens.css mapped these
   --pv-* vars to the retired desert/cream values for the page-local
   footer sheet. The link is retired from this page; the vars the footer
   sheet consumes are pinned here to Bible values instead. (Shared
   footer conversion remains the cream crew's fleet job.) */
:root {
  --pv-ivory: #FFFFFF;
  --pv-ivory-dim: rgba(255,255,255,.65);
  --pv-ivory-faint: rgba(255,255,255,.38);
  --pv-noir-2: #0A0A0A;
  --pv-rule: rgba(255,255,255,.14);
  --pv-red: #E10600;
}
body.b-scope [data-pv-footer].pvf-footer { background: #000; color: #fff; border-top: 1px solid #2C2C2C; }
.ub-wrap {
  --ub-red: #E10600;
  --ub-silver: #A5ACAF;
  --ub-line: #2C2C2C;
  --ub-surface: #101010;
  --ub-surface2: #1B1B1B;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px 70px;
  color: #fff;
  font-family: var(--bible-sans, 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif);
}
.ub-wrap h1, .ub-wrap h2, .ub-wrap .ub-hero__title, .ub-wrap .ub-tab {
  font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif;
  font-weight: 400;
}

/* ---------- compact identity zone (~90px, below the site header) ------ */
.ub-ident { padding: 26px 0 4px; }
.ub-kicker {
  color: var(--ub-red);
  font-size: 12px;
  letter-spacing: .28em;
  margin: 0 0 6px;
  font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif;
}
.ub-title { font-size: 44px; line-height: 1.05; margin: 0; color: #fff; letter-spacing: .01em; }
.ub-wrap .pv-lede { font-size: 16px; line-height: 1.55; color: var(--ub-silver); max-width: 720px; margin: 8px 0 0; }

/* ---------- Movies / TV underline tabs -------------------------------- */
.ub-tabs { display: flex; gap: 34px; margin: 20px 0 0; border-bottom: 1px solid var(--ub-line); }
.ub-tab {
  background: none; border: 0; color: var(--ub-silver);
  font-size: 20px; letter-spacing: .02em;
  padding: 0 2px 10px; margin-bottom: -1px; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.ub-tab:hover { color: #fff; }
.ub-tab.on { color: #fff; border-bottom-color: var(--ub-red); }
.ub-tab:focus-visible, .ub-gchip:focus-visible, .ub-cta:focus-visible,
.ub-sbar button:focus-visible, .ub-more:focus-visible, .ub-err button:focus-visible {
  outline: 2px solid var(--ub-red); outline-offset: 2px;
}

/* ---------- featured hero + Also Trending ------------------------------ */
.ub-herogrid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-top: 24px; align-items: stretch; }
.ub-hero {
  position: relative; overflow: hidden; min-height: 430px;
  display: flex; align-items: flex-end; isolation: isolate;
  background: var(--ub-surface);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.ub-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ub-hero__collage { position: absolute; inset: 0; z-index: -2; display: flex; overflow: hidden; }
.ub-hero__collage img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; opacity: .85; }
.ub-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 62%);
}
.ub-hero__body { position: relative; padding: 34px 36px; max-width: 680px; }
.ub-hero__kick { color: var(--ub-red); font-size: 12px; letter-spacing: .26em; margin: 0 0 10px; font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif; }
.ub-hero__title { font-size: clamp(38px, 4vw, 56px); line-height: 1.02; margin: 0 0 10px; color: #fff; text-wrap: balance; }
.ub-hero__meta { color: var(--ub-silver); font-size: 15px; margin-bottom: 12px; }
.ub-hero__ov {
  color: #d8d8d8; font-size: 15.5px; line-height: 1.55; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0;
}
.ub-cta {
  display: inline-block; margin-top: 18px; background: var(--ub-red); color: #fff;
  font-size: 15px; letter-spacing: .04em; padding: 13px 26px; text-decoration: none;
  transition: filter .2s, transform .2s;
}
.ub-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.ub-cta--free { background: transparent; box-shadow: inset 0 0 0 1px var(--ub-silver); color: #fff; margin-left: 10px; }
.ub-cta--free:hover { box-shadow: inset 0 0 0 1px #fff; }
.ub-hero { transition: opacity .23s ease; }
.ub-hero--fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ub-hero { transition: none; } }

/* Also Trending side rail */
.ub-also {
  background: linear-gradient(180deg, #101010, #0A0A0A);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 20px 20px 10px; min-width: 0;
}
.ub-also h3 { font-size: 12px; letter-spacing: .24em; color: var(--ub-silver); font-weight: 400; margin: 0 0 8px; font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif; }
.ub-also__row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #1B1B1B; text-decoration: none; color: #fff; }
.ub-also__row:last-child { border-bottom: 0; }
.ub-also__row img { width: 96px; height: 54px; object-fit: cover; flex: none; background: var(--ub-surface2); }
.ub-also__rk { color: var(--ub-red); font-size: 16px; letter-spacing: .04em; flex: none; min-width: 27px; font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif; }
.ub-also__tx { min-width: 0; }
.ub-also__tt { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-also__mt { display: block; color: var(--ub-silver); font-size: 12.5px; margin-top: 3px; }
.ub-also .ub-loading { min-height: 200px; }

/* ---------- genre row (underline text tabs) ---------------------------- */
.ub-genrerow { margin-top: 30px; }
.ub-genrerow__lab { font-size: 12px; letter-spacing: .24em; color: var(--ub-silver); margin: 0 0 4px; font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif; }
.ub-gchips {
  display: flex; gap: 6px 28px; flex-wrap: wrap; align-items: baseline;
  padding: 8px 2px 14px; border-bottom: 1px solid var(--ub-line);
}
.ub-gchip {
  background: none; border: 0; color: var(--ub-silver);
  font-size: 17px; letter-spacing: .02em; padding: 6px 2px; cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -15px; padding-bottom: 12px;
  font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif;
  transition: color .2s, border-color .2s;
}
.ub-gchip:hover { color: #fff; }
.ub-gchip.on { color: #fff; border-bottom-color: var(--ub-red); }

/* ---------- section heads ---------------------------------------------- */
.ub-sec-head { margin: 46px 0 16px; }
.ub-h2 { font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 5px; color: #fff; letter-spacing: .01em; }
.ub-secsub { color: var(--ub-silver); font-size: 14.5px; margin: 0; }

/* ---------- rails + grids ---------------------------------------------- */
.ub-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 188px; gap: 18px;
  overflow-x: auto; padding: 4px 2px 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.ub-rail::-webkit-scrollbar { display: none; }
.ub-rail > * { scroll-snap-align: start; }
.ub-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 18px; }
@media (min-width: 1500px) { .ub-grid { grid-template-columns: repeat(7, 1fr); } }

/* ---------- cards (2:3 poster system, honest meta) ---------------------- */
.ub-wrap .mcard { text-decoration: none; color: #fff; display: block; position: relative; }
.ub-wrap .mcard__art {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 2/3; background: var(--ub-surface2);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transition: box-shadow .25s, transform .25s;
}
.ub-wrap .mcard__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ub-wrap .mcard:hover .mcard__art { box-shadow: 0 18px 44px rgba(0,0,0,.65), 0 0 0 1px rgba(225,6,0,.35); transform: translateY(-4px); }
.ub-wrap .mcard__name { display: block; font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.ub-wrap .mcard:hover .mcard__name { color: var(--ub-red); }
.ub-wrap .mcard__meta { display: block; font-size: 13px; color: var(--ub-silver); margin-top: 3px; text-wrap: pretty; }
.ub-wrap .mcard__award { display: block; font-size: 12.5px; color: #fff; margin-top: 4px; letter-spacing: .02em; }
.ub-wrap .mcard__chipfree {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: var(--ub-red); color: #fff; font-size: 10.5px; letter-spacing: .12em;
  padding: 4px 8px; font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif;
}
.mcard__noposter {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 52px; color: rgba(165,172,175,.4);
  font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif;
}
/* award corner chip painted by pv-awards.js */
.ub-wrap .pv-award-chip { background: #101010; color: #fff; box-shadow: inset 0 0 0 1px var(--ub-red); }

/* ---------- states ------------------------------------------------------- */
.ub-loading {
  min-height: 140px; border-radius: 14px;
  background: linear-gradient(100deg, #101010 40%, #1B1B1B 50%, #101010 60%);
  background-size: 200% 100%; animation: ubshimmer 1.4s infinite;
}
.ub-grid .ub-loading, .ub-rail .ub-loading { grid-column: 1 / -1; }
@keyframes ubshimmer { to { background-position: -200% 0; } }
.ub-err, .ub-empty { text-align: center; padding: 36px 20px; color: var(--ub-silver); grid-column: 1 / -1; }
.ub-err button {
  margin-top: 14px; background: none; border: 1px solid var(--ub-red); color: #fff;
  padding: 11px 26px; font-size: 14px; cursor: pointer; border-radius: 6px;
}
.ub-err button:hover { background: var(--ub-red); }

/* ---------- watch-free furniture ----------------------------------------- */
.ub-free-more { margin: 0; font-size: 15px; }
.ub-free-more a { color: #fff; text-decoration: none; box-shadow: inset 0 -2px 0 var(--ub-red); padding-bottom: 2px; }
.ub-free-more a:hover { color: var(--ub-red); }

/* ---------- catalog workspace --------------------------------------------- */
.ub-catalog { margin-top: 8px; }
.ub-sbar { display: flex; gap: 12px; max-width: 820px; }
.ub-sbar input {
  flex: 1; min-width: 0; background: var(--ub-surface); border: 1px solid var(--ub-line);
  color: #fff; border-radius: 10px; padding: 15px 18px; font-size: 16.5px;
}
.ub-sbar input::placeholder { color: rgba(165,172,175,.75); }
.ub-sbar input:focus { outline: none; border-color: var(--ub-red); }
.ub-sbar button {
  background: var(--ub-red); border: 0; color: #fff; border-radius: 10px;
  padding: 0 28px; font-size: 15.5px; cursor: pointer; white-space: nowrap;
}
.ub-sbar .ub-clear { background: transparent; box-shadow: inset 0 0 0 1px var(--ub-line); color: var(--ub-silver); padding: 0 18px; }
.ub-sbar .ub-clear:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--ub-silver); }
.pv-sort-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ub-snote { color: var(--ub-silver); font-size: 14px; margin: 14px 0 0; }
.ub-catalog .pv-sort-row { margin-top: 4px; }
.ub-filters {
  display: flex; gap: 14px 26px; flex-wrap: wrap; align-items: flex-end;
  margin: 22px 0 6px; padding: 16px 0 4px; border-top: 1px solid var(--ub-line);
}
.ub-filter { display: flex; flex-direction: column; gap: 7px; }
.ub-filter label, .ub-filter .ub-filter__lab {
  font-size: 11.5px; letter-spacing: .22em; color: var(--ub-silver);
  font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif;
}
.ub-filter select {
  background: var(--ub-surface); color: #fff; border: 1px solid var(--ub-line);
  border-radius: 8px; padding: 10px 12px; font-size: 15px; min-width: 150px;
}
.ub-filter select:focus { outline: none; border-color: var(--ub-red); }
.ub-filter select:disabled { opacity: .45; }
.ub-check { flex-direction: row; align-items: center; gap: 10px; padding-bottom: 10px; cursor: pointer; }
.ub-check input { width: 19px; height: 19px; accent-color: var(--ub-red); cursor: pointer; }
.ub-check span { font-size: 15px; color: #fff; letter-spacing: 0; font-family: inherit; }
.ub-reset {
  background: none; border: 0; color: var(--ub-silver); font-size: 14.5px; cursor: pointer;
  padding: 10px 2px; box-shadow: inset 0 -2px 0 var(--ub-line);
}
.ub-reset:hover { color: #fff; box-shadow: inset 0 -2px 0 var(--ub-red); }
.ub-count { color: var(--ub-silver); font-size: 14.5px; margin: 14px 0 18px; }
.ub-count b, .ub-count strong { color: #fff; font-weight: 600; }
.ub-more {
  display: block; margin: 30px auto 4px; background: transparent; color: #fff;
  border: 1px solid var(--ub-line); border-radius: 10px; padding: 14px 44px;
  font-size: 16px; cursor: pointer;
  font-family: 'Previously Display', 'Marathon Long Run', Georgia, serif; letter-spacing: .05em;
}
.ub-more:hover { border-color: var(--ub-red); color: var(--ub-red); }
.ub-more[hidden] { display: none; }
.ub-attr { margin: 56px 0 26px; color: var(--ub-silver); font-size: 13px; text-align: center; }
.ub-attr a { color: var(--ub-silver); }

/* PVSort (shared control) — page-scoped dark pin so no desert token can
   repaint it on this page. */
.ub-wrap .pv-sort, .ub-wrap .pv-sort * { --desert-card: #101010; --desert-pressed: #1B1B1B; --desert-ink: #fff; --desert-ink-dim: #A5ACAF; }
.ub-wrap .pv-sort select, .ub-wrap .pv-sort button { background: var(--ub-surface); color: #fff; border-color: var(--ub-line); }

/* ---------- tablet -------------------------------------------------------- */
@media (max-width: 1024px) {
  .ub-wrap { padding: 0 26px 60px; }
  .ub-grid { grid-template-columns: repeat(4, 1fr); }
  .ub-rail { grid-auto-columns: 160px; }
  .ub-herogrid { grid-template-columns: 1fr 250px; }
  .ub-hero { min-height: 380px; }
  .ub-hero__body { padding: 28px; }
}
/* ---------- phone (intentional composition, not scaled desktop) ----------- */
@media (max-width: 700px) {
  .ub-wrap { padding: 0 18px 50px; }
  .ub-ident { padding-top: 18px; }
  .ub-title { font-size: 32px; }
  .ub-wrap .pv-lede { font-size: 14.5px; }
  .ub-tabs { gap: 24px; }
  .ub-tab { font-size: 18px; }
  .ub-herogrid { grid-template-columns: 1fr; gap: 14px; }
  .ub-hero { min-height: 470px; }
  .ub-hero__kick { font-size: 11px; letter-spacing: .16em; line-height: 1.5; }
  .ub-hero__body { padding: 24px 20px; }
  .ub-hero__title { font-size: 36px; }
  .ub-hero__ov { font-size: 14px; -webkit-line-clamp: 2; }
  .ub-also { padding: 16px 16px 6px; }
  .ub-gchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ub-gchips::-webkit-scrollbar { display: none; }
  .ub-gchip { font-size: 16px; }
  .ub-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
  .ub-rail { grid-auto-columns: 128px; gap: 13px; }
  .ub-wrap .mcard__name { font-size: 13.5px; }
  .ub-wrap .mcard__meta { font-size: 11.5px; }
  .ub-sec-head { margin: 36px 0 14px; }
  .ub-sbar { flex-direction: column; }
  .ub-sbar button { padding: 14px; }
  .ub-filters { gap: 12px 18px; }
  .ub-filter select { min-width: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .ub-loading { animation: none; }
  .ub-wrap .mcard__art, .ub-tab, .ub-gchip, .ub-cta { transition: none; }
}
