/* Niguro page CSS: media pages (built on the page kit in niguro.css; see dev/niguro-kit.md) */
/* Games, Movies, Watch, Live. Everything is under .ngm (the page's .ng-hubwrap) or uses ngm- classes. */
/* =============================== */

.ngm { --ngm-gap: 14px; }
.ngm.ng-hubwrap > * + * { margin-top: 16px; } /* the kit's 16px between stacked items (cards here reset their margin) */
.ngm [hidden] { display: none !important; }
@media (max-width: 575.98px) { .ngm-hide-sm { display: none; } }

/* the left column: nav + Most Played; sticky on desktop. Under 1024px the nav is a chip row above the
   content and Most Played goes after it (the column's children join the page grid) */
@media (min-width: 1024px) {
  .ngm .ng-hub__nav { position: sticky; top: calc(var(--ng-top, 56px) + 20px); }
}
@media (max-width: 1023.98px) {
  .ngm .ng-hub--nav > .ng-hub__nav { display: contents; }
  .ngm .ng-hub--nav > .ng-hub__nav > .ngm-snav { order: -1; }
  .ngm .ng-hub--nav > .ng-hub__main { order: 0; }
  .ngm .ng-hub--nav > .ng-hub__nav > .ngm-most { order: 1; }
  .ngm .ngm-snav { flex-direction: row; gap: 8px; padding: 2px; overflow-x: auto; scrollbar-width: none; border-radius: 0; background: transparent; }
  .ngm .ngm-snav::-webkit-scrollbar { display: none; }
  .ngm .ngm-snav a {
    flex: none; gap: 7px; min-height: 0; height: var(--ng-chip-h); padding: var(--ng-chip-pad); border-radius: var(--ng-chip-r); background: var(--ng-card); box-shadow: inset 0 0 0 1px var(--ng-line); font-size: var(--ng-chip-fs); white-space: nowrap; font-weight: var(--ng-chip-fw); /* [Chips: one size] */
  }
  .ngm .ngm-snav a .ng-ico { width: var(--ng-chip-ico); height: var(--ng-chip-ico); /* [Chips: one size] */ }
  .ngm .ngm-snav a:hover { background: var(--ng-fill); }
  .ngm .ngm-snav a.active { background: var(--ng-brand); box-shadow: none; color: #fff; }
  .ngm .ngm-snav a.active .ng-ico { color: #fff; }
}

/* the top bar: hub switch, search, genres */
.ngm-bar { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 8px; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
.ngm-bar .ng-pbtn { height: var(--ng-field-h); } /* matches the search field beside it (as .ng-filterbar) */
.ngm-bar .dropdown { flex: none; }
.ngm-types__btn { gap: 6px; padding: 0 12px 0 14px; }
.ngm-types__btn .ngm-types__caret { width: 16px; height: 16px; color: var(--ng-sub); }
@media (max-width: 479.98px) { .ngm-types__btn > .ng-ico:first-child { display: none; } .ngm-types__btn { padding: 0 10px 0 12px; } }
.ngm-types__menu .dropdown-item, .ngm-bar__menu .dropdown-item { display: flex; align-items: center; gap: 10px; }
.ngm-types__menu .dropdown-item .ng-ico { width: 18px; height: 18px; }
.ngm-bar__menu { max-height: 320px; overflow-y: auto; }
.ngm-bar__search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; margin: 0; }
.ngm-bar__search .form-control { width: 100%; padding-left: 42px; }
.ngm-bar__search .ngm-bar__lead { position: absolute; left: 14px; z-index: 1; width: 18px; height: 18px; color: var(--ng-sub); pointer-events: none; }
.ngm-bar__icon { flex: none; width: var(--ng-field-h); padding: 0; }
.ngm-bar__icon .fa { font-size: 18px; }

/* chips on images */
.ngm-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: hsl(0 0% 100% / .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; text-shadow: 0 1px 2px hsl(0 0% 0% / .25);
}
.ngm-chip .ng-ico { width: 14px; height: 14px; }
.ngm-chip--paid { background: hsl(38 92% 48% / .95); text-shadow: none; }
.ngm-chip--live { background: hsl(var(--destructive)); text-shadow: none; letter-spacing: .04em; }
.ngm-chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ngm-pulse 1.4s ease-in-out infinite; }
@keyframes ngm-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ngm-chip--live::before { animation: none; } }
.ngm-chip--dark { background: hsl(0 0% 0% / .55); text-shadow: none; }

/* a blank image (no thumbnail, or a locked video): an accent tile with an icon */
.ngm-blank { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(var(--ng-tile), var(--ng-tile)) var(--ng-card); color: var(--ng-brand); }
.ngm-blank .ng-ico { width: 34px; height: 34px; }

/* the featured carousel: big rounded slides, the next one peeking; dots top-right */
.ngm-feat { position: relative; --ngm-peek: 88%; }
@media (max-width: 575.98px) { .ngm-feat { --ngm-peek: 90%; } }
.ngm-feat__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--ngm-peek); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ngm-feat__track::-webkit-scrollbar { display: none; }
.ngm-feat__track:has(> :only-child) { grid-auto-columns: 100%; }
.ngm-feat__item { min-width: 0; scroll-snap-align: start; }
.ngm-feat__slide {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 22px;
  background: var(--ng-fill); color: #fff; text-decoration: none;
}
@media (min-width: 576px) { .ngm-feat__slide { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .ngm-feat__slide { aspect-ratio: 16 / 7.5; } }
.ngm-feat__slide:hover, .ngm-feat__slide:focus { color: #fff; }
.ngm-feat__slide:focus-visible { outline: 3px solid var(--ng-brand); outline-offset: -3px; }
.ngm-feat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .4s ease; }
.ngm-feat__slide:hover .ngm-feat__img { scale: 1.03; }
.ngm-feat__shade { position: absolute; inset: 0; background: linear-gradient(180deg, hsl(0 0% 0% / .32) 0%, transparent 30%, transparent 40%, hsl(0 0% 0% / .78) 100%); }
.ngm-feat__chips { position: absolute; top: 16px; left: 16px; right: 96px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.ngm-feat__foot { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 768px) { .ngm-feat__chips { top: 20px; left: 22px; } .ngm-feat__foot { left: 24px; right: 24px; bottom: 22px; } }
.ngm-feat__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 34ch;
  font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-shadow: 0 2px 10px hsl(0 0% 0% / .35);
}
@media (min-width: 768px) { .ngm-feat__title { font-size: 30px; } }
.ngm-feat__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ngm-feat__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: hsl(0 0% 100% / .9); text-shadow: 0 1px 3px hsl(0 0% 0% / .35); }
.ngm-feat__meta .ng-ico { width: 17px; height: 17px; }
.ngm-feat__meta i { font-style: normal; opacity: .7; }
/* movies / videos: a round play button beside the title */
.ngm-feat__foot--play { flex-direction: row; align-items: center; gap: 14px; }
.ngm-feat__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ngm-feat__play, .ngm-card__play { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ng-brand); box-shadow: 0 8px 20px -6px hsl(var(--primary) / .7); }
.ngm-feat__play::before, .ngm-card__play::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34%; height: 38%; translate: -38% -50%; background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (min-width: 768px) { .ngm-feat__play { width: 60px; height: 60px; } }
/* movies: the poster beside a blurred copy of itself (576px and up) */
.ngm-feat__poster { display: none; }
@media (min-width: 576px) {
  .ngm-feat__slide--poster .ngm-feat__img { filter: blur(22px) saturate(1.2); scale: 1.2; }
  .ngm-feat__slide--poster:hover .ngm-feat__img { scale: 1.2; }
  .ngm-feat__slide--poster .ngm-feat__shade { background: linear-gradient(90deg, hsl(0 0% 0% / .62) 0%, hsl(0 0% 0% / .25) 60%, hsl(0 0% 0% / .1) 100%), linear-gradient(180deg, transparent 50%, hsl(0 0% 0% / .45) 100%); }
  .ngm-feat__poster {
    position: absolute; z-index: 1; top: 50%; right: 7%; display: block; width: auto; height: 78%; aspect-ratio: 2 / 3; translate: 0 -50%; rotate: 3deg;
    border-radius: 14px; object-fit: cover; box-shadow: 0 18px 40px -12px hsl(0 0% 0% / .6);
  }
  .ngm-feat__slide--poster .ngm-feat__foot { right: 38%; }
}
/* the arrows and the dots */
.ngm-feat .ng-strip__nav--next { right: calc(100% - var(--ngm-peek) - 20px); }
.ngm-feat__dots { position: absolute; top: 18px; right: calc(100% - var(--ngm-peek) + 16px); z-index: 2; display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .ngm-feat__dots { top: 25px; right: calc(100% - var(--ngm-peek) + 22px); } }
.ngm-feat__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: hsl(0 0% 100% / .5); box-shadow: 0 1px 3px hsl(0 0% 0% / .3); transition: width .2s, background .2s; cursor: pointer; }
.ngm-feat__dot.is-active { width: 22px; background: #fff; }
.ngm-feat__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the chip row with the strip's arrows */
.ngm .ng-chiprow, .ngm .ngm-snav { position: relative; } /* offsets for scrolling the active chip into view */
.ngm-chips .ng-strip__nav { width: 34px; height: 34px; }
.ngm-chips .ng-strip__nav--prev { left: 0; }
.ngm-chips .ng-strip__nav--next { right: 0; }
.ngm-chips .ng-strip__nav .ng-ico { width: 18px; height: 18px; }

/* sections: a head and a sideways row (the feed strip) or a grid */
.ngm-sec { min-width: 0; margin: 0; scroll-margin-top: calc(var(--ng-top, 56px) + 20px); }
.ngm-sec .ng-sechead { margin-bottom: 12px; }
.ngm-sec__more { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.ngm-sec__more .ng-ico { width: 16px !important; height: 16px !important; }
.ngm-sec__sub { margin: -4px 2px 12px; font-size: 14px; color: var(--ng-sub); }
.ngm-strip { --ng-pg: 0px; }
.ngm-row.ng-strip__track {
  --ng-strip-gap: var(--ngm-gap); --ngm-k: 2; --ng-strip-n: 2.3;
  grid-auto-columns: calc((100% - var(--ngm-k) * var(--ng-strip-gap)) / var(--ng-strip-n));
  padding: 0; scroll-padding: 0;
}
/* games 16:10 */
.ngm-row.ngm-row--game { --ngm-k: 2; --ng-strip-n: 2.25; }
@media (min-width: 576px) { .ngm-row.ngm-row--game { --ngm-k: 3; --ng-strip-n: 3.25; } }
@media (min-width: 1280px) { .ngm-row.ngm-row--game { --ngm-k: 4; --ng-strip-n: 4.25; } }
/* movie posters 2:3 */
.ngm-row.ngm-row--movie { --ngm-k: 2; --ng-strip-n: 2.7; }
@media (min-width: 576px) { .ngm-row.ngm-row--movie { --ngm-k: 4; --ng-strip-n: 4.3; } }
@media (min-width: 1024px) { .ngm-row.ngm-row--movie { --ngm-k: 5; --ng-strip-n: 5.3; } }
@media (min-width: 1280px) { .ngm-row.ngm-row--movie { --ngm-k: 6; --ng-strip-n: 6.3; } }
.ngm-row--movie .ng-mcard__img { --ng-mcard-ratio: 2 / 3; }
/* videos 16:9 */
.ngm-row.ngm-row--video { --ngm-k: 1; --ng-strip-n: 1.3; }
@media (min-width: 576px) { .ngm-row.ngm-row--video { --ngm-k: 2; --ng-strip-n: 2.3; } }
@media (min-width: 1280px) { .ngm-row.ngm-row--video { --ngm-k: 3; --ng-strip-n: 3.25; } }
.ngm-row--video .ng-mcard__img { --ng-mcard-ratio: 16 / 9; }
.ngm-strip .ng-strip__nav { top: var(--ngm-navy, 34%); }
.ngm-strip:has(.ngm-row--movie) { --ngm-navy: 40%; }
.ngm-strip .ng-strip__nav--prev { left: 6px; }
.ngm-strip .ng-strip__nav--next { right: 6px; }

/* grids */
.ngm-grid { --ng-mcard-min: 150px; margin: 0; padding: 0; list-style: none; }
.ngm-grid > li { min-width: 0; list-style: none; }
@media (min-width: 576px) { .ngm-grid--games { --ng-mcard-min: 180px; } }
.ngm-grid--movies { --ng-mcard-min: 100px; }
.ngm-grid--movies .ng-mcard__img { --ng-mcard-ratio: 2 / 3; }
@media (min-width: 576px) { .ngm-grid--movies { --ng-mcard-min: 140px; } }
.ngm-grid--videos, .ngm-grid--live { --ng-mcard-min: 240px; gap: 20px 16px; }
.ngm-grid--videos .ng-mcard__img, .ngm-grid--live .ng-mcard__img { --ng-mcard-ratio: 16 / 9; }

/* cards (on the kit's .ng-mcard) */
.ngm-card .ng-mcard__img > img { display: block; }
.ngm-card .ng-mcard__img > .ngm-blank { position: absolute; inset: 0; }
.ngm-card:hover .ng-mcard__title { color: var(--ng-brand); }
.ngm-card:focus-visible { outline: 2px solid var(--ng-brand); outline-offset: 3px; border-radius: 14px; }
.ngm-card .ng-mcard__meta { gap: 5px; }
.ngm-ic { display: inline-flex; align-items: center; gap: 4px; }
.ngm-card .fa { font-size: 13px; }
.ngm-card__dur {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 7px;
  background: hsl(0 0% 0% / .62); color: #fff; font-size: 11.5px; font-weight: 700;
}
.ngm-card__dur .ng-ico { width: 13px; height: 13px; }
.ngm-card .ngm-card__play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -50%; opacity: 0; scale: .85; transition: opacity .2s, scale .2s; }
.ngm-card:hover .ngm-card__play, .ngm-card:focus-visible .ngm-card__play { opacity: 1; scale: 1; }
@media (hover: none) { .ngm-card .ngm-card__play { opacity: .92; scale: .8; } }
.ngm-card .ng-mcard__badge.ngm-chip { height: 24px; padding: 0 9px; font-size: 11.5px; background: hsl(0 0% 0% / .5); }
.ngm-card .ng-mcard__badge.ngm-chip--paid { background: hsl(38 92% 48% / .95); }

/* video / live cards: the page or author beside the title */
.ngm-vcard__body { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.ngm-vcard__ava { flex: none; width: 36px; height: 36px; margin-top: 1px; border-radius: 50%; object-fit: cover; background: var(--ng-fill); }
.ngm-vcard__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngm-card .ngm-vcard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 2px; white-space: normal; line-height: 1.3; }
.ngm-vcard__by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ng-ink); }
.ngm-vcard .ng-mcard__meta { flex-wrap: nowrap; min-width: 0; overflow: hidden; white-space: nowrap; }

/* Most Played / Most Viewed: small image cards with the title over them */
.ngm-most .ng-lcard__head { min-height: 48px; padding: 12px 16px; }
.ngm-minis { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
@media (max-width: 1023.98px) {
  .ngm-minis {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .ngm-minis::-webkit-scrollbar { display: none; }
  .ngm-minis > * { scroll-snap-align: start; }
}
.ngm-mini { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 2 / 1; border-radius: 14px; background: var(--ng-fill); color: #fff; text-decoration: none; }
.ngm-mini:hover, .ngm-mini:focus { color: #fff; }
.ngm-mini:focus-visible { outline: 2px solid var(--ng-brand); outline-offset: 2px; }
.ngm-mini > img, .ngm-mini > .ngm-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .3s ease; }
.ngm-mini:hover > img { scale: 1.05; }
.ngm-mini__shade { position: absolute; inset: 0; background: linear-gradient(180deg, hsl(0 0% 0% / .5) 0%, transparent 45%, transparent 55%, hsl(0 0% 0% / .55) 100%); }
.ngm-mini__title {
  position: absolute; top: 10px; left: 12px; right: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 3px hsl(0 0% 0% / .45);
}
.ngm-mini__play { position: absolute; left: 10px; bottom: 9px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(0 0% 100% / .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ngm-mini__play .ng-ico { width: 16px; height: 16px; }
.ngm-mini__chips { position: absolute; right: 9px; bottom: 9px; display: flex; gap: 4px; }
.ngm-mini__chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: hsl(0 0% 0% / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.ngm-mini > .ngm-mini__chip { position: absolute; right: 9px; bottom: 9px; }
.ngm-mini__chip .ng-ico { width: 13px; height: 13px; }
.ngm-mini__chip > i:not(.fa) { font-style: normal; opacity: .75; }
.ngm-mini__chip .fa { font-size: 12px; }

/* games See More adds Sngine's game boxes into the grid: make them look like our cards */
.ngm-grid > li[class*="col-"] { flex: none; width: auto; max-width: none; margin: 0; padding: 0; }
.ngm-grid > li > .ui-box { display: flex; flex-direction: column; gap: 8px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
.ngm-grid > li > .ui-box .img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; width: 100%; height: auto; inset: auto; margin: 0; padding: 0; border: 0; border-radius: 14px; background: var(--ng-fill); box-shadow: none; transform: none; }
.ngm-grid > li > .ui-box .img a, .ngm-grid > li > .ui-box .img img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.ngm-grid > li > .ui-box > .mt10 { margin: 0 !important; }
.ngm-grid > li > .ui-box a.h6, .ngm-grid > li > .ui-box a.h6.text-active { display: block; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; color: var(--ng-ink-strong) !important; text-decoration: none; }
.ngm-grid > li > .ui-box a.h6:hover { color: var(--ng-brand) !important; }
.ngm-grid > li > .ui-box .text-sm { margin: 4px 0 0 !important; font-size: 12.5px; color: var(--ng-sub); }
.ngm-grid > li > .ui-box > .mt10:last-child { display: none; }

/* See More and the pager */
.ngm .see-more, .ngm .alert-post.see-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; margin: 16px 0 0; padding: 0 16px;
  border: 0; border-radius: 10px; background: var(--ng-card); box-shadow: none; color: var(--ng-ink-strong); font-size: 14px; font-weight: 700; cursor: pointer;
}
.ngm .see-more:hover { background: var(--ng-fill); }
.ngm .see-more.done { background: transparent; color: var(--ng-sub); cursor: default; }
.ngm .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.ngm .pagination li { margin: 0; }
.ngm .pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px !important;
  background: var(--ng-card); box-shadow: none; color: var(--ng-ink-strong); font-size: 14px; font-weight: 600; text-decoration: none;
}
.ngm .pagination a.page-link[href]:hover { background: var(--ng-fill); }
.ngm .pagination .active .page-link { background: var(--ng-brand); color: #fff; }
.ngm .pagination .disabled .page-link { padding: 0 6px; background: transparent; color: var(--ng-sub); font-weight: 500; }
@media (max-width: 575.98px) { .ngm .pagination .previous.disabled { display: flex; flex-basis: 100%; justify-content: center; } }

/* search results line (movies) */
.ngm-found { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; border: 0; border-radius: var(--ng-r); background: var(--ng-card); font-size: 14.5px; color: var(--ng-ink); }
.ngm-found b { color: var(--ng-ink-strong); }

/* players: the game and the movie */
.ngm-player { overflow: hidden; margin: 0; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
.ngm-player__head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
@media (min-width: 768px) { .ngm-player__head { padding: 16px 20px; } }
.ngm-player__thumb { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--ng-fill); }
.ngm-player__text { flex: 1; min-width: 0; }
.ngm-player__title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ngm-player__title { font-size: 20px; } }
.ngm-player__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ngm-player__acts { display: flex; flex: none; gap: 8px; }
.ngm-player__acts .fa { font-size: 17px; }
@media (max-width: 575.98px) { .ngm-player__acts .ng-pbtn { width: 38px; padding: 0; } }
.ngm-player__stage { background: #000; }
.ngm-player__stage iframe { border: 0; }
.ngm-player__about { padding: 14px 20px 18px; border-top: 1px solid var(--ng-line); font-size: 14.5px; line-height: 1.55; color: var(--ng-ink); }
.ngm-player__media { background: #000; }
.ngm-player__media video { display: block; width: 100%; }
.ngm-player__media .plyr, .ngm-player__media .youtube-player { border-radius: 0; }

/* the paid gate (movies) */
.ngm-gate { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; background: linear-gradient(180deg, hsl(38 90% 55% / .14), transparent 80%), var(--ng-card); color: var(--ng-sub); }
.ngm-gate .ng-lrow__icon { width: 64px; height: 64px; border-radius: 20px; }
.ngm-gate .ng-lrow__icon .ng-ico { width: 30px; height: 30px; }
.ngm-gate b { font-size: 17px; color: var(--ng-ink-strong); }
.ngm-gate .ng-pbtn { height: auto; min-height: 38px; padding: 8px 16px; white-space: normal; }
.ngm-gate .ng-pbtn .fa { font-size: 17px; }

/* movie details */
.ngm-info { overflow: hidden; margin: 0; padding: 18px 16px 20px; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
@media (min-width: 768px) { .ngm-info { padding: 22px 24px 24px; } }
.ngm-info__top { display: flex; align-items: flex-start; gap: 16px; }
.ngm-info__poster { flex: none; width: 92px; aspect-ratio: 2 / 3; border-radius: 12px; object-fit: cover; background: var(--ng-fill); }
@media (min-width: 768px) { .ngm-info__poster { width: 120px; } }
.ngm-info__head { min-width: 0; }
.ngm-info__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ngm-info__title { font-size: 28px; } }
.ngm-info__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ngm-info__text { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ng-ink); }
.ngm-info .ng-kv { margin-top: 16px; }
.ngm-info .ng-kv > div { align-items: flex-start; }
.ngm-info .ng-kv > div b { overflow-wrap: anywhere; text-align: right; }
.ngm-info .ng-kv a { color: var(--ng-brand); }
.ngm-info__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ng-ink-strong); }

/* live: the studio (Sngine's live.js drives the #js_live-* elements) */
.ngm-studio { overflow: hidden; margin: 0; padding-bottom: 16px; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
.ngm-studio__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 14px 16px; }
@media (min-width: 768px) { .ngm-studio__head { padding: 16px 20px; } }
.ngm-studio__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; color: var(--ng-ink-strong); }
.ngm-studio__title .ng-ico { width: 20px; height: 20px; color: hsl(var(--destructive)); }
.ngm-studio__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ngm-studio__opts > span[style*="inline"] { display: inline-flex !important; }
.ngm-studio__opts > span { align-items: center; gap: 8px; }
.ngm-studio__opts .btn-check + label {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--ng-card); box-shadow: inset 0 0 0 1px var(--ng-line); color: var(--ng-ink-strong); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ngm-studio__opts .btn-check + label:hover { background: var(--ng-fill); }
.ngm-studio__opts .btn-check:checked + label { background: hsl(var(--primary) / .12); box-shadow: inset 0 0 0 1px hsl(var(--primary) / .5); color: var(--ng-brand); }
.ngm-studio__opts .btn-check:disabled + label { opacity: .5; cursor: not-allowed; }
.ngm-studio__opts .btn-check:focus-visible + label { outline: 2px solid var(--ng-brand); outline-offset: 2px; }
.ngm-studio__price.form-control { width: 110px; min-height: 38px; height: 38px; }
.ngm .ngm-studio .live-stream-video { position: relative; height: auto; aspect-ratio: 16 / 9; min-height: 280px; max-height: 70vh; margin: 0 16px; overflow: hidden; border-radius: 16px; background: #000; }
@media (min-width: 768px) { .ngm .ngm-studio .live-stream-video { margin: 0 20px; } }
.ngm .ngm-studio .live-video-player { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: #000; }
.ngm .ngm-studio .live-video-player div, .ngm .ngm-studio .live-video-player video { border-radius: 0; }
.ngm .ngm-studio .live-video-player video { width: 100%; height: 100% !important; object-fit: cover; }
.ngm .ngm-studio .live-counter { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.ngm .ngm-studio .live-counter .status, .ngm .ngm-studio .live-counter .number, .ngm .ngm-studio .live-recording > span {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; margin: 0; padding: 0 10px; border-radius: 999px;
  background: hsl(var(--destructive)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.ngm .ngm-studio .live-counter .status.offline, .ngm .ngm-studio .live-counter .number { background: hsl(0 0% 0% / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ngm .ngm-studio .live-counter .number { letter-spacing: 0; }
.ngm .ngm-studio .live-counter .fa { font-size: 13px; }
.ngm .ngm-studio .live-recording { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 0; background: none; }
.ngm .ngm-studio .live-recording > span { background: hsl(0 0% 0% / .55); color: hsl(var(--destructive)); }
.ngm .ngm-studio .live-recording > span span { color: #fff; }
.ngm .ngm-studio .live-status {
  position: absolute; left: 50%; bottom: 18px; z-index: 4; max-width: calc(100% - 32px); padding: 10px 18px; transform: translateX(-50%); border-radius: 14px;
  background: hsl(0 0% 0% / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
}
.ngm .ngm-studio .live-status.info { background: hsl(var(--primary) / .92); }
.ngm .ngm-studio .live-status.success { background: hsl(var(--primary)); }
.ngm .ngm-studio .live-status.error { background: hsl(var(--destructive)); }
.ngm .ngm-studio .live-status .ng-ico { display: block; width: 28px; height: 28px; margin: 0 auto 6px; }
.ngm .ngm-studio .live-comments { border-radius: 0; }
.ngm .ngm-studio .live-stream-buttons { margin: 0; padding: 14px 16px 0; text-align: center; }
.ngm .ngm-studio .live-stream-buttons > * { margin: 0 4px; }
.ngm-ctl.btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px;
  background: var(--ng-fill); box-shadow: none; color: var(--ng-ink-strong);
}
.ngm-ctl.btn.d-md-inline { display: none !important; }
@media (min-width: 768px) { .ngm-ctl.btn.d-md-inline { display: inline-grid !important; } }
.ngm-ctl.btn:hover { background: var(--ng-fill-2); color: var(--ng-ink-strong); }
.ngm-ctl.btn.btn-danger { background: hsl(var(--destructive)); color: #fff; }
.ngm-ctl.btn:disabled { opacity: .45; }
.ngm-ctl .fa { font-size: 18px; }
/* the hero's Go Live / End: hidden until live.js shows them (with an inline display) */
.ngm-live-act.x-hidden { display: none; }
.ngm--live .ng-hero__acts:not(:has(> [style*="inline"], > [style*="block"])) { margin-top: 0; }
.ngm-live-act[style*="inline"], .ngm-live-act[style*="block"] { display: inline-flex !important; }
.ngm-live-act .fa { font-size: 16px; }
.ng-pbtn.ngm-live-end { background: hsl(var(--destructive)); color: #fff; }
.ng-pbtn.ngm-live-end:hover { background: hsl(var(--destructive)); color: #fff; filter: brightness(1.06); }

/* live: who is live now */
.ngm-livecard .ngm-live-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.ngm-livecard .ngm-live-tags .ngm-chip { height: 24px; padding: 0 9px; font-size: 11.5px; }
.ngm-livecard .ngm-live-tags .fa { font-size: 12px; }
