/* PrimeFlix 3.65.04 · P264 · Web Mobile structural correction
 * Scope: responsive Web only (<=820px). No App surfaces.
 */
@media (max-width:820px){
  body.pf-web-p264{
    --pf264-gutter:clamp(13px,4.4vw,20px);
    --pf264-gap:10px;
    --pf264-card-w:clamp(128px,38.5vw,158px);
    --pf264-kicker-font:10px;
    --pf264-pill-font:10px;
    --pf264-pill-pad:7px;
    --pf264-title-font:38px;
    --pf264-genre-font:10px;
    --pf264-genre-pad:7px;
    --pf264-deck-font:10px;
    --pf264-ov-font:12.5px;
    --pf264-ov-line:19px;
    --pf264-primary-h:40px;
    --pf264-secondary-h:36px;
    --pf264-secondary-font:11px;
    --pf264-row-gap:6px;
  }

  /* HERO: one authority, no duplicated facts, no overlap. */
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime){
    height:100svh!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
  }
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf263-hero-facts{display:none!important}
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-content{
    position:absolute!important;left:var(--pf264-gutter)!important;right:var(--pf264-gutter)!important;bottom:max(14px,env(safe-area-inset-bottom,0px))!important;
    width:auto!important;max-width:none!important;min-width:0!important;max-height:calc(100svh - var(--pfm-header-total,58px) - 24px)!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;overflow:visible!important;
  }
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) :is(.pf-uhero-kicker,.pf-uhero-pills,.pf-uhero-title,.pf-uhero-genres,.pf-uhero-deck,.pf-uhero-ov,.pf-uhero-actions){
    position:relative!important;inset:auto!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;min-width:0!important;transform:none!important;
  }
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-kicker{order:10!important;margin:0 0 var(--pf264-row-gap)!important;font-size:var(--pf264-kicker-font)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-pills{order:20!important;margin:0 0 var(--pf264-row-gap)!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:4px!important;overflow:hidden!important;white-space:nowrap!important}
  body.pf-web-p264 .pf-uhero-pills .pf-uhero-pill{flex:0 0 auto!important;min-width:0!important;height:22px!important;min-height:22px!important;padding:0 var(--pf264-pill-pad)!important;font-size:var(--pf264-pill-font)!important;line-height:1!important;display:inline-flex!important;align-items:center!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
  body.pf-web-p264 .pf-uhero-pills .pf-uhero-pill svg{width:1em!important;height:1em!important;flex:0 0 1em!important}
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-title{order:30!important;margin:0 0 var(--pf264-row-gap)!important;font-size:var(--pf264-title-font)!important;line-height:1!important;letter-spacing:-.04em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-genres{order:40!important;margin:0 0 var(--pf264-row-gap)!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:4px!important;overflow:hidden!important;white-space:nowrap!important}
  body.pf-web-p264 .pf-uhero-genres .pf-uhero-genre{flex:0 0 auto!important;min-width:0!important;min-height:21px!important;padding:0 var(--pf264-genre-pad)!important;display:inline-flex!important;align-items:center!important;font-size:var(--pf264-genre-font)!important;line-height:1!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}

  /* The ORIGINAL information deck is the only Type / Genre / Year row. */
  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-deck{
    order:50!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:0!important;height:23px!important;min-height:23px!important;margin:0 0 var(--pf264-row-gap)!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:hidden!important;white-space:nowrap!important;
  }
  body.pf-web-p264 .pf-uhero-deck .pf-uhero-metric{position:relative!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;height:23px!important;min-height:23px!important;margin:0!important;padding:0 8px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;gap:3px!important;overflow:hidden!important}
  body.pf-web-p264 .pf-uhero-deck .pf-uhero-metric:first-child{padding-left:0!important}
  body.pf-web-p264 .pf-uhero-deck .pf-uhero-metric:not(:last-child)::after{content:"";position:absolute;right:0;top:7px;bottom:7px;width:1px;background:rgba(255,255,255,.13)}
  body.pf-web-p264 .pf-uhero-deck .pf-uhero-metric :is(span,strong){margin:0!important;padding:0!important;font-size:var(--pf264-deck-font)!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
  body.pf-web-p264 .pf-uhero-deck .pf-uhero-metric span{color:rgba(255,255,255,.47)!important;font-weight:650!important}
  body.pf-web-p264 .pf-uhero-deck .pf-uhero-metric strong{color:rgba(255,255,255,.84)!important;font-weight:850!important}

  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-ov{
    order:60!important;height:calc(var(--pf264-ov-line) * 2)!important;min-height:calc(var(--pf264-ov-line) * 2)!important;max-height:calc(var(--pf264-ov-line) * 2)!important;margin:0 0 calc(var(--pf264-row-gap) + 1px)!important;padding:0!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;font-size:var(--pf264-ov-font)!important;line-height:var(--pf264-ov-line)!important;color:rgba(255,255,255,.72)!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;
  }
  body.pf-web-p264 .pf-uhero-ov:empty{display:block!important;color:transparent!important}
  body.pf-web-p264 .pf-uhero-ov:empty::before,body.pf-web-p264 .pf-uhero-ov:empty::after{content:"";position:absolute;left:0;height:4px;border-radius:99px;background:rgba(255,255,255,.10)}
  body.pf-web-p264 .pf-uhero-ov:empty::before{top:6px;width:88%}body.pf-web-p264 .pf-uhero-ov:empty::after{top:calc(var(--pf264-ov-line) + 6px);width:64%}

  body.pf-web-p264 :is(#pf-uhero-home,#pf-uhero-movies,#pf-uhero-series,#pf-uhero-anime) .pf-uhero-actions{
    order:70!important;width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:var(--pf264-primary-h) var(--pf264-secondary-h)!important;gap:var(--pf264-row-gap)!important;margin:0!important;padding:0!important;overflow:visible!important;
  }
  body.pf-web-p264 .pf-uhero-actions .pf-uhero-btn-play{grid-column:1/-1!important;grid-row:1!important;width:100%!important;height:var(--pf264-primary-h)!important;min-height:0!important;margin:0!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;line-height:1!important}
  body.pf-web-p264 .pf-uhero-actions .pf-uhero-btn-trailer{grid-column:1!important;grid-row:2!important}
  body.pf-web-p264 .pf-uhero-actions .pf-uhero-btn-info{grid-column:2!important;grid-row:2!important}
  body.pf-web-p264 .pf-uhero-actions .pf-uhero-btn-icon{grid-column:3!important;grid-row:2!important;width:100%!important;min-width:0!important}
  body.pf-web-p264 .pf-uhero-actions :is(.pf-uhero-btn-trailer,.pf-uhero-btn-info,.pf-uhero-btn-icon){height:var(--pf264-secondary-h)!important;min-height:0!important;margin:0!important;padding:0 6px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:var(--pf264-secondary-font)!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}
  body.pf-web-p264 .pf-uhero-actions :is(.pf-uhero-btn-play,.pf-uhero-btn-trailer,.pf-uhero-btn-info,.pf-uhero-btn-icon) span{white-space:nowrap!important}

  /* Discovery copy: heading exactly <=2 lines; paragraph <=2 lines. */
  body.pf-web-p264.pf-home-discovery-mode .pfdh__copy h2{margin:0!important;font-size:var(--pf264-discovery-title,28px)!important;line-height:1.04!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-wrap:initial!important;word-break:normal!important;overflow-wrap:normal!important}
  body.pf-web-p264.pf-home-discovery-mode .pfdh__copy p{margin:8px 0 0!important;font-size:var(--pf264-discovery-copy,13px)!important;line-height:1.42!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;word-break:normal!important;overflow-wrap:normal!important}

  /* SLIDERS: native horizontal extension + actual horizontal touch, one-line titles. */
  body.pf-web-p264 :is(.pf10c-slider,.pf10-slider,.pf10-continue-slider,.pf-xslider,#xs-similar,#xs-continue,.pfchips-slider)[data-pf264-rail="1"]{
    display:block!important;position:relative!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:1px!important;overflow-x:auto!important;overflow-y:visible!important;opacity:1!important;visibility:visible!important;transform:none!important;translate:none!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;scroll-snap-type:x proximity!important;overscroll-behavior-x:contain!important;touch-action:pan-x pan-y pinch-zoom!important;pointer-events:auto!important;
  }
  body.pf-web-p264 [data-pf264-rail="1"]::-webkit-scrollbar{display:none!important}
  body.pf-web-p264 [data-pf264-rail="1"]>.swiper-wrapper{display:flex!important;flex-flow:row nowrap!important;align-items:flex-start!important;width:max-content!important;min-width:100%!important;max-width:none!important;height:auto!important;min-height:1px!important;margin:0!important;padding:0 var(--pf264-gutter) 5px!important;gap:var(--pf264-gap)!important;overflow:visible!important;transform:none!important;translate:none!important;transition:none!important;touch-action:pan-x pan-y pinch-zoom!important;pointer-events:auto!important;user-select:none!important;-webkit-user-select:none!important}
  body.pf-web-p264 [data-pf264-rail="1"]>.swiper-wrapper>.swiper-slide{position:relative!important;flex:0 0 auto!important;align-self:flex-start!important;height:auto!important;min-height:1px!important;margin:0!important;opacity:1!important;visibility:visible!important;transform:none!important;translate:none!important;touch-action:pan-x pan-y pinch-zoom!important;scroll-snap-align:start!important}
  body.pf-web-p264 .pf10c-slider[data-pf264-rail="1"] .swiper-slide.pf10c-slide{width:var(--pf264-card-w)!important;min-width:var(--pf264-card-w)!important;max-width:var(--pf264-card-w)!important;flex-basis:var(--pf264-card-w)!important}
  body.pf-web-p264 .pf10-continue-slider[data-pf264-rail="1"] .pf-cont-slide{width:min(78vw,320px)!important;min-width:min(78vw,320px)!important;max-width:min(78vw,320px)!important;flex-basis:min(78vw,320px)!important}
  body.pf-web-p264 .pfchips-slider[data-pf264-rail="1"] .pfchips-slide{width:auto!important;min-width:max-content!important;max-width:none!important;flex-basis:auto!important}
  body.pf-web-p264 .pf10c-card{height:auto!important;min-height:0!important;overflow:visible!important}
  body.pf-web-p264 .pf10c-card>.pf10c-poster{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:2/3!important;display:block!important;overflow:hidden!important}
  body.pf-web-p264 .pf10c-card>.pf10c-back{position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-height:50px!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important}
  body.pf-web-p264 .pf10c-card .pf10c-title{display:block!important;width:100%!important;margin:0!important;font-size:var(--pf264-card-title,13px)!important;line-height:1.18!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:clip!important;-webkit-line-clamp:unset!important}
  body.pf-web-p264 .pf10-continue-slider .pf-cont-title{display:block!important;width:100%!important;max-width:100%!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:clip!important;font-size:var(--pf264-cont-title,14px)!important;line-height:1.15!important}
  body.pf-web-p264 :is(.pf10-sect,.pf10-top10-sect,.pf-stream-section,.pf-sect) .pf-sect-head{min-width:0!important;overflow:hidden!important}
  body.pf-web-p264 :is(.pf10-sect,.pf10-top10-sect,.pf-stream-section,.pf-sect) .pf-sect-title{display:block!important;max-width:100%!important;font-size:var(--pf264-slider-heading,20px)!important;line-height:1.08!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:clip!important}
  body.pf-web-p264 :is(.pfde-scroll,.pfde-users,.pfde-trailers,.pfde-reviews,.pfde-people,.pfdh__mobile-rail){overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y pinch-zoom!important;scrollbar-width:none!important;overscroll-behavior-x:contain!important}
  body.pf-web-p264 :is(.pfde-scroll,.pfde-users,.pfde-trailers,.pfde-reviews,.pfde-people,.pfdh__mobile-rail)::-webkit-scrollbar{display:none!important}

  /* Poll confirmation only exists after a preference is selected. */
  body.pf-web-p264 .pfde-poll--cinema [data-pfde-poll-confirm][hidden]{display:none!important}
  body.pf-web-p264 .pfde-poll--cinema [data-pfde-poll-confirm]:not([hidden]){display:grid!important;width:100%!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:12px 0 0!important}

  /* COMMUNITY: avatar over poster on the left; comment/data owns the full right column; actions below. */
  body.pf-web-p264 .pfde-social-activity .pfde-activity-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;grid-template-areas:"avatar body" "poster body" "actions actions"!important;column-gap:11px!important;row-gap:8px!important;width:100%!important;padding:12px!important;align-items:start!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-avatar{grid-area:avatar!important;align-self:start!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-avatar img{width:42px!important;height:42px!important;border-radius:50%!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-poster{grid-area:poster!important;align-self:start!important;justify-self:start!important;width:54px!important;height:79px!important;margin:0!important;border-radius:10px!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__body{grid-area:body!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;align-self:stretch!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__line{width:100%!important;max-width:none!important;margin:0!important;font-size:12.5px!important;line-height:1.4!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-review-snippet{width:100%!important;max-width:none!important;margin:8px 0 0!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event>.pfsf-event__actions{grid-area:actions!important;width:100%!important;margin:2px 0 0!important;padding:0!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__actions .pfso{width:100%!important;padding:0!important;margin:0!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__actions .pfso-actions{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-around!important;gap:10px!important;width:100%!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__actions .pf-social-action{flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__actions :is(.pf-social-label,b){display:none!important}
  body.pf-web-p264 .pfde-social-activity .pfsf-event__actions .pf-social-icon{width:15px!important;height:15px!important}

  /* AUDIOVISUAL: actions BELOW the main trailer, round and evenly spaced. */
  body.pf-web-p264 .pfav-home .pfav-head h2{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;max-height:2.18em!important}
  body.pf-web-p264 .pfav-home .pfav-head p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;max-height:2.9em!important}
  body.pf-web-p264 .pfav-home .pfav-format-rail{display:none!important}
  body.pf-web-p264 .pf263-av-actions{position:static!important;inset:auto!important;z-index:auto!important;width:100%!important;margin:0!important;padding:7px 10px 8px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:rgba(255,255,255,.015)!important}
  body.pf-web-p264 .pf263-av-actions .pfso{width:100%!important;padding:0!important;margin:0!important}
  body.pf-web-p264 .pf263-av-actions .pfso-actions{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-around!important;gap:8px!important;width:100%!important}
  body.pf-web-p264 .pf263-av-actions .pf-social-action{flex:0 0 32px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.09)!important}
  body.pf-web-p264 .pf263-av-actions :is(.pf-social-label,.pf-social-action b){display:none!important}
  body.pf-web-p264 .pf263-av-actions .pf-social-icon{width:14px!important;height:14px!important}

  /* USERS: title + Descubrir más always on one line. */
  body.pf-web-p264 .pfde-users-section .pfde-head{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;width:100%!important;margin-bottom:11px!important;overflow:hidden!important}
  body.pf-web-p264 .pfde-users-section .pfde-head>div{flex:1 1 auto!important;min-width:0!important;width:auto!important}
  body.pf-web-p264 .pfde-users-section .pfde-head>div>span,body.pf-web-p264 .pfde-users-section .pfde-head p{display:none!important}
  body.pf-web-p264 .pfde-users-section .pfde-head h2{display:block!important;width:100%!important;margin:0!important;font-size:var(--pf264-users-title,18px)!important;line-height:1!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:clip!important}
  body.pf-web-p264 .pfde-users-section .pfde-head>a{flex:0 0 auto!important;margin:0!important;padding:7px 9px!important;font-size:10px!important;line-height:1!important;white-space:nowrap!important;border-radius:999px!important}
}

@media (max-width:380px){
  body.pf-web-p264{--pf264-gutter:12px;--pf264-card-w:122px;--pf264-gap:8px}
}
