/* ==========================================================================
   NX Cinema Design System — Obsidian Slate, Electric Coral & Ice Cyan
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #07090e;
  --sf-1: #0d1118;
  --sf-2: #131924;
  --sf-3: #1b2434;
  --sf-glass: rgba(10, 14, 22, 0.82);

  /* Borders */
  --ln: rgba(148, 175, 218, 0.10);
  --ln-2: rgba(148, 175, 218, 0.20);
  --ln-focus: rgba(255, 59, 92, 0.55);

  /* Typography (WCAG AA compliant contrast on dark surfaces) */
  --tx: #f1f5f9;
  --tx-2: #b8c4d6;
  --tx-3: #8c9bb3;

  /* Brand Accents */
  --ac: #ff3b5c;
  --ac-2: #ff637e;
  --ac-ink: #ffffff;
  --ac-wash: rgba(255, 59, 92, 0.14);
  --ac-glow: rgba(255, 59, 92, 0.32);

  --cy: #38bdf8;
  --cy-wash: rgba(56, 189, 248, 0.14);

  /* Radii & Layout */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --gut: 16px;
  --max: 1520px;
  --top-h: 64px;
  --side-w: 244px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fonts */
  --f-head: "Prompt", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --f-body: "IBM Plex Sans Thai", "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 768px) {
  :root { --gut: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

html.nx-lock { overflow: hidden; }

body.nx {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font: 400 15px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* Subtle ambient background mesh (GPU-friendly fixed layer) */
body.nx::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 14% -8%, rgba(255, 59, 92, 0.08), transparent 62%),
    radial-gradient(840px 480px at 92% 4%, rgba(56, 189, 248, 0.06), transparent 62%);
}

.nx-sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.nx-skip {
  position: fixed;
  left: 14px;
  top: -64px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-s);
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.nx-skip:focus { top: 14px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
::selection { background: var(--ac); color: var(--ac-ink); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 6px; }

.nx-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */

.nx-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sf-glass);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--ln);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.nx-topbar.is-scrolled {
  background: rgba(7, 9, 14, 0.94);
  border-bottom-color: var(--ln-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nx-topbar__inner {
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.nx-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.nx-iconbtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ln);
  background: var(--sf-1);
  border-radius: var(--r-s);
  cursor: pointer;
  color: var(--tx-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nx-iconbtn:hover {
  color: var(--tx);
  border-color: var(--ln-2);
  background: var(--sf-2);
}
.nx-iconbtn svg { width: 19px; height: 19px; }

.nx-nav-trigger { display: grid; }
@media (min-width: 1024px) {
  .nx-nav-trigger { display: none; }
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.nx-brand__img {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.nx-brand__fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nx-brand__fallback[hidden] { display: none; }
.nx-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ac), #d81b44);
  color: #fff;
  box-shadow: 0 6px 18px var(--ac-glow);
}
.nx-brand__mark svg { width: 16px; height: 16px; margin-left: 1px; }
.nx-brand__word {
  font: 700 18px/1.1 var(--f-head);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}
.nx-brand--muted .nx-brand__word { font-size: 17px; }

/* Command Search Bar */
.nx-search {
  flex: 1;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 5px 0 14px;
  background: var(--sf-1);
  border: 1px solid var(--ln);
  border-radius: var(--r-m);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nx-search:focus-within {
  border-color: var(--ln-focus);
  background: var(--sf-2);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.12);
}
.nx-search__icon { width: 17px; height: 17px; color: var(--tx-3); }
.nx-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: var(--tx);
  font: inherit;
  font-size: 14.5px;
}
.nx-search__input::placeholder { color: var(--tx-3); }
.nx-search__input::-webkit-search-cancel-button { display: none; }
.nx-search__kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--ln-2);
  background: var(--sf-2);
  color: var(--tx-3);
  font: 600 11.5px/1 var(--f-head);
}
.nx-search:focus-within .nx-search__kbd { display: none; }
.nx-search__submit {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-s);
  cursor: pointer;
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.2s;
}
.nx-search__submit:hover { background: var(--ac-2); }

.nx-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nx-pillcta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sf-2);
  border: 1px solid var(--ln);
  color: var(--tx-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nx-pillcta svg { width: 15px; height: 15px; color: var(--cy); }
.nx-pillcta:hover {
  color: var(--tx);
  border-color: var(--ln-2);
  background: var(--sf-3);
}

.nx-search-trigger { display: none; }

@media (max-width: 767px) {
  .nx-pillcta { display: none; }
  .nx-search__kbd { display: none; }
  .nx-search-trigger { display: grid; }
  .nx-search {
    position: absolute;
    left: var(--gut);
    right: var(--gut);
    top: calc(var(--top-h) + 6px);
    max-width: none;
    z-index: 5;
    background: var(--sf-2);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.22s var(--ease);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  }
  .nx-search.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Mobile/Tablet Category Strip */
.nx-catbar {
  border-top: 1px solid var(--ln);
  background: rgba(7, 9, 14, 0.65);
}
@media (min-width: 1024px) {
  .nx-catbar { display: none; }
}
.nx-catbar__track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.nx-catbar__track::-webkit-scrollbar { display: none; }
.nx-catbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 31px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--ln);
  background: var(--sf-1);
  color: var(--tx-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nx-catbar__pill:hover { color: var(--tx); background: var(--sf-2); }
.nx-catbar__pill.is-active {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--ac-ink);
}
.nx-catbar__pill--lead {
  color: var(--cy);
  border-color: rgba(56, 189, 248, 0.28);
}
.nx-catbar__pill--lead svg { width: 13px; height: 13px; }

/* ==========================================================================
   Shell Grid: Persistent Left Sidebar + Main Workspace
   ========================================================================== */

.nx-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

@media (min-width: 1024px) {
  .nx-layout {
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    gap: 28px;
  }
}

/* Sidebar (Fixed Drawer on <1024px, Sticky Rail on >=1024px) */
.nx-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 10, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}
.nx-scrim.is-on { opacity: 1; }

.nx-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1023px) {
  .nx-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: min(300px, 84vw);
    padding: 14px 16px 24px;
    background: var(--sf-1);
    border-right: 1px solid var(--ln-2);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 0.3s var(--ease);
  }
  .nx-sidebar.is-open { transform: none; }
}

@media (min-width: 1024px) {
  .nx-sidebar {
    position: sticky;
    top: calc(var(--top-h) + 20px);
    max-height: calc(100vh - var(--top-h) - 36px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sf-3) transparent;
    padding: 14px;
    margin-top: 22px;
    margin-bottom: 32px;
    border-radius: var(--r-l);
    background: var(--sf-1);
    border: 1px solid var(--ln);
  }
  .nx-sidebar__head { display: none; }
}

.nx-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ln);
}
.nx-sidebar__title {
  font: 600 15px var(--f-head);
  color: var(--tx);
}

.nx-sidebar__nav {
  display: grid;
  gap: 3px;
}

.nx-navlink {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  color: var(--tx-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nx-navlink svg { width: 17px; height: 17px; color: var(--tx-3); transition: color 0.2s; }
.nx-navlink:hover {
  background: var(--sf-2);
  color: var(--tx);
}
.nx-navlink:hover svg { color: var(--ac-2); }

.nx-sidebar__section {
  padding-top: 12px;
  border-top: 1px solid var(--ln);
}
.nx-sidebar__label {
  font: 600 11.5px/1.2 var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx-3);
  margin: 0 10px 8px;
}

.nx-catnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.nx-catnav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--r-s);
  color: var(--tx-2);
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nx-catnav__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx-catnav__item em {
  font-style: normal;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sf-2);
  color: var(--tx-3);
}
.nx-catnav__item:hover {
  background: var(--sf-2);
  color: var(--tx);
}
.nx-catnav__item.is-active {
  background: var(--ac-wash);
  border-left-color: var(--ac);
  color: var(--tx);
  font-weight: 600;
}
.nx-catnav__item.is-active em {
  background: var(--ac);
  color: var(--ac-ink);
}

.nx-sidebar__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ln);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tx-3);
}

/* Main Workspace */
.nx-main {
  min-width: 0;
  padding-top: 22px;
  padding-bottom: 64px;
}
.nx-main:focus { outline: none; }

/* ==========================================================================
   Section Headers & Grids
   ========================================================================== */

.nx-section { margin-bottom: 44px; }
.nx-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.nx-section__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  line-height: 1.3;
}
.nx-section__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ac);
  box-shadow: 0 0 12px var(--ac-glow);
}
.nx-section__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nx-section__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--ln);
  background: var(--sf-1);
  color: var(--tx-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nx-section__more svg { width: 14px; height: 14px; }
.nx-section__more:hover {
  color: var(--tx);
  border-color: var(--ac);
  background: var(--ac-wash);
}

.nx-grid {
  display: grid;
  gap: 20px 14px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.nx-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
@media (max-width: 599px) {
  .nx-grid,
  .nx-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
}

/* ==========================================================================
   Thumbnail & Video Card
   ========================================================================== */

.nx-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, var(--sf-2), var(--sf-3));
  border: 1px solid var(--ln);
  isolation: isolate;
}
.nx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.nx-thumb.is-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  opacity: 0.28;
  background: var(--tx-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nx-thumb__hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.08) 30%, rgba(7, 9, 14, 0.65));
  opacity: 0;
  transition: opacity 0.25s;
}
.nx-thumb__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ac);
  color: var(--ac-ink);
  box-shadow: 0 8px 24px var(--ac-glow);
  transform: scale(0.84);
  transition: transform 0.28s var(--ease);
}
.nx-thumb__play svg { width: 17px; height: 17px; margin-left: 2px; }

.nx-thumb__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: rgba(7, 9, 14, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f8fafc;
  font: 500 11.5px/1.45 var(--f-body);
  font-variant-numeric: tabular-nums;
}

.nx-thumb__cat {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  max-width: 65%;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: rgba(7, 9, 14, 0.76);
  backdrop-filter: blur(6px);
  color: var(--tx);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.nx-card:hover .nx-thumb {
  border-color: rgba(255, 59, 92, 0.38);
}
.nx-card:hover .nx-thumb img { transform: scale(1.05); }
.nx-card:hover .nx-thumb__hover { opacity: 1; }
.nx-card:hover .nx-thumb__play { transform: scale(1); }

.nx-card__body { min-width: 0; }
.nx-card__title {
  font: 500 14.5px/1.48 var(--f-body);
  color: var(--tx);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.nx-card:hover .nx-card__title { color: var(--ac-2); }

.nx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--tx-3);
  font-size: 12.5px;
}
.nx-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nx-meta svg { width: 13.5px; height: 13.5px; }

@media (max-width: 599px) {
  .nx-card__title { font-size: 13.5px; }
  .nx-meta { font-size: 11.5px; gap: 2px 9px; }
  .nx-thumb__cat { display: none; }
}

/* ==========================================================================
   Home: Asymmetric Theater Hero + Horizontal Featured Reel
   ========================================================================== */

.nx-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  margin-bottom: 34px;
  border-radius: var(--r-l);
  background:
    radial-gradient(560px 300px at 10% 0%, rgba(255, 59, 92, 0.14), transparent 70%),
    linear-gradient(135deg, var(--sf-2), var(--sf-1));
  border: 1px solid var(--ln-2);
  overflow: hidden;
}

.nx-hero__media {
  position: relative;
  display: block;
  border-radius: var(--r-m);
  overflow: hidden;
}
.nx-hero__media .nx-thumb {
  border-radius: var(--r-m);
  border-color: rgba(255, 255, 255, 0.10);
}
.nx-hero__media:hover .nx-thumb img { transform: scale(1.03); }

.nx-hero__orb {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ac);
  color: var(--ac-ink);
  box-shadow: 0 12px 34px var(--ac-glow), 0 0 0 8px rgba(255, 59, 92, 0.2);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}
.nx-hero__orb svg { width: 22px; height: 22px; margin-left: 3px; }
.nx-hero__media:hover .nx-hero__orb {
  transform: scale(1.08);
  box-shadow: 0 14px 40px var(--ac-glow), 0 0 0 12px rgba(255, 59, 92, 0.22);
}

.nx-hero__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 4px 2px;
}

.nx-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.nx-badge--ac {
  background: var(--ac-wash);
  color: var(--ac-2);
  border: 1px solid rgba(255, 59, 92, 0.35);
}
.nx-badge--cy {
  background: var(--cy-wash);
  color: var(--cy);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.nx-badge svg { width: 13px; height: 13px; }

.nx-hero__h1 {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  color: var(--tx);
}
.nx-hero__desc {
  margin-top: 6px;
  color: var(--tx-2);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-hero__feature {
  padding-top: 12px;
  border-top: 1px solid var(--ln);
}
.nx-hero__kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--cy);
  margin-bottom: 4px;
}
.nx-hero__vtitle {
  font-size: 16px;
  line-height: 1.4;
  color: var(--tx);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.nx-hero__vtitle:hover { color: var(--ac-2); }
.nx-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .nx-hero {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 16px;
  }
}

.nx-introbanner {
  padding: 18px 20px;
  margin-bottom: 26px;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--sf-2), var(--sf-1));
  border: 1px solid var(--ln);
}
.nx-introbanner h1 { font-size: clamp(20px, 2.3vw, 25px); }
.nx-introbanner p { margin-top: 6px; color: var(--tx-2); font-size: 14px; }

/* Horizontal Snap Reel */
.nx-reel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ln-2);
  background: var(--sf-1);
  color: var(--tx-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nx-reel-btn:hover:not(:disabled) {
  color: var(--tx);
  border-color: var(--ac);
  background: var(--ac-wash);
}
.nx-reel-btn:disabled { opacity: 0.35; cursor: default; }
.nx-reel-btn svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .nx-reel-btn { display: none; } }

.nx-reel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.nx-reel::-webkit-scrollbar { display: none; }
.nx-reel__item {
  flex: 0 0 248px;
  scroll-snap-align: start;
}
@media (max-width: 599px) {
  .nx-reel__item { flex: 0 0 68vw; }
}

/* ==========================================================================
   Categories Grid & Tag Chips
   ========================================================================== */

.nx-catgrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
}
.nx-catcard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-radius: var(--r-m);
  background: var(--sf-1);
  border: 1px solid var(--ln);
  border-left: 3px solid var(--ln-2);
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.nx-catcard:hover {
  background: var(--sf-2);
  border-color: var(--ln-2);
  border-left-color: var(--ac);
  transform: translateY(-2px);
}
.nx-catcard__name {
  font: 600 15px/1.35 var(--f-head);
  color: var(--tx);
}
.nx-catcard__count {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--tx-3);
}
.nx-catcard__go {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sf-2);
  color: var(--tx-2);
  transition: background 0.2s, color 0.2s;
}
.nx-catcard:hover .nx-catcard__go {
  background: var(--ac);
  color: var(--ac-ink);
}
.nx-catcard__go svg { width: 14px; height: 14px; }
@media (max-width: 599px) {
  .nx-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nx-catcard { padding: 12px 13px; }
  .nx-catcard__go { display: none; }
}

.nx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-s);
  background: var(--sf-1);
  border: 1px solid var(--ln);
  color: var(--tx-2);
  font-size: 13.5px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nx-tag::before { content: "#"; color: var(--cy); font-weight: 600; }
.nx-tag:hover {
  color: var(--tx);
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--cy-wash);
}

/* ==========================================================================
   Breadcrumbs, Page Header, Pagination, Buttons, Empty
   ========================================================================== */

.nx-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--tx-3);
}
.nx-crumb a { color: var(--tx-2); transition: color 0.2s; }
.nx-crumb a:hover { color: var(--ac-2); }
.nx-crumb svg { width: 13px; height: 13px; opacity: 0.7; }
.nx-crumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 62vw;
}

.nx-pagehead {
  position: relative;
  padding: 4px 0 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--ln);
}
.nx-pagehead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ac), var(--cy));
}
.nx-pagehead__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.nx-pagehead__lead {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.nx-pagehead__emblem {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ac-wash), var(--cy-wash));
  border: 1px solid var(--ln-2);
  color: var(--ac-2);
  box-shadow: 0 8px 24px -10px var(--ac-glow);
}
.nx-pagehead__emblem svg { width: 22px; height: 22px; }
.nx-pagehead__text { min-width: 0; }
.nx-pagehead__kicker {
  color: var(--cy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.nx-pagehead__title {
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.25;
  word-break: break-word;
}
.nx-pagehead__note {
  margin-top: 6px;
  color: var(--tx-2);
  font-size: 14px;
  max-width: 680px;
}
.nx-pagehead__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nx-statpill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sf-1);
  border: 1px solid var(--ln-2);
  color: var(--tx-2);
  font-size: 13px;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nx-statpill b {
  color: var(--tx);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14.5px;
}
.nx-statpill--cy {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.07);
}
.nx-statpill--cy b { color: var(--cy); }
.nx-pagehead__search {
  margin-top: 18px;
  max-width: 560px;
  margin-left: 0;
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  box-shadow: none;
}
@media (max-width: 599px) {
  .nx-pagehead { padding-bottom: 16px; margin-bottom: 20px; }
  .nx-pagehead__lead { gap: 12px; }
  .nx-pagehead__emblem { width: 42px; height: 42px; border-radius: 12px; }
  .nx-pagehead__emblem svg { width: 19px; height: 19px; }
}

.nx-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.nx-pager__nums { display: flex; gap: 6px; }
.nx-pager__num,
.nx-pager__step {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-s);
  border: 1px solid var(--ln);
  background: var(--sf-1);
  color: var(--tx-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nx-pager__step svg { width: 15px; height: 15px; }
a.nx-pager__num:hover,
a.nx-pager__step:hover {
  color: var(--tx);
  border-color: var(--ln-2);
  background: var(--sf-2);
}
.nx-pager__num.is-active {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--ac-ink);
  font-weight: 600;
}
.nx-pager__step.is-disabled { opacity: 0.35; }
.nx-pager__gap {
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-3);
}
@media (max-width: 599px) {
  .nx-pager__step span { display: none; }
  .nx-pager__step { padding: 0; }
  .nx-pager__num { min-width: 36px; height: 36px; padding: 0 8px; }
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nx-btn:hover { background: var(--ac-2); }
.nx-btn--ghost {
  background: var(--sf-1);
  color: var(--tx);
  border-color: var(--ln-2);
}
.nx-btn--ghost:hover {
  background: var(--sf-2);
  border-color: var(--ac);
}
.nx-btn svg { width: 16px; height: 16px; }

.nx-empty {
  text-align: center;
  padding: 58px 20px;
  border: 1px dashed var(--ln-2);
  border-radius: var(--r-l);
  background: var(--sf-1);
  color: var(--tx-3);
}
.nx-empty__art { width: 120px; height: 90px; color: var(--ac-2); margin: 0 auto 16px; }
.nx-empty__title { color: var(--tx); font-size: 19px; }
.nx-empty__text { margin: 6px auto 22px; max-width: 420px; color: var(--tx-2); font-size: 14.5px; }

/* ==========================================================================
   Watch / Play Page (with Theater Mode)
   ========================================================================== */

.nx-watch {
  display: grid;
  gap: 24px 28px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "player side"
    "info side"
    "more side"
    "talk side";
}
.nx-watch__player { grid-area: player; min-width: 0; }
.nx-watch__info { grid-area: info; min-width: 0; }
.nx-watch__side { grid-area: side; position: sticky; top: calc(var(--top-h) + 20px); }
.nx-watch__more { grid-area: more; min-width: 0; padding-top: 6px; }
.nx-watch__talk { grid-area: talk; min-width: 0; padding-top: 6px; }

.nx-watch.is-theater {
  grid-template-areas:
    "player player"
    "info side"
    "more side"
    "talk side";
}

@media (max-width: 1180px) {
  .nx-watch,
  .nx-watch.is-theater {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "player"
      "info"
      "side"
      "more"
      "talk";
    gap: 28px;
  }
  .nx-watch__side { position: static; }
}

.nx-watch__foot {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.nx-watch__foot .nx-btn { min-width: 220px; }
.nx-watch__foot .nx-btn:disabled { opacity: 0.48; cursor: default; }

/* Player Facade */
.nx-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-l);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ln-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 80px -28px var(--ac-glow);
}
.nx-player__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.3s, transform 0.6s var(--ease);
}
.nx-player:hover .nx-player__poster { filter: brightness(0.84); }
.nx-player__trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.25), rgba(7, 9, 14, 0.6));
  color: #fff;
}
.nx-player__orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ac);
  color: var(--ac-ink);
  box-shadow: 0 14px 40px var(--ac-glow), 0 0 0 10px rgba(255, 59, 92, 0.18);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}
.nx-player__orb svg { width: 28px; height: 28px; margin-left: 4px; }
.nx-player__hint {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(7, 9, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 500;
}
.nx-player__trigger:hover .nx-player__orb {
  transform: scale(1.07);
  box-shadow: 0 16px 46px var(--ac-glow), 0 0 0 14px rgba(255, 59, 92, 0.2);
}
.nx-player__dur { z-index: 3; right: 14px; bottom: 14px; }
.nx-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.nx-player.is-loading iframe { opacity: 0; }
.nx-player__spin {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--ac);
  animation: nx-spin 0.85s linear infinite;
}
.nx-player.is-loading .nx-player__spin { display: block; }
.nx-player.is-loading .nx-player__trigger,
.nx-player.is-loading .nx-player__dur,
.nx-player.is-ready .nx-player__trigger,
.nx-player.is-ready .nx-player__dur,
.nx-player.is-ready .nx-player__spin,
.nx-player.is-ready .nx-player__poster { display: none; }

.nx-player__fail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--tx-2);
  font-size: 14.5px;
  background: var(--sf-1);
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

@media (max-width: 599px) {
  .nx-player {
    margin-left: calc(var(--gut) * -1);
    margin-right: calc(var(--gut) * -1);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
}

/* Video Summary & Action Strip */
.nx-info-card {
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--sf-1);
  border: 1px solid var(--ln);
}
.nx-info-card__title {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  word-break: break-word;
}
.nx-info-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.nx-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--tx-2);
  font-size: 13.5px;
}
.nx-facts span { display: inline-flex; align-items: center; gap: 6px; }
.nx-facts svg { width: 15px; height: 15px; color: var(--tx-3); }
.nx-facts__cat {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--ac-wash);
  color: var(--ac-2);
  font-weight: 600;
  border: 1px solid rgba(255, 59, 92, 0.3);
  transition: background 0.2s;
}
.nx-facts__cat:hover { background: rgba(255, 59, 92, 0.24); }

.nx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--r-s);
  border: 1px solid var(--ln-2);
  background: var(--sf-2);
  cursor: pointer;
  color: var(--tx);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nx-act svg { width: 17px; height: 17px; }
.nx-act:hover { background: var(--sf-3); border-color: rgba(255, 59, 92, 0.45); }
.nx-act[aria-pressed="true"] {
  color: var(--ac-2);
  border-color: rgba(255, 59, 92, 0.55);
  background: var(--ac-wash);
  --heart-fill: currentColor;
}
.nx-act--theater.is-active {
  color: var(--cy);
  border-color: rgba(56, 189, 248, 0.5);
  background: var(--cy-wash);
}
.nx-act:disabled { cursor: default; }
@media (max-width: 1180px) {
  .nx-act--theater { display: none; }
}

.nx-desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ln);
}
.nx-desc__text {
  color: var(--tx-2);
  white-space: pre-line;
  font-size: 14.5px;
}
.nx-desc__text + .nx-desc__tags { margin-top: 14px; }

/* Rankings Panel */
.nx-rank {
  padding: 18px 16px 12px;
  border-radius: var(--r-l);
  background: var(--sf-1);
  border: 1px solid var(--ln);
}
.nx-rank .nx-section__title { font-size: 17px; }
.nx-rank__head { margin-bottom: 14px; }
.nx-rank__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: var(--r-s);
  background: var(--bg);
  border: 1px solid var(--ln);
}
.nx-rank__tab {
  height: 31px;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  color: var(--tx-2);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nx-rank__tab:hover { color: var(--tx); }
.nx-rank__tab.is-active {
  background: var(--sf-3);
  color: var(--tx);
  font-weight: 600;
}

.nx-rank__list { list-style: none; margin: 0; padding: 0; }
.nx-rank__list[hidden] { display: none; }
.nx-rank__row {
  display: grid;
  grid-template-columns: 26px 102px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px;
  margin: 0 -7px;
  border-radius: var(--r-s);
  transition: background 0.2s;
}
.nx-rank__row:hover { background: var(--sf-2); }
.nx-rank__no {
  font: 700 16px/1 var(--f-head);
  color: var(--tx-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.nx-rank__list li:nth-child(1) .nx-rank__no { color: var(--ac-2); font-size: 20px; }
.nx-rank__list li:nth-child(2) .nx-rank__no { color: var(--cy); font-size: 19px; }
.nx-rank__list li:nth-child(3) .nx-rank__no { color: #cbd5e1; font-size: 18px; }
.nx-rank__thumb { border-radius: var(--r-xs); }
.nx-rank__thumb .nx-thumb__dur { right: 4px; bottom: 4px; padding: 1px 5px; font-size: 10.5px; }
.nx-rank__name {
  font-size: 13.5px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.nx-rank__row:hover .nx-rank__name { color: var(--ac-2); }
.nx-rank__row .nx-meta { margin-top: 3px; font-size: 11.5px; }
.nx-rank__empty {
  padding: 24px 0;
  text-align: center;
  color: var(--tx-3);
  font-size: 13.5px;
}

@media (min-width: 640px) and (max-width: 1180px) {
  .nx-rank__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .nx-rank__list[hidden] { display: none; }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.nx-talk__count {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sf-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-2);
}
.nx-talk__note {
  margin-top: 16px;
  color: var(--tx-3);
  font-size: 14px;
  text-align: center;
  padding: 22px 0;
  border: 1px dashed var(--ln);
  border-radius: var(--r-m);
}

.nx-say {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-top: 4px;
  background: var(--sf-1);
  border: 1px solid var(--ln);
  border-radius: var(--r-m);
}
.nx-cmt .nx-say { margin: 12px 0 4px; }
.nx-say__nick,
.nx-say__text {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-s);
  background: var(--sf-2);
  border: 1px solid var(--ln);
  color: var(--tx);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
}
.nx-say__nick { max-width: 280px; }
.nx-say__text { min-height: 92px; resize: vertical; line-height: 1.6; }
.nx-say__nick:focus,
.nx-say__text:focus {
  outline: 0;
  border-color: var(--ln-focus);
  background: var(--sf-3);
}
.nx-say__nick::placeholder,
.nx-say__text::placeholder { color: var(--tx-3); }
.nx-say__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nx-say__tip { font-size: 12.5px; color: var(--tx-3); }
.nx-say__left.is-low { color: var(--ac-2); }
.nx-say__send { height: 38px; padding: 0 20px; }
.nx-say__send:disabled { opacity: 0.55; cursor: default; }
.nx-say__to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--tx-2);
}
.nx-say__to b { color: var(--cy); font-weight: 600; }
.nx-say__x {
  background: none;
  border: 0;
  color: var(--tx-3);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}
.nx-say__x:hover { color: var(--tx); }
.nx-say__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nx-talk__list,
.nx-cmt__kids {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-talk__list { margin-top: 18px; display: grid; gap: 4px; }
.nx-cmt__kids {
  margin-left: 20px;
  padding-left: 16px;
  border-left: 1px solid var(--ln-2);
}
.nx-cmt__card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.nx-cmt__kids .nx-cmt__card { grid-template-columns: 30px minmax(0, 1fr); }
.nx-cmt__ava {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--h, 210) 70% 84%);
  background: hsl(var(--h, 210) 36% 22%);
}
.nx-cmt__kids .nx-cmt__ava { width: 30px; height: 30px; font-size: 13px; }
.nx-cmt.is-staff > .nx-cmt__card .nx-cmt__ava {
  background: var(--ac);
  color: var(--ac-ink);
}
.nx-cmt__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  color: var(--tx-3);
}
.nx-cmt__name { color: var(--tx); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.nx-cmt__badge,
.nx-cmt__wait {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.nx-cmt__badge { background: var(--ac); color: var(--ac-ink); }
.nx-cmt__wait { background: var(--cy-wash); color: var(--cy); }
.nx-cmt__text {
  margin-top: 4px;
  color: var(--tx-2);
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nx-cmt__at { color: var(--cy); font-weight: 500; }
.nx-cmt__reply {
  margin-top: 4px;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--tx-3);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.nx-cmt__reply:hover { color: var(--ac-2); }
.nx-cmt.is-pending > .nx-cmt__card { opacity: 0.78; }
@media (max-width: 599px) {
  .nx-cmt__kids { margin-left: 8px; padding-left: 10px; }
  .nx-say__nick { max-width: none; }
}

/* ==========================================================================
   About, Contact & 404 Pages
   ========================================================================== */

.nx-prose { max-width: 860px; }
.nx-prose__panel {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--r-l);
  background: var(--sf-1);
  border: 1px solid var(--ln);
}
.nx-prose__panel h2 { font-size: 18px; margin-bottom: 10px; }
.nx-prose__panel p { color: var(--tx-2); }

.nx-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.nx-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--sf-2);
  border: 1px solid var(--ln);
  color: var(--tx-2);
  font-size: 14.5px;
}
.nx-features svg { width: 20px; height: 20px; color: var(--ac-2); margin-top: 2px; }

.nx-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 767px) {
  .nx-contact-grid { grid-template-columns: 1fr; }
}
.nx-formcard {
  padding: 22px;
  border-radius: var(--r-l);
  background: var(--sf-1);
  border: 1px solid var(--ln);
  display: grid;
  gap: 14px;
}
.nx-field { display: grid; gap: 6px; }
.nx-field label { font-size: 13.5px; font-weight: 500; color: var(--tx-2); }
.nx-field input,
.nx-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-s);
  background: var(--sf-2);
  border: 1px solid var(--ln);
  color: var(--tx);
  font: inherit;
  font-size: 14.5px;
}
.nx-field textarea { min-height: 120px; resize: vertical; }
.nx-field input:focus,
.nx-field textarea:focus {
  outline: 0;
  border-color: var(--ln-focus);
  background: var(--sf-3);
}
.nx-infostack { display: grid; gap: 12px; align-content: start; }
.nx-infocard {
  padding: 18px;
  border-radius: var(--r-m);
  background: var(--sf-1);
  border: 1px solid var(--ln);
}
.nx-infocard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.nx-infocard__head svg { width: 18px; height: 18px; color: var(--cy); }
.nx-infocard__head h3 { font-size: 15.5px; }
.nx-infocard p { color: var(--tx-2); font-size: 14px; }

.nx-lost {
  max-width: 560px;
  margin: 36px auto 16px;
  text-align: center;
}
.nx-lost__art { width: 240px; height: 150px; margin: 0 auto 20px; color: var(--ac-2); }
.nx-lost__title { font-size: clamp(22px, 3vw, 28px); }
.nx-lost__text { margin-top: 8px; color: var(--tx-2); }
.nx-lost__acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nx-lost__search {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  box-shadow: none;
  margin-top: 28px;
  max-width: none;
}

/* ==========================================================================
   Footer & Toast
   ========================================================================== */

.nx-footer {
  border-top: 1px solid var(--ln);
  background: rgba(9, 12, 18, 0.85);
}
.nx-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 28px;
}
.nx-footer__text {
  margin-top: 12px;
  color: var(--tx-3);
  font-size: 13.5px;
  max-width: 420px;
}
.nx-footer__age {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--tx-2);
  font-size: 13px;
}
.nx-age {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--ac);
  color: var(--ac-2);
  font: 700 11.5px/1 var(--f-head);
}
.nx-footer__label {
  margin-bottom: 10px;
  font: 600 13px var(--f-head);
  color: var(--tx);
  letter-spacing: 0.04em;
}
.nx-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.nx-footer__col a { color: var(--tx-3); transition: color 0.2s; }
.nx-footer__col a:hover { color: var(--ac-2); }
.nx-footer__cats { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nx-footer__seo {
  padding-top: 16px;
  padding-bottom: 18px;
  border-top: 1px solid var(--ln);
  color: var(--tx-3);
  font-size: 12.5px;
  line-height: 1.75;
}
.nx-footer__seo strong {
  color: var(--tx-2);
  font-weight: 600;
}
.nx-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--ln);
  color: var(--tx-3);
  font-size: 12.5px;
}
@media (max-width: 767px) {
  .nx-footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nx-footer__about { grid-column: 1 / -1; }
}

.nx-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sf-3);
  border: 1px solid var(--ln-2);
  color: var(--tx);
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s var(--ease);
}
.nx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
