/* meganz.xyz/noviizgled — refinement layer.
   Loaded after /style.css, so it only overrides what it needs to. The layout,
   colours and content stay the same; this tightens spacing, makes the search /
   sort / category controls reachable while scrolling and cleans up the cards. */

:root {
  /* Sticky offset for the toolbar, measured in refine.js. It must never feed
     back into the header's own height or the header grows on every scroll. */
  --nz-stick: 64px;
  --nz-panel: rgba(13, 13, 22, 0.86);
  --nz-line: rgba(255, 255, 255, 0.08);
  --nz-line-strong: rgba(255, 255, 255, 0.14);
}

/* ---------- Header ---------- */

/* Slimmer header once you start scrolling, so more of the grid is visible. */
.site-header.is-scrolled .header-inner {
  min-height: 62px;
}

.brand-badge {
  transition: width 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled .brand-badge {
  width: 38px;
  height: 38px;
}

.site-header.is-scrolled .brand-tag {
  display: none;
}

/* Reading progress along the bottom edge of the header. */
.nz-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear, opacity 0.3s ease;
  pointer-events: none;
}

/* ---------- Hero: same content, less scrolling ---------- */

.page-shell {
  padding: 18px 0 56px;
}

.hero-center {
  padding: 4px 0 18px;
}

/* Live / free / totals — one even row, same slot size. */
.nz-hero-chips {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 10px;
  width: min(960px, 100%);
  margin: 0 auto 16px;
}

.nz-hero-chips > * {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
}

.nz-hero-chips .catalog-stats-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  column-gap: 14px;
  padding: 6px 18px;
  white-space: normal;
}

.nz-hero-chips .catalog-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0 4px;
}

.nz-hero-chips .catalog-stat strong {
  font-size: 13.5px;
  line-height: 1.1;
}

.nz-hero-chips .catalog-stat small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.58);
}

.nz-hero-chips .catalog-stat-sep {
  width: 1px;
  align-self: stretch;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0;
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 8px;
}

.hero-subtitle {
  margin-bottom: 10px;
  font-size: 15.5px;
  max-width: 560px;
}

.hero-rating {
  margin-bottom: 0;
  gap: 8px;
  font-size: 13px;
}

/* ---------- Sticky toolbar: search + sort + categories ---------- */

.nz-toolbar {
  position: sticky;
  top: calc(var(--nz-stick) - 2px);
  z-index: 20;
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 18px;
  background: var(--nz-panel);
  border: 1px solid var(--nz-line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nz-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The real search field is moved in here, so it follows you down the page. */
.nz-toolbar .hero-search-wrap {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
}

.nz-toolbar .hero-search {
  padding: 12px 42px 12px 44px;
  border-radius: 12px;
  font-size: 14.5px;
}

.nz-toolbar .search-icon {
  left: 15px;
}

.nz-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nz-clear.is-visible {
  display: grid;
}

.nz-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nz-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--nz-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.hero-search:focus ~ .nz-kbd,
.nz-clear.is-visible ~ .nz-kbd {
  opacity: 0;
}

/* Sort tabs become a compact segmented control. */
.nz-toolbar .filter-tabs {
  margin: 0;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nz-line);
  flex-wrap: nowrap;
}

.nz-toolbar .tab-btn {
  padding: 8px 14px;
  border-radius: 9px;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
}

.nz-toolbar .tab-btn.active {
  box-shadow: none;
}

.nz-count {
  flex: 0 0 auto;
  padding: 0 6px 0 4px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nz-count strong {
  color: var(--text);
}

/* Category chips — the drawer still works, this is just a shortcut. */
.nz-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nz-chips::-webkit-scrollbar {
  display: none;
}

.nz-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--nz-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.nz-chip:hover {
  color: #fff;
  border-color: var(--nz-line-strong);
  transform: translateY(-1px);
}

.nz-chip.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(129, 140, 248, 0.85));
  border-color: transparent;
  color: #fff;
}

.nz-chip-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
}

/* The standalone "All categories" bar is redundant next to the chips. */
.active-category-bar {
  display: none;
}

/* ---------- Cards ---------- */

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 18px;
}

.catalog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pager-btn {
  min-width: 42px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pager-btn.is-current {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.pager-btn:hover:not(:disabled):not(.is-current) {
  border-color: rgba(255, 255, 255, 0.2);
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pager-gap,
.pager-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.pager-meta {
  flex-basis: 100%;
  text-align: center;
}

/* Each card is now one solid panel instead of a floating image + loose text. */
.content-card {
  padding: 10px 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.content-card .card-image-wrap {
  margin-bottom: 10px;
  border-radius: 14px;
  cursor: pointer;
}

/* The panel itself lifts now, so the image no longer needs to. */
.content-card:hover .card-image-wrap {
  transform: none;
  box-shadow: none;
}

.content-card:hover .card-image {
  transform: scale(1.07);
}

.card-image {
  transition: transform 0.45s ease;
}

.card-title {
  margin: 0 2px 8px;
  text-align: left;
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title-link {
  text-decoration: none;
}

.card-meta {
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  font-size: 12.5px;
}

.card-stars {
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Badges: smaller and glassy so they stop fighting with the artwork. */
.badge-hot,
.badge-new {
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 7px;
  top: 8px;
  left: 8px;
}

.badge-new {
  top: 8px;
}

.badge-cat {
  top: 8px;
  right: 8px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  max-width: 62%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Unlock button slides up on hover; on touch screens it stays put. */
.view-content-btn {
  bottom: 10px;
  width: calc(100% - 20px);
  padding: 11px 14px;
  font-size: 11.5px;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.content-card:hover .view-content-btn,
.content-card:focus-within .view-content-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.view-content-btn:hover {
  transform: translateX(-50%) translateY(-2px);
}

.card-mega-stats--overlay {
  bottom: 10px;
  font-size: 10px;
  border-radius: 9px;
  transition: bottom 0.22s ease, opacity 0.22s ease;
}

.content-card:hover .card-mega-stats--overlay {
  bottom: 52px;
}

.card-image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.12) 42%, transparent 62%);
}

@media (hover: none) {
  .view-content-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .card-mega-stats--overlay {
    bottom: 52px;
  }
}

/* ---------- Featured strip ---------- */

.featured-section {
  padding: 18px;
  margin-bottom: 22px;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.content-card--featured {
  border-color: rgba(236, 72, 153, 0.22);
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .nz-toolbar {
    padding: 9px;
    border-radius: 16px;
  }

  .nz-toolbar-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nz-toolbar .hero-search-wrap {
    flex: 1 1 100%;
    order: 1;
  }

  .nz-toolbar .hero-search {
    padding: 10px 14px 10px 42px;
  }

  .nz-toolbar .filter-tabs {
    order: 2;
    flex: 1 1 65%;
  }

  .nz-toolbar .tab-btn {
    flex: 1 1 0;
    padding: 7px 8px;
    font-size: 12.5px;
  }

  .nz-count {
    order: 3;
    flex: 1 1 auto;
    text-align: right;
    font-size: 12px;
  }

  .nz-chips {
    margin-top: 8px;
  }

  .nz-chip {
    padding: 6px 11px;
    font-size: 12.5px;
  }

  .nz-kbd {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .content-card {
    padding: 8px 8px 10px;
    border-radius: 16px;
  }

  .card-title {
    font-size: 13px;
  }
}

/* ---------- Request a model: header button + dialog ---------- */

.nz-req-btn,
.tutorial-btn.nz-shine {
  position: relative;
  overflow: hidden;
}

.skip-ads-btn .btn-shine,
.nz-req-btn .btn-shine,
.tutorial-btn .btn-shine,
.nz-live-btn .btn-shine,
.nz-cam-cta .btn-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: shine 3s ease-in-out infinite;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.32) 50%, transparent 62%);
}

.nz-req-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nz-req-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px var(--accent-glow);
}

.nz-req-btn:active {
  transform: scale(0.97);
}

.nz-live-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 48%, #be123c 100%);
  color: #fff;
  font: 800 14px/1 Inter, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(225, 29, 72, 0.45);
  animation: nzLiveGlow 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nz-live-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(244, 63, 94, 0.55);
}

.nz-live-btn:active {
  transform: scale(0.97);
}

.nz-live-btn .btn-shine,
.nz-cam-cta .btn-shine {
  z-index: 0;
}

.nz-live-core {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nz-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: nzLiveDot 1.4s ease-out infinite;
}

.nz-live-btn svg {
  display: block;
  flex: 0 0 auto;
}

@keyframes nzLiveGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4); }
  50% { box-shadow: 0 6px 28px rgba(251, 113, 133, 0.7); }
}

@keyframes nzLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.nz-live-mobile {
  flex: 0 0 auto;
  min-width: 108px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.nz-live-mobile .nz-live-core {
  gap: 6px;
}

/* Wide Live Cam promo under the toolbar + first-card in the grid. */
.nz-cam-ad {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.38);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(251, 113, 133, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(13, 13, 22, 0.92) 42%);
  box-shadow: 0 10px 36px rgba(225, 29, 72, 0.22);
  animation: nzCamAdPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nz-cam-ad:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 16px 44px rgba(244, 63, 94, 0.38);
}

.nz-cam-stage {
  position: relative;
  width: 168px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 113, 133, 0.42), transparent 42%),
    linear-gradient(180deg, #2a0b16 0%, #12080e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nz-cam-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #12080e;
}

.nz-cam-glow {
  display: none;
}

.nz-cam-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.18;
  pointer-events: none;
}

.nz-cam-live {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: 0.08em;
}

.nz-cam-cam,
.nz-cam-play {
  display: none;
}

.nz-cam-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nz-cam-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb7185;
}

.nz-cam-title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.nz-cam-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.nz-cam-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 48%, #be123c 100%);
  color: #fff;
  font: 800 14px/1 Inter, sans-serif;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
}

.nz-cam-card {
  grid-column: span 2;
  text-decoration: none;
  color: inherit;
}

.nz-cam-card .card-image-wrap {
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.5), 0 14px 32px rgba(225, 29, 72, 0.32);
}

.nz-cam-card .view-content-btn {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  opacity: 1;
}

.nz-cam-card .nz-cam-stage,
.nz-cam-stage--card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.nz-cam-stage--card .nz-cam-cam,
.nz-cam-play {
  display: none;
}

.nz-cam-card .card-title {
  color: #fda4af;
}

.nz-cam-meta {
  color: #fb7185;
  font-weight: 700;
}

@keyframes nzCamAdPulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(225, 29, 72, 0.2); }
  50% { box-shadow: 0 14px 42px rgba(251, 113, 133, 0.4); }
}

@keyframes nzCamGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.nz-mobile-req {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  width: 44px;
  height: 40px;
  cursor: pointer;
}

.nz-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nz-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.nz-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 20, 32, 0.98), rgba(12, 12, 20, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.nz-modal.is-open .nz-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.nz-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nz-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nz-modal-kicker {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.28);
  color: #f9a8d4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nz-modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nz-modal-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.nz-req-form {
  display: grid;
  gap: 10px;
}

.nz-req-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nz-req-input:focus {
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.nz-req-submit {
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.nz-req-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.nz-req-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.nz-req-status {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 13.5px;
}

.nz-req-status.is-error {
  color: #fca5a5;
}

.nz-req-done {
  display: none;
  text-align: center;
}

.nz-req-done.is-visible {
  display: block;
  animation: nzPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nzPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.nz-done-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--success);
  font-size: 26px;
  font-weight: 800;
}

.nz-done-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.nz-done-name {
  color: var(--accent-2);
}

/* ---------- "Get notified" Discord call to action ---------- */

.nz-cta {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(88, 101, 242, 0.32);
  text-align: center;
}

.nz-cta-text {
  margin: 0 0 12px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.5;
}

.nz-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--discord);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nz-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

.nz-req-again {
  margin-top: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.nz-req-again:hover {
  color: #fff;
}

.nz-req-exists {
  display: none;
  text-align: left;
}

.nz-req-exists.is-visible {
  display: block;
  animation: nzPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nz-modal-card:has(.nz-req-exists.is-visible) {
  width: min(520px, 100%);
}

.nz-exists-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 440px);
  overflow: auto;
  margin: 2px 0 12px;
  padding-right: 4px;
}

.nz-exists-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nz-exists-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

.nz-exists-image {
  width: 86px;
  height: 114px;
  object-fit: cover;
  border-radius: 12px;
  background: #141420;
  flex: 0 0 auto;
}

.nz-exists-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nz-exists-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.nz-exists-hint {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

/* The wishlist panel at the bottom gets the same follow-up. */
.wishlist-inner .nz-cta {
  max-width: 760px;
}

/* ---------- Empty search result ---------- */

.nz-empty-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.nz-empty-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.nz-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nz-empty-ask {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nz-empty-clear {
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--nz-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nz-empty-clear:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Phone layout ---------- */

@media (max-width: 720px) {
  :root {
    --nz-stick: 58px;
  }

  .container {
    width: min(1280px, calc(100% - 20px));
  }

  .page-shell {
    padding: 6px 0 96px;
  }

  .tutorial-btn,
  .nz-req-btn,
  .skip-ads-btn,
  .nz-live-mobile,
  .announce-banner,
  .site-nudge,
  .hero-subtitle,
  .hero-rating,
  .hero-title,
  .nz-hero-chips .hero-badge {
    display: none !important;
  }

  .site-header {
    background: #07070d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-inner {
    gap: 8px;
    min-height: 52px;
    padding: 6px 0;
  }

  .header-leading {
    flex: 0 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand-copy {
    display: none;
  }

  .brand-badge,
  .brand-badge .brand-logo,
  .brand-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    max-width: 36px;
    max-height: 36px;
  }

  .header-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .discord-btn,
  .telegram-btn {
    display: grid !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 11px;
  }

  .discord-btn svg,
  .telegram-btn svg {
    width: 18px;
    height: 18px;
  }

  .nz-live-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    gap: 5px;
    flex-shrink: 0;
  }

  .nz-live-btn svg {
    width: 13px;
    height: 13px;
  }

  /* Full-bleed 16:9 cam card — no crushed thumbnail + wrapping copy. */
  .nz-cam-ad {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .nz-cam-ad .nz-cam-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .nz-cam-copy {
    padding: 12px 14px 0;
    gap: 4px;
  }

  .nz-cam-card {
    grid-column: 1 / -1;
  }

  .nz-cam-card .card-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .nz-cam-card .nz-cam-stage,
  .nz-cam-stage--card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .nz-cam-live {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 9px;
    gap: 5px;
  }

  .nz-cam-title {
    font-size: 17px;
    line-height: 1.25;
  }

  .nz-cam-sub {
    display: none;
  }

  .nz-cam-cta {
    width: auto;
    margin: 12px 14px 14px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .hero-center {
    padding: 2px 0 8px;
  }

  .nz-hero-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0 0 10px;
  }

  .nz-hero-chips > * {
    display: flex !important;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .nz-hero-chips .live-users-bar {
    justify-content: center;
  }

  .live-users-bar,
  .live-users-text,
  .live-users-text strong {
    white-space: nowrap;
  }

  .live-users-text strong {
    font-size: 15px;
  }

  .nz-hero-chips .catalog-stats-banner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    column-gap: 12px;
    justify-content: stretch;
    justify-items: center;
    align-items: center;
    min-height: 52px;
    padding: 10px 18px;
  }

  .nz-hero-chips .catalog-stat strong {
    font-size: 15px;
  }

  .nz-hero-chips .catalog-stat small {
    font-size: 9px;
  }

  /* Sticky bar: search + sort only. Solid fill so cards don't bleed through. */
  .nz-toolbar {
    top: calc(var(--nz-stick) - 2px);
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #0c0c16;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 14px 18px -6px #0c0c16;
  }

  .nz-chips,
  .nz-count,
  .nz-kbd {
    display: none;
  }

  .nz-toolbar-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .nz-toolbar .hero-search-wrap {
    flex: 1 1 100%;
  }

  .nz-toolbar .hero-search {
    padding: 10px 12px 10px 40px;
    font-size: 14px;
  }

  .nz-toolbar .filter-tabs {
    flex: 1 1 100%;
    width: 100%;
  }

  .nz-toolbar .tab-btn {
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 12px;
  }

  .featured-section {
    padding: 12px;
    margin-bottom: 14px;
  }

  .featured-spark {
    display: none;
  }

  .featured-head h3 {
    font-size: 18px;
  }

  .cards-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .content-card {
    padding: 6px 6px 8px;
    border-radius: 14px;
  }

  .card-title {
    font-size: 12.5px;
    margin-bottom: 4px;
  }

  .card-meta {
    font-size: 11px;
    gap: 4px;
  }

  .card-mega-stats--overlay {
    left: 6px;
    right: 6px;
    bottom: 46px;
    padding: 3px 6px;
    font-size: 8.5px;
    line-height: 1.2;
    max-height: 16px;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .badge-hot,
  .badge-new,
  .badge-cat {
    font-size: 8.5px;
    padding: 2px 6px;
  }

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

  .wishlist-title {
    font-size: 20px;
  }

  /* style.css hides this after its own 640px query; keep the bar on phones. */
  .mobile-bottom-bar {
    display: flex !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-card,
  .card-image,
  .view-content-btn,
  .nz-chip,
  .nz-live-btn,
  .nz-live-dot,
  .nz-cam-ad,
  .nz-cam-glow,
  .nz-cam-play {
    transition: none !important;
    animation: none !important;
  }
}
