/* niguro [Loop audio] (owner, 2026-11-17): every Loop's sound in the viewer (the pill over the caption, the disc at the
   rail's foot) and its page, /audio/<key> (audio.tpl): the cover with its play button, the title, who made it, how
   many Loops use it, Use audio / Save audio, then those Loops two across, tall (9:16). Loaded on the Loops viewer and
   the audio page (_head.tpl). The pill and disc also borrow music.css when Post music is on; these rules stand alone. */

/* ---- the viewer: the pill and the disc ---- */
.ng-lapill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 70%; margin: 8px 0 0; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: hsl(0 0% 0% / .35); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.ng-lapill:hover { color: #fff; background: hsl(0 0% 0% / .5); }
.ng-lapill .ng-mchip__ic { flex: none; display: grid; place-items: center; width: 12px; height: 12px; }
.ng-lapill .ng-mchip__ic > * { grid-area: 1 / 1; }
.ng-lapill .ng-mchip__ic svg { width: 12px; height: 12px; }
.ng-lapill .ng-mmarq { flex: 0 1 auto; min-width: 0; display: flex; overflow: hidden; white-space: nowrap; }
.ng-lapill .ng-mmarq > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ng-lapill .ng-mmarq > span + span { display: none; }
.ng-ladisc {
  position: relative; display: block; width: 38px; height: 38px; margin-top: 6px; padding: 7px; border-radius: 50%;
  background: radial-gradient(circle, #2b2b2b 0 30%, #111 31% 34%, #262626 35% 60%, #111 61% 64%, #2b2b2b 65%);
  box-shadow: 0 0 0 1px hsl(0 0% 100% / .18), 0 2px 6px hsl(0 0% 0% / .4);
}
.ng-ladisc img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ng-ladisc::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #111; }
.ng-ladisc:focus-visible { outline: 2px solid var(--ng-brand); outline-offset: 2px; }
.ng-la-on .ng-ladisc { animation: ng-laspin 4s linear infinite; }
@keyframes ng-laspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ng-la-on .ng-ladisc { animation: none; } }

/* ---- the audio page ---- */
.ng-aud { display: grid; gap: 16px; }
.ng-aud__head { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; background: var(--ng-card); }
.ng-aud__cover { position: relative; flex: none; width: 120px; height: 120px; border-radius: 18px; overflow: hidden; background: linear-gradient(140deg, hsl(146 62% 26%), hsl(146 70% 40%)); }
.ng-aud__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ng-aud__cover.is-original { border-radius: 50%; }
.ng-aud__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: hsl(0 0% 0% / .25); color: #fff; cursor: pointer;
}
.ng-aud__play .ng-ico { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px hsl(0 0% 0% / .4)); }
.ng-aud__play .is-pause { display: none; }
.ng-aud__play.is-playing .is-pause { display: block; }
.ng-aud__play.is-playing .is-play { display: none; }
.ng-aud__id { min-width: 0; display: grid; gap: 4px; }
.ng-aud__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--ng-ink-strong); overflow-wrap: anywhere; }
.ng-aud__by { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ng-sub); }
.ng-aud__by img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ng-aud__by a { color: inherit; }
.ng-aud__by a:hover { color: var(--ng-brand); }
.ng-aud__n { font-size: 14px; font-weight: 700; color: var(--ng-sub); }
.ng-aud__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ng-aud__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--ng-fill); color: var(--ng-ink-strong); font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none;
}
.ng-aud__btn .ng-ico { width: 18px; height: 18px; }
.ng-aud__btn--use { background: var(--ng-brand); color: #fff; }
.ng-aud__btn--use:hover { color: #fff; filter: brightness(1.06); }
.ng-aud__btn.is-on { color: var(--ng-brand); }
.ng-aud__btn.is-on .ng-ico { fill: currentColor; }
@media (max-width: 575.98px) {
  .ng-aud__head { flex-direction: column; text-align: center; }
  .ng-aud__by, .ng-aud__acts { justify-content: center; }
  .ng-aud__title { font-size: 21px; }
}
/* the Loops that use it: two across, 9:16 */
.ng-aud__h2 { margin: 4px 4px 0; font-size: 17px; font-weight: 800; color: var(--ng-ink-strong); }
.ng-lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .ng-lgrid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ng-lgrid__card { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #111; color: #fff; }
.ng-lgrid__card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ng-lgrid__card:hover img { transform: scale(1.03); }
.ng-lgrid__card::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, hsl(0 0% 0% / .6)); pointer-events: none; }
.ng-lgrid__meta { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; }
.ng-lgrid__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-lgrid__meta .ng-ico { width: 15px; height: 15px; }
.ng-lgrid__tag { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: hsl(0 0% 0% / .5); font-size: 11.5px; font-weight: 700; }
.ng-lgrid__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: hsl(0 0% 100% / .6); }
.ng-lgrid__noimg .ng-ico { width: 36px; height: 36px; }
.ng-aud__empty { padding: 28px 16px; border-radius: 20px; background: var(--ng-card); text-align: center; color: var(--ng-sub); font-weight: 600; }
.ng-aud__more { display: flex; justify-content: center; margin-top: 4px; }

/* niguro [Loop editor] (owner, 2026-11-17): the ten filters (the same list as includes/niguro/loops/audio.php NG_LE_FILTERS and
   niguro-loop-edit.js), on the Loop's video and in the upload's preview and chips */
[data-ng-fx="vivid"] video, .ng-fx--vivid { filter: saturate(1.45) contrast(1.08); }
[data-ng-fx="warm"] video, .ng-fx--warm { filter: sepia(.22) saturate(1.3) hue-rotate(-8deg) brightness(1.03); }
[data-ng-fx="cool"] video, .ng-fx--cool { filter: saturate(1.08) hue-rotate(14deg) brightness(1.03) contrast(1.02); }
[data-ng-fx="mono"] video, .ng-fx--mono { filter: grayscale(1) contrast(1.12); }
[data-ng-fx="fade"] video, .ng-fx--fade { filter: contrast(.86) brightness(1.1) saturate(.78); }
[data-ng-fx="drama"] video, .ng-fx--drama { filter: contrast(1.35) saturate(1.15) brightness(.9); }
[data-ng-fx="retro"] video, .ng-fx--retro { filter: sepia(.45) contrast(1.06) saturate(.92); }
[data-ng-fx="golden"] video, .ng-fx--golden { filter: sepia(.3) saturate(1.6) brightness(1.06) hue-rotate(-12deg); }
[data-ng-fx="dusk"] video, .ng-fx--dusk { filter: brightness(.88) contrast(1.18) saturate(.85) hue-rotate(-18deg); }

/* niguro [Explore] (owner, 2026-11-17): the page head, the creators' cards and the rank badges */
.ng-ex__head { padding: 18px 18px 6px; border-radius: 24px; background: var(--ng-card); }
.ng-ex__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; font-weight: 800; color: var(--ng-ink-strong); }
.ng-ex__title .ng-ico { width: 26px; height: 26px; color: var(--ng-brand); }
.ng-ex__sub { margin: 4px 0 12px; color: var(--ng-sub); font-weight: 600; }
.ng-ex__phone { display: none; }
@media (max-width: 1023.98px) { .ng-ex__phone { display: grid; gap: 12px; } }
.ng-cr { padding: 14px 12px 8px; border-radius: 20px; }
.ng-ex__phone .ng-cr { margin: 0; }
.ng-cr + .ng-cr { margin-top: 12px; }
.ng-cr__head { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; font-size: 15px; color: var(--ng-ink-strong); }
.ng-cr__head .ng-ico { width: 20px; height: 20px; color: hsl(42 95% 45%); }
.ng-cr__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.ng-cr__row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 14px; color: inherit; text-decoration: none; }
.ng-cr__row:hover { background: var(--ng-fill); color: inherit; }
.ng-cr__ava { position: relative; flex: none; width: 40px; height: 40px; }
.ng-cr__ava > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ng-cr__ava .ng-rank { position: absolute; right: -4px; bottom: -4px; }
.ng-cr__who { min-width: 0; flex: 1 1 auto; display: grid; line-height: 1.25; }
.ng-cr__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ng-ink-strong); }
.ng-cr__who small { color: var(--ng-sub); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-cr__n { flex: none; font-weight: 800; font-size: 14px; color: var(--ng-sub); }
.ng-cr__up { flex: none; color: hsl(18 90% 52%); }
.ng-cr__up .ng-ico { width: 18px; height: 18px; }
/* the rank badge: #1 gold, #2 silver, #3 bronze (a crown), #4-10 a number */
.ng-rank { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.ng-rank > svg, .ng-rank > b { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ng-card); }
.ng-rank > svg { fill: #fff; }
.ng-rank > b { padding: 0; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--ng-brand); }
.ng-rank--gold > svg { background: linear-gradient(140deg, #ffd54a, #e6a700); }
.ng-rank--silver > svg { background: linear-gradient(140deg, #e6ebf0, #9aa7b4); }
.ng-rank--bronze > svg { background: linear-gradient(140deg, #f0b27a, #b8692f); }
.ng-rank--sm > svg, .ng-rank--sm > b { width: 18px; height: 18px; padding: 3px; font-size: 10px; }
.ng-rank__t { font-size: 13px; font-weight: 700; color: var(--ng-ink-strong); }
/* niguro [Creator ranks] (owner, 2026-11-17): the profile's pill */
.ng-rankpill { display: inline-flex; align-items: center; padding: 3px 12px 3px 4px; border-radius: 999px; background: var(--ng-fill); text-decoration: none; vertical-align: middle; }
.ng-rankpill:hover { filter: brightness(1.05); }
.ng-rankpill .ng-rank > svg, .ng-rankpill .ng-rank > b { box-shadow: none; }
/* niguro [Hashtag Loops] (owner, 2026-11-17): the hashtag page's Posts | Loops */
.ng-xtag__tabs { display: flex; gap: 8px; margin: 12px 0; }
.ng-xtag__tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ng-fill); color: var(--ng-ink-strong); font-weight: 700; font-size: 14px; text-decoration: none; }
.ng-xtag__tab .ng-ico { width: 16px; height: 16px; }
.ng-xtag__tab.is-on { background: var(--ng-brand); color: #fff; }
.ng-xtag__loops { margin-top: 4px; }

/* niguro [Explore full width] (owner, 2026-11-18): like Instagram's Explore, no side columns: one grid up to 1120px, four across from 768px
   (three on phones), 4px gaps (2px on phones), small corners; the creators as a strip of round photos */
.ng-frame--ex { max-width: 1120px; margin: 0 auto; padding: 16px 16px 32px; }
.ng-frame--ex .ng-ex__head { padding: 4px 0 12px; border-radius: 0; background: none; }
.ng-frame--ex .ng-ex__title { font-size: 24px; }
.ng-lgrid--ex { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 768px) { .ng-lgrid--ex { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } }
.ng-lgrid--ex .ng-lgrid__card { aspect-ratio: 3 / 4; border-radius: 4px; }
@media (max-width: 767.98px) {
  .ng-frame--ex { padding: 12px 0 24px; }
  .ng-frame--ex .ng-ex__head, .ng-frame--ex .ng-exc, .ng-frame--ex .ng-aud__more, .ng-frame--ex .ng-aud__empty { margin-left: 12px; margin-right: 12px; }
  .ng-lgrid--ex .ng-lgrid__card { border-radius: 0; }
  .ng-lgrid--ex .ng-lgrid__meta { left: 6px; right: 6px; bottom: 5px; font-size: 12px; }
  .ng-lgrid--ex .ng-lgrid__meta span + span { display: none; }
}
.ng-exc { display: flex; gap: 14px; margin: 0 0 16px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.ng-exc::-webkit-scrollbar { display: none; }
.ng-exc__item { flex: none; width: 72px; display: grid; justify-items: center; gap: 6px; color: var(--ng-ink-strong); text-decoration: none; }
.ng-exc__item:hover { color: var(--ng-ink-strong); }
.ng-exc__ava { position: relative; width: 64px; height: 64px; padding: 3px; border-radius: 50%; background: linear-gradient(140deg, #ffd54a, hsl(18 90% 52%)); }
.ng-exc__item--up .ng-exc__ava { background: var(--ng-fill); }
.ng-exc__ava > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ng-card); }
.ng-exc__ava .ng-rank { position: absolute; right: -2px; bottom: -2px; }
.ng-exc__up { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: hsl(18 90% 52%); color: #fff; box-shadow: 0 0 0 2px var(--ng-card); }
.ng-exc__up .ng-ico { width: 12px; height: 12px; }
.ng-exc__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }

/* niguro [Leaderboard] (owner, 2026-11-18): Explore's Leaderboard button, and the leaderboard page: full width up to 960px, the podium
   (#2 | #1 | #3, big photos on gold / silver / bronze steps), ranks 4-10 as rows, Rising creators as cards */
.ng-frame--ex .ng-ex__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ng-ex__lb { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ng-fill); color: var(--ng-ink-strong); font-weight: 700; font-size: 14px; text-decoration: none; }
.ng-ex__lb:hover { color: var(--ng-ink-strong); filter: brightness(1.06); }
.ng-ex__lb .ng-ico { width: 18px; height: 18px; color: hsl(42 95% 45%); }
.ng-frame--lb { max-width: 960px; margin: 0 auto; padding: 16px 16px 32px; }
.ng-lb__head { text-align: center; padding: 8px 0 4px; }
.ng-lb__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 28px; font-weight: 800; color: var(--ng-ink-strong); }
.ng-lb__title .ng-ico { width: 30px; height: 30px; color: hsl(42 95% 45%); }
.ng-lb__sub { margin: 6px 0 0; color: var(--ng-sub); font-weight: 600; }
.ng-lb__head .ng-xtag__tabs { justify-content: center; margin: 16px 0 8px; }
.ng-lb__empty { display: grid; justify-items: center; gap: 6px; margin: 24px 0; padding: 40px 20px; border-radius: 24px; text-align: center; color: var(--ng-sub); }
.ng-lb__empty .ng-ico { width: 44px; height: 44px; color: hsl(42 95% 45%); }
.ng-lb__empty b { font-size: 17px; color: var(--ng-ink-strong); }
/* the podium */
.ng-lb__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 24px 0 20px; padding: 0; list-style: none; }
.ng-lb__step { display: grid; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.ng-lb__pava { position: relative; display: block; width: 96px; height: 96px; margin-bottom: 8px; padding: 4px; border-radius: 50%; background: linear-gradient(140deg, #e6ebf0, #9aa7b4); }
.ng-lb__step--1 .ng-lb__pava { width: 128px; height: 128px; background: linear-gradient(140deg, #ffd54a, #e6a700); box-shadow: 0 10px 40px hsl(45 100% 50% / .3); }
.ng-lb__step--3 .ng-lb__pava { background: linear-gradient(140deg, #f0b27a, #b8692f); }
.ng-lb__pava > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ng-card); }
.ng-lb__pava .ng-rank { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); }
.ng-lb__pava .ng-rank > svg, .ng-lb__pava .ng-rank > b { width: 30px; height: 30px; padding: 6px; box-shadow: 0 0 0 3px var(--ng-bg, var(--ng-card)); }
.ng-lb__pname { max-width: 100%; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 800; color: var(--ng-ink-strong); text-decoration: none; }
.ng-lb__step--1 .ng-lb__pname { font-size: 18px; }
.ng-lb__puser { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ng-sub); }
.ng-lb__pscore { margin: 4px 0 10px; font-size: 15px; font-weight: 800; color: var(--ng-brand); }
.ng-lb__pscore small { font-size: 12px; font-weight: 700; color: var(--ng-sub); }
.ng-lb__block { display: grid; place-items: center; width: 100%; height: 70px; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, hsl(210 15% 70% / .35), hsl(210 15% 70% / .08)); }
.ng-lb__step--1 .ng-lb__block { height: 104px; background: linear-gradient(180deg, hsl(45 100% 55% / .45), hsl(45 100% 55% / .08)); }
.ng-lb__step--3 .ng-lb__block { height: 50px; background: linear-gradient(180deg, hsl(25 70% 55% / .4), hsl(25 70% 55% / .08)); }
.ng-lb__block b { font-size: 30px; font-weight: 900; color: var(--ng-ink-strong); opacity: .75; }
/* ranks 4-10 */
.ng-lb__list { margin: 0 0 24px; padding: 8px; border-radius: 24px; list-style: none; display: grid; gap: 2px; }
.ng-lb__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; color: inherit; text-decoration: none; }
.ng-lb__row:hover { background: var(--ng-fill); color: inherit; }
.ng-lb__n { flex: none; width: 28px; text-align: center; font-size: 17px; font-weight: 900; color: var(--ng-sub); }
.ng-lb__ava { flex: none; width: 52px; height: 52px; }
.ng-lb__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ng-lb__who { min-width: 0; flex: 1 1 auto; display: grid; line-height: 1.3; }
.ng-lb__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ng-ink-strong); }
.ng-lb__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ng-sub); }
.ng-lb__stats { display: flex; gap: 12px; flex: none; color: var(--ng-sub); font-size: 13px; font-weight: 700; }
.ng-lb__stats span { display: inline-flex; align-items: center; gap: 4px; }
.ng-lb__stats .ng-ico { width: 15px; height: 15px; }
.ng-lb__score { flex: none; min-width: 64px; text-align: right; font-size: 16px; font-weight: 800; color: var(--ng-brand); }
@media (max-width: 639.98px) { .ng-lb__stats { display: none; } }
/* rising */
.ng-lb__h2 { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 20px; font-weight: 800; color: var(--ng-ink-strong); }
.ng-lb__h2 .ng-ico { width: 22px; height: 22px; color: hsl(18 90% 52%); }
.ng-lb__rising { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.ng-lb__rcard { display: grid; justify-items: center; gap: 2px; margin: 0; padding: 18px 12px; border-radius: 20px; text-align: center; color: inherit; text-decoration: none; }
.ng-lb__rcard:hover { color: inherit; filter: brightness(1.04); }
.ng-lb__rava { position: relative; width: 76px; height: 76px; margin-bottom: 8px; }
.ng-lb__rava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ng-lb__rava .ng-exc__up { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; }
.ng-lb__rcard b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ng-ink-strong); }
.ng-lb__rcard small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ng-sub); }
.ng-lb__rscore { margin-top: 4px; font-size: 13px; font-weight: 800; color: hsl(18 90% 52%); }
.ng-lb__how { margin: 8px auto 0; max-width: 620px; text-align: center; font-size: 13px; color: var(--ng-sub); }
@media (max-width: 479.98px) {
  .ng-lb__podium { gap: 6px; }
  .ng-lb__pava { width: 72px; height: 72px; }
  .ng-lb__step--1 .ng-lb__pava { width: 96px; height: 96px; }
  .ng-lb__pname { font-size: 14px; }
  .ng-lb__step--1 .ng-lb__pname { font-size: 15px; }
}

/* niguro [Explore preview] (owner, 2026-11-18): the silent preview over the cover; Explore's head is only the Leaderboard pill (on the right) */
.ng-lgrid__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ng-lgrid__card.is-prev .ng-lgrid__vid { opacity: 1; }
.ng-lgrid__card.is-prev img { transform: none; }
.ng-frame--ex .ng-ex__head { justify-content: flex-end; padding: 0 0 12px; }
/* niguro [Leaderboard] (owner, 2026-11-18): each step keeps its place (#1 in the middle) even with fewer than 3 */
.ng-lb__step--2 { grid-column: 1; grid-row: 1; }
.ng-lb__step--1 { grid-column: 2; grid-row: 1; }
.ng-lb__step--3 { grid-column: 3; grid-row: 1; }

/* niguro [Explore head] (owner, 2026-11-18) */
.ng-exh { display: grid; justify-items: center; gap: 4px; margin: 8px 0 20px; text-align: center; }
.ng-exh__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: linear-gradient(140deg, var(--ng-brand), hsl(170 70% 38%)); color: #fff; box-shadow: 0 8px 24px hsl(150 70% 30% / .25); }
.ng-exh__ico .ng-ico { width: 26px; height: 26px; }
.ng-exh__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--ng-ink-strong); }
.ng-exh__sub { margin: 0; font-size: 15px; font-weight: 600; color: var(--ng-sub); }
@media (max-width: 767.98px) { .ng-exh { margin: 4px 12px 14px; } .ng-exh__title { font-size: 24px; } .ng-exh__ico { width: 44px; height: 44px; } }

/* niguro [Explore photos with sound] (owner, 2026-11-18): the song on a photo card (top, a frosted pill; its note bounces while the song plays) */
.ng-lgrid__song { position: absolute; z-index: 1; top: 8px; left: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: max-content; padding: 4px 10px 4px 8px; border-radius: 999px; background: hsl(0 0% 0% / .45); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; }
.ng-lgrid__song span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-lgrid__song .ng-ico { flex: none; width: 14px; height: 14px; }
.ng-lgrid__card.is-song .ng-lgrid__song .ng-ico { animation: ng-exh-bob .6s ease-in-out infinite alternate; }
@keyframes ng-exh-bob { to { transform: translateY(-2px) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .ng-lgrid__card.is-song .ng-lgrid__song .ng-ico { animation: none; } }

/* niguro [Explore hero] (owner, 2026-11-18): Explore's hero like Wallet's (explore.tpl): the sticker, the title with the
   squiggle, the line and the drawing on the right; the grid sits a section's gap below it. Phones: the tile, title and
   line (no drawing), the grid edge to edge. */
.ng-exwrap .ng-ex { margin-top: 16px; }
body.ng-genz .ng-hubwrap > .ng-hero.gz-phead.ng-exhero:has(.ng-exhero__art) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tile psst art" "tile title art" "tile sub art"; row-gap: 2px; }
.ng-exhero__psst { grid-area: psst; justify-self: start; align-self: end; margin-bottom: 4px; }
body.ng-genz .ng-exhero:has(.ng-exhero__art) .ng-hero__title {
  justify-self: start; padding-bottom: 14px; font-size: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14'%3E%3Cpath d='M3 9c12-7 22-7 32 0s22 7 32 0 22-7 32 0 22 7 32 0 18-6 26-2' fill='none' stroke='%2301983B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 2px 100% / 120px 11px;
}
body.ng-genz .ng-exhero:has(.ng-exhero__art) .ng-hero__sub { font-size: 16px; }
.ng-exhero__art { grid-area: art; display: block; width: 320px; height: auto; overflow: visible; }
.ng-exhero__art .is-shade { fill: hsl(150 30% 20% / .1); }
.ng-exhero__art .is-photo { fill: #fff; stroke: hsl(150 20% 85%); stroke-width: 2; }
.ng-exhero__art .is-photo-in { fill: hsl(200 85% 86%); }
.ng-exhero__art .is-sun { fill: hsl(45 100% 60%); }
.ng-exhero__art .is-hill { fill: hsl(143 55% 48%); }
.ng-exhero__art .is-photo-g { animation: ng-exh-sway 4s ease-in-out infinite; transform-origin: 83px 140px; }
.ng-exhero__art .is-wave { fill: none; stroke: hsl(143 60% 45%); stroke-width: 3.5; stroke-linecap: round; animation: ng-exh-wave 1.6s ease-in-out infinite; }
.ng-exhero__art .is-wave--b { animation-delay: -.8s; }
.ng-exhero__art .is-phone { fill: hsl(150 30% 16%); }
.ng-exhero__art .is-screen { fill: hsl(160 70% 42%); }
.ng-exhero__art .is-play { fill: #fff; animation: ng-exh-pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ng-exhero__art .is-tri { fill: hsl(160 70% 36%); }
.ng-exhero__art .is-bar { fill: hsl(0 0% 100% / .4); }
.ng-exhero__art .is-bar-on { fill: #fff; animation: ng-exh-prog 3s linear infinite; }
.ng-exhero__art .is-note { fill: none; stroke: hsl(268 70% 58%); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; animation: ng-studio-float 2.6s ease-in-out infinite; }
.ng-exhero__art .is-note-h { fill: hsl(268 70% 58%); animation: ng-studio-float 2.6s ease-in-out infinite; }
.ng-exhero__art .is-note--b { animation-delay: -1.3s; stroke: hsl(330 80% 60%); }
.ng-exhero__art .is-note-h.is-note--b { fill: hsl(330 80% 60%); }
.ng-exhero__art .is-heart { fill: hsl(350 85% 62%); animation: ng-studio-float 2.2s ease-in-out infinite; }
.ng-exhero__art .is-heart--b { fill: hsl(350 90% 72%); animation-delay: -1.1s; }
.ng-exhero__art .is-spark { fill: hsl(45 100% 58%); }
.ng-exhero__art .is-spark--b { fill: hsl(214 90% 66%); }
body.night-mode .ng-exhero__art .is-shade { fill: rgb(0 0 0 / .35); }
body.night-mode .ng-exhero__art .is-photo { fill: hsl(150 15% 90%); stroke: none; }
body.night-mode .ng-exhero__art .is-phone { fill: hsl(150 20% 4%); stroke: hsl(150 15% 30%); stroke-width: 2; }
@keyframes ng-exh-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes ng-exh-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ng-exh-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ng-exh-prog { from { width: 0; } to { width: 44px; } }
@media (prefers-reduced-motion: reduce) { .ng-exhero__art * { animation: none !important; } }
/* the classic look and narrower screens: no drawing or sticker */
body:not(.ng-genz) .ng-exhero__art, body:not(.ng-genz) .ng-exhero__psst { display: none; }
@media (max-width: 1023.98px) { .ng-exhero__art { width: 240px; } }
@media (max-width: 767.98px) {
  .ng-exhero__art, .ng-exhero__psst { display: none; }
  body.ng-genz .ng-hubwrap > .ng-hero.gz-phead.ng-exhero:has(.ng-exhero__art) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tile title" "tile sub"; }
  body.ng-genz .ng-exhero:has(.ng-exhero__art) .ng-hero__title { font-size: 26px; padding-bottom: 10px; background-size: 90px 9px; }
  body.ng-genz .ng-exhero:has(.ng-exhero__art) .ng-hero__sub { font-size: 14px; }
  .ng-exwrap .ng-lgrid--ex { margin-left: calc(var(--bs-gutter-x, 24px) * -.5); margin-right: calc(var(--bs-gutter-x, 24px) * -.5); }
}

/* niguro [Leaderboard hero] (owner, 2026-11-18): the podium drawing; the tabs a section's gap under the hero */
.ng-lb__head--tabs { padding: 16px 0 0; }
.ng-lb__head--tabs .ng-xtag__tabs { margin: 0; }
.ng-lbart .is-step { fill: hsl(210 15% 80%); }
.ng-lbart .is-step--1 { fill: hsl(45 95% 58%); }
.ng-lbart .is-step--3 { fill: hsl(25 70% 62%); }
.ng-lbart .is-num { font: 800 22px/1 var(--ng-font-head, sans-serif); fill: #fff; text-anchor: middle; }
.ng-lbart .is-cup, .ng-lbart .is-cup-base { fill: hsl(45 100% 55%); stroke: hsl(36 90% 40%); stroke-width: 2.5; }
.ng-lbart .is-cup-ear { fill: none; stroke: hsl(36 90% 40%); stroke-width: 3; stroke-linecap: round; }
.ng-lbart .is-cup-star { fill: #fff; }
.ng-lbart .is-cup-g { animation: ng-studio-float 2.6s ease-in-out infinite; }
.ng-lbart .is-medal--s { fill: hsl(210 15% 88%); stroke: hsl(210 10% 60%); stroke-width: 2.5; }
.ng-lbart .is-medal--b { fill: hsl(25 70% 66%); stroke: hsl(25 60% 42%); stroke-width: 2.5; }
.ng-lbart .is-ribbon { fill: none; stroke: hsl(214 80% 60%); stroke-width: 3.5; stroke-linejoin: round; }
.ng-lbart .is-conf { fill: hsl(330 80% 62%); animation: ng-exh-conf 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ng-lbart .is-conf--b { fill: hsl(143 60% 46%); animation-delay: -.9s; }
.ng-lbart .is-conf--c { fill: hsl(214 85% 62%); animation-delay: -1.8s; }
.ng-lbart .is-conf--d { fill: hsl(268 70% 62%); animation-delay: -.4s; }
@keyframes ng-exh-conf { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(6px) rotate(40deg); } }
body.night-mode .ng-lbart .is-step { fill: hsl(210 10% 40%); }
body.night-mode .ng-lbart .is-step--1 { fill: hsl(45 80% 45%); }
body.night-mode .ng-lbart .is-step--3 { fill: hsl(25 55% 45%); }
.ng-lbwrap .ng-lb { max-width: 960px; margin: 0 auto; }

/* niguro [Explore chips] (owner, 2026-11-18): the chips row between the hero and the grid (sideways on phones) */
.ng-exchips { display: flex; gap: 8px; margin: 0 0 12px; padding: 2px 0 4px; overflow-x: auto; scrollbar-width: none; }
.ng-exchips::-webkit-scrollbar { display: none; }
.ng-exchip { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ng-fill); color: var(--ng-ink-strong); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ng-exchip:hover { color: var(--ng-ink-strong); filter: brightness(.97); }
.ng-exchip.is-on { background: var(--ng-brand); color: #fff; }
.ng-lgrid.is-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }
@media (max-width: 767.98px) { .ng-exwrap .ng-exchips { margin-left: -4px; margin-right: -4px; } }
/* niguro [Explore hero] (owner, 2026-11-18): phones: no sticker (hover means nothing there) and no drawing, so the line uses the width */
@media (max-width: 767.98px) { body .ng-hubwrap > .ng-exhero .ng-exhero__psst, body .ng-hubwrap > .ng-exhero .ng-exhero__art { display: none !important; } }

/* niguro [Audio page full width] (owner, 2026-11-18): one 960px column; the head a band edge to edge under the clouds (its content on the column);
   the Loops three across from 768px */
.ng-audwrap { --ng-hub-max: 960px; }
.ng-hubwrap > .ng-aud__head.ng-hero--flush { padding-top: calc(24px + 13px); padding-bottom: 24px; border-radius: 0; }
@media (min-width: 768px) { .ng-hubwrap > .ng-aud__head.ng-hero--flush { padding-top: calc(32px + 13px); padding-bottom: 28px; } }
.ng-audwrap .ng-aud__cover { width: 132px; height: 132px; }
.ng-audwrap .ng-aud__title { font-size: 28px; }
.ng-audwrap .ng-aud__h2 { margin-top: 8px; }
@media (min-width: 768px) { .ng-lgrid--aud { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 575.98px) { .ng-audwrap .ng-aud__title { font-size: 22px; } .ng-audwrap .ng-aud__cover { width: 112px; height: 112px; } }

/* niguro [Explore bottom gap] (owner, 2026-11-19): the last row of Loops ended on the screen's edge (computers) and
   right above the bottom bar (phones); room under it now */
.ng-exwrap { padding-bottom: 40px; }
@media (max-width: 767.98px) { .ng-exwrap { padding-bottom: 32px; } }
