/**
 * PrimeFlix 3.64.89 · P249 · Cross-page Parity & Depth
 * Desktop Web only. Keeps the Movies hero contract intact.
 */
@media (min-width:901px){
  body.pf-wps-parity-p249{
    --pf249-gutter:clamp(40px,4vw,76px);
    --pf249-purple:#8b5cf6;
    --pf249-purple-2:#c084fc;
    --pf249-line:rgba(255,255,255,.08);
  }

  /* Footer rules retired in P251. Unified footer owns all Web routes. */

  /* =========================================================
     2. HOME HERO IDENTITY — restore PrimeFlix purple/black mood.
     Layout/poster behavior remains P229/P231. Catalog hero untouched.
     ========================================================= */
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home{
    background:#05030a!important;
  }
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home::before{
    background:
      radial-gradient(ellipse at 79% 38%,rgba(168,85,247,.16),transparent 30%),
      radial-gradient(ellipse at 54% 78%,rgba(124,58,237,.12),transparent 36%),
      radial-gradient(ellipse at 18% 18%,rgba(76,29,149,.10),transparent 32%)!important;
    opacity:1!important;
  }
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home::after{
    background:linear-gradient(180deg,transparent 0%,rgba(10,5,17,.44) 43%,#050308 100%)!important;
  }
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home .pf-uhero-bg{
    filter:saturate(1.02) contrast(1.055) brightness(.79)!important;
  }
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home .pf-uhero-overlay{
    background:
      linear-gradient(90deg,rgba(5,3,10,.97) 0%,rgba(8,4,15,.82) 23%,rgba(25,10,42,.40) 48%,rgba(18,7,31,.10) 68%,rgba(8,4,14,.27) 100%),
      linear-gradient(180deg,rgba(10,4,18,.12) 0%,rgba(7,3,12,.02) 40%,rgba(9,4,16,.61) 78%,#050308 100%)!important;
  }
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home .pf-uhero-slide::after{
    background:
      radial-gradient(ellipse at 77% 45%,rgba(168,85,247,.055) 0 20%,transparent 44%),
      linear-gradient(90deg,rgba(19,7,32,.28),transparent 34%)!important;
  }
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home .pf-uhero-kicker::before,
  body.pf-wps-parity-p249.pf-home-theme-restore-p249 #pf-uhero-home .pf-uhero-progress>i{
    background:linear-gradient(90deg,#7c3aed,#c084fc)!important;
  }

  /* =========================================================
     3. HOME SLIDER LANGUAGE ON SECONDARY DISCOVERY/CATALOG PAGES
     ========================================================= */
  body.pf-wps-slider-parity-p249 .pf10-sect,
  body.pf-wps-slider-parity-p249 .pf10-top10-sect{
    overflow:visible!important;
    padding-left:var(--pf249-gutter)!important;
    padding-right:var(--pf249-gutter)!important;
    padding-top:30px!important;
    padding-bottom:24px!important;
  }
  body.pf-wps-slider-parity-p249 .pf10-sect .pf-sect-head,
  body.pf-wps-slider-parity-p249 .pf10-top10-sect .pf-sect-head{
    align-items:center!important;
    margin-bottom:17px!important;
  }
  body.pf-wps-slider-parity-p249 .pf10-sect .pf-sect-title,
  body.pf-wps-slider-parity-p249 .pf10-top10-sect .pf-sect-title{
    min-height:0!important;
    color:#fff!important;
    font-size:clamp(22px,1.65vw,31px)!important;
    line-height:1.08!important;
    font-weight:900!important;
    letter-spacing:-.032em!important;
    text-shadow:0 4px 22px rgba(0,0,0,.24)!important;
  }
  body.pf-wps-slider-parity-p249 .pf10-sect .pf-sect-title:has(>.pf-sect-bar)::before,
  body.pf-wps-slider-parity-p249 .pf10-top10-sect .pf-sect-title:has(>.pf-sect-bar)::before{display:none!important;content:none!important}
  body.pf-wps-slider-parity-p249 .pf-sect-title>.pf-sect-bar{
    display:inline-block!important;flex:0 0 4px!important;width:4px!important;height:26px!important;border-radius:999px!important;
    background:linear-gradient(180deg,#8b5cf6,#c084fc)!important;box-shadow:0 0 16px rgba(124,58,237,.18)!important;
  }
  body.pf-wps-slider-parity-p249 .pf10-sect .pf-sect-sub{font-size:13.5px!important;line-height:1.55!important;color:rgba(255,255,255,.54)!important}
  body.pf-wps-slider-parity-p249 .pf-sect-nav{gap:7px!important}
  body.pf-wps-slider-parity-p249 .pf-sect-nav .pfn-btn{
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;
    flex:0 0 38px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.105)!important;
    background:linear-gradient(180deg,rgba(24,24,32,.76),rgba(9,9,14,.72))!important;box-shadow:0 8px 22px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.035)!important;
  }
  body.pf-wps-slider-parity-p249 .pf-sect-nav .pfn-btn:hover{transform:translateY(-1px)!important;background:linear-gradient(180deg,rgba(124,58,237,.28),rgba(30,20,44,.75))!important;border-color:rgba(168,85,247,.38)!important}
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"]{
    width:100%!important;max-width:none!important;margin:0!important;padding:16px 0 32px!important;
    overflow-x:auto!important;overflow-y:hidden!important;scroll-padding-inline:0!important;scrollbar-width:none!important;-ms-overflow-style:none!important;
  }
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"]::-webkit-scrollbar{display:none!important}
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"]>.swiper-wrapper{
    gap:var(--pf249-slide-gap,16px)!important;align-items:center!important;overflow:visible!important;min-width:100%!important;padding-right:0!important;
  }
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"] .swiper-slide.pf10c-slide{
    flex:0 0 var(--pf249-slide-w)!important;width:var(--pf249-slide-w)!important;max-width:none!important;height:var(--pf249-slide-h)!important;margin:0!important;
    transform:translate3d(0,0,0)!important;transition:width .54s cubic-bezier(.16,1,.3,1),flex-basis .54s cubic-bezier(.16,1,.3,1),transform .54s cubic-bezier(.16,1,.3,1)!important;
    will-change:width,flex-basis,transform!important;
  }
  body.pf-wps-slider-parity-p249 .pf10-sect:not(.pf10-top10-sect) .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide:hover,
  body.pf-wps-slider-parity-p249 .pf10-sect:not(.pf10-top10-sect) .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide:focus-within{
    flex-basis:var(--pf249-slide-hover-w)!important;width:var(--pf249-slide-hover-w)!important;z-index:60!important;
  }
  body.pf-wps-slider-parity-p249 .pf10-top10-sect .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide{flex-basis:var(--pf249-top-slide-w)!important;width:var(--pf249-top-slide-w)!important;height:var(--pf249-top-slide-h)!important}
  body.pf-wps-slider-parity-p249 .pf10-top10-sect .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide:hover,
  body.pf-wps-slider-parity-p249 .pf10-top10-sect .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide:focus-within{flex-basis:var(--pf249-top-hover-w)!important;width:var(--pf249-top-hover-w)!important;z-index:60!important}
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"].is-pf249-edge-active .pf10c-slide.is-pf249-before-edge,
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide.is-pf249-active-edge:hover,
  body.pf-wps-slider-parity-p249 .pf10c-slider[data-pf-p249-rail="1"] .pf10c-slide.is-pf249-active-edge:focus-within{transform:translate3d(var(--pf249-edge-shift-neg,0px),0,0)!important}
  body.pf-wps-slider-parity-p249 .pf10c-slide.is-pf249-edge-candidate .pf10c-card,
  body.pf-wps-slider-parity-p249 .pf10c-slide.is-pf249-active-edge .pf10c-card{transform-origin:right center!important}
  body.pf-wps-slider-parity-p249 .pf10c-card{
    --pf-poster-radius:17px!important;height:100%!important;min-height:0!important;border-radius:17px!important;
    border:1px solid rgba(255,255,255,.10)!important;background:#0a0a0f!important;
    box-shadow:0 16px 42px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.025)!important;
    transition:transform .42s cubic-bezier(.22,.78,.2,1),border-color .24s ease,box-shadow .28s ease!important;
  }
  body.pf-wps-slider-parity-p249 .pf10c-card::after{content:"";position:absolute;z-index:9;inset:0;pointer-events:none;border-radius:17px;box-shadow:inset 0 1px rgba(255,255,255,.055),inset 0 -1px rgba(0,0,0,.34)}
  body.pf-wps-slider-parity-p249 .pf10c-slide:hover .pf10c-card,
  body.pf-wps-slider-parity-p249 .pf10c-slide:focus-within .pf10c-card{border-color:rgba(168,85,247,.36)!important;box-shadow:0 24px 64px rgba(0,0,0,.52),0 0 38px rgba(124,58,237,.08),inset 0 1px rgba(255,255,255,.04)!important}
  body.pf-wps-slider-parity-p249 .pf10c-poster{opacity:1!important;transform:scale(1)!important;transition:opacity .30s ease,transform .44s cubic-bezier(.22,.78,.2,1)!important}
  body.pf-wps-slider-parity-p249 .pf10c-poster img{filter:saturate(.94) contrast(1.025)!important}
  body.pf-wps-slider-parity-p249 .pf10c-back{opacity:0!important;transition:opacity .34s ease .04s!important}
  body.pf-wps-slider-parity-p249 .pf10c-back-img{transform:scale(1.035)!important;transition:transform .58s cubic-bezier(.22,.78,.2,1),filter .32s ease!important}
  body.pf-wps-slider-parity-p249 .pf10c-slide:hover .pf10c-poster,
  body.pf-wps-slider-parity-p249 .pf10c-slide:focus-within .pf10c-poster{opacity:0!important;transform:scale(1.025)!important}
  body.pf-wps-slider-parity-p249 .pf10c-slide:hover .pf10c-back,
  body.pf-wps-slider-parity-p249 .pf10c-slide:focus-within .pf10c-back{opacity:1!important}
  body.pf-wps-slider-parity-p249 .pf10c-slide:hover .pf10c-back-img,
  body.pf-wps-slider-parity-p249 .pf10c-slide:focus-within .pf10c-back-img{transform:scale(1)!important}
  body.pf-wps-slider-parity-p249 .pf10c-back-grad{background:linear-gradient(90deg,rgba(5,5,8,.96) 0%,rgba(5,5,8,.70) 42%,rgba(5,5,8,.18) 100%),linear-gradient(180deg,transparent 40%,rgba(5,5,8,.87) 100%)!important}
  body.pf-wps-slider-parity-p249 .pf10c-info{padding:17px 16px!important;gap:7px!important}
  body.pf-wps-slider-parity-p249 .pf10c-title{font-size:16px!important;line-height:1.15!important;font-weight:900!important;letter-spacing:-.02em!important}
  body.pf-wps-slider-parity-p249 .pf10c-badge{top:8px!important;left:8px!important;min-height:24px!important;padding:5px 8px!important;border-radius:8px!important;font-size:9px!important;background:rgba(8,8,13,.66)!important;border:1px solid rgba(255,255,255,.12)!important;backdrop-filter:blur(10px)!important}
  body.pf-wps-slider-parity-p249 .pf10c-fav,
  body.pf-wps-slider-parity-p249 .pf10c-list{border:1px solid rgba(255,255,255,.13)!important;background:rgba(8,8,13,.66)!important;box-shadow:0 8px 20px rgba(0,0,0,.20)!important;backdrop-filter:blur(10px)!important}

  /* =========================================================
     4. PROFILE — compact premium dashboard, not a giant poster page
     ========================================================= */
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-page{
    padding-top:92px!important;
    background:
      radial-gradient(900px 460px at 88% 0%,rgba(124,58,237,.085),transparent 68%),
      linear-gradient(180deg,#050508 0%,#08080d 44%,#050508 100%)!important;
  }
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-hero{
    width:min(1680px,calc(100% - (var(--pf249-gutter) * 2)))!important;
    min-height:360px!important;height:auto!important;
    margin:0 auto 16px!important;
    padding:154px 30px 30px!important;
    border:1px solid rgba(255,255,255,.085)!important;
    border-radius:26px!important;
    overflow:hidden!important;
    box-shadow:0 28px 78px rgba(0,0,0,.28)!important;
    background-position:center 34%!important;
  }
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-hero::before{
    background:
      linear-gradient(90deg,rgba(5,5,8,.90) 0%,rgba(5,5,8,.60) 35%,rgba(5,5,8,.18) 68%,rgba(5,5,8,.38) 100%),
      linear-gradient(180deg,rgba(5,5,8,.06) 0%,rgba(5,5,8,.10) 40%,rgba(5,5,8,.93) 100%),
      radial-gradient(620px 280px at 24% 74%,rgba(139,92,246,.16),transparent 72%)!important;
  }
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-hero::after{left:30px!important;right:30px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-hero-actions{top:20px!important;right:20px!important;gap:8px!important;max-width:calc(100% - 40px)!important;flex-wrap:wrap!important;justify-content:flex-end!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-hero-action{min-height:38px!important;padding:0 13px!important;border-radius:10px!important;font-size:11px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-cover-credit{right:20px!important;bottom:16px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-info{
    grid-template-columns:116px minmax(0,1fr)!important;gap:20px!important;align-items:end!important;
    width:100%!important;max-width:none!important;
  }
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-avatar{width:116px!important;height:116px!important;border-radius:20px!important;border-width:3px!important;box-shadow:0 18px 46px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.14)!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-avatar>img{border-radius:17px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-name{max-width:min(840px,72vw)!important;font-size:clamp(32px,3vw,48px)!important;line-height:.98!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-handle{margin-top:7px!important;font-size:12px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-email{font-size:11px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-bio{max-width:720px!important;margin-top:8px!important;font-size:12.5px!important;line-height:1.48!important;-webkit-line-clamp:2!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-stats{display:grid!important;grid-template-columns:repeat(6,minmax(82px,1fr))!important;gap:7px!important;max-width:780px!important;margin-top:13px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-stat-item{min-width:0!important;padding:8px 10px!important;border-radius:10px!important;background:rgba(8,8,13,.56)!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-stat-num{font-size:1rem!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-stat-label{font-size:.59rem!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-tabs{
    position:sticky!important;top:72px!important;z-index:80!important;
    width:min(1680px,calc(100% - (var(--pf249-gutter) * 2)))!important;
    margin:0 auto!important;padding:9px!important;gap:5px!important;
    border:1px solid rgba(255,255,255,.075)!important;border-radius:16px!important;
    background:rgba(8,8,13,.86)!important;box-shadow:0 16px 42px rgba(0,0,0,.20)!important;
    backdrop-filter:blur(20px) saturate(140%)!important;
  }
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-tab{min-height:36px!important;padding:0 11px!important;border-radius:9px!important;font-size:11px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-content{width:min(1680px,calc(100% - (var(--pf249-gutter) * 2)))!important;max-width:1680px!important;margin:0 auto!important;padding:18px 0 80px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-tab-panel{padding:clamp(20px,2vw,30px)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(255,255,255,.032),rgba(255,255,255,.010)),rgba(10,10,16,.90)!important;box-shadow:0 20px 62px rgba(0,0,0,.18)!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-search-results-grid,
  body.pf-wps-parity-p249.pf-wps-route-profile .pfwl-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:13px!important}

  /* =========================================================
     5. SECONDARY-PAGE DEPTH — connected, useful pre-footer bridge
     ========================================================= */
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge{
    width:min(1760px,calc(100% - (var(--pf249-gutter) * 2)));
    margin:clamp(48px,5vw,82px) auto 0;
    padding:clamp(24px,2.8vw,42px);
    display:grid;
    grid-template-columns:minmax(280px,.92fr) minmax(0,1.55fr);
    gap:clamp(30px,4vw,72px);
    align-items:end;
    border:1px solid rgba(255,255,255,.075);
    border-radius:24px;
    background:
      radial-gradient(520px 230px at 0% 0%,rgba(124,58,237,.10),transparent 72%),
      linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
    box-shadow:0 24px 72px rgba(0,0,0,.18);
    position:relative;
    overflow:hidden;
  }
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge::after{content:"";position:absolute;left:clamp(24px,2.8vw,42px);right:clamp(24px,2.8vw,42px);top:0;height:1px;background:linear-gradient(90deg,#8b5cf6,rgba(192,132,252,.4),transparent 62%)}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__copy>span{display:block;margin-bottom:9px;color:#c4b5fd;font-size:10px;font-weight:950;letter-spacing:.16em}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__copy h2{margin:0;color:#fff;font-size:clamp(26px,2.5vw,42px);line-height:1.02;letter-spacing:-.035em;font-weight:950;text-wrap:balance}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__copy p{max-width:650px;margin:12px 0 0;color:rgba(255,255,255,.55);font-size:12.5px;line-height:1.58}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links a{min-width:0;min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:auto auto;align-content:center;padding:13px 14px;border:1px solid rgba(255,255,255,.075);border-radius:14px;background:rgba(255,255,255,.022);transition:transform .18s ease,border-color .18s ease,background .18s ease;text-decoration:none}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links a:hover{transform:translateY(-2px);border-color:rgba(168,85,247,.30);background:rgba(124,58,237,.07)}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links b{min-width:0;color:#fff;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links small{min-width:0;color:rgba(255,255,255,.45);font-size:10.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links i{grid-column:2;grid-row:1/3;align-self:center;justify-self:end;color:#c4b5fd;font-size:18px;font-style:normal}
}

@media (min-width:901px) and (max-width:1180px){
  body.pf-wps-parity-p249 #pf-footer .pf-footer-stage{grid-template-columns:1fr!important;gap:28px!important}
  body.pf-wps-parity-p249.pf-wps-route-profile .pf-profile-stats{grid-template-columns:repeat(3,minmax(90px,1fr))!important;max-width:520px!important}
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge{grid-template-columns:1fr;align-items:start}
}
@media (prefers-reduced-motion:reduce){
  body.pf-wps-parity-p249 .pf10c-slider .pf10c-slide,
  body.pf-wps-parity-p249 .pf10c-card,
  body.pf-wps-parity-p249 .pf-p249-discovery-bridge__links a{transition:none!important}
}
