/*
 * Historium V51 — soft depth, full-bleed previews and restored themes.
 *
 * This final layer intentionally sits after the V49 broadcast shell and the
 * V50 editorial cards. It adds restrained depth without changing card links,
 * save controls, playback, archive filtering or modal accessibility.
 */

body[data-shell-profile="public-v1"]{
  --v51-canvas: #141414;
  --v51-surface: #1c1c1c;
  --v51-surface-soft: #222;
  --v51-card: #1b1b1b;
  --v51-card-hover: #202020;
  --v51-text: #fff;
  --v51-text-soft: #c7c3bc;
  --v51-muted: #8f8b85;
  --v51-line: rgba(255, 255, 255, .13);
  --v51-line-strong: rgba(255, 255, 255, .25);
  --v51-accent: #d7a15a;
  --v51-card-radius: 10px;
  --v51-media-radius: 9px;
  --v51-control-radius: 8px;
  --v51-card-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .055),
    0 16px 38px -24px rgba(0, 0, 0, .94);
  --v51-card-shadow-hover:
    inset 0 0 0 1px rgba(215, 161, 90, .2),
    0 24px 50px -27px rgba(0, 0, 0, .98);
}

html[data-theme="light"] body[data-shell-profile="public-v1"]{
  --bg: #f3f0e8;
  --surface: #fbfaf6;
  --surface-2: #e9e8e1;
  --text: #111819;
  --text-soft: #303b3c;
  --muted: #626b6b;
  --line: rgba(24, 39, 40, .15);
  --line-strong: rgba(24, 39, 40, .28);
  --brand: #9b631e !important;
  --brand-strong: #835116 !important;
  --brand-dark: #744711 !important;
  --on-brand: #fff !important;
  --v51-canvas: #f3f0e8;
  --v51-surface: #fbfaf6;
  --v51-surface-soft: #efeee8;
  --v51-card: #fbfaf6;
  --v51-card-hover: #fff;
  --v51-text: #111819;
  --v51-text-soft: #3a4445;
  --v51-muted: #697171;
  --v51-line: rgba(24, 39, 40, .14);
  --v51-line-strong: rgba(24, 39, 40, .26);
  --v51-accent: #9b631e;
  --v51-card-shadow:
    inset 0 0 0 1px rgba(24, 39, 40, .075),
    0 16px 38px -26px rgba(32, 48, 48, .38);
  --v51-card-shadow-hover:
    inset 0 0 0 1px rgba(155, 99, 30, .2),
    0 22px 44px -25px rgba(32, 48, 48, .46);
  --card-v50-ink: #111819;
  --card-v50-muted: #4b5556;
  --card-v50-faint: #737b7b;
  --card-v50-line: rgba(24, 39, 40, .14);
  --card-v50-line-strong: rgba(24, 39, 40, .28);
  --card-v50-panel: #fbfaf6;
  --card-v50-panel-hover: #fff;
  --card-v50-gold: #9b631e;
  color: var(--v51-text);
  background: var(--v51-canvas);
  color-scheme: light;
}

html[data-theme="light"]:has(body[data-shell-profile="public-v1"]){
  color-scheme: light;
  background: #f3f0e8;
}

body[data-shell-profile="public-v1"] .site-shell{
  color: var(--v51-text);
  background: var(--v51-canvas);
}

/* Theme control is a permanent utility again, not a hidden studio option. */
body[data-shell-profile="public-v1"] .header-actions .theme-toggle{
  position: static;
  inset: auto;
  display: grid !important;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(255, 255, 255, .045);
  border-radius: var(--v51-control-radius);
  box-shadow: 0 9px 24px -18px rgba(0, 0, 0, .9);
  place-items: center;
}

body[data-shell-profile="public-v1"] .header-actions .theme-toggle:is(:hover,:focus-visible){
  border-color: rgba(215, 161, 90, .62);
  color: var(--v51-accent);
  background: rgba(255, 255, 255, .09);
}

html[data-theme="light"] body[data-shell-profile="public-v1"] .site-header{
  color: #111819;
  background: rgba(251, 250, 246, .96);
  box-shadow: 0 1px 0 rgba(24, 39, 40, .12), 0 12px 30px -28px rgba(24, 39, 40, .42);
}

html[data-theme="light"] body[data-shell-profile="public-v1"] :is(.primary-nav a,.brand,.header-search,.language-select,.nav-toggle,.account-trigger){
  color: #182021;
}

html[data-theme="light"] body[data-shell-profile="public-v1"] :is(.primary-nav a,.header-search,.language-select,.nav-toggle,.account-trigger):is(:hover,:focus-visible),html[data-theme="light"] body[data-shell-profile="public-v1"] .header-search:focus-within{
  color: #111819;
  background: rgba(24, 39, 40, .07);
}

html[data-theme="light"] body[data-shell-profile="public-v1"] .site-header .header-search input{
  color: #111819;
}

html[data-theme="light"] body[data-shell-profile="public-v1"] .site-header .header-search input::placeholder{
  color: rgba(17, 24, 25, .56);
}

html[data-theme="light"] body[data-shell-profile="public-v1"] .header-actions .theme-toggle{
  border-color: rgba(24, 39, 40, .16);
  color: #182021;
  background: rgba(24, 39, 40, .035);
  box-shadow: 0 9px 24px -19px rgba(24, 39, 40, .34);
}

html[data-theme="light"] body[data-shell-profile="public-v1"] .sign-in-link{
  border-color: #182021;
  color: #fff;
  background: #182021;
}

html[data-theme="light"] body[data-shell-profile="public-v1"] .sign-in-link:is(:hover,:focus-visible){
  color: #fff;
  background: #344041;
}

html[data-theme="light"] body[data-shell-profile="public-v1"] :focus-visible{
  outline-color: #182021;
}

/* --------------------------------------------------------------------------
   Soft card depth. One shadow belongs to the outer card; media stays crisp.
   -------------------------------------------------------------------------- */

body[data-page="home"] :is(.home-rail,.soundtrack-showcase-grid){
  padding-block-end: 18px;
}

body[data-page="home"] .home-rail > :is(.article-card,.video-card),body[data-page="home"] .soundtrack-showcase-grid > .soundtrack-card,body[data-page="videos"] .archive-grid--video > .video-card,body[data-page="articles"] .archive-grid--article > .article-card{
  overflow: hidden;
  color: var(--v51-text);
  background: var(--v51-card);
  border-radius: var(--v51-card-radius);
  box-shadow: var(--v51-card-shadow) !important;
  transform: none !important;
  transition: background-color 180ms ease, box-shadow 220ms cubic-bezier(.22, 1, .36, 1);
}

body[data-page="home"] .home-rail :where(.thumb-link,.article-card-media),body[data-page="home"] .soundtrack-card-visual,body[data-page="videos"] .archive-grid--video .card-media-link,body[data-page="articles"] .archive-grid--article .card-media-link{
  border-radius: var(--v51-media-radius) var(--v51-media-radius) 6px 6px;
}

body[data-page="home"] .home-rail :where(.video-card-body,.article-card-body){
  padding: 13px 12px 15px;
  background: transparent;
}

body[data-page="home"] .soundtrack-card-copy{
  padding: 13px 12px 15px;
}

body[data-page="videos"] .archive-grid--video :where(.video-card-body),body[data-page="articles"] .archive-grid--article :where(.article-card-body){
  padding: 13px 14px 16px;
}

body[data-page="music"] .music-track-list > .music-library-track{
  border-color: var(--v51-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--v51-accent) 5%, transparent), transparent 34%),
    var(--v51-card);
  border-radius: var(--v51-card-radius);
  box-shadow: 0 13px 32px -27px rgba(0, 0, 0, .92);
}

body[data-page="music"] .music-track-list > .music-library-track:is(:hover,:focus-within,.is-current){
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--v51-accent) 11%, transparent), transparent 38%),
    var(--v51-card-hover);
  box-shadow: inset 3px 0 0 var(--v51-accent), 0 17px 36px -27px rgba(0, 0, 0, .96);
}

body[data-page="home"] :is(.home-rail .is-card-save),body[data-page="videos"] .archive-grid--video > .video-card > .is-card-save,body[data-page="articles"] .archive-grid--article > .article-card > .is-card-save,body[data-page="home"] .home-rail .video-card .play-badge,body[data-page="videos"] .archive-grid--video .play-badge,body[data-page="home"] .soundtrack-card-play,body[data-page="music"] .track-play-button{
  border-radius: var(--v51-control-radius);
}

@media (hover: hover) and (pointer: fine){
  body[data-page="home"] .home-rail > :is(.article-card,.video-card):is(:hover,:focus-within),body[data-page="home"] .soundtrack-showcase-grid > .soundtrack-card:is(:hover,:focus-within,.is-current),body[data-page="videos"] .archive-grid--video > .video-card:is(:hover,:focus-within),body[data-page="articles"] .archive-grid--article > .article-card:is(:hover,:focus-within){
    background: var(--v51-card-hover);
    box-shadow: var(--v51-card-shadow-hover) !important;
  }
}

/* V49 used a higher-specificity `!important` reset on home rail shadows. */
body[data-page="home"] .home-platform .home-rail > :is(.article-card,.video-card){
  box-shadow: var(--v51-card-shadow) !important;
}

@media (hover: hover) and (pointer: fine){
  body[data-page="home"] .home-platform .home-rail > :is(.article-card,.video-card):is(:hover,:focus-within){
    box-shadow: var(--v51-card-shadow-hover) !important;
  }
}

/* --------------------------------------------------------------------------
   Full-bleed hero: the trailer covers the canvas and dissolves into its theme.
   -------------------------------------------------------------------------- */

body[data-page="home"] .home-hero.layout-module,body[data-page="home"] .cinema-hero{
  background: var(--v51-canvas) !important;
}

body[data-page="home"] .cinema-hero > .cinema-hero-media,body[data-page="home"] .cinema-hero > .cinema-hero-preview,body[data-page="home"] .cinema-hero:is(.is-portrait-video,.is-portrait-preview) > :is(.cinema-hero-media,.cinema-hero-preview){
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--v51-canvas);
}

body[data-page="home"] .cinema-hero :is(.cinema-hero-image,.cinema-hero-preview-media),body[data-page="home"] .cinema-hero:is(.is-portrait-video,.is-portrait-preview) :is(.cinema-hero-image,.cinema-hero-preview-media){
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--v51-canvas);
}

body[data-page="home"] .cinema-hero-backdrop-media{
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  filter: blur(30px) saturate(.76) brightness(.72);
  transform: scale(1.04);
  opacity: .72;
}

body[data-page="home"] .cinema-hero-shade{
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      var(--v51-canvas) 0%,
      color-mix(in srgb, var(--v51-canvas) 96%, transparent) 15%,
      color-mix(in srgb, var(--v51-canvas) 76%, transparent) 31%,
      color-mix(in srgb, var(--v51-canvas) 26%, transparent) 54%,
      transparent 73%),
    linear-gradient(0deg,
      var(--v51-canvas) 0%,
      color-mix(in srgb, var(--v51-canvas) 88%, transparent) 10%,
      color-mix(in srgb, var(--v51-canvas) 34%, transparent) 25%,
      transparent 43%);
  pointer-events: none;
}

body[data-page="home"] .cinema-hero-shade::before,body[data-page="home"] .cinema-hero-shade::after{
  position: absolute;
  content: "";
  pointer-events: none;
}

body[data-page="home"] .cinema-hero-shade::before{
  inset: 0 auto 0 0;
  width: 48%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--v51-canvas) 42%, transparent), transparent 92%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .72) 42%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .72) 42%, transparent 100%);
}

body[data-page="home"] .cinema-hero-shade::after{
  inset: auto 0 0;
  width: 100%;
  height: 36%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--v51-canvas) 32%, transparent), transparent 90%);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .68) 44%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .68) 44%, transparent 100%);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  body[data-page="home"] .cinema-hero-shade::before{
    -webkit-backdrop-filter: blur(16px) saturate(.88);
    backdrop-filter: blur(16px) saturate(.88);
  }

  body[data-page="home"] .cinema-hero-shade::after{
    -webkit-backdrop-filter: blur(13px) saturate(.9);
    backdrop-filter: blur(13px) saturate(.9);
  }
}

html[data-theme="light"] body[data-page="home"] :is(.site-shell,.home-platform){
  color: var(--v51-text);
  background: var(--v51-canvas);
}

html[data-theme="light"] body[data-page="home"] .cinema-hero :is(h1,.cinema-hero-description,.content-kicker){
  color: #111819;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
}

html[data-theme="light"] body[data-page="home"] .cinema-hero .content-kicker i{
  background: rgba(17, 24, 25, .32);
}

html[data-theme="light"] body[data-page="home"] .home-hero .hero-actions > .action-primary{
  border-color: #182021;
  color: #fff;
  background: #182021;
}

html[data-theme="light"] body[data-page="home"] .home-hero .hero-actions > :is(.library-save-button,.action-secondary){
  border-color: rgba(17, 24, 25, .38);
  color: #111819;
  background: rgba(251, 250, 246, .68);
}

html[data-theme="light"] body[data-page="home"] :is(.home-shelf-heading h2,.soundtrack-showcase h2,.shelf-link,.soundtrack-showcase-cta){
  color: #111819;
}

html[data-theme="light"] body[data-page="home"] .home-discovery-zone a{
  border-color: rgba(17, 24, 25, .24);
  color: #111819;
  background: rgba(255, 255, 255, .28);
}

html[data-theme="light"] body[data-page="home"] .home-discovery-zone a:is(:hover,:focus-visible){
  color: #fff;
  background: #182021;
}

html[data-theme="light"] body[data-page="home"] .site-footer{
  color: #111819;
  background: #e7e6df;
}

html[data-theme="light"] body[data-page="home"] .site-footer :is(a,button,p,.footer-column-title,.footer-bottom){
  color: #394445;
}

/* --------------------------------------------------------------------------
   Title preview: full-bleed cover + blurred backing + seamless theme fade.
   -------------------------------------------------------------------------- */

body[data-page="home"] .title-preview-dialog{
  --preview-surface: var(--v51-surface);
  width: min(1040px, calc(100vw - 48px));
  max-width: 1040px;
  max-height: min(90dvh, 860px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v51-line-strong);
  color: var(--v51-text);
  background: var(--preview-surface);
  border-radius: 18px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .56);
}

body[data-page="home"] .title-preview-dialog::backdrop{
  background: rgba(8, 8, 8, .66);
  -webkit-backdrop-filter: blur(10px) saturate(.76);
  backdrop-filter: blur(10px) saturate(.76);
}

body[data-page="home"] .title-preview-surface{
  position: relative;
  display: block;
  max-height: min(90dvh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--v51-text);
  background: var(--preview-surface);
  scrollbar-gutter: stable;
}

body[data-page="home"] .title-preview-chrome{
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: flex;
  height: 0;
  justify-content: flex-end;
  padding: 14px;
  pointer-events: none;
}

body[data-page="home"] .title-preview-close{
  position: relative;
  inset: auto;
  display: grid;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  background: rgba(12, 12, 12, .68);
  border-radius: 12px;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .96);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(10px) saturate(.86);
  backdrop-filter: blur(10px) saturate(.86);
}

body[data-page="home"] .title-preview-media{
  position: relative;
  height: min(55dvh, 530px);
  min-height: 310px;
  overflow: hidden;
  aspect-ratio: auto;
  background: var(--preview-surface);
}

body[data-page="home"] .title-preview-media :is(.title-preview-media-backdrop,.title-preview-media-cover){
  position: absolute;
  display: block;
  max-width: none;
  margin: 0;
}

body[data-page="home"] .title-preview-media-backdrop{
  inset: -34px;
  width: calc(100% + 68px);
  height: calc(100% + 68px);
  object-fit: cover;
  filter: blur(28px) brightness(.48) saturate(.76);
  transform: scale(1.045);
}

body[data-page="home"] .title-preview-media-cover{
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.05) brightness(.9);
}

body[data-page="home"] .title-preview-dialog.is-portrait-preview .title-preview-media-cover{
  object-fit: contain;
}

body[data-page="home"] .title-preview-media-shade{
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(0deg,
      var(--preview-surface) 0%,
      color-mix(in srgb, var(--preview-surface) 96%, transparent) 8%,
      color-mix(in srgb, var(--preview-surface) 62%, transparent) 28%,
      color-mix(in srgb, var(--preview-surface) 12%, transparent) 57%,
      transparent 72%),
    linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 58%);
  pointer-events: none;
}

body[data-page="home"] .title-preview-media-shade::after{
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(0deg, color-mix(in srgb, var(--preview-surface) 30%, transparent), transparent 94%);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 42%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 42%, transparent 100%);
  -webkit-backdrop-filter: blur(15px) saturate(.86);
  backdrop-filter: blur(15px) saturate(.86);
}

body[data-page="home"] .title-preview-copy{
  position: relative;
  z-index: 4;
  display: block;
  width: min(100%, 830px);
  min-width: 0;
  margin: -122px auto 0;
  padding: 0 clamp(26px, 5vw, 58px) clamp(34px, 5vw, 56px);
  color: var(--v51-text);
  background: transparent;
}

body[data-page="home"] .title-preview-copy h2{
  max-width: 19ch;
  margin-block-end: 16px;
  color: var(--v51-text);
  font-family: var(--font-broadcast);
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-stretch: condensed;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: .98;
  text-wrap: balance;
}

body[data-page="home"] .title-preview-description{
  display: block;
  max-width: 64ch;
  margin-block-end: 18px;
  overflow: visible;
  color: var(--v51-text-soft);
  font-size: .95rem;
  line-height: 1.62;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

body[data-page="home"] .title-preview-copy .content-kicker{
  color: var(--v51-accent);
}

body[data-page="home"] .title-preview-copy .content-kicker time,body[data-page="home"] .title-preview-connection{
  color: var(--v51-muted);
}

body[data-page="home"] .title-preview-tags span{
  border-color: color-mix(in srgb, var(--v51-accent) 34%, var(--v51-line));
  color: var(--v51-text-soft);
  background: color-mix(in srgb, var(--v51-accent) 8%, transparent);
  border-radius: 7px;
}

body[data-page="home"] .title-preview-actions .action{
  min-height: 46px;
  border-radius: var(--v51-control-radius);
}

body[data-page="home"] .title-preview-dialog:not(.has-preview-image) .title-preview-media{
  display: none;
}

body[data-page="home"] .title-preview-dialog:not(.has-preview-image) .title-preview-copy{
  margin-block-start: 0;
  padding-block-start: clamp(34px, 5vw, 58px);
}

html[data-theme="light"] body[data-page="home"] .title-preview-dialog{
  box-shadow: 0 34px 90px rgba(25, 40, 40, .3);
}

/* --------------------------------------------------------------------------
   Responsive card, hero and dialog geometry.
   -------------------------------------------------------------------------- */

@media (max-width: 940px){
  body[data-shell-profile="public-v1"] .header-actions .theme-toggle,html.nav-enhanced body[data-shell-profile="public-v1"].nav-open .header-actions .theme-toggle{
    position: static;
    inset: auto;
    display: grid !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
}

@media (max-width: 767px){
  body[data-page="home"] .home-rail > :is(.article-card,.video-card),body[data-page="home"] .soundtrack-showcase-grid > .soundtrack-card,body[data-page="videos"] .archive-grid--video > .video-card,body[data-page="articles"] .archive-grid--article > .article-card{
    border-radius: 9px;
    box-shadow:
      inset 0 0 0 1px var(--v51-line),
      0 12px 28px -24px rgba(0, 0, 0, .9) !important;
  }

  body[data-page="home"] :is(.home-rail,.soundtrack-showcase-grid){
    padding-block-end: 16px;
  }

  body[data-page="home"] .home-rail :where(.video-card-body,.article-card-body),body[data-page="home"] .soundtrack-card-copy{
    padding: 12px 11px 14px;
  }

  body[data-page="videos"] .archive-grid--video > .video-card,body[data-page="articles"] .archive-grid--article > .article-card{
    margin-block-end: 10px;
    padding: 8px;
    border-block-end: 0;
  }

  body[data-page="videos"] .archive-grid--video .video-card-body,body[data-page="articles"] .archive-grid--article .article-card-body{
    padding: 2px 0 0;
  }

  body[data-page="videos"] .archive-grid--video .card-media-link,body[data-page="articles"] .archive-grid--article .card-media-link{
    border-radius: 7px;
  }

  body[data-page="home"] .cinema-hero{
    position: relative;
    display: block;
    height: clamp(620px, 158vw, 730px);
    min-height: clamp(620px, 158vw, 730px);
    max-height: none;
    overflow: hidden;
  }

  body[data-page="home"] .cinema-hero > .cinema-hero-media,body[data-page="home"] .cinema-hero > .cinema-hero-preview,body[data-page="home"] .cinema-hero > .cinema-hero-shade,body[data-page="home"] .cinema-hero:is(.is-portrait-video,.is-portrait-preview) > :is(.cinema-hero-media,.cinema-hero-preview){
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  body[data-page="home"] .cinema-hero > .cinema-hero-media:not(.cinema-hero-backdrop-media),body[data-page="home"] .cinema-hero.is-portrait-video > .cinema-hero-media:not(.cinema-hero-backdrop-media){
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }

  body[data-page="home"] .cinema-hero :is(.cinema-hero-image,.cinema-hero-preview-media){
    object-position: center;
  }

  body[data-page="home"] .cinema-hero-shade{
    background:
      linear-gradient(0deg,
        var(--v51-canvas) 0%,
        color-mix(in srgb, var(--v51-canvas) 96%, transparent) 18%,
        color-mix(in srgb, var(--v51-canvas) 70%, transparent) 42%,
        color-mix(in srgb, var(--v51-canvas) 16%, transparent) 75%,
        transparent 100%),
      linear-gradient(90deg, color-mix(in srgb, var(--v51-canvas) 46%, transparent), transparent 72%);
  }

  body[data-page="home"] .cinema-hero-shade::before{
    width: 74%;
  }

  body[data-page="home"] .cinema-hero-shade::after{
    height: 58%;
  }

  body[data-page="home"] .cinema-hero-content{
    position: absolute;
    inset: auto 20px 70px;
    z-index: 4;
    display: flex;
    width: auto;
    max-width: 34rem;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    color: var(--v51-text);
    background: transparent;
  }

  body[data-page="home"] .cinema-hero h1{
    max-width: 12ch;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  body[data-page="home"] .cinema-hero-description{
    max-width: 42ch;
    font-size: 15px;
    -webkit-line-clamp: 3;
  }

  body[data-page="home"] .title-preview-dialog{
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  body[data-page="home"] .title-preview-surface{
    height: 100%;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="home"] .title-preview-chrome{
    padding: max(12px, var(--safe-top)) max(12px, var(--safe-inline-end)) 0;
  }

  body[data-page="home"] .title-preview-close{
    position: relative;
    inset: auto;
    width: 46px;
    height: 46px;
  }

  body[data-page="home"] .title-preview-media{
    height: clamp(300px, 62dvh, 520px);
    min-height: 0;
  }

  body[data-page="home"] .title-preview-media-backdrop{
    filter: blur(20px) brightness(.46) saturate(.76);
  }

  body[data-page="home"] .title-preview-copy{
    width: 100%;
    margin-block-start: -88px;
    padding: 0 18px calc(28px + var(--safe-bottom));
  }

  body[data-page="home"] .title-preview-copy h2{
    max-width: none;
    font-size: clamp(2.05rem, 10vw, 3.2rem);
  }

  body[data-page="home"] .title-preview-description{
    font-size: .9rem;
    line-height: 1.56;
  }

  body[data-page="home"] .title-preview-actions{
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .title-preview-actions .action,body[data-page="home"] .title-preview-actions .action:first-child{
    grid-column: 1;
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  body[data-page="home"] :is(.home-rail .is-card-save){
    inset-block-start: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce){
  body[data-page="home"] .cinema-hero-shade::before,body[data-page="home"] .cinema-hero-shade::after,body[data-page="home"] .title-preview-media-shade::after{
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
