/*
 * PrimeFlix 3.65.00 · P260 · Web Mobile Polish
 * Transparent header + stable login CTA + compact hero poster + Discovery toolbar.
 * Responsive Web only. Mobile App / Desktop App are intentionally excluded.
 */
.pfdh__mobile-tools,.pfdh__signals-toggle{display:none}

@media (max-width:820px){
  /* 1) HEADER: truly transparent at the top, solid only after page scroll. */
  body.pf-web-mobile-rebuild-p252 #pf-navbar:not(.scrolled){
    background:transparent!important;
    border-bottom-color:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body.pf-web-mobile-rebuild-p252:not(.pf-wmp-header-scrolled) #pf-navbar{
    background:transparent!important;
    border-bottom-color:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-wmp-header-scrolled #pf-navbar,
  body.pf-web-mobile-rebuild-p252 #pf-navbar.scrolled{
    background:rgba(5,5,8,.93)!important;
    border-bottom-color:rgba(255,255,255,.085)!important;
    box-shadow:0 10px 30px rgba(0,0,0,.32)!important;
    backdrop-filter:blur(20px) saturate(1.08)!important;
    -webkit-backdrop-filter:blur(20px) saturate(1.08)!important;
  }

  /* Keep header controls readable while the bar itself remains transparent. */
  body.pf-web-mobile-rebuild-p252:not(.pf-wmp-header-scrolled) #pf-navbar :is(.pf-mob-srch-btn,.pf-mob-top-notif,.pf-webmob-menu-btn,.pf-user-btn){
    background:rgba(7,7,12,.34)!important;
    border-color:rgba(255,255,255,.13)!important;
    box-shadow:0 5px 18px rgba(0,0,0,.14)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
  }

  /* Logged-out CTA: real button geometry; never squeezed or distorted. */
  body.pf-web-mobile-rebuild-p252 #pf-navbar .pf-auth-btn{
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:70px!important;
    max-width:none!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 14px!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:13px!important;
    background:linear-gradient(135deg,#7c3aed,#9b5cf5)!important;
    color:#fff!important;
    box-shadow:0 8px 22px rgba(124,58,237,.24)!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    font-size:0!important;
    line-height:1!important;
    transform:none!important;
  }
  body.pf-web-mobile-rebuild-p252 #pf-navbar .pf-auth-btn::before{content:none!important}
  body.pf-web-mobile-rebuild-p252 #pf-navbar .pf-auth-btn::after{
    content:"Entrar"!important;
    display:block!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
    color:#fff!important;
    font:800 13px/1 var(--pf-font-body,Roboto,Arial,sans-serif)!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }

  /* 2) HOME HERO: poster is always a small visual anchor at the upper right. */
  body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster{
    display:block!important;
    position:absolute!important;
    top:calc(var(--pfm-header-total,64px) + 14px)!important;
    right:var(--pfm-hero-gutter,18px)!important;
    bottom:auto!important;
    left:auto!important;
    z-index:14!important;
    width:82px!important;
    max-width:82px!important;
    opacity:0!important;
    transform:translate3d(0,-6px,0)!important;
    filter:none!important;
    pointer-events:none!important;
    transition:opacity .35s ease,transform .42s ease!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-slide.pf-uhero-active .pf-uhero-poster{
    opacity:.96!important;
    transform:none!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster img{
    display:block!important;
    width:82px!important;
    max-width:82px!important;
    height:auto!important;
    aspect-ratio:2/3!important;
    object-fit:cover!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:10px!important;
    background:#101017!important;
    box-shadow:0 12px 30px rgba(0,0,0,.46),0 0 0 1px rgba(124,58,237,.08)!important;
  }

  /* 3) PRIMEFLIX DISCOVERY: mobile Web toolbar, not an app navigation bar. */
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh{
    padding:20px var(--pfm-gutter,18px) 18px!important;
    overflow:hidden!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__intro{
    display:block!important;
    padding:0 0 16px!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__intro>.pfdh__profile,
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh>.pfdh__nav{
    display:none!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__copy h2{
    max-width:680px!important;
    margin:0!important;
    font-size:clamp(27px,7.5vw,38px)!important;
    line-height:1.04!important;
    text-wrap:balance!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__copy p{
    max-width:680px!important;
    margin-top:10px!important;
    font-size:14px!important;
    line-height:1.5!important;
  }

  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-tools{
    position:relative!important;
    z-index:2!important;
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 112px!important;
    align-items:stretch!important;
    gap:9px!important;
    margin:0!important;
    padding:0 0 13px!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail{
    min-width:0!important;
    width:100%!important;
    display:flex!important;
    align-items:stretch!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0 2px 2px 0!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-inline:contain!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail::-webkit-scrollbar{display:none!important}
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail a{
    flex:0 0 auto!important;
    min-width:92px!important;
    height:54px!important;
    padding:0 11px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:1px solid rgba(255,255,255,.075)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.035)!important;
    color:rgba(255,255,255,.78)!important;
    scroll-snap-align:start!important;
    white-space:nowrap!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail a span{font-size:17px!important;line-height:1!important}
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail a b{
    font-size:12px!important;
    line-height:1!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account{
    width:112px!important;
    min-width:112px!important;
    height:54px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 14px!important;
    align-items:center!important;
    gap:6px!important;
    padding:8px 10px!important;
    border:1px solid rgba(196,181,253,.19)!important;
    border-radius:14px!important;
    background:linear-gradient(135deg,rgba(124,58,237,.16),rgba(255,255,255,.035))!important;
    color:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.12)!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account>span:first-child{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account small{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:rgba(255,255,255,.50)!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:850!important;
    letter-spacing:.06em!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account b{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1.05!important;
    font-weight:900!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account>span:last-child{
    font-size:16px!important;
    opacity:.62!important;
  }

  /* Indicator line is also the disclosure button for the three existing signals. */
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals-toggle{
    position:relative!important;
    z-index:2!important;
    width:100%!important;
    height:30px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    background:transparent!important;
    color:#c4b5fd!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals-toggle-line{
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:50%!important;
    height:1px!important;
    transform:translateY(-50%)!important;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.14) 12%,rgba(167,139,250,.30) 50%,rgba(255,255,255,.14) 88%,transparent)!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals-toggle-handle{
    position:relative!important;
    z-index:1!important;
    width:42px!important;
    height:22px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid rgba(167,139,250,.24)!important;
    border-radius:999px!important;
    background:#0d0c14!important;
    box-shadow:0 5px 18px rgba(0,0,0,.22)!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals-toggle-handle svg{
    width:15px!important;
    height:15px!important;
    transition:transform .22s ease!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals-toggle[aria-expanded="true"] .pfdh__signals-toggle-handle svg{
    transform:rotate(180deg)!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    max-height:0!important;
    overflow:hidden!important;
    opacity:0!important;
    visibility:hidden!important;
    padding-top:0!important;
    transform:translateY(-5px)!important;
    transition:max-height .32s ease,opacity .2s ease,transform .25s ease,padding .25s ease,visibility .25s ease!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signals.is-open{
    max-height:330px!important;
    opacity:1!important;
    visibility:visible!important;
    padding-top:9px!important;
    transform:none!important;
  }
  /* Preserve the existing signal-card appearance while improving mobile reading. */
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signal{
    min-height:68px!important;
    padding:11px 12px!important;
    grid-template-columns:42px minmax(0,1fr) 16px!important;
    gap:10px!important;
    border-radius:15px!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signal-icon{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    font-size:18px!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signal small{font-size:10px!important}
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signal b{
    font-size:14px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__signal em{
    font-size:11.5px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  @media (max-width:374px){
    body.pf-web-mobile-rebuild-p252 #pf-navbar{gap:6px!important}
    body.pf-web-mobile-rebuild-p252 #pf-navbar .pf-nav-logo{max-width:min(31vw,108px)!important}
    body.pf-web-mobile-rebuild-p252 #pf-navbar .pf-auth-btn{min-width:64px!important;padding-inline:11px!important}
    body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster{width:72px!important;max-width:72px!important;right:14px!important}
    body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster img{width:72px!important;max-width:72px!important}
    body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-tools{grid-template-columns:minmax(0,1fr) 104px!important;gap:7px!important}
    body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account{width:104px!important;min-width:104px!important;padding-inline:9px!important}
    body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail a{min-width:86px!important;padding-inline:9px!important}
  }

  @media (min-width:560px){
    body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster{width:96px!important;max-width:96px!important;top:calc(var(--pfm-header-total,64px) + 18px)!important}
    body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster img{width:96px!important;max-width:96px!important}
    body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-tools{grid-template-columns:minmax(0,1fr) 142px!important}
    body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-account{width:142px!important;min-width:142px!important;padding-inline:13px!important}
    body.pf-web-mobile-rebuild-p252.pf-home-discovery-mode .pfdh__mobile-rail a{min-width:104px!important}
  }

  @media (orientation:landscape) and (max-height:560px){
    body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster{
      display:block!important;
      top:calc(var(--pfm-header-total,64px) + 10px)!important;
      right:max(var(--pfm-gutter,18px),env(safe-area-inset-right,0px))!important;
      width:68px!important;
      max-width:68px!important;
    }
    body.pf-web-mobile-rebuild-p252.pf-wmp-home-p250 #pf-uhero-home .pf-uhero-poster img{width:68px!important;max-width:68px!important;border-radius:9px!important}
  }
}

@media (prefers-reduced-motion:reduce){
  .pfdh__mobile-rail{scroll-behavior:auto!important}
}
