/* Film presentation refinement — three roulettes share the geometry. */

/* One uninterrupted, feathered film still spans both the headline and card.
   Geometry is measured from the real hero/card, so long titles and phones
   cannot leave a hard rectangular seam below the picture. */
main.cr-scene-host{position:relative;isolation:isolate}
main.cr-scene-host::before{
  content:'';position:absolute;z-index:-1;pointer-events:none;
  left:0;right:0;top:var(--cr-scene-top,64px);
  height:var(--cr-scene-height,680px);
  background-image:
    linear-gradient(180deg,rgba(13,22,29,.66) 0%,rgba(13,22,29,.57) 39%,rgba(13,22,29,.75) 72%,rgba(13,22,29,.98) 100%),
    var(--cr-scene-image);
  background-size:cover;background-repeat:no-repeat;background-position:center 35%;
  /* The outgoing film must vanish in the same frame as Spin again.
     Only the incoming film animates; the hidden state has no transition. */
  opacity:0;filter:saturate(.88);transition:none;
  /* Intersect horizontal and vertical feathering: no visible rectangle along
     the top, either side or the naturally dissolving lower edge. */
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 9%,#000 91%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 13%,#000 39%,rgba(0,0,0,.88) 55%,rgba(0,0,0,.4) 78%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0%,#000 9%,#000 91%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 13%,#000 39%,rgba(0,0,0,.88) 55%,rgba(0,0,0,.4) 78%,transparent 100%);
  mask-composite:intersect;
}
main.cr-scene-host.cr-scene-visible::before{opacity:.82;transition:opacity .78s ease-out}
main.cr-scene-host #filmCard.cr-has-backdrop::before{display:none!important}

/* Put the miniature distribution at the optical middle of the synopsis. */
#filmCard.cr-enhanced .cr-lower{align-items:center!important}
#filmCard.cr-enhanced .cr-lower .cr-rating{align-self:center!important;margin:0!important}

/* Three lightweight disclosures, not three full-width section rows. */
#filmCard.cr-enhanced .cr-accordions{
  display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px;
  width:100%;border:0!important;padding:0!important;margin:15px 0 0!important;
}
#filmCard.cr-enhanced .cr-accordions[hidden]{display:none!important}
#filmCard.cr-enhanced .cr-accordion{
  flex:0 0 auto;min-width:0;margin:0!important;
  border:1px solid var(--cr-rule)!important;border-radius:6px;
  background:rgba(24,36,44,.42);
}
#filmCard.cr-enhanced .cr-accordion summary{
  gap:18px;justify-content:space-between;
  min-height:31px;padding:6px 10px!important;
  font-size:11px!important;font-weight:600!important;line-height:1.35!important;
}
#filmCard.cr-enhanced .cr-accordion summary::after{font-size:14px}
#filmCard.cr-enhanced .cr-accordion[open]{flex:1 0 100%}
#filmCard.cr-enhanced .cr-accordion-content{padding:8px 12px 12px}

@media(max-width:680px){
  /* Keep the backdrop softly joined to the preserved two-line masthead. */
  main.cr-scene-host::before{
    background-position:center top;opacity:0;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 8%,#000 92%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 11%,#000 41%,rgba(0,0,0,.88) 57%,rgba(0,0,0,.4) 78%,transparent 100%);
    mask-image:linear-gradient(to right,transparent 0%,#000 8%,#000 92%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 11%,#000 41%,rgba(0,0,0,.88) 57%,rgba(0,0,0,.4) 78%,transparent 100%);
  }
  main.cr-scene-host.cr-scene-visible::before{opacity:.72}
  /* A genuinely short preview: three lines, followed by just one action. */
  #filmCard.cr-enhanced .cr-lower #filmSynopsis #filmSynopsisText{
    -webkit-line-clamp:3!important;line-clamp:3!important;
  }
  #filmCard.cr-enhanced .cr-lower #filmSynopsis.cr-expanded #filmSynopsisText{
    -webkit-line-clamp:unset!important;line-clamp:unset!important;
  }
  #filmCard.cr-enhanced .cr-social{
    justify-content:center!important;gap:6px!important;flex-wrap:nowrap!important;
    padding-top:6px!important;font-size:10px!important;line-height:1.35!important;
  }
  #filmCard.cr-enhanced .cr-social-metric{gap:3px!important}
  #filmCard.cr-enhanced .cr-social-icon{font-size:11px!important}
  #filmCard.cr-enhanced .cr-lower .cr-rating{
    margin:13px auto 3px!important;align-self:center!important;
  }
  #filmCard.cr-enhanced .cr-accordions{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px!important;margin-top:12px!important;
  }
  #filmCard.cr-enhanced .cr-accordion{width:100%}
  #filmCard.cr-enhanced .cr-accordion summary{
    justify-content:space-between;gap:4px;padding:6px 7px!important;
    font-size:10.5px!important;min-height:32px;
  }
  #filmCard.cr-enhanced .cr-accordion[open]{grid-column:1/-1}

  /* Footer controls: counter/tickets, then an intentional action row. */
  #gameGrid>aside.skips-card .restart-main{
    grid-column:1!important;grid-row:3!important;margin-top:13px!important;
  }
  #gameGrid>aside.skips-card .help-details{
    grid-column:2!important;grid-row:3!important;justify-self:end!important;
    align-self:start!important;margin:13px 0 0!important;width:auto!important;
  }
  #gameGrid>aside.skips-card .help-details summary{
    display:flex;align-items:center;justify-content:center;
    border:1px solid #3d5662;border-radius:7px;padding:7px 10px!important;
    min-height:40px!important;font-size:11px!important;color:#a8c0cd;
  }
  #gameGrid>aside.skips-card .help-details[open]{
    grid-column:1/-1!important;grid-row:4!important;justify-self:stretch!important;
  }
  #gameGrid>aside.skips-card .skips-history{
    grid-column:1/-1!important;grid-row:5!important;justify-self:end!important;
    margin:5px 0 0!important;
  }
}
@media(prefers-reduced-motion:reduce){main.cr-scene-host::before,main.cr-scene-host.cr-scene-visible::before{transition:none}}

/* Watchlist's shorter nav should fill the entire mobile row, without a
   phantom fourth slot for its intentionally hidden Compendium shortcut. */
@media(max-width:680px){
  .topline>.topnav{
    display:grid!important;width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;gap:4px!important;
  }
  .topline>.topnav:has(#navSupport:not([hidden])){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .topline>.topnav .headerlink{justify-content:center!important;width:100%;min-width:0}
}
