:root {
  color-scheme: dark;
  --nsx-bg: #0d0e12;
  --nsx-panel: #17181c;
  --nsx-panel-2: #1e2025;
  --nsx-line: #2a2c32;
  --nsx-text: #f3f3f5;
  --nsx-muted: #9b9da5;
  --nsx-accent: #f23b67;
  --nsx-accent-hover: #ff5079;
  --nsx-focus: #b7a7ff;
  --nsx-shell: 1900px;
}

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

html {
  background: var(--nsx-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--nsx-bg);
  color: var(--nsx-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.nsx-lock {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--nsx-focus);
  outline-offset: 2px;
}

.nsx-shell {
  width: min(calc(100% - 28px), var(--nsx-shell));
  margin-inline: auto;
}

.nsx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nsx-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border-radius: 4px;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}

.nsx-skip-link:focus {
  transform: translateY(0);
}

.nsx-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--nsx-line);
  background: rgba(13, 14, 18, 0.96);
  backdrop-filter: blur(12px);
}

.nsx-header-row {
  display: grid;
  grid-template-columns: auto auto auto minmax(240px, 520px) auto;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}

.nsx-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.nsx-brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 5px;
  background: var(--nsx-accent);
  color: #fff;
  font-size: 17px;
}

.nsx-brand-name {
  font-size: 21px;
}

.nsx-brand-name span {
  color: var(--nsx-accent);
}

.nsx-header-nav {
  display: flex;
  gap: 4px;
}

.nsx-header-nav a {
  padding: 8px 10px;
  border-radius: 4px;
  color: #c9cad0;
  font-size: 14px;
  font-weight: 650;
}

.nsx-header-nav a:hover {
  background: var(--nsx-panel-2);
  color: #fff;
}

.nsx-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  justify-self: end;
  width: min(100%, 520px);
  height: 38px;
  padding-left: 11px;
  border: 1px solid var(--nsx-line);
  border-radius: 5px;
  background: var(--nsx-panel);
}

.nsx-search:focus-within {
  border-color: #696b75;
}

.nsx-search svg {
  width: 17px;
  fill: none;
  stroke: var(--nsx-muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.nsx-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nsx-text);
}

.nsx-search input::placeholder {
  color: #777983;
}

.nsx-search button,
.nsx-filter-toggle,
.nsx-button,
.nsx-load-more {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--nsx-accent);
  color: #fff;
  font-weight: 760;
}

.nsx-search button {
  height: 32px;
  margin-right: 2px;
  padding-inline: 14px;
  font-size: 13px;
}

.nsx-search button:hover,
.nsx-filter-toggle:hover,
.nsx-button--primary:hover,
.nsx-load-more:hover {
  background: var(--nsx-accent-hover);
}

.nsx-icon-button,
.nsx-filter-toggle {
  display: none;
}

.nsx-category-bar {
  border-bottom: 1px solid var(--nsx-line);
  background: #121317;
}

.nsx-category-bar-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nsx-category-bar a,
.nsx-category-bar span.is-disabled {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 4px;
  color: #b9bac2;
  font-size: 13px;
  font-weight: 650;
}

.nsx-category-bar a:hover,
.nsx-category-bar a[aria-current="page"] {
  background: var(--nsx-panel-2);
  color: #fff;
}

.nsx-category-bar span.is-disabled {
  color: #60626a;
}

.nsx-top-filters {
  border-bottom: 1px solid var(--nsx-line);
  background: var(--nsx-panel);
}

.nsx-filter-form {
  display: flex;
  align-items: stretch;
  gap: 22px;
  min-height: 88px;
  padding-block: 11px;
  overflow-x: auto;
}

.nsx-filter-form fieldset {
  flex: 0 0 auto;
  min-width: 170px;
  margin: 0;
  padding: 0;
  border: 0;
}

.nsx-filter-form legend {
  margin-bottom: 7px;
  color: #d8d9de;
  font-size: 12px;
  font-weight: 760;
}

.nsx-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 270px;
}

.nsx-filter-options label {
  position: relative;
  cursor: pointer;
}

.nsx-filter-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nsx-filter-options span {
  display: block;
  padding: 5px 8px;
  border: 1px solid #34363e;
  border-radius: 4px;
  color: #aeb0b8;
  font-size: 12px;
  line-height: 1;
}

.nsx-filter-options span small {
  margin-left: 3px;
  color: #777a84;
  font-size: 10px;
}

.nsx-filter-options .nsx-filter-option-disabled {
  border-color: #292b31;
  color: #64666f;
}

.nsx-filter-options input:checked + span {
  border-color: var(--nsx-accent);
  background: rgba(242, 59, 103, 0.14);
  color: #fff;
}

.nsx-filter-options input:focus-visible + span {
  outline: 3px solid var(--nsx-focus);
  outline-offset: 2px;
}

.nsx-filter-unavailable {
  opacity: 0.48;
}

.nsx-filter-unavailable p {
  margin: 0;
  color: var(--nsx-muted);
  font-size: 12px;
}

.nsx-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.nsx-filter-actions .nsx-button {
  min-width: 70px;
  padding-inline: 12px;
}

.nsx-filter-actions .nsx-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.nsx-filter-actions a {
  padding: 7px;
  color: var(--nsx-muted);
  font-size: 12px;
}

.nsx-button--quiet,
.nsx-button--secondary {
  border: 1px solid #3b3d45;
  background: var(--nsx-panel-2);
  color: #e4e5e9;
}

.nsx-button--quiet:hover,
.nsx-button--secondary:hover {
  border-color: #5b5e68;
  background: #292b31;
}

.nsx-page-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-block: 20px 56px;
}

.nsx-sidebar {
  position: sticky;
  top: 82px;
  width: 250px;
  padding: 15px;
  border: 1px solid var(--nsx-line);
  border-radius: 5px;
  background: var(--nsx-panel);
}

.nsx-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nsx-line);
}

.nsx-sidebar h2,
.nsx-sidebar h3 {
  margin: 0;
}

.nsx-sidebar h2 {
  font-size: 18px;
}

.nsx-sidebar h3 {
  margin: 17px 0 7px;
  color: var(--nsx-muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nsx-sidebar-close {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.nsx-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 4px;
  color: #c9cad0;
  font-size: 13px;
}

a.nsx-sidebar-link:hover {
  background: var(--nsx-panel-2);
  color: #fff;
}

a.nsx-sidebar-link.is-active,
a.nsx-sidebar-link[aria-current="page"] {
  background: rgba(242, 59, 103, 0.13);
  color: #fff;
}

.nsx-sidebar-link small {
  color: #73757e;
}

.nsx-sidebar-link.is-disabled {
  color: #5f6169;
}

.nsx-sidebar-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--nsx-line);
  color: #70727b;
  font-size: 11px;
}

.nsx-sidebar-backdrop {
  display: none;
}

.nsx-catalog {
  min-width: 0;
}

.nsx-catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 10px;
}

.nsx-catalog-heading h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.nsx-result-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--nsx-muted);
  font-size: 12px;
}

.nsx-result-count strong {
  color: #dddde2;
}

.nsx-model-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.nsx-card {
  min-width: 0;
}

.nsx-card-link,
.nsx-card-media {
  display: block;
}

.nsx-card-link {
  border-radius: 5px;
}

.nsx-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  background: #22242a;
}

.nsx-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.nsx-card-link:hover img {
  filter: brightness(1.05);
  transform: scale(1.025);
}

.nsx-card img.is-fallback,
.nsx-card-link:hover img.is-fallback {
  filter: none;
  transform: none;
}

.nsx-card-shade {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.86));
  pointer-events: none;
}

.nsx-card-title {
  position: absolute;
  z-index: 1;
  right: 6px;
  bottom: 5px;
  left: 6px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
}

.nsx-empty-state {
  margin-top: 10px;
  padding: 56px 20px;
  border: 1px solid var(--nsx-line);
  border-radius: 5px;
  background: var(--nsx-panel);
  text-align: center;
}

.nsx-empty-state.is-hidden {
  display: none;
}

.nsx-empty-state h2 {
  margin: 0;
  font-size: 24px;
}

.nsx-empty-state p {
  margin: 8px 0 20px;
  color: var(--nsx-muted);
}

.nsx-empty-state .nsx-button {
  display: inline-flex;
  align-items: center;
  padding-inline: 15px;
}

.nsx-load-more-wrap {
  display: grid;
  justify-items: center;
  min-height: 58px;
  padding-top: 20px;
}

.nsx-load-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  justify-content: center;
  padding-inline: 20px;
}

.nsx-load-more:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nsx-load-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nsx-spin 700ms linear infinite;
}

.nsx-load-more.is-loading .nsx-load-spinner {
  display: block;
}

.nsx-load-message {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--nsx-muted);
  font-size: 12px;
}

.nsx-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
}

.nsx-pagination a {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding-inline: 8px;
  place-items: center;
  border: 1px solid var(--nsx-line);
  border-radius: 4px;
  background: var(--nsx-panel);
  color: #c5c6cc;
  font-size: 12px;
}

.nsx-pagination a:hover,
.nsx-pagination a.is-active {
  border-color: var(--nsx-accent);
  color: #fff;
}

.nsx-js .nsx-pagination {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nsx-noscript {
  color: var(--nsx-muted);
  text-align: center;
}

.nsx-site-footer {
  border-top: 1px solid var(--nsx-line);
  background: #101115;
}

.nsx-footer-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.nsx-footer-row p {
  margin: 0;
  color: var(--nsx-muted);
  font-size: 12px;
}

.nsx-footer-row p:first-of-type {
  margin-left: auto;
}

.nsx-brand--footer .nsx-brand-mark {
  width: 27px;
  height: 27px;
  font-size: 14px;
}

.nsx-brand--footer .nsx-brand-name {
  font-size: 17px;
}

.nsx-rotation-tracking {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@keyframes nsx-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1920px) {
  .nsx-model-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1600px) {
  .nsx-model-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .nsx-header-row {
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
  }

  .nsx-header-nav {
    display: none;
  }

  .nsx-filter-form {
    gap: 16px;
  }

  .nsx-model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nsx-header-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 58px;
  }

  .nsx-icon-button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 8px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--nsx-line);
    border-radius: 4px;
    background: var(--nsx-panel);
  }

  .nsx-icon-button > span:not(.nsx-visually-hidden) {
    display: block;
    width: 16px;
    height: 2px;
    background: #ddd;
  }

  .nsx-filter-toggle {
    display: block;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .nsx-search {
    width: 100%;
  }

  .nsx-top-filters {
    display: none;
  }

  .nsx-filters-open .nsx-top-filters {
    display: block;
  }

  .nsx-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
  }

  .nsx-filter-form fieldset {
    min-width: 0;
  }

  .nsx-filter-actions {
    grid-column: 1 / -1;
    justify-content: end;
    margin-left: 0;
  }

  .nsx-page-layout {
    grid-template-columns: 1fr;
  }

  .nsx-sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, calc(100% - 48px));
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .nsx-sidebar-close {
    display: block;
  }

  .nsx-sidebar-open .nsx-sidebar {
    transform: translateX(0);
  }

  .nsx-sidebar-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.65);
  }

  .nsx-sidebar-open .nsx-sidebar-backdrop {
    display: block;
  }

  .nsx-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nsx-shell {
    width: min(calc(100% - 20px), var(--nsx-shell));
  }

  .nsx-header-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 7px;
  }

  .nsx-brand-name {
    display: none;
  }

  .nsx-search button {
    width: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .nsx-search button::after {
    content: "Go";
    color: #fff;
  }

  .nsx-category-bar-scroll {
    min-height: 40px;
  }

  .nsx-filter-form {
    grid-template-columns: 1fr;
  }

  .nsx-filter-actions {
    grid-column: 1;
  }

  .nsx-page-layout {
    gap: 0;
    padding-top: 14px;
  }

  .nsx-catalog-heading {
    min-height: 38px;
  }

  .nsx-catalog-heading h1 {
    font-size: 22px;
  }

  .nsx-footer-row {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-block: 15px;
  }

  .nsx-footer-row p:first-of-type {
    margin-left: auto;
  }
}

@media (max-width: 576px) {
  .nsx-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsx-card-title {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* NSX_COLLAPSIBLE_FILTERS_V1 */
html.nsx-js .nsx-filter-toggle:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding-inline: 12px;
  flex-shrink: 0;
}
html.nsx-js .nsx-filter-toggle[hidden] { display: none; }
html.nsx-js #nsx-top-filters { display: none; }
html.nsx-js body.nsx-filters-open #nsx-top-filters { display: block; }

#nsx-top-filters .nsx-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}
#nsx-top-filters .nsx-filter-form > fieldset {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
}
#nsx-top-filters fieldset[data-filter-group="language"] {
  flex-basis: 260px;
}
#nsx-top-filters .nsx-filter-options {
  display: flex;
  flex-wrap: wrap;
}
#nsx-top-filters .nsx-filter-actions {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}
/* END NSX_COLLAPSIBLE_FILTERS_V1 */

/* NSX LCP TEST: optimize offscreen cards on mobile */
@media (max-width: 767px) {
  .nsx-catalog .nsx-model-grid > .nsx-card:nth-child(n+21) {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 190px;
  }
}
