/* ------------------------------- */
/* [Cinema entity] (owner, 2026-10-20): the Cinema single pages in the profile's [Entity layout] — an actor
   (/cinema/actor/{id}), a TMDB movie or show (/cinema/movie/{id}, /cinema/tv/{id}) and a playable movie of the Movies
   module (/cinema/{slug}). The layout itself is css/pages/entity.css (the hero card, the 960px column, the About
   column beside the content from 1024px, phones full bleed); this file only adds what those pages have and a profile
   does not: the tall poster in the picture's place, the facts line's star and certificate, the photo grids, the
   videos, where to watch, reviews and "Read more". Every colour is a theme token; radius 12px (--ng-r).
   Loaded with entity.css when the page is in the profile layout ($ng_entity_layout, _head.tpl). */
/* ------------------------------- */

.ngc-ent-frame { --ngc-gold: 42 92% 52%; }

/* the hero: the cover image fills its box and opens the photos */
.ngc-ent__coverbox { position: relative; }
.ngc-ent__coverbox > img.ngc-ent__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ngc-ent__coverbox--none { min-height: 0; }
.ngc-ent__pics.ng-cover-pill { position: absolute; z-index: 2; right: 12px; bottom: 12px; text-decoration: none; }
.ngc-ent__initial {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: inherit; background: var(--ng-fill);
  color: var(--ng-sub); font-size: 40px; font-weight: 800;
}
.ngc-ent__initial .ng-ico { width: 40px; height: 40px; }
.ng-ent__avatar > img[data-lightbox-images] { cursor: zoom-in; }

/* the tall poster (2:3, 12px) where a profile has its round picture */
.ng-ent .profile-avatar-wrapper.ng-ent__avatar.ngc-ent__poster { border-radius: var(--ng-r); }
.ngc-ent-frame .ngc-ent__poster > img,
.ngc-ent-frame .ngc-ent__poster > .ngc-ent__initial { width: 112px; height: 168px; border-radius: var(--ng-r); object-fit: cover; }
@media (max-width: 767.98px) {
  .ngc-ent-frame .ngc-ent__poster > img, .ngc-ent-frame .ngc-ent__poster > .ngc-ent__initial { width: 120px; height: 180px; }
  .ngc-ent-frame .ng-ent .profile-avatar-wrapper.ng-ent__avatar.ngc-ent__poster { margin-top: -96px; }
}
@media (min-width: 768px) {
  .ngc-ent-frame .ngc-ent__poster > img, .ngc-ent-frame .ngc-ent__poster > .ngc-ent__initial { width: 132px; height: 198px; }
  .ngc-ent-frame .ng-ent .profile-avatar-wrapper.ng-ent__avatar.ngc-ent__poster { margin-top: -88px; }
}
@media (min-width: 1024px) {
  .ngc-ent-frame .ngc-ent__poster > img, .ngc-ent-frame .ngc-ent__poster > .ngc-ent__initial { width: 156px; height: 234px; }
  .ngc-ent-frame .ng-ent .profile-avatar-wrapper.ng-ent__avatar.ngc-ent__poster { margin-top: -104px; }
}
.ngc-ent-frame .ng-ent__avatar:not(.ngc-ent__poster) > .ngc-ent__initial { width: 140px; height: 140px; }
@media (min-width: 768px) { .ngc-ent-frame .ng-ent__avatar:not(.ngc-ent__poster) > .ngc-ent__initial { width: 132px; height: 132px; } }
@media (min-width: 1024px) { .ngc-ent-frame .ng-ent__avatar:not(.ngc-ent__poster) > .ngc-ent__initial { width: 168px; height: 168px; } }

/* the name block: the original title (the handle line), the tagline, the facts line's star and certificate */
.ngc-ent__tagline { margin-top: 4px; font-size: 14.5px; font-style: italic; line-height: 1.45; color: var(--ng-sub); }
.ngc-ent__star { flex: none; width: 14px; height: 14px; margin: -2px 4px 0 0; vertical-align: middle; fill: hsl(var(--ngc-gold)); }
.ngc-ent__cert > :first-child, .ngc-ent__cert { font-size: 12.5px; font-weight: 700; }
.ng-ent__counts > .ngc-ent__cert { padding: 0 6px; border: 1px solid var(--ng-line); border-radius: 4px; line-height: 1.5; color: var(--ng-ink); }
.ng-ent__counts > .ngc-ent__cert::before { content: none; }
.ng-ent__counts > .ngc-ent__cert { margin-left: 6px; }
/* phones: the 120-character bio centred with the rest of the name block */
@media (max-width: 767.98px) { .ngc-ent-frame .ng-ent-hero .ng-ent__bio, .ngc-ent-frame .ng-ent-hero .ng-ent__bio .about-bio-header > div { text-align: center; } }
/* the social links: round icons at the end of the details line */
.ngc-ent__soc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ngc-ent__soc .ngc-brand { width: 16px; height: 16px; }

/* the actions: Watch trailer and Watchlist in the row's button look */
.ng-ent__actions .btn.ngc-ent__wl { background: var(--ng-fill); color: var(--ng-ink-strong); }
.ng-ent__actions .btn.ngc-ent__wl:hover { background: var(--ng-fill-2); }
.ng-ent__actions .btn.ngc-ent__wl.saved { background: hsl(var(--primary) / .12); color: var(--ng-brand); }
.ng-ent__actions .btn.ngc-ent__wl.saved .ng-ico { fill: currentColor; }
.ng-ent__actions .btn .ng-ico { width: 16px; height: 16px; }
/* the bar's search: the cinema search overlay (hidden on phones like the profiles' search) */
button.ng-ent__search { padding: 0; border: 0; cursor: pointer; }

/* ---- the content ---- */
.ngc-ent-cols.ng-ent-cols > .ng-ent__posts.ngc {
  display: flex !important; flex-direction: column; gap: var(--ng-ent-gap); padding: 0; min-width: 0;
}
.ngc-ent-cols > .ng-ent__posts > * { margin: 0 !important; }
.ngc-ent-cols [hidden] { display: none !important; }
.ngc-ent-sec { --ng-pg: 16px; }
.ngc-ent-sec .ng-lcard__head .ng-lcard__more { margin-left: auto; }
/* rows that scroll sideways run to the card's edges */
.ngc-ent-sec .ng-ent-card__body > :is(.ngc-row, .ngc-castrow) { margin: 0 -16px; padding: 4px 16px 6px; scroll-padding-inline: 16px; }
.ngc-ent-sec .ngc-row > .ngc-card { width: 132px; }
@media (min-width: 768px) { .ngc-ent-sec .ngc-row > .ngc-card { width: 140px; } }
.ngc-ent-sec .ngc-castcard { width: 96px; }
.ngc-ent-sec .ngc-castcard__photo { width: 88px; height: 88px; margin: 0 auto 8px; }
/* the filmography and cast grids */
.ngc-ent-sec .ngc-grid.ngc-ent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
@media (min-width: 560px) { .ngc-ent-sec .ngc-grid.ngc-ent-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 12px; } }
.ngc-ent-sec .ngc-pgrid.ngc-ent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 560px) { .ngc-ent-sec .ngc-pgrid.ngc-ent-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.ngc-ent-sec .ngc-pcard__body { padding: 8px 10px 10px; }
.ngc-ent-sec .ngc-pcard__body h3 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--ng-ink); }
.ngc-ent-sec .ngc-pcard__body p { margin: 2px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--ng-sub); }
.ngc-ent-sec .ngc-more { margin-top: 16px; }
.ngc-ent-sec .ngc-card__body { padding-top: 8px; }

/* photo grids: thumbnails here, the original size in the lightbox */
.ngc-ent-pics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 6px 16px 16px; padding: 0;
  overflow: hidden; border-radius: var(--ng-r-sm); list-style: none;
}
.ngc-ent-pics > li { min-width: 0; }
.ngc-ent-pics button { display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: var(--ng-fill); cursor: zoom-in; }
.ngc-ent-pics img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .3s ease, opacity .2s; }
.ngc-ent-pics button:hover img { transform: scale(1.04); }
.ngc-ent-pics button:focus-visible { outline: 2px solid var(--ng-brand); outline-offset: -2px; }
.ngc-ent-pics--all button, .ngc-ent-pics--tall button { aspect-ratio: 2 / 3; }
.ngc-ent-pics--wide button { aspect-ratio: 16 / 9; }
.ngc-ent-pics--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .ngc-ent-pics--all { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ngc-ent-pics--tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ngc-ent-pics--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .ngc-ent-pics--all, .ngc-ent-pics--tall { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ngc-ent-pics--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ng-ent__about .ngc-ent-pics { margin-top: 6px; }

/* the trailer in its card (the player of the classic page) */
.ngc-ent-sec .ngc-trailer { border-radius: var(--ng-r-sm); }
.ngc-ent-sec .ngc-trailer h4 { padding: 10px 14px; }

/* videos */
.ngc-ent-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 6px 16px 16px; list-style: none; }
@media (min-width: 1024px) { .ngc-ent-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ngc-ent-vids button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.ngc-ent-vids__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ng-r-sm); background: var(--ng-fill); }
.ngc-ent-vids__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ngc-ent-vids__play { position: absolute; inset: 0; display: grid; place-items: center; }
.ngc-ent-vids__play svg { width: 44px; height: 44px; padding: 12px; box-sizing: border-box; border-radius: 50%; background: hsl(0 0% 0% / .55); fill: #fff; transition: transform .2s; }
.ngc-ent-vids button:hover .ngc-ent-vids__play svg { transform: scale(1.08); }
.ngc-ent-vids__name { display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ng-ink-strong); }
.ngc-ent-vids__type { display: block; margin-top: 2px; font-size: 12px; color: var(--ng-sub); }

/* where to watch (Nepal, India) */
.ngc-ent-where { display: grid; gap: 16px; }
.ngc-ent-where__cc .ngc-h3 { margin: 0 0 8px; font-size: 14px; }
.ngc-ent-where__row { display: flex; align-items: flex-start; gap: 12px; }
.ngc-ent-where__row + .ngc-ent-where__row { margin-top: 8px; }
.ngc-ent-where__k { flex: none; width: 64px; padding-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--ng-sub); }
.ngc-ent-where__list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ngc-ent-where__pv { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--ng-fill); font-size: 13px; font-weight: 600; color: var(--ng-ink); }
.ngc-ent-where__pv img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.ngc-ent-note { margin: 0; font-size: 12px; color: var(--ng-faint); }

/* reviews */
.ngc-ent-revs { margin: 0; padding: 0 16px 6px; list-style: none; }
.ngc-ent-rev { padding: 14px 0; }
.ngc-ent-rev + .ngc-ent-rev { border-top: 1px solid var(--ng-line); }
.ngc-ent-rev:first-child { padding-top: 6px; }
.ngc-ent-rev__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ngc-ent-rev__av { display: grid; flex: none; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: var(--ng-tint); color: var(--ng-brand); font-weight: 700; }
.ngc-ent-rev__av img { width: 100%; height: 100%; object-fit: cover; }
.ngc-ent-rev__who { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.3; color: var(--ng-ink-strong); }
.ngc-ent-rev__who small { font-size: 12px; color: var(--ng-sub); }
.ngc-ent-rev__score { display: inline-flex; align-items: center; margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--ng-fill); font-size: 12.5px; font-weight: 700; color: var(--ng-ink); }
.ngc-ent-rev__score .ngc-ent__star { margin: 0 4px 0 0; }
.ngc-ent-cols[data-ngc-tabs="overview"] .ngc-ent-rev--more { display: none; }
.ngc-ent-cols:not([data-ngc-tabs="overview"]) .ngc-ent-only-overview { display: none; }

/* long texts: about nine lines, then "Read more" (niguro-cinema.js) */
.ngc-ent-readmore.ngc-text { font-size: 14.5px; line-height: 1.6; color: var(--ng-ink); }
.ngc-ent-readmore.is-clamped { max-height: calc(1.6em * 9); overflow: hidden; }
.ngc-ent-readmore.is-clamped.is-over { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ngc-ent-more { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--ng-brand); font-size: 14px; font-weight: 600; cursor: pointer; }
.ngc-ent-more:hover { text-decoration: underline; }
.ngc-ent-empty { margin: 0; font-size: 14px; color: var(--ng-sub); }

/* the facts card: a small label over each value */
.ngc-ent-frame .ng-ent-facts small.ngc-ent-facts__k { display: block; margin: 0 0 1px; font-size: 12.5px; color: var(--ng-sub); }
.ngc-ent-frame .ng-ent-facts b { font-weight: 600; }

/* Explore cinema: the cinema's links as chips */
.ngc-ent-explore .ngc-chips { gap: 6px; }
.ngc-ent-explore .ngc-chip { text-decoration: none; }

/* On Niguro: the posts that mention the person */
.ngc-ent-mentions { display: flex; flex-direction: column; gap: var(--ng-ent-gap); }
.ngc-ent-mentions > .ng-ent-postshead { margin: 0 !important; }
.ngc-ent-feed { margin: 0; padding: 0; list-style: none; }

/* phones and tablets (one column): the About cards first, as on profiles, then the content; Keywords, Explore cinema
   and the actor's nine photos (the Photos tab has them all) after the content */
@media (max-width: 1023.98px) {
  .ngc-ent-cols.ng-ent-cols.row { display: flex; flex-direction: column; flex-wrap: nowrap; gap: var(--ng-ent-gap); }
  .ngc-ent-cols.ng-ent-cols.row > *, .ngc-ent-cols > .ng-ent__about > * { min-width: 0; max-width: 100%; }
  .ngc-ent-cols.ng-ent-cols > .ng-ent__about { display: contents !important; }
  .ngc-ent-cols > .ng-ent__about > * { order: 0; }
  .ngc-ent-cols.ng-ent-cols > .ng-ent__posts { order: 1; padding-bottom: 0; }
  .ngc-ent-cols > .ng-ent__about > .ngc-ent-late { order: 2; }
  .ngc-ent-cols > .ng-ent__about > .ngc-ent-side-pics { display: none; }
}

/* the TMDB credit under the page */
.ngc-ent-credit.ngc-credit { padding: 16px 16px 32px; }
@media (min-width: 768px) { .ngc-ent-credit.ngc-credit { padding: 20px 0 40px; } }

/* the playable movie (/cinema/{slug}): the poster softened as the cover; the player, the ad slot and Trending Now in
   the content column; the module's search and links in Browse movies */
.ngm-ent__coverbox { overflow: hidden; }
.ngm-ent__coverbox > img.ngm-ent__cover { filter: blur(28px) saturate(1.15); transform: scale(1.2); cursor: default; }
.ngm-ent__coverbox::after { content: ""; position: absolute; inset: 0; background: hsl(var(--background) / .12); }
.ngm-ent .ng-ent__avatar > img.js_lightbox-nodata { cursor: zoom-in; }
.ngm-ent__main.ng-ent__posts { display: flex !important; flex-direction: column; gap: var(--ng-ent-gap); min-width: 0; }
.ngm-ent__main > * { margin: 0 !important; }
.ngm-ent__main .ng-adslot:empty { display: none; }
.ngm-ent__text { font-size: 14.5px; line-height: 1.6; color: var(--ng-ink); }
.ngm-ent__browse { display: grid; gap: 12px; }
.ngm-ent__search.ngm-bar__search { position: relative; display: flex; align-items: center; margin: 0; }
.ngm-ent__search .ngm-bar__lead { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ng-sub); pointer-events: none; }
.ngm-ent__search .form-control { height: 40px; padding-left: 36px; border: 0; border-radius: 999px; background: var(--ng-fill); }
.ngm-ent__row .ng-ent-card__body { padding: 14px 16px 12px; }
.ngm-ent__row .ng-media-row, .ngm-ent__row section { margin: 0; }
.ngm-ent .ngm-most .ngm-minis { padding: 4px 16px 16px; }
.ngm-ent .ngm-row.ngm-row--movie { --ngm-k: 2; --ng-strip-n: 2.6; }
@media (min-width: 576px) { .ngm-ent .ngm-row.ngm-row--movie { --ngm-k: 3; --ng-strip-n: 3.4; } }
@media (min-width: 1024px) { .ngm-ent .ngm-row.ngm-row--movie { --ngm-k: 4; --ng-strip-n: 4.3; } }
.ngm-ent .ngm-sec .ng-sechead { margin-top: 0; }
/* the cinema's chips (css/pages/cinema.css is not on the Movies module's pages) */
.ngc-ent-frame .ngc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ngc-ent-frame .ngc-chip {
  display: inline-block; padding: var(--ng-chip-pad); border-radius: var(--ng-chip-r); background: var(--ng-fill); color: var(--ng-ink); font-size: var(--ng-chip-fs); font-weight: var(--ng-chip-fw); height: var(--ng-chip-h); line-height: var(--ng-chip-h); text-decoration: none;
}
.ngc-ent-frame a.ngc-chip:hover { background: hsl(var(--primary) / .1); color: var(--ng-brand); }
