/* AnimeXStream Netflix collection — built from the site's own UI system */
:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg2: #0f0f16;
  --bg3: #13131c;
  --card: #16161f;
  --card-hover: #1e1e2c;
  --border: rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.12);
  --primary: #e50914;
  --primary-light: #ff2631;
  --primary-dark: #b20710;
  --primary-glow: rgba(229,9,20,.35);
  --red: #e50914;
  --red-dark: #b20710;
  --red-glow: rgba(229,9,20,.35);
  --gold: #f59e0b;
  --text: #f4f4f5;
  --text2: #a1a1aa;
  --text3: #71717a;
  --header-h: 68px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: .25s ease;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.7);
  --gutter: 4%;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nx-modal-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

/* Header / wordmark follows the main AnimeXStream navigation */
.nx-header {
  position: fixed;
  z-index: 900;
  inset: 0 0 auto;
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(10,10,15,.98), rgba(10,10,15,.72) 72%, transparent);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.nx-header.is-scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nx-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.nx-brand-wordmark {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1.25px;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(229,9,20,.12);
  white-space: nowrap;
}
.nx-nav { display: flex; align-items: center; gap: 1.35rem; }
.nx-nav a {
  position: relative;
  padding: 5px 0;
  color: var(--text2);
  font-size: .84rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nx-nav a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nx-nav a:hover, .nx-nav a.is-active { color: var(--text); }
.nx-nav a:hover::after, .nx-nav a.is-active::after { transform: scaleX(1); }
.nx-header-actions { display: flex; align-items: center; gap: 10px; }
.nx-search-trigger, .nx-menu-trigger {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: var(--text2);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nx-search-trigger:hover, .nx-menu-trigger:hover {
  border-color: var(--border2);
  background: rgba(255,255,255,.1);
  color: var(--text);
}
.nx-search-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nx-search-trigger span { display: none; }
.nx-menu-trigger { display: none; flex-direction: column; gap: 4px; }
.nx-menu-trigger span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.nx-menu-trigger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nx-menu-trigger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nx-mobile-nav {
  position: fixed;
  z-index: 899;
  inset: var(--header-h) 0 auto;
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 12px var(--gutter) 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,.99);
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
}
.nx-mobile-nav.is-open { display: flex; }
.nx-mobile-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text2); font-size: .95rem; }
.nx-mobile-nav a:last-child { border-bottom: 0; }
.nx-mobile-nav a.is-active { color: #fff; }

/* Large featured title and backdrop */
.nx-hero {
  position: relative;
  display: flex;
  height: clamp(520px, 72vw, 760px);
  min-height: 520px;
  max-height: 820px;
  align-items: flex-end;
  overflow: hidden;
  background: #111116;
}
.nx-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 71% 28%, rgba(229,9,20,.2), transparent 36%),
    linear-gradient(130deg, #1b1115 0%, #111116 54%, #241216 100%);
  background-position: center 28%;
  background-size: cover;
  transform: scale(1.01);
  transition: background-image .4s ease, transform .7s ease;
}
.nx-hero-backdrop.has-image { animation: nx-hero-enter .65s ease both; }
@keyframes nx-hero-enter {
  from { opacity: .65; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1.01); }
}
.nx-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,15,.86) 5%, rgba(10,10,15,.08) 46%, rgba(10,10,15,.18) 100%),
    linear-gradient(90deg, rgba(10,10,15,.93) 0%, rgba(10,10,15,.72) 34%, rgba(10,10,15,.14) 76%, rgba(10,10,15,.02) 100%);
}
.nx-hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, 78%);
  margin: 0 0 clamp(112px, 13vw, 156px) var(--gutter);
  padding-top: calc(var(--header-h) + 45px);
}
.nx-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--text2);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nx-netflix-mark {
  display: inline-grid;
  width: 22px;
  height: 26px;
  place-items: center;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 1px 10px var(--red-glow);
}
.nx-feature-label {
  margin: 0 0 3px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nx-hero h1 {
  max-width: 680px;
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.4vw, 6.5rem);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: .98;
  text-shadow: 0 3px 22px rgba(0,0,0,.28);
  text-wrap: balance;
}
.nx-hero-description {
  max-width: 510px;
  margin: 0;
  color: #e3e3e5;
  font-size: clamp(.86rem, 1.2vw, 1rem);
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.nx-hero-meta, .nx-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: #d2d2d5;
  font-size: .78rem;
}
.nx-hero-meta:empty { display: none; }
.nx-meta-dot { color: var(--red); }
.nx-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nx-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .88rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nx-button:hover { transform: translateY(-1px); }
.nx-button-primary { background: var(--red); color: #fff; }
.nx-button-primary:hover { background: var(--primary-light); }
.nx-button-primary svg { width: 15px; height: 15px; fill: currentColor; }
.nx-button-play { font-size: .9rem; }
.nx-button-secondary { border-color: rgba(255,255,255,.15); background: rgba(109,109,110,.7); color: #fff; }
.nx-button-secondary:hover { background: rgba(128,128,129,.86); }
.nx-button-secondary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Skeleton uses the same geometry as the real hero and poster cards. */
.nx-skeleton-line, .nx-skeleton-poster, .nx-skeleton-button {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}
.nx-skeleton-line::after, .nx-skeleton-poster::after, .nx-skeleton-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.09) 48%, transparent 76%);
  content: "";
  transform: translateX(-100%);
  animation: nx-shimmer 1.65s ease-in-out infinite;
}
@keyframes nx-shimmer { to { transform: translateX(100%); } }
.nx-hero-skeleton { width: min(600px, 78%); }
.nx-skeleton-kicker { width: 185px; height: 13px; margin: 0 0 15px; border-radius: 3px; }
.nx-skeleton-title { width: min(475px, 94%); height: clamp(50px, 7vw, 86px); margin: 0 0 9px; border-radius: 4px; }
.nx-skeleton-title-short { width: min(310px, 70%); margin-bottom: 18px; }
.nx-skeleton-copy { width: min(420px, 85%); height: 11px; margin-bottom: 8px; border-radius: 3px; }
.nx-skeleton-copy-short { width: min(280px, 65%); margin-bottom: 22px; }
.nx-skeleton-button { width: 140px; height: 43px; border-radius: 5px; }
.nx-skeleton-shell { padding: 0 var(--gutter); }
.nx-skeleton-row { margin: 0 0 27px; }
.nx-skeleton-row-title { width: 170px; height: 21px; margin: 0 0 13px; border-radius: 3px; }
.nx-skeleton-posters { display: flex; gap: .75rem; overflow: hidden; padding: 2px 1px 10px; }
.nx-skeleton-poster { flex: 0 0 clamp(120px, 13vw, 155px); aspect-ratio: 2 / 3; border-radius: 14px; background: var(--bg3); }
.nx-skeleton-poster:nth-child(5), .nx-skeleton-poster:nth-child(6) { opacity: .68; }

/* Content rows and poster cards mirror style.css's own anime-card system. */
.nx-catalog { position: relative; z-index: 4; margin-top: -60px; padding-bottom: 42px; }
.nx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.nx-catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 0 var(--gutter); }
.nx-section-kicker { margin: 0 0 2px; color: var(--text3); font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nx-catalog-intro h2 { margin: 0; color: var(--text); font-size: 1.25rem; font-weight: 700; }
.nx-collection-count { padding-bottom: 4px; color: var(--text3); font-size: .76rem; }
.section { margin-bottom: 2.4rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0 var(--gutter);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}
.section-title::before {
  width: 4px;
  height: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(var(--primary-dark), var(--primary-light));
  content: "";
}
.cards-row {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: .5rem var(--gutter) .8rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.cards-row::-webkit-scrollbar { display: none; }
.nx-row { scroll-margin-top: 82px; }
.nx-row-controls { display: flex; gap: 7px; }
.nx-row-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--text2);
  font-size: 20px;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nx-row-arrow:hover { border-color: rgba(229,9,20,.5); background: rgba(229,9,20,.14); color: #fff; }
.anime-card {
  position: relative;
  flex: 0 0 clamp(120px, 13vw, 155px);
  width: clamp(120px, 13vw, 155px);
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: transform .28s ease, filter .28s ease;
}
.anime-card:hover { z-index: 5; box-shadow: none; transform: translateY(-4px); }
.anime-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg3);
  isolation: isolate;
}
.anime-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg3);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.anime-card:hover .anime-card-img { transform: scale(1.045); filter: brightness(1.05); }
.anime-card-thumb.no-img { display: grid; place-items: center; background: linear-gradient(145deg, #1d1d29, #12121a); }
.nx-card-fallback { color: rgba(255,255,255,.23); font-family: var(--font-display); font-size: 4rem; }
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.42));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.anime-card:hover .card-overlay, .anime-card:focus-visible .card-overlay { opacity: 1; }
.card-play-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(229,9,20,.93);
  box-shadow: 0 5px 18px rgba(0,0,0,.35);
  color: #fff;
  font-size: 1rem;
  transform: scale(.82);
  transition: transform .25s ease, background .25s ease;
}
.anime-card:hover .card-play-icon, .anime-card:focus-visible .card-play-icon { transform: scale(1); }
.anime-card-info { width: 100%; margin: 0; padding: 9px 2px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.anime-card-title {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anime-card-meta { display: block; overflow: hidden; margin-top: 3px; color: var(--text3); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.nx-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 50px var(--gutter) 0;
  padding: 17px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: .72rem;
}
.nx-footer-brand { color: var(--text2); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .8px; }

/* Empty/error state */
.nx-empty {
  display: grid;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  margin: 0 var(--gutter);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg2), var(--bg));
  text-align: center;
}
.nx-empty-kicker { margin-bottom: 6px; color: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.nx-empty h2 { margin: 0 0 7px; color: var(--text); font-size: 1.25rem; }
.nx-empty p { max-width: 510px; margin: 0 0 16px; color: var(--text2); font-size: .84rem; line-height: 1.65; }
.nx-text-button { padding: 0; border: 0; background: transparent; color: var(--primary-light); font-size: .82rem; font-weight: 600; }
.nx-text-button span { margin-left: 4px; }

/* Search / detail overlays */
.nx-overlay {
  position: fixed;
  z-index: 9000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 22px;
  background: rgba(8,8,13,.84);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.nx-overlay.is-open { display: flex; }
.nx-search-panel, .nx-detail-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 850px);
  overflow: auto;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  background: #111118;
  box-shadow: var(--shadow-lg);
}
.nx-search-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: clamp(23px, 4vw, 38px);
  overflow: hidden;
}
.nx-search-panel > label { display: block; margin: 0 48px 12px 0; color: var(--text); font-size: .95rem; font-weight: 600; }
.nx-search-field { display: flex; height: 48px; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid var(--border2); border-radius: 8px; background: rgba(255,255,255,.05); }
.nx-search-field:focus-within { border-color: rgba(229,9,20,.62); box-shadow: 0 0 0 3px rgba(229,9,20,.12); }
.nx-search-field svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--text2); stroke-width: 1.8; }
.nx-search-field input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .9rem; }
.nx-search-hint { margin: 12px 0; color: var(--text3); font-size: .75rem; }
.nx-search-results {
  display: grid;
  min-width: 0;
  min-height: 0;
  max-height: min(48vh, 440px);
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.nx-search-result {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
}
.nx-search-result:hover, .nx-search-result:focus-visible { outline: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.075); }
.nx-search-result img, .nx-search-result .nx-result-fallback { width: 43px; height: 59px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; }
.nx-result-fallback { display: grid; place-items: center; background: var(--bg3); color: var(--red); font-family: var(--font-display); font-size: 1.4rem; }
.nx-search-result-copy { min-width: 0; max-width: 100%; overflow: hidden; }
.nx-search-result-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.nx-search-result-copy span { display: block; overflow: hidden; margin-top: 4px; color: var(--text3); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.nx-search-no-results { padding: 14px 4px; color: var(--text2); font-size: .84rem; }
.nx-close { position: absolute; z-index: 5; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; font-size: 24px; line-height: 1; }
.nx-close:hover { background: rgba(255,255,255,.14); }
.nx-detail-panel { display: grid; grid-template-columns: minmax(190px,.8fr) 1.2fr; }
.nx-detail-art { min-height: 390px; background-color: var(--bg3); background-position: center; background-size: cover; }
.nx-detail-content { align-self: end; padding: clamp(23px, 4vw, 38px); }
.nx-detail-content .nx-eyebrow { color: var(--red); }
.nx-detail-content h2 { margin: 0 0 8px; color: var(--text); font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.nx-detail-meta { margin: 0 0 14px; color: var(--text2); font-size: .75rem; }
.nx-detail-description { margin: 0 0 22px; color: #d0d0d5; font-size: .84rem; line-height: 1.7; white-space: pre-line; }
.nx-detail-description:empty { display: none; }

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nx-nav { display: none; }
  .nx-menu-trigger { display: inline-flex; }
  .nx-brand-wordmark { font-size: 1.7rem; }
  .nx-hero {
    height: auto;
    min-height: min(82vh, 740px);
    max-height: none;
    padding-top: calc(var(--header-h) + 58px);
    padding-bottom: clamp(64px, 9vh, 92px);
  }
  .nx-hero-content { width: min(600px, 88%); margin: 0 var(--gutter); padding-top: 0; }
  .nx-hero-skeleton { width: min(600px, 88%); margin: 0 var(--gutter); }
  .nx-hero h1 { font-size: clamp(2.65rem, 8vw, 3.75rem); line-height: 1; }
  .nx-hero-description { max-width: 430px; }
  .nx-catalog { margin-top: -43px; }
  .section-title { font-size: 1.1rem; }
  .anime-card { flex-basis: 130px; width: 130px; }
  .nx-skeleton-poster { flex-basis: 130px; }
  .nx-detail-panel { grid-template-columns: 1fr; }
  .nx-detail-art { min-height: clamp(210px, 55vw, 320px); }
}
@media (max-width: 480px) {
  :root { --gutter: 4%; }
  .nx-header { gap: 10px; }
  .nx-header-actions { gap: 7px; }
  .nx-brand-wordmark { font-size: 1.52rem; letter-spacing: .8px; }
  .nx-search-trigger, .nx-menu-trigger { width: 35px; height: 35px; }
  .nx-hero {
    height: auto;
    min-height: min(84vh, 720px);
    max-height: none;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: clamp(58px, 9vh, 82px);
  }
  .nx-hero-content { width: 92%; margin: 0 var(--gutter); }
  .nx-hero-skeleton { width: 92%; margin: 0 var(--gutter); }
  .nx-hero h1 { font-size: clamp(2.35rem, 10vw, 3rem); line-height: 1.02; }
  .nx-hero-description { max-width: 100%; font-size: .86rem; }
  .nx-hero-meta { font-size: .72rem; }
  .nx-hero-actions { gap: 8px; margin-top: 15px; }
  .nx-button { min-height: 40px; padding: 0 13px; font-size: .8rem; }
  .nx-catalog { margin-top: -32px; }
  .nx-catalog-intro { margin-bottom: 12px; }
  .nx-catalog-intro h2 { font-size: 1.08rem; }
  .section-header { margin-bottom: .7rem; }
  .section-title { font-size: 1.02rem; }
  .nx-row-arrow { width: 29px; height: 29px; }
  .cards-row { gap: .65rem; }
  .anime-card { flex-basis: 120px; width: 120px; }
  .anime-card-thumb { border-radius: 13px; }
  .anime-card-info { padding-top: 8px; }
  .anime-card-title { font-size: .77rem; }
  .nx-skeleton-posters { gap: .65rem; }
  .nx-skeleton-poster { flex-basis: 120px; border-radius: 13px; }
  .nx-empty { min-height: 190px; padding: 22px; }
  .nx-empty h2 { font-size: 1.1rem; }
  .nx-footer { margin-top: 34px; font-size: .64rem; }
  .nx-overlay { align-items: center; padding: 12px; }
  .nx-search-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px 16px 14px;
    border-radius: 14px;
  }
  .nx-search-panel > label { margin-right: 44px; }
  .nx-search-results { max-height: min(48vh, 360px); }
  .nx-search-result { min-height: 70px; grid-template-columns: 43px minmax(0, 1fr); gap: 10px; }
  .nx-search-result-copy strong { font-size: .8rem; }
}
@media (hover: none) {
  .anime-card:hover { transform: none; }
  .anime-card:hover .anime-card-img { transform: none; filter: none; }
  .card-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* ============ WELCOME POPUP ============ */
.nx-welcome {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(229, 9, 20, .22), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 105, 180, .15), transparent 55%),
    rgba(6, 6, 12, .92);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transition: opacity .3s ease;
}
.nx-welcome.is-open { display: flex; opacity: 1; }

.nx-welcome-flowers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.nx-flower {
  position: absolute;
  top: -60px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
  animation: nx-flower-fall linear infinite;
  will-change: transform;
}
@keyframes nx-flower-fall {
  0%   { transform: translateY(-10vh) rotate(0deg) translateX(0); }
  25%  { transform: translateY(25vh) rotate(90deg) translateX(20px); }
  50%  { transform: translateY(55vh) rotate(180deg) translateX(-15px); }
  75%  { transform: translateY(80vh) rotate(270deg) translateX(18px); }
  100% { transform: translateY(115vh) rotate(360deg) translateX(0); }
}

.nx-welcome-card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(28, 20, 28, .96), rgba(15, 12, 18, .98));
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(229, 9, 20, .05) inset;
  text-align: center;
  transform: translateY(20px) scale(.96);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.nx-welcome.is-open .nx-welcome-card { transform: translateY(0) scale(1); }

.nx-welcome-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(229, 9, 20, .5), rgba(255, 105, 180, .35), rgba(255, 200, 100, .3));
  filter: blur(22px);
  opacity: .55;
  z-index: -1;
  animation: nx-glow-pulse 3.5s ease-in-out infinite;
}
@keyframes nx-glow-pulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: .65; }
}

.nx-welcome-kicker {
  margin: 0 0 10px;
  color: #ffb8c2;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nx-welcome-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: .02em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff, #ffd7dd 45%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nx-welcome-card p {
  margin: 0 0 26px;
  color: #cfcfd6;
  font-size: .92rem;
  line-height: 1.7;
}

/* Shake button */
.nx-welcome-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e50914, #ff2631 50%, #b20710);
  box-shadow: 0 12px 30px -8px rgba(229, 9, 20, .7);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .25s ease;
  animation: nx-shake 2.4s ease-in-out infinite;
}
.nx-welcome-btn:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 40px -8px rgba(229, 9, 20, .9);
}
@keyframes nx-shake {
  0%, 40%, 60%, 100% { transform: rotate(0deg) scale(1); }
  44% { transform: rotate(-5deg) scale(1.05); }
  48% { transform: rotate(5deg) scale(1.05); }
  52% { transform: rotate(-4deg) scale(1.05); }
  56% { transform: rotate(4deg) scale(1.05); }
}

@media (max-width: 480px) {
  .nx-welcome-card { padding: 26px 20px; border-radius: 16px; }
  .nx-welcome-btn { padding: 0 22px; font-size: .86rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nx-flower,
  .nx-welcome-glow,
  .nx-welcome-btn {
    animation: none !important;
  }
}
/* ============ STATUS BADGE ============ */
.anime-card-thumb {
  position: relative;
}
.status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.status-badge.status-stream {
  background: rgba(59, 130, 246, .94);
  border: 1px solid rgba(147, 197, 253, .5);
}
.status-badge.status-download {
  background: rgba(248, 113, 113, .94);
  border: 1px solid rgba(254, 202, 202, .5);
}

/* Search result thumb wraps the badge */
.nx-search-thumb {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 43px;
  height: 59px;
}
.nx-search-thumb img,
.nx-search-thumb .nx-result-fallback {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}
.nx-search-thumb .status-badge {
  top: 3px;
  right: 3px;
  padding: 1px 4px;
  font-size: 7px;
  border-radius: 3px;
}

/* Watch page poster badge */
.nx-watch-poster {
  position: relative;
}
.nx-watch-poster .status-badge {
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 4px 10px;
}

/* =========================================================
   NETFLIX NETWORKS
   CLEAN HORIZONTAL LOGO ROW
   ========================================================= */

.netflix-networks {
  position: relative !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 32px 24px 38px !important;

  background: #080808 !important;

  overflow: hidden !important;

  box-sizing: border-box !important;

  z-index: 2 !important;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.netflix-networks-header {
  display: flex !important;
  align-items: baseline !important;

  gap: 10px !important;

  width: 100% !important;

  margin: 0 0 20px !important;
  padding: 0 !important;
}

.netflix-networks-kicker {
  display: inline-block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #e50914 !important;

  font-size: 10px !important;
  font-weight: 800 !important;

  line-height: 1 !important;
  letter-spacing: 1.8px !important;

  text-transform: uppercase !important;
}

.netflix-networks-title {
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #f5f5f5 !important;

  font-size: 24px !important;
  font-weight: 800 !important;

  line-height: 1.1 !important;

  letter-spacing: -.4px !important;
}


/* ---------------------------------------------------------
   HORIZONTAL ROW
--------------------------------------------------------- */

.netflix-networks-row {
  display: flex !important;

  flex-direction: row !important;
  flex-wrap: nowrap !important;

  align-items: center !important;

  justify-content: flex-start !important;

  gap: 26px !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 4px 2px 10px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  box-sizing: border-box !important;

  scrollbar-width: none !important;

  -webkit-overflow-scrolling: touch;
}

.netflix-networks-row::-webkit-scrollbar {
  display: none !important;
}


/* ---------------------------------------------------------
   LOGO ITEM
--------------------------------------------------------- */

.netflix-networks-row .ax-network-card {
  flex: 0 0 72px !important;

  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;

  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: none !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  overflow: visible !important;

  cursor: pointer !important;

  box-sizing: border-box !important;

  transition:
    transform .22s ease,
    opacity .22s ease !important;
}


/* ---------------------------------------------------------
   LOGO IMAGE
--------------------------------------------------------- */

.netflix-networks-row .ax-network-card img {
  display: block !important;

  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;

  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;

  background: transparent !important;

  border: none !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  outline: none !important;

  opacity: .94 !important;

  transition:
    transform .22s ease,
    filter .22s ease,
    opacity .22s ease !important;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.netflix-networks-row .ax-network-card:hover {
  transform: translateY(-3px) !important;
}

.netflix-networks-row .ax-network-card:hover img {
  opacity: 1 !important;

  transform: scale(1.08) !important;

  filter:
    drop-shadow(
      0 6px 14px rgba(255,255,255,.12)
    ) !important;
}


/* ---------------------------------------------------------
   CLICK
--------------------------------------------------------- */

.netflix-networks-row .ax-network-card:active {
  transform: scale(.94) !important;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

  .netflix-networks {
    padding:
      28px 18px 34px !important;
  }

  .netflix-networks-header {
    margin-bottom: 18px !important;
  }

  .netflix-networks-kicker {
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
  }

  .netflix-networks-title {
    font-size: 22px !important;
  }

  .netflix-networks-row {
    gap: 24px !important;

    padding:
      3px 2px 9px !important;
  }

  .netflix-networks-row .ax-network-card {
    flex-basis: 68px !important;

    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;

    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  .netflix-networks-row .ax-network-card img {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

}


/* ---------------------------------------------------------
   VERY SMALL PHONES
--------------------------------------------------------- */

@media (max-width: 380px) {

  .netflix-networks {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .netflix-networks-row {
    gap: 20px !important;
  }

  .netflix-networks-row .ax-network-card {
    flex-basis: 62px !important;

    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }

  .netflix-networks-row .ax-network-card img {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;

    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

}

/* =========================================================
   NETFLIX NETWORKS — FINAL UI FIX
   Targets the ACTUAL classes used in netflix.html
   ========================================================= */

.nx-networks {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 30px 4% 34px !important;

  background: #080808 !important;

  box-sizing: border-box !important;
  overflow: hidden !important;

  z-index: 2 !important;
}

.nx-networks-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;

  box-sizing: border-box !important;
}


/* =========================================================
   HEADING
   ========================================================= */

.nx-networks-header {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;

  width: 100% !important;

  margin: 0 0 18px !important;
  padding: 0 !important;
}

.nx-networks-kicker {
  display: inline-block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #e50914 !important;

  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
}

.nx-networks-header h2 {
  margin: 0 !important;
  padding: 0 !important;

  color: #f5f5f5 !important;

  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;

  letter-spacing: -.4px !important;
}


/* =========================================================
   HORIZONTAL NETWORK ROW
   ========================================================= */

.nx-networks-track {
  display: flex !important;

  flex-direction: row !important;
  flex-wrap: nowrap !important;

  align-items: center !important;
  justify-content: flex-start !important;

  gap: 26px !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 4px 2px 10px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  box-sizing: border-box !important;

  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;

  overscroll-behavior-x: contain;
}

.nx-networks-track::-webkit-scrollbar {
  display: none !important;
}


/* =========================================================
   NETWORK ITEM
   ========================================================= */

.nx-network {
  flex: 0 0 72px !important;

  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;

  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  overflow: visible !important;

  text-decoration: none !important;

  cursor: pointer !important;

  box-sizing: border-box !important;

  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    opacity .22s ease !important;
}


/* =========================================================
   NETWORK IMAGE
   ========================================================= */

.nx-network img {
  display: block !important;

  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;

  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  outline: none !important;

  opacity: .94 !important;

  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    filter .22s ease,
    opacity .22s ease !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.nx-network:hover {
  transform: translateY(-3px) !important;
}

.nx-network:hover img {
  opacity: 1 !important;

  transform: scale(1.08) !important;

  filter:
    drop-shadow(0 6px 14px rgba(255,255,255,.12)) !important;
}


/* =========================================================
   CLICK / TAP
   ========================================================= */

.nx-network:active {
  transform: scale(.94) !important;
}


/* =========================================================
   ACTIVE NETFLIX
   ========================================================= */

.nx-network-active {
  position: relative !important;
}

.nx-network-active img {
  filter:
    drop-shadow(0 0 10px rgba(229,9,20,.28)) !important;
}


/* =========================================================
   PREVENT CATALOG FROM CLIMBING INTO NETWORKS
   ========================================================= */

.nx-catalog {
  margin-top: 0 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

  .nx-networks {
    padding:
      28px 20px 34px !important;
  }

  .nx-networks-track {
    gap: 24px !important;
  }

  .nx-network {
    flex-basis: 68px !important;

    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;

    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  .nx-network img {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .nx-networks {
    padding:
      27px 18px 32px !important;
  }

  .nx-networks-header {
    gap: 9px !important;
    margin-bottom: 17px !important;
  }

  .nx-networks-kicker {
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
  }

  .nx-networks-header h2 {
    font-size: 22px !important;
  }

  .nx-networks-track {
    gap: 23px !important;

    padding:
      3px 2px 9px !important;
  }

  .nx-network {
    flex-basis: 66px !important;

    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;

    height: 47px !important;
    min-height: 47px !important;
    max-height: 47px !important;
  }

  .nx-network img {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;

    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .nx-networks {
    padding:
      25px 14px 30px !important;
  }

  .nx-networks-track {
    gap: 19px !important;
  }

  .nx-network {
    flex-basis: 60px !important;

    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  .nx-network img {
    width: 57px !important;
    min-width: 57px !important;
    max-width: 57px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .nx-network,
  .nx-network img {
    transition: none !important;
  }

}

/* ============================================================
   ROW COMPONENTS — Netflix-style horizontal rows (PC + mobile)
   Used by netflix.js createRowSection()
   ============================================================ */
.nx-row {
  scroll-margin-top: 82px;
  margin: 0 0 1.6rem;
}
.nx-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0 var(--gutter);
}
.nx-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: .01em;
}
.nx-row-title::before {
  width: 4px;
  height: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(var(--primary-dark), var(--primary-light));
  content: "";
  flex-shrink: 0;
}
.nx-row-nav {
  display: flex;
  gap: 7px;
}
.nx-row-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  user-select: none;
}
.nx-row-btn:hover {
  border-color: rgba(229,9,20,.5);
  background: rgba(229,9,20,.14);
  color: #fff;
  transform: scale(1.06);
}
.nx-row-btn:active { transform: scale(.96); }
.nx-row-track {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: .5rem var(--gutter) 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.nx-row-track::-webkit-scrollbar { display: none; height: 0; }
.nx-row-track .anime-card { scroll-snap-align: start; }

/* PC (>= 900px): show 6-7 cards comfortably */
@media (min-width: 900px) {
  .nx-row-track { gap: .85rem; padding-bottom: 1.1rem; }
  .anime-card { flex: 0 0 clamp(140px, 12vw, 175px); width: clamp(140px, 12vw, 175px); }
}

@media (max-width: 768px) {
  .nx-row { margin-bottom: 1.2rem; }
  .nx-row-head { margin-bottom: .75rem; }
  .nx-row-title { font-size: 1.05rem; }
  .nx-row-btn { width: 30px; height: 30px; font-size: 16px; }
}

@media (max-width: 480px) {
  .nx-row-btn { display: none; }
  .nx-row-track { padding: .4rem var(--gutter) .8rem; }
}
