/* main-hero-immersive.css */
/* Main carousel only. The background ends at the continuation row's scrollbar. */
#viewer-shell .viewer-main.has-immersive-hero { isolation:isolate; }
#viewer-shell .viewer-main.has-immersive-hero > .main-hero-backdrop {
 position:absolute;left:0;right:0;top:var(--hero-top,0px);height:var(--hero-height,600px);
 z-index:-1;pointer-events:none;overflow:hidden;background:#0a0a0a;
}
.main-hero-backdrop img {width:100%;height:100%;display:block;object-fit:cover;object-position:center top;}
.main-hero-backdrop::after {content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0a0a0af5 0%,#0a0a0acb 22%,#0a0a0a55 48%,#0a0a0a10 78%),linear-gradient(0deg,#0a0a0a 0%,#0a0a0ae8 9%,#0a0a0abb 24%,#0a0a0a44 50%,transparent 78%);}
#viewer-shell .viewer-main.has-immersive-hero #feature.feature-recommendations {overflow:visible;background:none!important;isolation:auto;}
#viewer-shell .viewer-main.has-immersive-hero #feature.feature-recommendations > .home-artwork,
#viewer-shell .viewer-main.has-immersive-hero #feature.feature-recommendations::after {visibility:hidden!important;}
#viewer-shell .viewer-main.has-immersive-hero #home-carousel {display:none!important;}
#viewer-shell .viewer-main.has-immersive-hero #home-curated,
#viewer-shell .viewer-main.has-immersive-hero #catalog-extra,
#viewer-shell .viewer-main.has-immersive-hero #home-continue {background:transparent;}
#viewer-shell .viewer-main.has-immersive-hero #home-continue {position:relative;padding-top:20px;}
#viewer-shell .viewer-main.has-immersive-hero #home-continue .section-heading,
#viewer-shell .viewer-main.has-immersive-hero #home-continue .poster-caption {text-shadow:0 2px 6px #0a0a0a;}
@media(max-width:699px){
 .main-hero-backdrop::after {background:linear-gradient(0deg,#0a0a0a 0%,#0a0a0aeb 18%,#0a0a0abe 42%,#0a0a0a60 70%,#0a0a0a20 100%);}
 .main-hero-backdrop img {object-position:62% top;}
}
/* Totals overlay the artwork instead of reserving a separate strip. */
#viewer-shell .viewer-main.has-immersive-hero #viewer-catalog-totals {position:absolute!important;top:10px;left:3vw;z-index:2;margin:0!important;padding:0!important;min-height:0!important;border:0!important;text-shadow:0 2px 6px #0a0a0a;}
#viewer-shell .viewer-main.has-immersive-hero #feature.feature-recommendations {margin-top:0!important;}
#viewer-shell .viewer-main.has-immersive-hero > .main-hero-backdrop::after {z-index:1;}
@media(min-width:700px) and (max-width:1100px){#viewer-shell .viewer-main.has-immersive-hero #viewer-catalog-totals{left:24px;}}
/* Consistent compact spacing across main catalogue sections; title pages excluded. */
#viewer-shell .viewer-main:not(.is-title-page) #feature.feature-recommendations{height:clamp(300px,42vh,360px)!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;padding:24px 0!important;display:flex;align-items:center}
#viewer-shell .viewer-main:not(.is-title-page) #feature .feature-content{min-width:0;max-width:500px}
#viewer-shell .viewer-main:not(.is-title-page) #feature-title{font-size:clamp(28px,3vw,42px)!important;line-height:1.1!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#viewer-shell .viewer-main:not(.is-title-page) #feature-copy{-webkit-line-clamp:3!important;line-height:1.55!important;margin:10px 0!important}
#viewer-shell .viewer-main:not(.is-title-page) .feature-actions{margin-top:14px!important;gap:10px!important}
#viewer-shell .viewer-main:not(.is-title-page)>.catalog-section{margin-top:12px!important;margin-bottom:18px!important}
#viewer-shell .viewer-main:not(.is-title-page) .section-heading{margin-bottom:8px!important}
#viewer-shell .viewer-main:not(.is-title-page) .genre-explore{margin:0 0 8px!important}
#viewer-shell .viewer-main:not(.is-title-page) #genre-filter{padding-top:2px!important;padding-bottom:4px!important}
#viewer-shell .viewer-main:not(.is-title-page) .movie-row-controls{height:32px!important;min-height:0!important;margin:0 0 2px!important;padding:0!important;align-items:center}
#viewer-shell .viewer-main:not(.is-title-page) .movie-row-controls button{height:30px!important;min-height:30px!important;width:34px!important;padding:0!important}
#viewer-shell .viewer-main:not(.is-title-page) #viewer-catalog.movie-all-rows{gap:16px!important;padding-top:0!important}
#viewer-shell .viewer-main:not(.is-title-page) #catalog-extra .catalog-section{margin-top:16px!important;margin-bottom:18px!important}
#viewer-shell .viewer-main.has-immersive-hero #home-continue{padding-top:8px!important}
@media(max-width:699px){#viewer-shell .viewer-main:not(.is-title-page) #feature.feature-recommendations{height:320px!important;padding:24px 0 16px!important}#viewer-shell .viewer-main:not(.is-title-page) #feature .feature-content{max-width:100%!important}#viewer-shell .viewer-main:not(.is-title-page) #feature-title{font-size:28px!important}#viewer-shell .viewer-main:not(.is-title-page) #feature-copy{font-size:12px!important}}
@media(any-pointer:coarse){#viewer-shell .viewer-main:not(.is-title-page) .movie-row-controls{height:44px!important}#viewer-shell .viewer-main:not(.is-title-page) .movie-row-controls button{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important}}

/* title-reading-backdrop.css */
/* Only desktop title pages. Browse carousels and touch layouts retain their own artwork. */
.title-reading-backdrop{display:none;pointer-events:none;}
@media(min-width:1100px) and (hover:hover) and (pointer:fine){
 #viewer-shell .viewer-main.has-reading-backdrop{isolation:isolate;}
 #viewer-shell .viewer-main.has-reading-backdrop>.title-reading-backdrop{display:block!important;position:absolute;top:var(--reading-backdrop-top,0px);left:0;right:0;height:var(--reading-backdrop-height,700px);overflow:hidden;z-index:-1;background:#0a0a0a;}
 .title-reading-backdrop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;display:block;z-index:0;}
 .title-reading-backdrop .reading-soft-image{z-index:1;filter:blur(12px);transform:scale(1.025);mask-image:linear-gradient(to bottom,transparent max(0px,calc(var(--reading-text-start,400px) - 50px)),#000 calc(var(--reading-text-start,400px) + 50px));}
 .title-reading-backdrop::after{z-index:2;content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0a0a0af2 0%,#0a0a0ab3 25%,#0a0a0a40 58%,#0a0a0a26 100%),linear-gradient(to bottom,#0a0a0a1a 0%,#0a0a0a20 35%,#0a0a0ab3 var(--reading-fade-start,60%),#0a0a0adc 88%,#0a0a0a 100%);}
 #viewer-shell .viewer-main.has-reading-backdrop #title-panorama-frame{visibility:hidden!important;}
 #viewer-shell .viewer-main.has-reading-backdrop #title-hero{background:none!important;}
 #viewer-shell .viewer-main.has-reading-backdrop #title-hero::after{visibility:hidden!important;}
 #viewer-shell .viewer-main.has-reading-backdrop #feature-copy,
 #viewer-shell .viewer-main.has-reading-backdrop #title-synopsis-heading,
 #viewer-shell .viewer-main.has-reading-backdrop #title-details{text-shadow:0 2px 5px #0a0a0a;}
}


