/* PrimeFlix 3.64.86 · P246 · Web Premium Polish Round 1
   Global desktop-web refinement after the 9 structural phases.
   Focus: shell continuity, rhythm, readability, edges and footer integration. */
@media (min-width:901px){
  body.pf-wps-polish-p246{
    --pf-polish-gutter:clamp(26px,3.45vw,68px);
    --pf-polish-line:rgba(255,255,255,.075);
    --pf-polish-soft:rgba(255,255,255,.035);
    background:#050508;
  }
  body.pf-wps-polish-p246 #pf-main{min-height:calc(100vh - 64px)}

  /* Header feels like the same product on every redesigned route. */
  body.pf-wps-polish-p246 #pf-navbar.scrolled{
    background:linear-gradient(180deg,rgba(6,6,10,.94),rgba(6,6,10,.88));
    border-bottom-color:rgba(255,255,255,.065);
    box-shadow:0 14px 36px rgba(0,0,0,.24)!important;
  }

  /* Keep text from falling below a useful desktop reading floor on the new pages. */
  body.pf-web-premium-system :is(
    .pfex-filter-top span,.pfex-field label,.pfex-stat span,
    .pfg-kicker,.pfg-item-meta,.pfg-genre-card small,
    .pfperson-kicker,.pfperson-meta,.pfperson-stat span,
    .pfpub-section header span,.pfpub-meta-row,
    .pf-profile-cover-credit,.pf-profile-stat-label,
    .pflegal-hero>span
  ){font-size:clamp(11px,.78vw,13px)}

  /* Refine common surfaces added during phases 3–9. */
  body.pf-web-premium-system :is(
    .pfex-filter,.pfsr-search-panel,.pfg-filterbar,
    .pfpub-section,.pfsp-composer,.pfsp-side-card,
    .pf-profile-card,.pf-plan-card,.pflegal-body,.pflegal-grid aside
  ){
    box-shadow:0 18px 52px rgba(0,0,0,.16);
  }
  body.pf-web-premium-system :is(
    .pfex-filter,.pfsr-search-panel,.pfg-filterbar,
    .pfpub-section,.pfsp-composer,.pfsp-side-card,
    .pf-profile-card,.pf-plan-card
  ):hover{border-color:rgba(255,255,255,.095)}

  /* Consistent section rhythm before the universal footer. */
  body.pf-web-premium-system #pf-main > :last-child{margin-bottom:0}
  body.pf-web-premium-system #pf-footer{margin-top:clamp(44px,5vw,76px)}

  /* Avoid overly soft metadata while retaining hierarchy. */
  body.pf-web-premium-system :is(.pf-wps-muted,[class*="-meta"],[class*="__meta"]){text-rendering:optimizeLegibility}

  /* Stronger focus without changing click logic. */
  body.pf-wps-polish-p246 :where(a,button,input,select,textarea,[tabindex]):focus-visible{
    outline:2px solid rgba(167,139,250,.88);
    outline-offset:3px;
  }
}

@media (min-width:901px) and (max-width:1180px){
  body.pf-wps-polish-p246{--pf-polish-gutter:28px}
}

@media (prefers-reduced-motion:reduce){
  body.pf-wps-polish-p246 *,body.pf-wps-polish-p246 *::before,body.pf-wps-polish-p246 *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
