:root {
  color-scheme: dark;
  --nf-bg: #07080a;
  --nf-panel: #12151a;
  --nf-soft: #1d222a;
  --nf-field: #0d1015;
  --nf-text: #f4f6fb;
  --nf-muted: #a7afbd;
  --nf-red: #e50914;
  --nf-red-2: #ff3742;
  --nf-line: rgba(255, 255, 255, .1);
  --nf-navbar-bg: rgba(7, 8, 10, .88);
  --nf-hero-bg: #050609;
  --nf-hero-overlay-strong: rgba(8, 8, 10, .95);
  --nf-hero-overlay-mid: rgba(8, 8, 10, .58);
  --nf-hero-overlay-soft: rgba(8, 8, 10, .18);
  --nf-copy: #d6dbe5;
  --nf-chip-text: #dbe1eb;
  --nf-shadow: rgba(0, 0, 0, .45);
  --nf-alert-bg: rgba(229, 9, 20, .16);
  --nf-alert-line: rgba(229, 9, 20, .45);
}

html[data-theme="primevideo"] {
  --nf-bg: #00050d;
  --nf-panel: #0f171e;
  --nf-soft: #1a2530;
  --nf-field: #07111c;
  --nf-text: #f2f4f6;
  --nf-muted: #8197a4;
  --nf-red: #00a8e1;
  --nf-red-2: #1a98ff;
  --nf-line: rgba(129, 151, 164, .22);
  --nf-navbar-bg: rgba(0, 5, 13, .96);
  --nf-hero-bg: #00050d;
  --nf-hero-overlay-strong: rgba(0, 5, 13, .96);
  --nf-hero-overlay-mid: rgba(0, 5, 13, .66);
  --nf-hero-overlay-soft: rgba(0, 168, 225, .08);
  --nf-copy: #d5dde5;
  --nf-chip-text: #e7f7ff;
  --nf-shadow: rgba(0, 5, 13, .6);
  --nf-alert-bg: rgba(0, 168, 225, .15);
  --nf-alert-line: rgba(0, 168, 225, .46);
}

html[data-theme="disney"] {
  --nf-bg: #040714;
  --nf-panel: #13151f;
  --nf-soft: #202331;
  --nf-field: #0b0d18;
  --nf-text: #f9f9f9;
  --nf-muted: #cacaca;
  --nf-red: #0063e5;
  --nf-red-2: #02d6e8;
  --nf-line: rgba(249, 249, 249, .14);
  --nf-navbar-bg: rgba(4, 7, 20, .94);
  --nf-hero-bg: #040714;
  --nf-hero-overlay-strong: rgba(4, 7, 20, .94);
  --nf-hero-overlay-mid: rgba(4, 7, 20, .62);
  --nf-hero-overlay-soft: rgba(2, 214, 232, .08);
  --nf-copy: #dcdde1;
  --nf-chip-text: #f9f9f9;
  --nf-shadow: rgba(0, 0, 0, .62);
  --nf-alert-bg: rgba(0, 99, 229, .16);
  --nf-alert-line: rgba(2, 214, 232, .38);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--nf-bg);
  color: var(--nf-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button {
  font: inherit;
  color: var(--nf-text);
  background: var(--nf-field);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
}

.nf-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: var(--nf-navbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nf-line);
}
.nf-brand { color: var(--nf-red-2); font-weight: 900; font-size: 1.45rem; letter-spacing: 0; }
.nf-navlinks, .nf-usernav { display: flex; align-items: center; gap: 16px; color: var(--nf-muted); }
.nf-usernav { justify-content: flex-end; flex-wrap: wrap; }
.nf-navlinks a:hover, .nf-usernav a:hover, .nf-navlinks a[aria-current="page"] { color: var(--nf-text); }
.nf-theme-switcher select {
  min-height: 34px;
  width: 136px;
  padding: 6px 30px 6px 10px;
  color: var(--nf-text);
  background-color: var(--nf-field);
  border-color: var(--nf-line);
  cursor: pointer;
}
.nf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nf-search { position: relative; }
.nf-search input { width: 100%; padding: 10px 12px; }
.nf-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--nf-field);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px var(--nf-shadow);
}
.nf-search-results.is-open { display: block; }
.nf-search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--nf-line); }
.nf-search-results a:hover, .nf-search-results a:focus-visible { background: var(--nf-soft); }
.nf-search-results span { color: var(--nf-muted); font-size: .86rem; }
.nf-main { min-height: 72vh; }

.nf-catalog-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: var(--nf-bg);
}
.nf-catalog-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 11px 14px;
  color: var(--nf-muted);
  background: linear-gradient(135deg, var(--nf-panel), var(--nf-soft));
  border: 1px solid var(--nf-line);
  border-radius: 10px;
  box-shadow: 0 8px 20px var(--nf-shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.nf-catalog-stat[href]:hover {
  transform: translateY(-3px);
  border-color: var(--nf-red);
}
.nf-catalog-stat span {
  min-width: 0;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
}
.nf-catalog-stat strong {
  flex: 0 0 auto;
  color: var(--nf-text);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1;
}

.nf-hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--nf-hero-bg);
}
.nf-hero-slides {
  position: relative;
  min-height: 72vh;
}
.nf-hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 140px clamp(18px, 5vw, 72px) 72px;
  background-size: cover;
  background-position: center;
}
.nf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity .7s ease, visibility .7s ease, transform 6.5s ease;
}
.nf-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.nf-hero-content { max-width: 760px; }
.nf-hero-slide .nf-hero-content {
  transform: translateY(18px);
  opacity: 0;
  transition: transform .55s ease .16s, opacity .55s ease .16s;
}
.nf-hero-slide.is-active .nf-hero-content {
  transform: translateY(0);
  opacity: 1;
}
.nf-hero-controls {
  position: absolute;
  right: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 6;
  transform: translateX(50%);
}
.nf-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 54px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  background: rgba(5, 7, 10, .78);
  border-color: rgba(255,255,255,.45);
  color: var(--nf-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.nf-hero-arrow:hover { background: rgba(255,255,255,.14); }
.nf-hero-arrow-prev { left: 20px; }
.nf-hero-arrow-next { right: 20px; }
.nf-hero-dots { display: flex; gap: 8px; }
.nf-hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  cursor: pointer;
}
.nf-hero-dots button.is-active { background: var(--nf-red-2); }
.nf-kicker { color: var(--nf-red-2); font-weight: 800; text-transform: uppercase; font-size: .78rem; }
h1, h2 { margin: 0; letter-spacing: 0; }
.nf-hero h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .95; margin: 12px 0 18px; }
.nf-hero p, .nf-detail-copy p { color: var(--nf-copy); font-size: 1.06rem; line-height: 1.65; }
.nf-meta, .nf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nf-meta span {
  color: var(--nf-chip-text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--nf-line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .9rem;
}
.nf-actions { margin-top: 24px; }
.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  background: var(--nf-red);
  border: 1px solid var(--nf-red);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.nf-btn:hover { background: var(--nf-red-2); }
.nf-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--nf-red-2);
  outline-offset: 3px;
}
.nf-btn-ghost { background: rgba(255,255,255,.1); border-color: var(--nf-line); }
.nf-btn-small { min-height: 34px; padding: 7px 11px; font-size: .88rem; }

.nf-section { padding: 28px clamp(18px, 4vw, 56px); }
.nf-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nf-section-head h2 { font-size: 1.35rem; }
.nf-section-head a, .nf-muted { color: var(--nf-muted); }
.nf-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 170px;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-color: var(--nf-soft) transparent;
}
.nf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px 16px;
  padding: 24px clamp(18px, 4vw, 56px);
}
.nf-media-card a {
  position: relative;
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 8px;
  background: linear-gradient(180deg, var(--nf-panel), rgba(18,21,26,.45));
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nf-media-card a:hover {
  transform: translateY(-4px);
  border-color: var(--nf-line);
  box-shadow: 0 16px 34px var(--nf-shadow);
}
.nf-card-visual { position: relative; overflow: hidden; border-radius: 8px; }
.nf-media-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--nf-soft);
  border-radius: 8px;
  transition: transform .25s ease;
}
.nf-media-card a:hover img { transform: scale(1.025); }
.nf-card-title {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nf-card-meta { color: var(--nf-muted); font-size: .86rem; }
.nf-card-badges {
  position: absolute;
  inset: 8px 8px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nf-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  background: var(--nf-red);
}
.nf-badge-soft { background: rgba(7,8,10,.82); border: 1px solid var(--nf-line); }

html[data-theme="primevideo"] .nf-navbar {
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  gap: 18px;
  padding-block: 10px;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(129,151,164,.16);
}
html[data-theme="primevideo"] .nf-brand {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
}
html[data-theme="primevideo"] .nf-navlinks {
  gap: 22px;
  font-size: .94rem;
}
html[data-theme="primevideo"] .nf-hero-carousel,
html[data-theme="primevideo"] .nf-hero-slides,
html[data-theme="primevideo"] .nf-hero {
  min-height: 62vh;
}
html[data-theme="primevideo"] .nf-hero {
  align-items: center;
  padding-top: 110px;
  padding-bottom: 64px;
}
html[data-theme="primevideo"] .nf-hero-content {
  max-width: 620px;
}
html[data-theme="primevideo"] .nf-hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.8rem);
}
html[data-theme="primevideo"] .nf-btn {
  border-radius: 4px;
  color: #00050d;
  background: var(--nf-red);
  border-color: var(--nf-red);
}
html[data-theme="primevideo"] .nf-btn-ghost {
  color: var(--nf-text);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.16);
}
html[data-theme="primevideo"] .nf-section {
  padding-top: 22px;
  padding-bottom: 18px;
}
html[data-theme="primevideo"] .nf-section-head h2 {
  font-size: 1.16rem;
}
html[data-theme="primevideo"] .nf-row {
  grid-auto-columns: clamp(220px, 22vw, 320px);
  gap: 18px;
}
html[data-theme="primevideo"] .nf-row .nf-media-card img {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}
html[data-theme="primevideo"] .nf-media-card a:hover {
  transform: translateY(-3px) scale(1.035);
}
html[data-theme="primevideo"] .nf-row .nf-media-card a:hover img,
html[data-theme="primevideo"] .nf-grid .nf-media-card a:hover {
  box-shadow: 0 0 0 2px rgba(0,168,225,.72), 0 18px 38px var(--nf-shadow);
}
html[data-theme="primevideo"] .nf-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
html[data-theme="primevideo"] .nf-grid .nf-media-card a {
  padding: 8px;
  background: var(--nf-panel);
  border: 1px solid var(--nf-line);
  border-radius: 4px;
}

html[data-theme="disney"] body {
  background:
    linear-gradient(180deg, rgba(9,17,43,.68) 0, rgba(4,7,20,0) 360px),
    var(--nf-bg);
}
html[data-theme="disney"] .nf-navbar {
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  gap: 20px;
  padding-block: 16px;
  border-bottom: 0;
}
html[data-theme="disney"] .nf-brand {
  color: #f9f9f9;
  font-size: 1.34rem;
  text-shadow: 0 0 18px rgba(2,214,232,.32);
}
html[data-theme="disney"] .nf-navlinks {
  gap: 24px;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
}
html[data-theme="disney"] .nf-meta span {
  background: rgba(255,255,255,.09);
  border-color: rgba(249,249,249,.12);
}
html[data-theme="disney"] .nf-hero-carousel,
html[data-theme="disney"] .nf-hero-slides,
html[data-theme="disney"] .nf-hero {
  min-height: 68vh;
}
html[data-theme="disney"] .nf-hero {
  align-items: flex-end;
  padding-bottom: 92px;
}
html[data-theme="disney"] .nf-hero-content {
  max-width: 680px;
}
html[data-theme="disney"] .nf-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}
html[data-theme="disney"] .nf-btn {
  min-height: 46px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: .86rem;
}
html[data-theme="disney"] .nf-btn-ghost {
  background: rgba(0,0,0,.42);
  border-color: rgba(249,249,249,.42);
}
html[data-theme="disney"] .nf-section {
  padding-top: 32px;
}
html[data-theme="disney"] .nf-row {
  grid-auto-columns: clamp(230px, 23vw, 330px);
  gap: 18px;
}
html[data-theme="disney"] .nf-row .nf-media-card img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  box-shadow: 0 12px 26px var(--nf-shadow);
}
html[data-theme="disney"] .nf-media-card a:hover {
  transform: translateY(-5px) scale(1.035);
}
html[data-theme="disney"] .nf-row .nf-media-card a:hover img,
html[data-theme="disney"] .nf-grid .nf-media-card a:hover {
  box-shadow: 0 0 0 3px rgba(249,249,249,.82), 0 22px 46px var(--nf-shadow);
}
html[data-theme="disney"] .nf-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}
html[data-theme="disney"] .nf-grid .nf-media-card a {
  padding: 8px;
  background: linear-gradient(180deg, #252b3d, #151824);
  border: 1px solid rgba(249,249,249,.12);
  border-radius: 6px;
}

.nf-page-head { padding: 42px clamp(18px, 4vw, 56px) 10px; }
.nf-page-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 18px; }
.nf-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-filters input, .nf-filters select { min-height: 42px; padding: 9px 12px; }
.nf-filters input { flex: 1 1 150px; }
.nf-pagination { display: flex; gap: 12px; padding: 10px clamp(18px, 4vw, 56px) 42px; }

.nf-detail-hero {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 780px);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
  padding: 92px clamp(18px, 5vw, 72px) 52px;
  min-height: 66vh;
  background-size: cover;
  background-position: center;
}
.nf-detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 70px var(--nf-shadow); }
.nf-detail-copy h1 { font-size: clamp(2.3rem, 6vw, 5rem); line-height: 1; margin: 10px 0 14px; }
.nf-detail-copy p { max-width: 72ch; }
.nf-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: var(--nf-field);
  border-block: 1px solid var(--nf-line);
}
.nf-detail-stats span, .nf-list-item, .nf-comment, .nf-season-list article {
  background: var(--nf-panel);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
  padding: 12px 14px;
}
.nf-video iframe { width: min(920px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.nf-people-row { grid-auto-columns: 145px; }
.nf-person-card a { display: grid; gap: 9px; }
.nf-person-card img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--nf-soft); }
.nf-person-card span { color: var(--nf-muted); font-size: .84rem; }
.nf-season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nf-season-list article { display: flex; justify-content: space-between; gap: 14px; }

.nf-table-wrap { overflow-x: auto; border: 1px solid var(--nf-line); border-radius: 8px; }
.nf-release-table { width: 100%; min-width: 920px; border-collapse: collapse; background: var(--nf-field); }
.nf-release-table th, .nf-release-table td { padding: 12px; border-bottom: 1px solid var(--nf-line); text-align: left; vertical-align: middle; }
.nf-release-table th { color: var(--nf-muted); font-size: .8rem; text-transform: uppercase; }

.nf-auth {
  width: min(460px, calc(100% - 32px));
  margin: 60px auto;
  padding: 28px;
  background: var(--nf-panel);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
}
.nf-auth form, .nf-comment-form { display: grid; gap: 14px; }
.nf-auth label { display: grid; gap: 7px; color: var(--nf-muted); }
.nf-auth input, .nf-comment-form textarea { width: 100%; padding: 12px; }
.nf-alert { background: var(--nf-alert-bg); border: 1px solid var(--nf-alert-line); border-radius: 8px; padding: 11px; }
.nf-alert-ok { background: rgba(45, 180, 90, .14); border-color: rgba(45, 180, 90, .42); }
.nf-list-item { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--nf-muted); }
.nf-list-item strong { color: var(--nf-text); }
.nf-comment { margin-bottom: 12px; }
.nf-comment time { color: var(--nf-muted); margin-left: 10px; font-size: .86rem; }
.nf-person-detail {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 820px);
  gap: 34px;
  padding: 54px clamp(18px, 5vw, 72px);
}
.nf-person-detail img { border-radius: 8px; aspect-ratio: 2 / 3; object-fit: cover; background: var(--nf-soft); }
.nf-person-detail p { color: var(--nf-copy); line-height: 1.7; }
.nf-empty {
  margin: 24px clamp(18px, 4vw, 56px) 48px;
  padding: 42px;
  text-align: center;
  background: linear-gradient(135deg, var(--nf-panel), var(--nf-field));
  border: 1px dashed var(--nf-line);
  border-radius: 12px;
}
.nf-empty h2 { margin-bottom: 8px; }
.nf-empty p { margin: 0 auto 18px; color: var(--nf-muted); }
.nf-footer { padding: 28px clamp(18px, 4vw, 56px); color: var(--nf-muted); border-top: 1px solid var(--nf-line); }

@media (max-width: 820px) {
  .nf-navbar { grid-template-columns: 1fr auto; gap: 12px; }
  html[data-theme="primevideo"] .nf-navbar,
  html[data-theme="disney"] .nf-navbar { grid-template-columns: 1fr auto; }
  html[data-theme="primevideo"] .nf-row,
  html[data-theme="disney"] .nf-row { grid-auto-columns: 200px; }
  .nf-usernav { gap: 10px; }
  .nf-navlinks { order: 3; grid-column: 1 / -1; overflow-x: auto; }
  .nf-catalog-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nf-search { grid-column: 1 / -1; order: 4; }
  .nf-hero-carousel, .nf-hero-slides, .nf-hero { min-height: 66vh; }
  .nf-hero { padding-top: 90px; padding-bottom: 92px; }
  .nf-hero-controls { right: 50%; bottom: 18px; }
  .nf-hero-arrow { width: 44px; height: 60px; }
  .nf-hero-arrow-prev { left: 10px; }
  .nf-hero-arrow-next { right: 10px; }
  .nf-hero-dots { max-width: 48vw; overflow: hidden; }
  .nf-row { grid-auto-columns: 138px; }
  .nf-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .nf-detail-hero, .nf-person-detail { grid-template-columns: 1fr; }
  .nf-detail-poster, .nf-person-detail img { width: min(220px, 60vw); }
  .nf-list-item { display: grid; }
}

@media (max-width: 560px) {
  .nf-navbar { grid-template-columns: 1fr; }
  html[data-theme="primevideo"] .nf-navbar,
  html[data-theme="disney"] .nf-navbar { grid-template-columns: 1fr; }
  html[data-theme="primevideo"] .nf-row,
  html[data-theme="disney"] .nf-row { grid-auto-columns: 178px; }
  .nf-usernav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nf-filters { display: grid; grid-template-columns: 1fr; }
  .nf-filters input, .nf-filters select, .nf-filters .nf-btn { width: 100%; }
  .nf-empty { padding: 28px 18px; }
  .nf-catalog-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 10px; }
  .nf-catalog-stat:last-child { grid-column: 1 / -1; }
  .nf-catalog-stat { min-height: 56px; padding: 10px 12px; }
  .nf-card-title { font-size: .9rem; }
  .nf-card-meta { font-size: .76rem; }
  .nf-detail-hero { min-height: auto; padding-top: 42px; }
  .nf-detail-copy h1 { font-size: clamp(2rem, 12vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.nf-upload { padding-bottom: 46px; }
.nf-upload-head { max-width: 980px; }
.nf-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
}
.nf-upload-step {
  margin: 18px clamp(18px, 4vw, 56px);
  padding: 22px;
  background: var(--nf-panel);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
}
.nf-upload-layout .nf-upload-step { margin: 0; }
.nf-upload-step h2 { margin-bottom: 16px; font-size: 1.2rem; }
.nf-upload-step form, .nf-upload-final { display: grid; gap: 14px; }
.nf-upload-step label {
  display: grid;
  gap: 7px;
  color: var(--nf-muted);
  font-weight: 650;
}
.nf-upload-step [hidden] { display: none; }
.nf-upload-step input,
.nf-upload-step select,
.nf-upload-step textarea {
  width: 100%;
  padding: 11px 12px;
}
.nf-upload-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 96px;
  align-content: flex-start;
}
.nf-upload-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  color: var(--nf-chip-text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--nf-line);
  border-radius: 999px;
  font-size: .88rem;
}
.nf-upload-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.nf-upload-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: var(--nf-field);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
}
.nf-upload-card img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--nf-soft);
}
.nf-upload-card h3 { margin: 0 0 5px; font-size: 1rem; }
.nf-upload-card span, .nf-upload-card p { color: var(--nf-muted); }
.nf-upload-card p { line-height: 1.45; font-size: .9rem; }
.nf-upload-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.nf-upload-check {
  align-self: end;
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
}
.nf-upload-check input { width: auto; }

.nf-admin-list {
  display: grid;
  gap: 14px;
  padding: 16px clamp(18px, 4vw, 56px);
}
.nf-admin-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  background: var(--nf-panel);
  border: 1px solid var(--nf-line);
  border-radius: 8px;
}
.nf-admin-item > img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--nf-soft);
}
.nf-admin-title, .nf-admin-meta, .nf-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.nf-admin-title h2 { font-size: 1.12rem; }
.nf-admin-main p { color: var(--nf-muted); overflow-wrap: anywhere; }
.nf-admin-meta span { color: var(--nf-muted); font-size: .88rem; }
.nf-admin-actions { align-content: center; justify-content: flex-end; }
.nf-admin-main details { margin-top: 8px; color: var(--nf-muted); }
.nf-admin-main summary { cursor: pointer; color: var(--nf-text); }

@media (max-width: 860px) {
  .nf-upload-layout, .nf-admin-item { grid-template-columns: 1fr; }
  .nf-admin-actions { justify-content: flex-start; }
}
