/* Noctis — 琥珀影院主题（差异化于 zzhrxc 紫蓝毛玻璃） */

:root {
  --nx-bg: #0c0e12;
  --nx-bg-elevated: #141820;
  --nx-bg-card: #1a1f28;
  --nx-border: rgba(255, 255, 255, 0.08);
  --nx-border-strong: rgba(245, 158, 11, 0.35);
  --nx-text: #e8eaed;
  --nx-text-muted: #8b939e;
  --nx-accent: #f59e0b;
  --nx-accent-hover: #fbbf24;
  --nx-accent-soft: rgba(245, 158, 11, 0.12);
  --nx-teal: #2dd4bf;
  --nx-teal-soft: rgba(45, 212, 191, 0.12);
  --nx-radius: 10px;
  --nx-radius-lg: 16px;
  --nx-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --nx-container: min(1200px, 100% - 2rem);
  --nx-header-h: 64px;
  --nx-strip-h: 48px;
}

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

body.body-tpl-noctis {
  margin: 0;
  background: var(--nx-bg);
  color: var(--nx-text);
  font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tpl-noctis {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 158, 11, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(45, 212, 191, 0.05), transparent),
    var(--nx-bg);
}

.tpl-noctis > main {
  flex: 1;
}

.nx-container {
  width: var(--nx-container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ── Header ── */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nx-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nx-header-h);
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 1rem;
}

.nx-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--nx-text);
  flex-shrink: 0;
}

.nx-header__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--nx-accent), #d97706);
  border-radius: 8px;
  color: #0c0e12;
  font-size: 0.85rem;
}

.nx-header__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nx-header__title em {
  color: var(--nx-accent);
  font-style: normal;
}

.nx-header__search {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  display: none;
  position: relative;
}

@media (min-width: 768px) {
  .nx-header__search {
    display: block;
  }
}

.nx-header__search input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  color: var(--nx-text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nx-header__search input:focus {
  border-color: var(--nx-border-strong);
  box-shadow: 0 0 0 3px var(--nx-accent-soft);
}

.nx-header__search input::placeholder {
  color: var(--nx-text-muted);
}

.nx-header__search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nx-text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.nx-header__actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nx-header__actions {
    display: flex;
  }
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nx-btn--ghost {
  background: transparent;
  color: var(--nx-text-muted);
  border: 1px solid var(--nx-border);
}

.nx-btn--ghost:hover {
  color: var(--nx-text);
  border-color: var(--nx-text-muted);
}

.nx-btn--accent {
  background: var(--nx-accent);
  color: #0c0e12;
}

.nx-btn--accent:hover {
  background: var(--nx-accent-hover);
}

.nx-btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  color: var(--nx-text-muted);
}

.nx-btn--icon:hover {
  color: var(--nx-accent);
  border-color: var(--nx-border-strong);
}

.nx-header__toggle {
  display: flex;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--nx-text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem;
}

@media (min-width: 768px) {
  .nx-header__toggle {
    display: none;
  }
}

.nx-header__search--full {
  display: block;
  max-width: none;
  margin-bottom: 0.75rem;
}

/* Category strip */
.nx-header__strip {
  border-top: 1px solid var(--nx-border);
  background: var(--nx-bg-elevated);
  overflow: hidden;
}

.nx-header__strip-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nx-header__strip-inner::-webkit-scrollbar {
  display: none;
}

.nx-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nx-text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nx-pill:hover {
  color: var(--nx-text);
  background: var(--nx-accent-soft);
}

.nx-pill.active {
  color: #0c0e12;
  background: var(--nx-accent);
  border-color: var(--nx-accent);
}

.nx-header__drawer {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--nx-border);
  background: var(--nx-bg-elevated);
}

.nx-header__drawer.is-open {
  display: block;
}

@media (min-width: 768px) {
  .nx-header__drawer {
    display: none !important;
  }
}

.nx-header__drawer .nx-pill {
  display: block;
  margin-bottom: 0.35rem;
}

/* ── Hero ── */
.nx-hero {
  padding: 2rem 0 2.5rem;
}

.nx-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .nx-hero__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.nx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--nx-accent-soft);
  border: 1px solid var(--nx-border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nx-accent);
  margin-bottom: 1rem;
}

.nx-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nx-hero h1 span {
  color: var(--nx-accent);
}

.nx-hero__sub {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--nx-teal);
  font-weight: 600;
}

.nx-hero__lead {
  margin: 0 0 1.5rem;
  color: var(--nx-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 32rem;
}

.nx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nx-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nx-border);
}

.nx-hero__stats li {
  list-style: none;
}

.nx-hero__stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--nx-accent);
  font-weight: 800;
}

.nx-hero__stats span {
  font-size: 0.75rem;
  color: var(--nx-text-muted);
}

.nx-hero__showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  min-height: auto;
}

@media (min-width: 640px) {
  .nx-hero__showcase {
    grid-template-columns: 1.2fr 1fr;
    min-height: 280px;
  }
}

.nx-hero__lead-card {
  position: relative;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--nx-border);
  box-shadow: var(--nx-shadow);
}

@media (min-width: 640px) {
  .nx-hero__lead-card {
    grid-row: span 2;
  }
}

.nx-hero__lead-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

@media (min-width: 640px) {
  .nx-hero__lead-card img {
    min-height: 280px;
  }
}

.nx-hero__lead-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
}

.nx-hero__lead-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
}

.nx-hero__lead-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--nx-accent);
  color: #0c0e12;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.nx-hero__lead-meta h2 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.nx-hero__lead-meta p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.nx-hero__queue-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.nx-hero__queue-item:hover {
  border-color: var(--nx-border-strong);
  background: var(--nx-bg-elevated);
}

.nx-hero__queue-thumb {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.nx-hero__queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-hero__queue-text {
  flex: 1;
  min-width: 0;
}

.nx-hero__queue-text strong {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-hero__queue-text span {
  font-size: 0.72rem;
  color: var(--nx-accent);
}

/* ── Section ── */
.nx-section {
  padding: 2rem 0;
}

.nx-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--nx-accent-soft);
}

.nx-section__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nx-section__head h2 i {
  color: var(--nx-accent);
}

.nx-section__more {
  font-size: 0.85rem;
  color: var(--nx-teal);
  text-decoration: none;
  font-weight: 600;
}

.nx-section__more:hover {
  color: var(--nx-accent);
}

/* ── Category tiles (home) ── */
.nx-cat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .nx-cat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-cat-row {
    grid-template-columns: repeat(6, 1fr);
  }
}

.nx-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.nx-cat-tile:hover {
  border-color: var(--nx-border-strong);
  transform: translateY(-2px);
}

.nx-cat-tile i {
  font-size: 1.5rem;
  color: var(--nx-accent);
  margin-bottom: 0.5rem;
}

.nx-cat-tile strong {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.nx-cat-tile span {
  font-size: 0.72rem;
  color: var(--nx-text-muted);
}

/* ── Poster cards ── */
.nx-poster-grid {
  display: grid;
  gap: 1rem;
}

.nx-poster-grid--feat {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .nx-poster-grid--feat {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nx-poster-grid--std {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .nx-poster-grid--std {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .nx-poster-grid--std {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .nx-poster-grid--std {
    grid-template-columns: repeat(6, 1fr);
  }
}

.nx-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nx-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nx-card:hover .nx-card__poster {
  border-color: var(--nx-border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.nx-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.nx-card:hover .nx-card__poster img {
  transform: scale(1.04);
}

.nx-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.nx-card:hover .nx-card__overlay {
  opacity: 1;
}

@media (hover: none) {
  .nx-card__overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.28);
  }
}

.nx-card__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nx-accent);
  color: #0c0e12;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.nx-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nx-teal);
}

.nx-card__score {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.45rem;
  background: var(--nx-accent);
  color: #0c0e12;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.nx-card__duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.4rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  font-size: 0.65rem;
  color: #fff;
}

.nx-card__foot {
  padding: 0.55rem 0.15rem 0;
}

.nx-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.nx-card:hover .nx-card__title {
  color: var(--nx-accent);
}

.nx-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--nx-text-muted);
}

/* ── Why us ── */
.nx-features {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
}

@media (min-width: 768px) {
  .nx-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.nx-feature {
  text-align: center;
  padding: 1rem;
}

.nx-feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: var(--nx-accent-soft);
  border: 1px solid var(--nx-border-strong);
  display: grid;
  place-items: center;
  color: var(--nx-accent);
  font-size: 1.1rem;
}

.nx-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.nx-feature p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--nx-text-muted);
  line-height: 1.6;
}

/* ── Catalog page ── */
.nx-catalog {
  padding: 1.5rem 0 3rem;
}

.nx-catalog__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .nx-catalog__layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.nx-catalog__sidebar {
  display: none;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1rem;
  position: sticky;
  top: calc(var(--nx-header-h) + var(--nx-strip-h) + 1rem);
}

@media (min-width: 900px) {
  .nx-catalog__sidebar {
    display: block;
  }
}

.nx-catalog__sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-text-muted);
}

.nx-catalog__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nx-catalog__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--nx-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nx-catalog__nav a:hover {
  background: var(--nx-accent-soft);
  color: var(--nx-text);
}

.nx-catalog__nav a.active {
  background: var(--nx-accent);
  color: #0c0e12;
}

.nx-catalog__banner {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--nx-bg-card) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid var(--nx-border);
  border-left: 4px solid var(--nx-accent);
  border-radius: var(--nx-radius-lg);
  margin-bottom: 1.25rem;
}

.nx-catalog__banner h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.nx-catalog__banner p {
  margin: 0 0 0.75rem;
  color: var(--nx-text-muted);
  font-size: 0.9rem;
}

.nx-catalog__count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--nx-bg-elevated);
  border-radius: 999px;
  font-size: 0.8rem;
}

.nx-catalog__count strong {
  color: var(--nx-accent);
}

.nx-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nx-catalog__toolbar select {
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  color: var(--nx-text);
  font-size: 0.85rem;
  cursor: pointer;
}

.nx-catalog__toolbar select:focus {
  outline: none;
  border-color: var(--nx-border-strong);
}

/* ── Pager ── */
.nx-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.nx-pager button {
  padding: 0.5rem 1rem;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  color: var(--nx-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nx-pager button:hover:not(:disabled) {
  border-color: var(--nx-accent);
  background: var(--nx-accent-soft);
}

.nx-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nx-pager span {
  font-size: 0.85rem;
  color: var(--nx-text-muted);
  padding: 0 0.5rem;
}

/* ── Footer ── */
.nx-footer {
  margin-top: auto;
  background: var(--nx-bg-elevated);
  border-top: 3px solid var(--nx-accent);
}

.nx-footer__inner {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
}

.nx-footer__top {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .nx-footer__top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.nx-footer__brand strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--nx-accent);
}

.nx-footer__brand p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--nx-text-muted);
  line-height: 1.7;
}

.nx-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--nx-text);
}

.nx-footer__contact-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: #2aabee;
  filter: drop-shadow(0 5px 14px rgba(42, 171, 238, 0.35));
  animation: nx-telegram-flight 2.6s ease-in-out infinite;
  transform-origin: 55% 45%;
}

@keyframes nx-telegram-flight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  45% {
    transform: translate3d(4px, -6px, 0) rotate(8deg);
  }
  70% {
    transform: translate3d(1px, -3px, 0) rotate(2deg);
  }
}

.nx-footer__col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-text);
}

.nx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nx-footer__links a {
  font-size: 0.82rem;
  color: var(--nx-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nx-footer__links a:hover {
  color: var(--nx-accent);
}

.nx-footer__bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--nx-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nx-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.nx-footer__bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--nx-text-muted);
}

.nx-footer__keywords {
  font-size: 0.68rem;
  color: var(--nx-text-muted);
  opacity: 0.8;
  line-height: 1.6;
}

/* ── Empty ── */
.nx-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--nx-bg-card);
  border: 1px dashed var(--nx-border);
  border-radius: var(--nx-radius-lg);
  color: var(--nx-text-muted);
}

/* ── Watch page tweaks ── */
.nx-watch {
  padding: 1.5rem 0 3rem;
}

.nx-watch__player {
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nx-border);
  background: #000;
  margin-bottom: 1.25rem;
}

.nx-watch__player video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
}

.nx-watch__panel {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.25rem;
}

.nx-watch__panel h1 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.nx-watch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nx-watch__tag {
  padding: 0.25rem 0.6rem;
  background: var(--nx-accent-soft);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--nx-accent);
  text-decoration: none;
}

.nx-watch__related {
  margin-top: 2rem;
}

.nx-watch__related-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.nx-watch__related-item:hover {
  background: var(--nx-bg-elevated);
}

.nx-watch__related-thumb {
  width: 64px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.nx-watch__related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Auth ── */
.nx-auth {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.nx-auth__card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow);
}

.nx-auth__card h1,
.nx-auth__card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.nx-auth__card > p {
  margin: 0 0 1.5rem;
  color: var(--nx-text-muted);
  font-size: 0.9rem;
}

.nx-auth__field {
  display: block;
  margin-bottom: 1rem;
}

.nx-auth__field span {
  display: block;
  font-size: 0.8rem;
  color: var(--nx-text-muted);
  margin-bottom: 0.35rem;
}

.nx-auth__field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  color: var(--nx-text);
  font-size: 0.9rem;
}

.nx-auth__field input:focus {
  outline: none;
  border-color: var(--nx-border-strong);
}

.nx-auth__error {
  color: #f87171;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.nx-auth__submit {
  width: 100%;
  padding: 0.7rem;
  background: var(--nx-accent);
  color: #0c0e12;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.nx-auth__submit:hover {
  background: var(--nx-accent-hover);
}

.nx-auth__foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--nx-text-muted);
}

.nx-auth__foot a {
  color: var(--nx-accent);
  text-decoration: none;
  font-weight: 600;
}

body.nx-nav-open {
  overflow: hidden;
}

.nx-header__bar,
.nx-header__strip-inner,
.nx-footer__inner {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 380px) {
  .nx-header__title {
    font-size: 0.95rem;
    max-width: 7.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .nx-footer__keywords {
    font-size: 0.72rem;
  }
}

/* ── Info pages ── */
.nx-info {
  padding: 1.5rem 0 3rem;
}

.nx-info__head {
  margin-bottom: 1.25rem;
}

.nx-info__kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nx-accent);
  margin-bottom: 0.5rem;
}

.nx-info__head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.nx-info__head p {
  margin: 0;
  color: var(--nx-text-muted);
  line-height: 1.7;
}

.nx-info__sheet {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.25rem;
}

.nx-info__sheet h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.nx-info__sheet h2:first-child {
  margin-top: 0;
}

.nx-info__sheet p,
.nx-info__sheet li {
  color: var(--nx-text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
}

.nx-info__sheet ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.nx-info__back {
  margin-top: 1.25rem;
}

.nx-info__back a {
  color: var(--nx-accent);
  text-decoration: none;
  font-weight: 600;
}

/* ── Error boundary ── */
.nx-error {
  padding: 2rem 0 3rem;
}

.nx-error__card {
  background: var(--nx-bg-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem;
}

.nx-error__card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.nx-error__card p {
  margin: 0 0 1rem;
  color: var(--nx-text-muted);
}

.nx-error__card pre {
  margin: 0 0 1rem;
  padding: 0.75rem;
  background: var(--nx-bg-elevated);
  border-radius: 8px;
  color: #f87171;
  white-space: pre-wrap;
  font-size: 0.82rem;
  overflow-x: auto;
}

@media (prefers-reduced-motion: reduce) {
  .nx-footer__contact-icon {
    animation: none;
  }
}
