/* fix-qa2.css: QA fixes for studio, insights and article. Loaded last. */

/* ---------- Studio ---------- */
/* Library and filter bar sat 12px left of every other section at desktop and touched the screen edge on mobile: give them the page gutter */
body[data-page="studio"] .st-bar,
body[data-page="studio"] .st-lib{padding-left:var(--gut);padding-right:var(--gut-r)}
/* Featured player was glued to the section heading */
body[data-page="studio"] #featured{margin-top:clamp(24px,2.6vw,36px)}
body[data-page="studio"] .st-now .sh p{max-width:28em}
/* Vendor chip row: fade the clipped right edge so it reads as scrollable, not cut off */
body[data-page="studio"] .st-chips{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);padding-right:48px}
/* Short rails (4 films or fewer) left a dead fifth slot on the right: let them fill the row and drop the useless arrows */
@media(min-width:901px){
  body[data-page="studio"] .srail-t:not(:has(> .stc:nth-child(5))){grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
  body[data-page="studio"] .srail-t:not(:has(> .stc:nth-child(4))){grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-page="studio"] .srail:not(:has(.srail-t > .stc:nth-child(5))) .ar{display:none}
}
/* Card titles: reserve two lines so meta rows line up across a rail */
body[data-page="studio"] .stc-t{min-height:2.7em}

/* Lightbox: the info panel already carries title, link and AI disclosure; the meta strip below repeated all three */
.lb .lb-meta,.lb .lb-in>.disclose{display:none}
.lb .lb-in{align-self:center}
/* Film summaries are long: clamp so the panel stays compact next to the player */
.lb .vinfo>p:not(.small),body[data-page="studio"] .vinfo>p:not(.small){display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.lb .vinfo{gap:10px;padding:22px}
.lb .vinfo h3{font-size:20px}
.lb .chs ol{max-height:none}
@media(min-width:901px){.lb .theater.real{align-items:stretch}.lb .vinfo{max-height:calc(100svh - 48px);overflow:auto}}
@media(max-width:900px){.lb{place-items:start center;padding-top:calc(env(safe-area-inset-top,0px) + 76px)}.lb .x{width:44px;height:44px;top:calc(env(safe-area-inset-top,0px) + 16px)}}

/* ---------- Insights ---------- */
/* Every card printed its title twice (cover and body): keep the cover title only */
body[data-page="insights"] .wp-body h3{display:none}
/* Equal covers and bottom aligned links across a row */
body[data-page="insights"] .wp-cover{flex:none;height:196px;min-height:0;padding:22px 24px}
body[data-page="insights"] .wp-cover b{max-width:17ch}
body[data-page="insights"] .wp-body{padding:20px 24px 22px;gap:14px}
body[data-page="insights"] .wp-body p{font-size:15.5px;line-height:1.55}
@media(max-width:600px){body[data-page="insights"] .wp-cover{height:auto;min-height:170px}}
body[data-page="insights"] #all .sh p{max-width:30em}

/* ---------- Article ---------- */
/* Hero meta stacked into four loose rows on phones */
@media(max-width:600px){
  body[data-page="article"] .art-meta{gap:8px 16px;font-size:14px;margin-top:24px}
  body[data-page="article"] .art-meta .by{flex-basis:100%;margin-bottom:6px}
}
body[data-page="article"] .firsthand h4{line-height:1.35}
/* Related cards: equal height, link pinned to the bottom */
body[data-page="article"] .related .rcard h4{flex:1}

/* Sub page hero content sat 60px right of the section content below it at desktop (hero-in max width included its own gutters) */
body:is([data-page="insights"],[data-page="article"]) .hero-in{max-width:calc(1320px + var(--gut) + var(--gut-r))}
