/* =========================================================
   template/new1 — 影讯门户样式
   Original cinema-portal aesthetic · high density · Baidu SEO friendly
   ========================================================= */

:root {
  --n1-ink: #141820;
  --n1-text: #2a3140;
  --n1-muted: #6b7380;
  --n1-line: #dfe3ea;
  --n1-line-soft: #eef1f5;
  --n1-bg: #e9edf2;
  --n1-surface: #ffffff;
  --n1-surface-2: #f6f8fb;
  --n1-accent: #0f766e;
  --n1-accent-hover: #0d5f59;
  --n1-accent-rgb: 15, 118, 110;
  --n1-warm: #c2410c;
  --n1-score: #b45309;
  --n1-header: #10141c;
  --n1-header-text: #f3f5f8;
  --n1-radius: 8px;
  --n1-radius-sm: 4px;
  --n1-shadow: 0 1px 2px rgba(16, 20, 28, 0.06);
  --n1-max: 1400px;
  --n1-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --n1-display: "Source Han Serif SC", "Songti SC", "SimSun", "Noto Serif SC", serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--n1-font);
  font-size: var(--n1-font-size, 15px);
  line-height: var(--n1-lh, 1.65);
  color: var(--n1-text);
  background: var(--n1-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Card style variants (site.n1_skin.card_style 1–4) */
.n1-card-s2 .n1-card__badge { left: auto; right: 0.35rem; }
.n1-card-s2 .n1-card__score { left: 0.35rem; right: auto; }
.n1-card-s2 .n1-card__meta { display: none; }
.n1-card-s3 .n1-card__reason { display: none; }
.n1-card-s3 .n1-card__meta { font-size: 0.75rem; opacity: 0.85; }
.n1-card-s4 .n1-card__poster { border-radius: 0; }
.n1-card-s4 .n1-card__badge { top: 0; left: 0; border-radius: 0; }
.n1-card-s4 .n1-card__title { font-size: 0.92rem; }
.n1-card-s4 .n1-card__reason { border-top: 1px dashed var(--n1-line); padding-top: 0.25rem; }

.n1-content--ordered { display: flex; flex-direction: column; }

a { color: var(--n1-accent); text-decoration: none; }
a:hover { color: var(--n1-accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
button, input, select { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.6em; color: var(--n1-ink); font-weight: 700; line-height: 1.35; }
h1 { font-family: var(--n1-display); font-size: 1.75rem; letter-spacing: 0.02em; }
h2 { font-size: 1.2rem; border-left: 3px solid var(--n1-accent); padding-left: 0.55rem; }
h3 { font-size: 1.02rem; }

.n1-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--n1-accent); color: #fff; padding: 0.5rem 1rem; z-index: 1000;
}
.n1-skip:focus { left: 0.5rem; top: 0.5rem; }

.n1-wrap {
  width: min(100% - 1.5rem, var(--n1-max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* ---------- SEO marquee (sticky top — in-flow; JS scrolls .seo-marquee-track) ---------- */
.seo-marquee-container {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 10050 !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 40px !important;
  height: 40px !important;
  max-height: 56px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  background: linear-gradient(
    90deg,
    var(--n1-accent) 0%,
    color-mix(in srgb, var(--n1-accent) 55%, #000) 48%,
    var(--n1-accent) 100%
  ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(16, 20, 28, 0.18);
  pointer-events: auto;
  margin: 0 !important;
  padding: 0 !important;
}
.seo-marquee-track {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  line-height: 40px !important;
  min-height: 40px !important;
}
.seo-marquee-container p,
.seo-marquee-container .seo-marquee-line,
.seo-marquee-container .text-muted {
  color: #ecfdf5 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.86rem !important;
  line-height: 40px !important;
  display: inline-block !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
.seo-marquee-container a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none !important;
  margin: 0 0.65rem;
}
.seo-marquee-container a:hover {
  color: #ffffff !important;
  opacity: 0.88;
  text-decoration: underline !important;
}

/* Marquee stays in document flow — do NOT pad body (that caused the white gap) */
body.n1-has-marquee {
  padding-top: 0 !important;
}

/* ---------- Header ---------- */
.n1-header {
  background: var(--n1-header);
  color: var(--n1-header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-shadow: var(--n1-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
  overflow-x: hidden;
}
body.n1-has-marquee .n1-header {
  /* Stick just below sticky marquee while scrolling */
  top: var(--n1-marquee-h, 40px);
}
.n1-header a { color: var(--n1-header-text); text-decoration: none; }
.n1-header a:hover { color: #fff; text-decoration: none; opacity: 0.92; }

.n1-header__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}
.n1-logo {
  font-family: var(--n1-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.n1-logo span {
  color: color-mix(in srgb, var(--n1-accent) 70%, #fff);
  margin-left: 0.15em;
}

.n1-search {
  flex: 1 1 200px;
  display: block;
  position: relative;
  max-width: 520px;
  min-width: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.n1-search__row {
  display: flex;
  background: color-mix(in srgb, var(--n1-header) 82%, #000);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--n1-radius-sm);
  overflow: hidden;
}
.n1-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.55rem 0.75rem;
  min-width: 0;
  cursor: pointer;
}
.n1-search input::placeholder { color: #8b93a3; }
.n1-search button {
  border: 0;
  background: var(--n1-accent);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  white-space: nowrap;
}
.n1-search button:hover { background: var(--n1-accent-hover); }
.n1-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 90;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--n1-radius-sm);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  max-height: 320px;
  overflow: auto;
}
.n1-suggest a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.n1-suggest a:hover { background: rgba(15, 23, 42, 0.06); }
.n1-suggest .is-empty {
  padding: 0.65rem 0.85rem;
  color: #64748b;
  font-size: 0.9rem;
}

.n1-hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: #9aa3b2;
  width: 100%;
  order: 3;
}
.n1-hotwords a { color: #b8c0ce; }
.n1-hotwords em { font-style: normal; color: #7a8494; margin-right: 0.25rem; }

.n1-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--n1-header) 78%, #000);
  max-width: 100%;
  overflow-x: hidden;
}
.n1-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.35rem 0;
  max-width: 100%;
}
.n1-nav__list a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  border-radius: var(--n1-radius-sm);
}
.n1-nav__list a:hover,
.n1-nav__list a.is-active {
  background: rgba(var(--n1-accent-rgb), 0.32);
  color: #fff;
}

/* ---------- Breadcrumb ---------- */
.n1-crumb {
  padding: 0.65rem 0 0.45rem;
  font-size: 0.86rem;
  color: var(--n1-muted);
  line-height: 1.5;
  display: block;
  visibility: visible;
}
.n1-crumb a { color: var(--n1-muted); text-decoration: none; }
.n1-crumb a:hover { color: var(--n1-accent); text-decoration: underline; }
.n1-crumb span[aria-current="page"] { color: var(--n1-ink); }

/* ---------- Layout shells ---------- */
.n1-main { padding: 0.5rem 0 2rem; max-width: 100%; overflow-x: hidden; }
.n1-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
  max-width: 100%;
  min-width: 0;
}

/* ---------- Detail layout flow (structure tokens; no layout-id footprints) ---------- */
.n1-flow {
  --n1-stack-gap: 0.85rem;
}
.n1-flow--gap-tight { --n1-stack-gap: 0.55rem; }
.n1-flow--gap-cozy { --n1-stack-gap: 0.85rem; }
.n1-flow--gap-roomy { --n1-stack-gap: 1.25rem; }
.n1-flow--gap-airy { --n1-stack-gap: 1.7rem; }

.n1-slot-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.n1-slot-stack > .n1-slot {
  min-width: 0;
  max-width: 100%;
  margin-bottom: var(--n1-stack-gap);
}
.n1-flow .n1-content > .n1-hero,
.n1-flow .n1-content > .n1-panel,
.n1-flow .n1-content > .n1-helpful,
.n1-flow .n1-content > .n1-split,
.n1-flow .n1-content > .n1-duo,
.n1-flow .n1-content > .n1-sec-ending,
.n1-flow .n1-content > .n1-rich {
  margin-bottom: var(--n1-stack-gap);
}

.n1-flow--side-lead .n1-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}
.n1-flow--side-lead .n1-side { order: -1; }
.n1-flow--side-trail .n1-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.n1-flow--hero-flip .n1-hero {
  direction: rtl;
}
.n1-flow--hero-flip .n1-hero > * {
  direction: ltr;
}
.n1-flow--hero-stack .n1-hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
.n1-flow--hero-stack .n1-hero__poster {
  width: min(180px, 42%);
}

.n1-flow--intro-plain .n1-prose--lead p,
.n1-flow--intro-plain .n1-detail-intro {
  font-size: 0.98rem;
  line-height: 1.7;
}
.n1-flow--intro-compact .n1-prose--lead,
.n1-flow--intro-compact .n1-detail-intro {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42rem;
}
.n1-flow--intro-quote .n1-pullquote {
  margin-top: 0;
  order: -1;
}
.n1-flow--intro-quote #n1-story {
  display: flex;
  flex-direction: column;
}
.n1-flow--intro-lead .n1-prose--lead p:first-child {
  font-size: 1.05rem;
  line-height: 1.75;
}

.n1-flow--hd-rule .n1-panel__hd {
  border-bottom: 1px solid var(--n1-line);
  padding-bottom: 0.45rem;
  margin-bottom: 0.85rem;
}
.n1-flow--hd-stack .n1-panel__hd {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.n1-flow--hd-accent .n1-panel__hd h2 {
  border-left: 3px solid var(--n1-accent);
  padding-left: 0.55rem;
}

.n1-ending-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.n1-sec-ending--quiet {
  padding: 0.35rem 0.15rem 0.85rem;
  margin-bottom: var(--n1-stack-gap, 0.85rem);
}

.n1-content {
  min-width: 0;
  max-width: 100%;
}
.n1-panel {
  background: var(--n1-surface);
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius);
  box-shadow: var(--n1-shadow);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.n1-panel__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.n1-panel__hd h2 { margin: 0; }
.n1-panel__more { font-size: 0.85rem; color: var(--n1-muted); white-space: nowrap; }

/* ---------- Movie card grid ---------- */
.n1-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem 0.7rem;
}
.n1-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.n1-card__link { display: block; color: inherit; text-decoration: none; }
.n1-card:hover,
.n1-card__link:hover { color: inherit; text-decoration: none; }
.n1-card:hover .n1-card__title,
.n1-card__link:hover .n1-card__title { color: var(--n1-accent); }
.n1-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--n1-radius-sm);
  overflow: hidden;
  background: var(--n1-line-soft) center/cover no-repeat;
  border: 1px solid var(--n1-line);
}
.n1-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.n1-card__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.35rem 0.4rem;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  text-align: right;
}
.n1-card__score {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(20, 24, 32, 0.82);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
}
.n1-card__title {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--n1-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.4em;
}
.n1-card__meta {
  font-size: 0.75rem;
  color: var(--n1-muted);
  margin: 0.15rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.n1-card__reason {
  margin: 0.35rem 0 0;
  padding: 0.25rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--n1-muted);
  background: rgba(var(--n1-accent-rgb),  0.06);
  border-left: 2px solid var(--n1-accent);
  border-radius: 0 4px 4px 0;
}

/* ---------- Hero (detail) ---------- */
.n1-hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.15rem;
  background:
    linear-gradient(120deg, rgba(var(--n1-accent-rgb),  0.08), transparent 45%),
    var(--n1-surface);
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius);
  margin-bottom: 0.85rem;
  box-shadow: var(--n1-shadow);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.n1-hero__poster {
  border-radius: var(--n1-radius);
  overflow: hidden;
  border: 1px solid var(--n1-line);
  aspect-ratio: 2 / 3;
  background: var(--n1-line-soft);
}
.n1-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.n1-hero__body { min-width: 0; }
.n1-hero__title {
  font-family: var(--n1-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 0.25rem;
}
.n1-hero__sub {
  color: var(--n1-muted);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}
.n1-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  max-width: 100%;
}
.n1-tag {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  background: var(--n1-surface-2);
  color: var(--n1-text);
  text-decoration: none;
}
a.n1-tag:hover {
  border-color: var(--n1-accent);
  color: var(--n1-accent);
  text-decoration: none;
}
.n1-scoreline {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.n1-scoreline__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--n1-score);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.n1-scoreline__label { font-size: 0.82rem; color: var(--n1-muted); }

.n1-facts-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  max-width: 100%;
  min-width: 0;
}
.n1-facts-inline > div {
  min-width: 0;
  max-width: 100%;
}
.n1-facts-inline dt {
  float: left;
  clear: left;
  width: 3.2em;
  color: var(--n1-muted);
}
.n1-facts-inline dd {
  margin: 0 0 0.25rem 3.4em;
  color: var(--n1-text);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.n1-facts-inline dd a {
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.n1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.n1-actions .n1-btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.n1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--n1-radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  line-height: 1.2;
}
.n1-btn:hover { text-decoration: none; }
.n1-btn--primary {
  background: var(--n1-accent);
  color: #fff;
}
.n1-btn--primary:hover { background: var(--n1-accent-hover); color: #fff; }
.n1-btn--ghost {
  background: var(--n1-surface);
  border-color: var(--n1-line);
  color: var(--n1-ink);
}
.n1-btn--ghost:hover { border-color: var(--n1-accent); color: var(--n1-accent); }

/* ---------- Definition / meta tables ---------- */
.n1-dl {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 0.45rem 0.75rem;
  font-size: 0.92rem;
}
.n1-dl dt { color: var(--n1-muted); }
.n1-dl dd { margin: 0; word-break: break-word; }

/* ---------- Rich snippets (crawlable facts) ---------- */
.n1-rich__dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}
.n1-rich__row {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--n1-line-soft);
  align-items: start;
}
.n1-rich__row:last-child { border-bottom: 0; }
.n1-rich__row dt {
  margin: 0;
  color: var(--n1-muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.n1-rich__row dd {
  margin: 0;
  color: var(--n1-ink);
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.n1-rich__row dd a {
  color: var(--n1-accent);
  text-decoration: none;
}
.n1-rich__row dd a:hover { text-decoration: underline; }
.n1-rich__score {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--n1-score);
  font-variant-numeric: tabular-nums;
}
.n1-rich__muted { color: var(--n1-muted); font-size: 0.86rem; }
.n1-rich__sep { margin: 0 0.25rem; color: var(--n1-muted); }
@media (min-width: 720px) {
  .n1-rich__dl {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }
}

.n1-inline-nav__body { margin: 0; }
.n1-inline-nav__p {
  margin: 0 0 0.75rem;
  line-height: 1.75;
  color: var(--n1-text);
}
.n1-inline-nav__p:last-child { margin-bottom: 0; }
.n1-inline-nav__p a {
  color: var(--n1-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 600;
}
.n1-inline-nav__p a:hover { color: var(--n1-ink); }

.n1-helpful__facts { margin-top: 0.15rem; }

.n1-story p {
  margin: 0 0 0.85rem;
  text-indent: 2em;
  color: var(--n1-text);
  line-height: 1.75;
}
.n1-detail-intro {
  margin: 0 0 0.85rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--n1-text);
  text-align: justify;
  text-indent: 0;
}
.n1-detail-p {
  margin: 0 0 0.55rem;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--n1-text);
  text-indent: 0;
}
.n1-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--n1-text);
}
.n1-detail-list li + li { margin-top: 0.35rem; }
.n1-story__block + .n1-story__block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--n1-line);
}
.n1-story__block h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  color: var(--n1-ink);
}

/* ---------- Cast ---------- */
.n1-cast {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}
.n1-cast__item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.n1-cast__item:hover { text-decoration: none; color: var(--n1-accent); }
.n1-cast__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--n1-line-soft);
  border: 1px solid var(--n1-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--n1-accent);
  font-family: var(--n1-display);
}
.n1-cast__name { display: block; font-size: 0.86rem; font-weight: 600; }
.n1-cast__role { display: block; font-size: 0.75rem; color: var(--n1-muted); margin-top: 0.15rem; }

/* ---------- Playlist ---------- */
.n1-playlist__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.n1-playlist__tab {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  background: var(--n1-surface-2);
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--n1-text);
}
.n1-playlist__tab.is-active {
  background: var(--n1-accent);
  border-color: var(--n1-accent);
  color: #fff;
}
.n1-playlist__eps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
/* display:flex above must not override HTML [hidden] — only active tab panel shows */
.n1-playlist__eps[hidden],
.n1-playlist__eps.is-hidden {
  display: none !important;
}
.n1-playlist__eps a {
  display: inline-block;
  min-width: 3.2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  color: var(--n1-text);
  font-size: 0.86rem;
  text-decoration: none;
  background: #fff;
}
.n1-playlist__eps a:hover,
.n1-playlist__eps a.is-active {
  border-color: var(--n1-accent);
  color: var(--n1-accent);
  background: rgba(var(--n1-accent-rgb),  0.06);
}

/* ---------- Player ---------- */
.n1-player-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(56vw, 420px);
  min-height: 180px;
  background: #000;
  border-radius: var(--n1-radius);
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid #222;
  transform: translateZ(0);
}
body.n1-body--play .n1-hotwords { display: none; }
body.n1-body--play .n1-main--play { padding-top: 0.35rem; }
body.n1-body--play .n1-player-shell #buffer,
body.n1-body--play .n1-player-shell #install { display: none !important; }
/* Lock frame on first paint — MacPlayer height:100% otherwise stretches tall until iframe settles */
.n1-player-shell .MacPlayer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}
.n1-player-shell .MacPlayer table,
.n1-player-shell .MacPlayer #playleft {
  width: 100% !important;
  height: 100% !important;
}
.n1-player-shell .embed-responsive,
.n1-player-shell iframe,
.n1-player-shell video,
.n1-player-shell embed,
.n1-player-shell object {
  position: absolute !important;
  z-index: 1 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
}

/* ---------- FAQ ---------- */
.n1-faq details {
  border-bottom: 1px solid var(--n1-line-soft);
  padding: 0.55rem 0;
}
.n1-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--n1-ink);
  list-style: none;
}
.n1-faq summary::-webkit-details-marker { display: none; }
.n1-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--n1-accent);
  font-weight: 700;
}
.n1-faq details[open] summary::before { content: "–"; }
.n1-faq details > p {
  margin: 0.4rem 0 0.2rem 1.1em;
  color: var(--n1-muted);
  font-size: 0.92rem;
}

/* FAQ format: numbered list (tv / short) */
.n1-faq__list {
  list-style: decimal;
  padding-left: 1.35rem;
  margin: 0;
}
.n1-faq__list .n1-faq__item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--n1-line-soft);
}
.n1-faq__list .n1-faq__item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.n1-faq__q {
  margin: 0 0 0.35rem;
  color: var(--n1-ink);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
}
.n1-faq details > summary {
  list-style: none;
  cursor: pointer;
}
.n1-faq details > summary::-webkit-details-marker { display: none; }
.n1-faq details > summary .n1-faq__q {
  display: inline;
  font-size: inherit;
  font-weight: 650;
}
.n1-faq__a {
  margin: 0;
  color: var(--n1-text);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* FAQ format: cards (anime) */
.n1-faq__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}
.n1-faq__card {
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  background: var(--n1-surface-2);
  padding: 0.75rem 0.85rem;
  min-width: 0;
}
.n1-faq__card .n1-faq__q {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.n1-faq__card .n1-faq__a {
  color: var(--n1-muted);
  font-size: 0.88rem;
}

/* FAQ format: definition list (variety) */
.n1-faq__dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 0;
}
.n1-faq__dl dt {
  font-weight: 700;
  color: var(--n1-ink);
  font-size: 0.92rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--n1-line-soft);
}
.n1-faq__dl dt:first-child { border-top: 0; padding-top: 0; }
.n1-faq__dl dd {
  margin: 0 0 0.55rem;
  color: var(--n1-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .n1-faq__cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Type-specific detail layouts ---------- */
.n1-tag--kind {
  border-color: var(--n1-accent);
  color: var(--n1-accent);
  background: rgba(var(--n1-accent-rgb),  0.08);
}
.n1-prose p { margin: 0 0 0.75rem; line-height: 1.8; color: var(--n1-text); }
.n1-prose--lead p:first-child { font-size: 1.02rem; }
.n1-prose--compact p { margin-bottom: 0.5rem; font-size: 0.92rem; }
.n1-prose--serif p { font-family: var(--n1-display); line-height: 1.85; }
.n1-pullquote {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--n1-accent);
  background: var(--n1-surface-2);
  color: var(--n1-muted);
  font-size: 0.9rem;
}
.n1-pullquote footer {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--n1-muted);
}
.n1-chip-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.n1-chip-notes li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  background: var(--n1-surface-2);
  font-size: 0.86rem;
  max-width: 100%;
}
.n1-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.n1-split .n1-panel { margin-bottom: 0; }
.n1-name-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
}
.n1-name-row a { font-size: 0.9rem; }
.n1-grid--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0.65rem; }
.n1-note { font-size: 0.82rem; margin-top: 0.55rem; }
.n1-callout {
  border: 1px dashed var(--n1-accent);
  border-radius: var(--n1-radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  background: rgba(var(--n1-accent-rgb),  0.04);
}
.n1-callout h2 {
  font-size: 1.05rem;
  border-left: 0;
  padding-left: 0;
  margin-bottom: 0.45rem;
}
.n1-callout ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.n1-callout li { margin-bottom: 0.3rem; font-size: 0.92rem; }
.n1-char-table { display: grid; gap: 0.45rem; }
.n1-char-table__row {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--n1-line-soft);
  align-items: baseline;
}
.n1-char-table__name { font-weight: 600; }
.n1-char-table__note { color: var(--n1-muted); font-size: 0.86rem; }
.n1-steps { margin: 0; padding-left: 1.25rem; }
.n1-steps li { margin-bottom: 0.45rem; line-height: 1.65; }
.n1-pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
}
.n1-pill-list a {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--n1-line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--n1-ink);
  text-decoration: none;
  background: var(--n1-surface-2);
}
.n1-banner-note {
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, rgba(var(--n1-accent-rgb),  0.08), transparent);
  border-radius: var(--n1-radius);
}
.n1-banner-note h2 {
  font-size: 1.05rem;
  border-left: 0;
  padding-left: 0;
}
.n1-hook {
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius);
  background: var(--n1-surface);
  box-shadow: var(--n1-shadow);
}
.n1-hook h2 {
  border-left: 3px solid var(--n1-warm);
  padding-left: 0.55rem;
}
.n1-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.n1-duo .n1-panel { margin-bottom: 0; }
.n1-cast--compact .n1-cast__avatar { width: 56px; height: 56px; font-size: 1rem; }
.n1-inline-links { font-size: 0.9rem; margin: 0.35rem 0 0.55rem; }

@media (max-width: 900px) {
  .n1-split,
  .n1-duo { grid-template-columns: minmax(0, 1fr); }
  .n1-char-table__row { grid-template-columns: minmax(0, 1fr); }
  .n1-grid--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Timeline ---------- */
.n1-timeline { border-left: 2px solid var(--n1-line); margin-left: 0.4rem; padding-left: 1rem; }
.n1-timeline li { position: relative; margin-bottom: 0.75rem; font-size: 0.9rem; }
.n1-timeline li::before {
  content: "";
  position: absolute;
  left: -1.28rem;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--n1-accent);
}
.n1-timeline time { display: block; color: var(--n1-muted); font-size: 0.8rem; }

/* ---------- Sidebar ---------- */
.n1-side .n1-panel { padding: 0.85rem; }
.n1-rank { counter-reset: n1rank; }
.n1-rank li {
  counter-increment: n1rank;
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.4rem;
  align-items: start;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--n1-line-soft);
  font-size: 0.88rem;
}
.n1-rank li::before {
  content: counter(n1rank);
  font-weight: 800;
  color: var(--n1-muted);
  font-variant-numeric: tabular-nums;
}
.n1-rank li:nth-child(-n+3)::before { color: var(--n1-warm); }
.n1-rank a { color: var(--n1-ink); text-decoration: none; }
.n1-rank a:hover { color: var(--n1-accent); }
.n1-rank .score { color: var(--n1-score); font-size: 0.8rem; font-weight: 700; }

.n1-chipcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.n1-chipcloud a,
.n1-footer .n1-chipcloud a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  /* dark ink — must beat .n1-footer a light color */
  color: color-mix(in srgb, var(--n1-accent) 75%, #000) !important;
  background: rgba(var(--n1-accent-rgb), 0.16) !important;
  border: 1px solid rgba(var(--n1-accent-rgb), 0.45) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.n1-chipcloud a:nth-child(3n+2),
.n1-footer .n1-chipcloud a:nth-child(3n+2) {
  color: #1a3358 !important;
  background: #e8f0ff !important;
  border-color: #7a9ed4 !important;
}
.n1-chipcloud a:nth-child(3n),
.n1-footer .n1-chipcloud a:nth-child(3n) {
  color: #7c2d12 !important;
  background: #ffedd5 !important;
  border-color: #e89555 !important;
}
.n1-chipcloud a:hover,
.n1-footer .n1-chipcloud a:hover {
  background: var(--n1-accent) !important;
  border-color: var(--n1-accent) !important;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}
.n1-chipcloud a:focus-visible {
  outline: 2px solid var(--n1-accent);
  outline-offset: 2px;
}

/* Plain links: black text, white background (继续浏览 / 热门搜索 / 分类导航) */
.n1-chipcloud--plain a,
.n1-footer .n1-chipcloud--plain a,
.n1-chipcloud--plain a:nth-child(3n),
.n1-chipcloud--plain a:nth-child(3n+2),
.n1-footer .n1-chipcloud--plain a:nth-child(3n),
.n1-footer .n1-chipcloud--plain a:nth-child(3n+2) {
  color: #141820 !important;
  background: #ffffff !important;
  border: 1px solid #dfe3ea !important;
  box-shadow: none;
  font-weight: 500;
  border-radius: var(--n1-radius-sm);
}
.n1-chipcloud--plain a:hover,
.n1-footer .n1-chipcloud--plain a:hover {
  color: var(--n1-accent) !important;
  background: #ffffff !important;
  border-color: var(--n1-accent) !important;
  transform: none;
}

/* ---------- Filter / type ---------- */
.n1-filter { font-size: 0.88rem; }
.n1-filter__row {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--n1-line-soft);
}
.n1-filter__label { color: var(--n1-muted); padding-top: 0.2rem; }
.n1-filter__opts { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.n1-filter__opts a {
  padding: 0.15rem 0.45rem;
  border-radius: var(--n1-radius-sm);
  color: var(--n1-text);
  text-decoration: none;
}
.n1-filter__opts a:hover,
.n1-filter__opts a.is-active {
  background: var(--n1-accent);
  color: #fff;
}

/* ---------- Paging ---------- */
.n1-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 1rem 0 0.25rem;
}
.n1-pager a,
.n1-pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  background: #fff;
  color: var(--n1-text);
  font-size: 0.86rem;
  text-decoration: none;
}
.n1-pager a:hover { border-color: var(--n1-accent); color: var(--n1-accent); }
.n1-pager .is-current {
  background: var(--n1-accent);
  border-color: var(--n1-accent);
  color: #fff;
}

/* ---------- Index sections ---------- */
.n1-channel {
  margin-bottom: 0.85rem;
}
.n1-channel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.n1-channel__tabs a {
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  color: var(--n1-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.n1-channel__tabs a:hover { color: var(--n1-accent); }

.n1-statbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.86rem;
  color: var(--n1-muted);
  padding: 0.65rem 0 0.85rem;
}
.n1-statbar strong { color: var(--n1-ink); font-weight: 700; }

/* Hero type counts — same density as statbar, no redesign */
.n1-hero-stats {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.n1-hero-stats__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--n1-text);
}
.n1-hero-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
.n1-hero-stats__list a {
  color: var(--n1-muted);
  text-decoration: none;
  font-size: 0.84rem;
}
.n1-hero-stats__list a:hover {
  color: var(--n1-accent);
}
.n1-hero-stats__list strong {
  margin: 0 0.1rem 0 0.15rem;
}
.n1-hero-stats__list em {
  font-style: normal;
  color: var(--n1-accent);
  margin-left: 0.15rem;
  font-size: 0.78rem;
}

/* Homepage SEO copy — same density, no visual redesign */
.n1-home-intro {
  margin: 0 0 0.85rem;
  color: var(--n1-text);
  font-size: 0.92rem;
  line-height: 1.75;
  text-align: justify;
}
.n1-cat-blurb {
  margin: 0 0 0.55rem;
  color: var(--n1-text);
  font-size: 0.88rem;
  line-height: 1.65;
}
.n1-cat-link {
  color: inherit;
  text-decoration: none;
}
.n1-cat-link:hover {
  color: var(--n1-accent);
  text-decoration: underline;
}
.n1-footer-entities {
  margin-bottom: 0.35rem;
}
.n1-footer .n1-chipcloud--plain a {
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
.n1-footer {
  background: var(--n1-header);
  color: #a8b0bf;
  padding: 1.75rem 0 1.25rem;
  margin-top: 1rem;
  font-size: 0.86rem;
}
.n1-footer a { color: #c5ccd8; text-decoration: none; }
.n1-footer a:hover { color: #fff; }
.n1-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.n1-footer h3 {
  color: #e8ecf3;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  font-family: var(--n1-font);
}
.n1-footer ul li { margin-bottom: 0.3rem; }
.n1-footer__copy {
  border-top: 1px solid #1f2735;
  padding-top: 0.85rem;
  text-align: center;
  color: #7d8796;
}
.n1-footer__copy a { color: #9aa3b2; text-decoration: none; }
.n1-footer__copy a:hover { color: #e8ecf3; text-decoration: underline; }
.n1-footer__copy .split-line {
  display: inline-block;
  width: 1px;
  height: 0.75em;
  margin: 0 0.45rem;
  background: #3a4556;
  vertical-align: middle;
}
@media (max-width: 767px) {
  .n1-footer__copy .hidden-xs { display: none !important; }
}
.n1-flink {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.75rem;
  justify-content: center;
}

/* ---------- Related searches ---------- */
.n1-related-search a {
  display: inline-block;
  margin: 0 0.55rem 0.35rem 0;
  font-size: 0.86rem;
}

/* ---------- Utilities ---------- */
.n1-muted { color: var(--n1-muted); }
.n1-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .n1-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* Detail: stack sidebar under content early — prevents side panels covering hero */
  .n1-main .n1-layout,
  .n1-main.n1-flow--side-lead .n1-layout,
  .n1-main.n1-flow--side-trail .n1-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .n1-main .n1-side {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .n1-main .n1-content { order: 1; width: 100%; max-width: 100%; }
  .n1-main .n1-side .n1-panel { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .n1-layout { grid-template-columns: minmax(0, 1fr); }
  .n1-flow--side-lead .n1-layout { grid-template-columns: minmax(0, 1fr); }
  /* Keep sidebar after main content (do not reset order to 0) */
  .n1-main .n1-side,
  .n1-flow--side-lead .n1-side { order: 2; }
  .n1-main .n1-content { order: 1; }
  .n1-flow--hero-flip .n1-hero { direction: ltr; }
  .n1-flow--hero-stack .n1-hero__poster { width: min(140px, 38%); }
  .n1-side { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; width: 100%; }
  .n1-side .n1-panel { margin-bottom: 0; min-width: 0; max-width: 100%; }
  .n1-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .n1-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n1-hero { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); }

  .n1-header__top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .n1-search {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  .n1-hotwords { order: 0; }
  .n1-panel,
  .n1-dl,
  .n1-chipcloud,
  .n1-related-search {
    max-width: 100%;
    min-width: 0;
  }
  .n1-dl {
    grid-template-columns: 4.5em minmax(0, 1fr);
  }

  /* Mobile: header hides on scroll down; marquee stays pinned */
  .n1-header.is-dismissed {
    transform: translateY(calc(-100% - 4px));
    box-shadow: none;
    pointer-events: none;
  }
}
@media (max-width: 640px) {
  .n1-wrap {
    width: calc(100% - 1rem);
    max-width: 100%;
  }
  .n1-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
  .n1-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .n1-side { display: flex; flex-direction: column; }
  .n1-hero { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); gap: 0.65rem; padding: 0.75rem; }
  .n1-facts-inline { grid-template-columns: minmax(0, 1fr); }
  .n1-footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .n1-player-shell {
    max-height: min(56vw, 420px);
    border-radius: 0.55rem;
  }
  h1, .n1-hero__title { font-size: 1.2rem; overflow-wrap: anywhere; word-break: break-word; }
  .n1-nav__list a { padding: 0.4rem 0.55rem; font-size: 0.85rem; }
  .n1-actions .n1-btn { padding: 0.5rem 0.85rem; font-size: 0.86rem; }
  .n1-scoreline { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .n1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Play page ---------- */
.n1-play-stack {
  display: flex;
  flex-direction: column;
}
.n1-play-slot { min-width: 0; }
.n1-play-actions { margin-bottom: 0.75rem; }
.n1-actions--play {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.n1-play-info__grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
  align-items: start;
}
.n1-play-info__poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--n1-radius-sm);
  overflow: hidden;
  background: var(--n1-line-soft);
}
.n1-play-info__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n1-play-info__h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--n1-ink);
  font-family: var(--n1-display);
}
.n1-play-info__score {
  margin: 0 0 0.55rem;
  color: var(--n1-accent);
  font-weight: 700;
}
.n1-play-info__score span { font-size: 1.25rem; }
.n1-play-info__dl {
  margin: 0;
  display: grid;
  gap: 0.28rem 0.75rem;
}
.n1-play-info__row {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
  font-size: 0.9rem;
}
.n1-play-info__row dt {
  margin: 0;
  color: var(--n1-muted);
}
.n1-play-info__row dd {
  margin: 0;
  color: var(--n1-text);
  overflow-wrap: anywhere;
}
.n1-play-info__more {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}
.n1-play-cast__line {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.n1-play-cast__line a { margin-right: 0.35rem; }
.n1-play-playlist .n1-playlist__tabs {
  position: sticky;
  top: calc(var(--n1-marquee-h, 0px) + 0.25rem);
  z-index: 4;
  background: var(--n1-bg, #fff);
  padding: 0.35rem 0;
  margin: 0 0 0.45rem;
}
.n1-play-continue {
  position: fixed;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(-50%);
  z-index: 10060;
  box-sizing: border-box;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: 92vw;
  max-width: 420px;
  min-width: 280px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
}
.n1-play-continue[hidden] { display: none !important; }
.n1-play-continue.is-open {
  display: flex !important;
}
.n1-play-continue__txt {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--n1-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.n1-play-continue__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}
.n1-play-continue__go,
.n1-play-continue__close {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
}
.n1-play-continue__close {
  min-width: 3.2rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.n1-play-sticky {
  display: none;
}
@media (max-width: 900px) {
  .n1-body--play { padding-bottom: 4.25rem; }
  .n1-play-info__grid {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.7rem;
  }
  .n1-play-info__h1 { font-size: 1.15rem; }
  .n1-play-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 28;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--n1-line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
  }
  .n1-play-sticky .n1-btn { flex: 1; text-align: center; }
  .n1-play-continue {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    max-width: none;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
  }
  .n1-play-continue__txt {
    flex: none;
    width: 100%;
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .n1-play-continue__actions {
    width: 100%;
    gap: 0.5rem;
  }
  .n1-play-continue__go {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
  }
  .n1-play-continue__close {
    flex: 0 0 auto;
    min-width: 4.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
  }
}
@media (max-width: 360px) {
  .n1-play-continue {
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.75rem 0.8rem;
  }
  .n1-play-continue__close { min-width: 4rem; }
}
/* Kind/mood micro-variation (anti-footprint, light) */
.n1-play--tv .n1-play-info__h1,
.n1-play--anime .n1-play-info__h1 { letter-spacing: 0.01em; }
.n1-play--short .n1-play-info__grid,
.n1-play--ai .n1-play-info__grid { grid-template-columns: 88px minmax(0, 1fr); }
.n1-play--variety .n1-play-story .n1-prose p { font-size: 0.95rem; }

/* ---------- Type / Show landing pages ---------- */
.n1-type-stack,
.n1-show-stack {
  display: flex;
  flex-direction: column;
}
.n1-type-slot,
.n1-show-slot { min-width: 0; }
.n1-type-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.n1-type-hero__banner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(var(--n1-accent-rgb),  0.18), transparent 55%),
    linear-gradient(135deg, #f8faf9 0%, #eef4f2 45%, #e7eef8 100%);
  pointer-events: none;
}
.n1-type-hero--v1 .n1-type-hero__banner {
  background:
    radial-gradient(90% 70% at 90% 10%, rgba(180, 83, 9, 0.12), transparent 50%),
    linear-gradient(160deg, #faf7f2 0%, #f1f5f4 100%);
}
.n1-type-hero--v2 .n1-type-hero__banner {
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(30, 64, 175, 0.12), transparent 55%),
    linear-gradient(120deg, #f4f7fb 0%, #eef6f3 100%);
}
.n1-type-hero--v3 .n1-type-hero__banner {
  background:
    linear-gradient(180deg, rgba(var(--n1-accent-rgb),  0.08), transparent 40%),
    linear-gradient(90deg, #f7f7f5 0%, #eef2f7 100%);
}
.n1-type--anime .n1-type-hero__banner,
.n1-show--anime .n1-type-hero__banner {
  background:
    radial-gradient(70% 60% at 80% 20%, rgba(219, 39, 119, 0.1), transparent 50%),
    linear-gradient(145deg, #faf5ff 0%, #f0f9ff 100%);
}
.n1-type--short .n1-type-hero__banner,
.n1-type--ai .n1-type-hero__banner,
.n1-show--short .n1-type-hero__banner,
.n1-show--ai .n1-type-hero__banner {
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(234, 88, 12, 0.12), transparent 55%),
    linear-gradient(135deg, #fff7ed 0%, #f0fdf4 100%);
}
.n1-type-hero__body {
  position: relative;
  z-index: 1;
  padding: 0.15rem 0.1rem;
}
.n1-type-hero__title {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--n1-ink);
  font-family: var(--n1-display);
}
.n1-type-hero__intro {
  margin: 0 0 0.75rem;
  max-width: 52rem;
  color: var(--n1-text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.n1-type-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
}
.n1-type-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 4.5rem;
}
.n1-type-hero__stats strong {
  font-size: 1.05rem;
  color: var(--n1-ink);
}
.n1-type-hero__stats span {
  font-size: 0.78rem;
  color: var(--n1-muted);
}
.n1-type-hero__stat-wide { min-width: 8rem; max-width: 14rem; }
.n1-type-hero__stat-wide strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.n1-type-hero__tags { margin-bottom: 0.7rem; }
.n1-type-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}
.n1-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.n1-chip {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  color: var(--n1-text);
  text-decoration: none;
  font-size: 0.86rem;
  background: #fff;
}
.n1-chip:hover {
  border-color: var(--n1-accent);
  color: var(--n1-accent);
}
.n1-show .n1-filter {
  position: sticky;
  top: calc(var(--n1-marquee-h, 0px) + 0.35rem);
  z-index: 5;
  background: var(--n1-bg, #fff);
}
.n1-type--tv .n1-type-hero__title,
.n1-show--tv .n1-type-hero__title { letter-spacing: 0.01em; }
.n1-type--variety .n1-type-hero__intro { font-size: 0.92rem; }
@media (max-width: 640px) {
  .n1-type-hero__title { font-size: 1.25rem; }
  .n1-type-hero__stats li { min-width: 4rem; }
  .n1-show .n1-filter { position: static; }
}

/* ---------- Search landing ---------- */
.n1-search-stack {
  display: flex;
  flex-direction: column;
}
.n1-search-slot { min-width: 0; }
.n1-search-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.n1-search-hero__banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(var(--n1-accent-rgb),  0.14), transparent 55%),
    linear-gradient(135deg, #f7faf9 0%, #eef3f8 100%);
}
.n1-search-hero--v1 .n1-search-hero__banner {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(180, 83, 9, 0.1), transparent 50%),
    linear-gradient(150deg, #faf8f4 0%, #f0f5f3 100%);
}
.n1-search-hero--v2 .n1-search-hero__banner {
  background:
    radial-gradient(80% 60% at 20% 100%, rgba(30, 64, 175, 0.1), transparent 55%),
    linear-gradient(120deg, #f5f7fb 0%, #eef8f4 100%);
}
.n1-search-hero--v3 .n1-search-hero__banner {
  background: linear-gradient(180deg, rgba(var(--n1-accent-rgb),  0.07), transparent 45%), #f6f7f5;
}
.n1-search-page--anime .n1-search-hero__banner {
  background:
    radial-gradient(70% 60% at 85% 15%, rgba(219, 39, 119, 0.09), transparent 50%),
    linear-gradient(145deg, #faf5ff 0%, #f0f9ff 100%);
}
.n1-search-page--ai .n1-search-hero__banner,
.n1-search-page--short .n1-search-hero__banner {
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(234, 88, 12, 0.1), transparent 55%),
    linear-gradient(135deg, #fff7ed 0%, #f0fdf4 100%);
}
.n1-search-hero__body { position: relative; z-index: 1; }
.n1-search-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.35;
  font-family: var(--n1-display);
  color: var(--n1-ink);
}
.n1-search-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.n1-search-hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.n1-search-hero__meta strong { font-size: 1rem; color: var(--n1-ink); }
.n1-search-hero__meta span { font-size: 0.78rem; color: var(--n1-muted); }
.n1-search--page {
  display: flex;
  gap: 0.4rem;
  max-width: 40rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius);
  background: #fff;
}
.n1-search--page input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  color: var(--n1-ink);
  background: transparent;
}
.n1-search--page button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: var(--n1-radius-sm);
  background: var(--n1-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.n1-search--page.is-sticky {
  position: sticky;
  top: calc(var(--n1-marquee-h, 0px) + 0.35rem);
  z-index: 6;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.n1-search-hero__chip-label {
  margin: 0.45rem 0 0.3rem;
  font-size: 0.8rem;
}
.n1-card--search .n1-card__blurb {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--n1-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.n1-mark {
  background: rgba(var(--n1-accent-rgb),  0.14);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}
.n1-search-empty .n1-prose { margin-bottom: 0.55rem; }
.n1-body--search { padding-bottom: 1rem; }
@media (max-width: 640px) {
  .n1-search-hero__title { font-size: 1.2rem; }
  .n1-search--page { max-width: none; }
  .n1-search--page button { min-width: 4.5rem; }
}

/* ---------- Ranking landing ---------- */
.n1-rank-stack {
  display: flex;
  flex-direction: column;
}
.n1-rank-slot { min-width: 0; }
.n1-rank-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.n1-rank-hero__banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 80% at 8% 0%, rgba(180, 83, 9, 0.12), transparent 55%),
    linear-gradient(135deg, #faf7f2 0%, #eef4f2 100%);
}
.n1-rank-hero--v1 .n1-rank-hero__banner {
  background:
    radial-gradient(90% 70% at 90% 10%, rgba(var(--n1-accent-rgb),  0.14), transparent 50%),
    linear-gradient(150deg, #f4faf8 0%, #f0f3f8 100%);
}
.n1-rank-hero--v2 .n1-rank-hero__banner {
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(30, 64, 175, 0.1), transparent 55%),
    linear-gradient(120deg, #f7f8fb 0%, #f3f6f1 100%);
}
.n1-rank-hero--v3 .n1-rank-hero__banner {
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.08), transparent 40%), #f7f6f4;
}
.n1-rank-page--score .n1-rank-hero__banner {
  background:
    radial-gradient(70% 60% at 80% 20%, rgba(202, 138, 4, 0.14), transparent 50%),
    linear-gradient(145deg, #fffbeb 0%, #f0fdf4 100%);
}
.n1-rank-page--editor .n1-rank-hero__banner {
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(var(--n1-accent-rgb),  0.12), transparent 55%),
    linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}
.n1-rank-hero__body { position: relative; z-index: 1; }
.n1-rank-hero__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  line-height: 1.3;
  font-family: var(--n1-display);
  color: var(--n1-ink);
}
.n1-rank-hero__updated {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--n1-muted);
}
.n1-rank-hero__intro {
  margin: 0 0 0.85rem;
  max-width: 48rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--n1-text);
}
.n1-rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.n1-rank-tabs a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  color: var(--n1-text);
  text-decoration: none;
  font-size: 0.88rem;
  background: #fff;
  min-height: 2.25rem;
}
.n1-rank-tabs a:hover,
.n1-rank-tabs a.is-active {
  border-color: var(--n1-accent);
  color: var(--n1-accent);
  background: rgba(var(--n1-accent-rgb),  0.06);
}
.n1-rank-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.n1-rank-row__link {
  display: grid;
  grid-template-columns: 2.2rem 72px minmax(0, 1fr) auto;
  gap: 0.65rem 0.75rem;
  align-items: start;
  padding: 0.55rem 0.45rem;
  border: 1px solid var(--n1-line-soft);
  border-radius: var(--n1-radius-sm);
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.n1-rank-row__link:hover {
  border-color: var(--n1-accent);
}
.n1-rank-row__num {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--n1-muted);
  text-align: center;
  padding-top: 0.15rem;
}
.n1-rank-row.is-top1 .n1-rank-row__num,
.n1-rank-row.is-top3 .n1-rank-row__num {
  color: var(--n1-warm);
}
.n1-rank-row__poster {
  display: block;
  width: 72px;
  aspect-ratio: 72 / 100;
  border-radius: 4px;
  overflow: hidden;
  background: var(--n1-line-soft);
}
.n1-rank-row__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n1-rank-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.n1-rank-row__title {
  font-weight: 700;
  color: var(--n1-ink);
  font-size: 1rem;
}
.n1-rank-row__meta,
.n1-rank-row__blurb,
.n1-rank-row__reason {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--n1-muted);
}
.n1-rank-row__reason { color: var(--n1-accent); }
.n1-rank-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 4.5rem;
}
.n1-rank-row__score {
  font-weight: 800;
  color: var(--n1-score);
  font-size: 1.05rem;
}
.n1-rank-row__metric {
  font-size: 0.75rem;
  color: var(--n1-muted);
  text-align: right;
}
.n1-rank-row__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}
.n1-rank-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(var(--n1-accent-rgb),  0.1);
  color: var(--n1-accent);
}
.n1-rank-row.is-top1 .n1-rank-badge { background: rgba(180, 83, 9, 0.12); color: var(--n1-warm); }
.n1-rank-explain p { margin: 0 0 0.45rem; }
@media (max-width: 720px) {
  .n1-rank-hero__title { font-size: 1.25rem; }
  .n1-rank-row__link {
    grid-template-columns: 1.8rem 56px minmax(0, 1fr);
  }
  .n1-rank-row__side {
    grid-column: 2 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }
  .n1-rank-row__poster { width: 56px; }
}

/* ---------- Topic portal ---------- */
.n1-topic-stack { display: flex; flex-direction: column; }
.n1-topic-slot { min-width: 0; }
.n1-topic-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.n1-topic-hero__banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(var(--n1-accent-rgb),  0.12), transparent 55%),
    linear-gradient(135deg, #f7faf8 0%, #eef2f7 100%);
}
.n1-topic-hero--v1 .n1-topic-hero__banner {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(180, 83, 9, 0.1), transparent 50%),
    linear-gradient(150deg, #faf8f4 0%, #f1f5f4 100%);
}
.n1-topic-hero--v2 .n1-topic-hero__banner {
  background:
    radial-gradient(80% 60% at 10% 100%, rgba(30, 64, 175, 0.1), transparent 55%),
    linear-gradient(120deg, #f5f7fb 0%, #f0f8f4 100%);
}
.n1-topic-hero--v3 .n1-topic-hero__banner {
  background: linear-gradient(180deg, rgba(var(--n1-accent-rgb),  0.07), transparent 42%), #f6f7f5;
}
.n1-topic--ai .n1-topic-hero__banner,
.n1-topic--short .n1-topic-hero__banner {
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(234, 88, 12, 0.1), transparent 55%),
    linear-gradient(135deg, #fff7ed 0%, #f0fdf4 100%);
}
.n1-topic--anime .n1-topic-hero__banner {
  background:
    radial-gradient(70% 60% at 85% 15%, rgba(219, 39, 119, 0.08), transparent 50%),
    linear-gradient(145deg, #faf5ff 0%, #f0f9ff 100%);
}
.n1-topic-hero__body { position: relative; z-index: 1; }
.n1-topic-hero__title {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  line-height: 1.3;
  font-family: var(--n1-display);
  color: var(--n1-ink);
}
.n1-topic-hero__stat {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--n1-muted);
}
.n1-topic-hero__intro {
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.n1-topic-hero__intro p { margin: 0; }
.n1-topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.n1-topic-card {
  border: 1px solid var(--n1-line-soft);
  border-radius: var(--n1-radius);
  background: #fff;
  overflow: hidden;
}
.n1-topic-card__link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.55rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.n1-topic-card__link:hover { background: rgba(var(--n1-accent-rgb),  0.03); }
.n1-topic-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--n1-line-soft);
}
.n1-topic-card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.n1-topic-card__badge,
.n1-topic-card__score {
  position: absolute;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}
.n1-topic-card__badge {
  left: 0.25rem;
  top: 0.25rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}
.n1-topic-card__score {
  right: 0.25rem;
  bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--n1-score);
}
.n1-topic-card__body { min-width: 0; }
.n1-topic-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--n1-ink);
}
.n1-topic-card__meta,
.n1-topic-card__people,
.n1-topic-card__reason {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--n1-muted);
}
.n1-topic-card__people span {
  color: var(--n1-ink);
  margin-right: 0.25rem;
}
.n1-topic-card__reason { color: var(--n1-accent); }
.n1-topic-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.n1-topic-catalog__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius);
  text-decoration: none;
  color: inherit;
  background: #fff;
  min-height: 5.5rem;
}
.n1-topic-catalog__item:hover {
  border-color: var(--n1-accent);
}
.n1-topic-catalog__item strong {
  font-size: 1rem;
  color: var(--n1-ink);
}
.n1-topic-catalog__item span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--n1-muted);
}
.n1-topic-index-hero__intro {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  line-height: 1.7;
  color: var(--n1-text);
}
@media (max-width: 640px) {
  .n1-topic-hero__title { font-size: 1.25rem; }
  .n1-topic-card__link { grid-template-columns: 72px minmax(0, 1fr); }
  .n1-topic-cards { grid-template-columns: 1fr; }
}

/* —— Actor / Director person portals —— */
.n1-person-stack { display: flex; flex-direction: column; }
.n1-person-slot { min-width: 0; }
.n1-person-hero {
  position: relative;
  overflow: hidden;
}
.n1-person-hero__banner {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: linear-gradient(135deg, rgba(var(--n1-accent-rgb),  0.12), rgba(30, 64, 175, 0.08));
  pointer-events: none;
}
.n1-person-hero--v1 .n1-person-hero__banner,
.n1-person.n1-person-hero--v1 .n1-person-hero__banner {
  background: linear-gradient(120deg, rgba(180, 83, 9, 0.1), rgba(var(--n1-accent-rgb),  0.12));
}
.n1-person-hero--v2 .n1-person-hero__banner,
.n1-person.n1-person-hero--v2 .n1-person-hero__banner {
  background: linear-gradient(160deg, rgba(30, 64, 175, 0.1), rgba(67, 56, 202, 0.06));
}
.n1-person--director .n1-person-hero__banner {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.1), rgba(var(--n1-accent-rgb),  0.1));
}
.n1-person-hero__body { position: relative; z-index: 1; }
.n1-person-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.n1-person-hero__stat {
  margin: 0 0 0.5rem;
  color: var(--n1-muted, #64748b);
  font-size: 0.95rem;
}
.n1-person-hero__intro {
  max-width: 42rem;
  line-height: 1.7;
}
.n1-person-hero__intro p { margin: 0; }
.n1-person-group { margin-top: 1rem; }
.n1-person-group:first-of-type { margin-top: 0; }
.n1-person-group__title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.n1-person-people .n1-chip { font-variant-numeric: tabular-nums; }
.n1-person-grid { margin-top: 0.25rem; }
@media (max-width: 640px) {
  .n1-person-hero__title { font-size: 1.25rem; }
}

/* ---------- Site map ---------- */
.n1-main--map .n1-panel { margin-bottom: 1rem; }
.n1-map__intro h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-family: var(--n1-display);
}
.n1-map__intro > .n1-muted { margin: 0 0 0.65rem; }
.n1-map__rss {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.15rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--n1-muted);
}
.n1-map__rss a {
  color: var(--n1-text);
  text-decoration: none;
  padding: 0.1rem 0.2rem;
}
.n1-map__rss a:hover { color: var(--n1-accent); }
.n1-map__split {
  color: var(--n1-line);
  margin: 0 0.2rem;
  user-select: none;
}
.n1-map__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.n1-map__chips a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--n1-line);
  border-radius: var(--n1-radius-sm);
  background: var(--n1-surface-2);
  color: var(--n1-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.n1-map__chips a:hover {
  border-color: var(--n1-accent);
  color: var(--n1-accent);
}
.n1-map__sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}
.n1-map__h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.n1-map__h3 a { color: inherit; text-decoration: none; }
.n1-map__h3 a:hover { color: var(--n1-accent); }
.n1-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
.n1-map__list a {
  color: var(--n1-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.n1-map__list a:hover { color: var(--n1-accent); }
.n1-map__list--topics,
.n1-map__list--vod {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.4rem 0.85rem;
}
@media (max-width: 640px) {
  .n1-map__sections { grid-template-columns: 1fr; }
}
\n

/* N1_CRAWL_ONLY: homepage SEO intros/blurbs — in HTML for spiders, hidden for humans */
.n1-home-intro,
.n1-cat-blurb,
.nt-home-intro,
.nt-cat-blurb,
.tv-home-intro,
.tv-cat-blurb,
.mv-home-intro,
.mv-cat-blurb,
.n1-crawl-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

