/* StreamPip category art — scoped to homepage discovery tiles. */
.sp-category-section .sp-category-grid .sp-category-tile{position:relative; isolation:isolate; overflow:hidden; min-height:154px!important; padding:14px 15px; align-items:flex-end; gap:9px; border-radius:10px!important; border:1px solid #b39ae03b!important; background:linear-gradient(180deg,#18132300 15%,#11101b15 45%,#11101bef 82%,#11101b 100%),var(--category-art) center top / 100% auto no-repeat,#11101b!important; box-sizing:border-box; text-decoration:none;}
.sp-category-section .sp-category-grid .sp-category-tile:hover,.sp-category-section .sp-category-grid .sp-category-tile:focus-visible{border-color:#d39aff!important;box-shadow:0 0 18px #b568e944;}
.sp-category-section .sp-category-tile:focus-visible{outline:2px solid #e3b7ff;outline-offset:3px;}
.sp-category-section .sp-category-tile .sp-category-pip{width:25px;height:28px;object-fit:contain;flex:0 0 25px;filter:drop-shadow(0 2px 6px #0009);}
.sp-category-section .sp-category-tile .sp-category-label{color:#fff;flex:1;line-height:1.25;align-self:flex-end;padding-bottom:4px;font-weight:750;text-shadow:0 2px 6px #000;}
.sp-category-section .sp-category-tile b{color:#e6d1ff;align-self:flex-end;padding-bottom:4px;flex-shrink:0;}
@media(max-width:700px){.sp-category-section .sp-category-grid .sp-category-tile{min-height:120px!important;padding:10px 8px;gap:6px}.sp-category-section .sp-category-tile .sp-category-pip{width:20px;height:22px;flex-basis:20px}.sp-category-section .sp-category-tile .sp-category-label{font-size:12px;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.sp-category-section .sp-category-tile{transition:none!important;transform:none!important}}
.sp-category-movie{--category-art:url("brand/categories/movie.webp")}
.sp-category-short{--category-art:url("brand/categories/short.webp")}
.sp-category-documentary{--category-art:url("brand/categories/documentary.webp")}
.sp-category-animation{--category-art:url("brand/categories/animation.webp")}
.sp-category-series{--category-art:url("brand/categories/series.webp")}
.sp-category-experimental{--category-art:url("brand/categories/experimental.webp")}
.sp-category-student{--category-art:url("brand/categories/student.webp")}
.sp-category-utah{--category-art:url("brand/categories/utah.webp")}

/* v0.9.17.1.1F — fluid home canvas; no changes to other routes. */
@media (min-width: 1100px) {
  body:has(.sp-seamless-home) .sp-stream-content.sp-seamless-home {
    --sp-home-gutter: clamp(32px, 3vw, 120px);
    --sp-home-gap: clamp(16px, 0.65vw, 28px);
    --sp-home-columns: 4;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    padding-inline: var(--sp-home-gutter) !important;
    margin-inline: auto !important;
  }
  .sp-seamless-home :is(.sp-rail,.sp-rail-viewport,.sp-rail-scroll,.sp-home-resume,.sp-resume-scroll,.sp-category-section) {
    max-width: none !important;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .sp-seamless-home :is(.sp-rail-scroll,.sp-resume-scroll) {gap:var(--sp-home-gap);}
  .sp-seamless-home :is(.sp-rail-card,.sp-resume-card) {
    flex: 0 0 calc((100% - (var(--sp-home-columns) - 1) * var(--sp-home-gap)) / var(--sp-home-columns)) !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .sp-seamless-home .sp-rail-card .poster {width:100%;height:auto!important;aspect-ratio:16/9!important;}
  .sp-seamless-home .sp-rail-heading h2,.sp-seamless-home .sp-home-heading h2 {font-size:clamp(22px,1.45vw,34px)!important;}
  .sp-seamless-home .sp-category-grid {gap:var(--sp-home-gap);}
  .sp-seamless-home .sp-category-grid .sp-category-tile {background-size:cover!important; min-height:clamp(145px,10vw,230px)!important;}
}
@media (min-width: 1600px) {body:has(.sp-seamless-home) .sp-stream-content.sp-seamless-home{--sp-home-columns:5;}}
@media (min-width: 2200px) {body:has(.sp-seamless-home) .sp-stream-content.sp-seamless-home{--sp-home-columns:7;}}
@media (min-width: 3000px) {body:has(.sp-seamless-home) .sp-stream-content.sp-seamless-home{--sp-home-columns:9;}}
@media (min-width: 4400px) {body:has(.sp-seamless-home) .sp-stream-content.sp-seamless-home{--sp-home-columns:12;}}
@media (min-width: 2400px) {
  .sp-seamless-home .sp-category-grid {grid-template-columns:repeat(8,minmax(0,1fr))!important;}
  .sp-seamless-home .sp-category-grid .sp-category-tile {min-height:clamp(145px,6vw,230px)!important;}

}

/* 1.1H — Full bleed cinematic stage. Preserve normal mobile layout. */
@media(min-width:761px){
 body:has(.sp-seamless-home) main > .sp-stream-hero.sp-hero-carousel{
  width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;
  height:clamp(540px,48vw, max(540px,88vh))!important;min-height:0!important;max-height:none!important;
  background:#10101e!important;overflow:hidden!important;
 }
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide[data-has-art="yes"]:not(.sp-brand-feature){
  background-image:linear-gradient(90deg,#10101ef5 0%,#10101ed6 19%,#10101e70 37%,#10101e00 66%),var(--slide-image)!important;
  background-size:100% 100%,cover!important;background-position:center,center 42%!important;background-repeat:no-repeat!important;
 }
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide[data-has-art="yes"]:not(.sp-brand-feature)::before{
  background:linear-gradient(0deg,#10101e 0%,#10101eaa 9%,#10101e00 31%)!important;
 }
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide:not(.sp-brand-feature) .sp-stream-hero-content{
  position:relative;z-index:2;max-width:clamp(520px,36vw,1050px)!important;
  padding:0 clamp(28px,3vw,120px) 0!important;box-sizing:border-box;
  top:auto;transform:none;margin:0!important;align-self:center;
 }
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide:not(.sp-brand-feature) h1{font-size:clamp(44px,4.2vw,128px)!important;line-height:1.04!important;max-width:100%!important;overflow-wrap:anywhere}
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide:not(.sp-brand-feature) p{font-size:clamp(16px,1.05vw,28px)!important;max-width:100%!important;line-height:1.55!important}
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-controls{right:clamp(28px,3vw,120px)!important;bottom:clamp(22px,2.4vh,60px)!important;z-index:10!important}
}
/* Very wide screens: keep the complete 16:9 picture on the right; blend into the stage rather than crop vertically. */
@media(min-width:1600px) and (min-aspect-ratio:21/10){
 body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide[data-has-art="yes"]:not(.sp-brand-feature){
  background-image:linear-gradient(90deg,#10101e 0%,#10101e 24%,#10101eeb 32%,#10101e50 50%,#10101e00 70%),var(--slide-image)!important;
  background-size:100% 100%,auto 100%!important;background-position:center,right center!important;background-color:#10101e!important;
 }
}
@media(prefers-reduced-motion:reduce){body:has(.sp-seamless-home) .sp-stream-hero .sp-hero-slide{transition:none!important}}

/* 1.1I — X5 Film Festival: responsive cinematic destination banner. */
.sp-seamless-home a.sp-festival-feature {
  box-sizing:border-box;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:clamp(10px,1vw,20px);
  width:100%;
  min-height:clamp(280px,22vw,640px)!important;
  padding:clamp(30px,4vw,110px)!important;
  margin:clamp(32px,3vw,72px) 0;
  border:1px solid #9371c766!important;
  border-radius:18px!important;
  overflow:hidden;
  text-decoration:none!important;
  background:linear-gradient(90deg,#151225 0%,#151225ed 16%,#15122570 36%,transparent 65%),url("brand/x5-film-festival.webp") right center / auto 100% no-repeat,#151225!important;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.sp-seamless-home a.sp-festival-feature > * {position:relative;max-width: min(46%, 950px);}
.sp-seamless-home a.sp-festival-feature > strong {color:#fff!important;font-size:clamp(34px,3vw,88px)!important;line-height:1.06;letter-spacing:-.045em;text-shadow:0 2px 16px #100d20b0;}
.sp-seamless-home a.sp-festival-feature > span:not(.sp-festival-tag):not(.sp-festival-arrow) {font-size:clamp(15px,1vw,25px);line-height:1.5;color:#eee6f6!important;}
.sp-seamless-home a.sp-festival-feature > .sp-festival-tag {font-size:clamp(10px,.72vw,18px);letter-spacing:.18em!important;color:#f6cf8d!important;}
.sp-seamless-home a.sp-festival-feature > .sp-festival-arrow {display:inline-flex;padding:.7em 1.15em;border-radius:8px;background:#231b36c9;border:1px solid #bb96ef75;color:#f4e6ff!important;font-size:clamp(13px,.9vw,23px);line-height:1.35;}
.sp-seamless-home a.sp-festival-feature:hover {border-color:#d3a1ff!important;box-shadow:0 6px 34px #7946b329;}
.sp-seamless-home a.sp-festival-feature:hover > .sp-festival-arrow {background:#7140a9;color:white!important;}
.sp-seamless-home a.sp-festival-feature:focus-visible {outline:2px solid #d4a2ff!important;outline-offset:4px;}
@media(min-width:761px) and (max-width:1200px) {
 .sp-seamless-home a.sp-festival-feature {background:linear-gradient(90deg,#151225fa 0%,#151225d9 25%,#15122533 65%,transparent 100%),url("brand/x5-film-festival.webp") right center / auto 100% no-repeat,#151225!important;}
 .sp-seamless-home a.sp-festival-feature > * {max-width:52%;}
}
@media(max-width:760px) {
 .sp-seamless-home a.sp-festival-feature {min-height:0!important;padding:clamp(165px,42vw,260px) 22px 25px!important;gap:10px;justify-content:flex-end;border-radius:14px!important;background:linear-gradient(0deg,#151225 0%,#151225 32%,#151225d9 48%,transparent 78%),url("brand/x5-film-festival.webp") right top / auto 65% no-repeat,#151225!important;}
 .sp-seamless-home a.sp-festival-feature > * {max-width:100%;}
 .sp-seamless-home a.sp-festival-feature > strong {font-size:clamp(30px,6vw,44px)!important;}
}
@media(prefers-reduced-motion:reduce){.sp-seamless-home a.sp-festival-feature{transition:none!important;}}
