/* Browse pages only (Home, Movies, Free to watch, Title, Help, Terms, Privacy): what app.css doesn't cover.
   Tokens, components and breakpoints come from app.css; this file only arranges them. */

/* Home hero: the title logo instead of type, and the rows lifted onto the hero's fade */
.hero-title.has-logo { max-width: none; width: 100%; display: flex; justify-content: center; }
.hero-logo { width: min(84vw, 24rem); filter: drop-shadow(0 2px 24px rgba(0,0,0,.55)); }
.hero-eyebrow { color: var(--soft); }
.rows { position: relative; z-index: 1; display: grid; gap: .25rem; }
.why .features { margin-top: var(--s5); }
.why-lead { max-width: 40rem; }

/* Movies */
.browse-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: var(--s5); }
.browse-grid { min-height: 18rem; }
.browse-grid:empty { min-height: 0; }
#empty:not([hidden]) { margin-top: var(--s5); }

/* Free to watch: one screening per free preview */
.screenings { display: grid; gap: var(--s7); }
.screening { display: grid; gap: var(--s5); scroll-margin-top: calc(var(--top) + 1rem); }
.screening-player { box-shadow: var(--sh); }
.screening-info { display: grid; gap: .75rem; justify-items: start; align-content: start; min-width: 0; }
.screening-title { font-size: var(--fs-h1); letter-spacing: -.03em; }
.screening-sub { font-size: .55em; font-weight: 600; letter-spacing: -.01em; color: var(--soft); white-space: nowrap; }
.screening-text { color: var(--soft); max-width: var(--measure); }
.screening-actions { display: grid; gap: .625rem; width: 100%; margin-top: .25rem; }

/* Title page */
.poster-skeleton { display: block; aspect-ratio: 2/3; border-radius: var(--r-lg); }
.title-skeleton { display: block; width: min(100%, 9ch); height: .9em; border-radius: var(--r-sm); }
.button-skeleton { display: block; width: 100%; height: 3.25rem; border-radius: var(--r); }
.title-backdrop.is-poster img { filter: saturate(.9); }
.title-sections > .page-section:first-child { margin-top: var(--s6); }
.title-section { scroll-margin-top: calc(var(--top) + 1rem); }
.section-lede { margin: -.5rem 0 1rem; }
.section-foot { margin-top: 1.25rem; }
#more > .row { margin-top: var(--s6); }
.about-grid { display: grid; gap: var(--s5); }
.about-grid .facts { margin: 0; align-self: start; }
.about-note { margin-top: 1rem; max-width: var(--measure); }
.people { display: grid; gap: .75rem; list-style: none; }
.person { padding: 1.125rem 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.person h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.person p { color: var(--muted); font-size: var(--fs-sm); }
.person.is-cain { border-color: rgba(255,122,46,.4); }
.person.is-cain h3 { color: var(--accent); }
.person.is-julie { border-color: rgba(63,214,198,.4); }
.person.is-julie h3 { color: var(--accent-2); }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
.stills img { width: 100%; aspect-ratio: 1920/804; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.offer-layout { display: grid; gap: var(--s5); }
.offer-layout .features { grid-template-columns: minmax(0, 1fr); }
.offer { display: grid; gap: .875rem; align-content: start; border-color: rgba(255,122,46,.35);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,46,.1), transparent 60%), var(--surface); }
.offer-price { font: 800 3rem/1 var(--font-display); letter-spacing: -.03em; }
.offer-price small { margin-left: .25rem; font: 500 1rem/1.3 var(--font); letter-spacing: 0; color: var(--muted); }
.offer-foot a { color: var(--text); }
/* the free preview: a poster with the player's Play button until asked, then the video in the same box */
.preview-layout { display: grid; gap: var(--s5); }
.preview-player { box-shadow: var(--sh); }
.preview-player video:focus-visible { outline-offset: calc(var(--ring-w) * -1); }   /* inside the box, which clips */
.preview-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-start { background: linear-gradient(to top, rgba(7,8,11,.55), rgba(7,8,11,.1) 45%); }
.preview-time { position: absolute; right: .75rem; bottom: .75rem; padding: .3125rem .5rem; border-radius: var(--r-sm); background: rgba(7,8,11,.82);
  font: 600 .8125rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.preview-info { display: grid; gap: .75rem; justify-items: start; align-content: center; min-width: 0; }
.preview-text { max-width: var(--measure); color: var(--soft); }
.next-card { margin-top: 0; }

/* Help */
.help-nav { position: sticky; z-index: 5; top: var(--top); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1);
  padding: .625rem var(--pad-r) .625rem var(--pad-l); background: var(--bg); border-bottom: 1px solid var(--line); }
.help-nav::-webkit-scrollbar { display: none; }
@media (max-width: 767.98px) {
  .help-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
}
.help-section { padding-top: var(--s6); scroll-margin-top: calc(var(--top) + 3.75rem); }
.contact-panel { max-width: 52rem; }
.contact-panel p + p { margin-top: .5rem; }
.legal code, .help code { font: 500 .875em/1.4 var(--font-mono); padding: .0625rem .3125rem; border-radius: .25rem; background: var(--surface-2); color: var(--text); }

@media (min-width: 600px) {
  .screening-actions { display: flex; flex-wrap: wrap; width: auto; }
  .screening-actions .btn { flex: 1 1 12rem; }
  .button-skeleton { width: 12rem; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer-layout .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .hero-title.has-logo { justify-content: flex-start; }
  .hero-logo { width: clamp(21rem, 34vw, 36rem); }
  .home-hero + .rows { margin-top: calc(clamp(3rem, 7vw, 7rem) * -.6); }
  .help-nav { position: static; flex-wrap: wrap; margin-inline: 0; padding-inline: 0; border: 0; background: none; }
  .help-section { scroll-margin-top: calc(var(--top) + 1rem); }
}
@media (min-width: 1024px) {
  .title-backdrop.is-poster img { filter: blur(28px) saturate(1.15); transform: scale(1.15); opacity: .75; }   /* no backdrop: the poster as ambient light */
  .help { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4.5rem); }
  .help > .page-head { grid-column: 1 / -1; }
  .help-nav { grid-column: 1; grid-row: 2 / 8; position: sticky; top: calc(var(--top) + 1.5rem); align-self: start; flex-direction: column; gap: .125rem; padding-top: var(--s6); }
  .help-nav .filter { justify-content: flex-start; border-color: transparent; border-radius: var(--r); padding: 0 .875rem; }
  .help-nav .filter:hover { background: var(--surface-2); }
  .help-section { grid-column: 2; }
  .screening { grid-template-columns: minmax(0, 1.75fr) minmax(19rem, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
  .about-grid { grid-template-columns: minmax(0, var(--measure)) minmax(17rem, 28rem); justify-content: start; gap: clamp(2rem, 4vw, 4rem); column-gap: clamp(3rem, 6vw, 7rem); }
  .offer-layout { grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr); align-items: start; }
  .offer-layout .features { grid-template-columns: minmax(0, 1fr); }
  .preview-layout { grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
}

/* Home: a section with one item shows it as a large card under the row heading (also the title page's next film) */
.spotlight { display: grid; gap: 1rem; margin-top: .75rem; padding: .75rem; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.spotlight-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; border-radius: var(--r-lg); background: var(--surface-2); }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow); }
.spotlight:not(.is-portrait) .spotlight-media { aspect-ratio: 2.39/1; }   /* scope: also trims a letterboxed still’s bars */
.spotlight.is-portrait .spotlight-media { aspect-ratio: 2/3; width: min(50%, 12rem); }
.spotlight-body { display: grid; gap: .625rem; align-content: center; justify-items: start; min-width: 0; padding: 0 .375rem .375rem; }
.spotlight-title { font-size: var(--fs-h2); letter-spacing: -.025em; }
.spotlight-text { max-width: 36rem; color: var(--soft); }
.spotlight-actions { display: grid; gap: .625rem; width: 100%; margin-top: .25rem; }

/* Phones and portrait tablets: the art on top, the title and buttons below it on the page colour (text never sits
   on the bright eye) */
@media (max-width: 767.98px), (max-width: 1180px) and (orientation: portrait) {
  .home-hero { --art-h: min(100vw, 54svh); min-height: 0; padding-top: calc(var(--art-h) - 7rem); background: var(--bg); }
  .home-hero .hero-media { bottom: auto; height: var(--art-h); }
  .home-hero .hero-media::after { background: linear-gradient(to top, var(--bg) 3%, rgba(7,8,11,.72) 26%, rgba(7,8,11,0) 58%, rgba(7,8,11,.5)); }
}
@media (min-width: 600px) {
  .spotlight-actions { display: flex; flex-wrap: wrap; width: auto; }
}
@media (min-width: 768px) {
  .spotlight { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.75rem); padding: 1rem; }
  .spotlight.is-portrait { grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); }
  .spotlight.is-portrait .spotlight-media { width: 100%; }
}
@media (max-width: 767.98px) {
  .home-hero .hero-note { display: none; }   /* the buttons already say "from $1" */
  .home-hero .hero-actions > .btn.quiet { min-height: 2.75rem; font-size: .9375rem; padding-block: .5rem; }
}
.home-hero .hero-content > .hero-actions { max-width: none; flex-wrap: nowrap; }
@media (min-width: 600px) and (max-width: 1180px) {
  /* the text stays in the DOM: the accessible name is still "More info" */
  .home-hero .hero-actions .btn.quiet { width: 3.25rem; min-height: 3.25rem; flex-shrink: 0; padding: 0; border-radius: 50%; border-color: var(--w2); font-size: 0; gap: 0; }
  .home-hero .hero-actions .btn.quiet .i { width: 1.375rem; }
}
/* Landscape tablets, landscape phones and up: the text stays left of the eye */
@media (min-width: 768px) and (orientation: landscape), (min-width: 1181px) { .home-hero .hero-content > * { max-width: min(40rem, 58vw); } }
@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
  .home-hero .hero-content > * { max-width: 52vw; }
  .home-hero .hero-media::after { background: linear-gradient(90deg, rgba(7,8,11,.94), rgba(7,8,11,.78) 42%, rgba(7,8,11,.1) 78%), linear-gradient(to top, var(--bg), rgba(7,8,11,0) 32%),
    linear-gradient(rgba(7,8,11,.5), rgba(7,8,11,0) 22%); }
}
@media (hover: hover) { .spotlight-media:hover img { transform: scale(1.03); } }
