/* =========================================================
   template/movie — 影院杂志版
   Left brand rail · ticket stub footer · crimson accent on cool slate
   Distinct from new1 teal dense portal
   ========================================================= */

:root {
  --mv-ink: #0c1220;
  --mv-text: #1e293b;
  --mv-muted: #64748b;
  --mv-line: #cbd5e1;
  --mv-line-soft: #e2e8f0;
  --mv-bg: #0b1020;
  --mv-surface: #f1f5f9;
  --mv-surface-2: #e8eef5;
  --mv-accent: #dc2626;
  --mv-accent-hover: #b91c1c;
  --mv-accent-rgb: 220, 38, 38;
  --mv-warm: #f59e0b;
  --mv-score: #eab308;
  --mv-header: #0b1020;
  --mv-header-text: #f8fafc;
  --mv-rail: #070b16;
  --mv-rail-w: 168px;
  --mv-radius: 2px;
  --mv-radius-sm: 1px;
  --mv-shadow: 0 8px 28px rgba(7, 11, 22, 0.22);
  --mv-max: 1180px;
  --mv-font: "DIN Alternate", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mv-display: "Bodoni Moda", "Playfair Display", "Source Han Serif SC", "Songti SC", "Noto Serif SC", serif;
  --mv-stage-pad: 1.1rem 1.35rem 2.5rem;
}

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

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

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

/* Card style variants — PHP emits n1-card-s*; also support mv- */
.n1-card-s2 .n1-card__badge,
.mv-card-s2 .mv-card__badge,
.mv-card-s2 .n1-card__badge { left: auto; right: 0.35rem; }
.n1-card-s2 .n1-card__score,
.mv-card-s2 .mv-card__score,
.mv-card-s2 .n1-card__score { left: 0.35rem; right: auto; }
.n1-card-s2 .n1-card__meta,
.mv-card-s2 .mv-card__meta { display: none; }
.n1-card-s3 .n1-card__reason,
.mv-card-s3 .mv-card__reason { display: none; }
.n1-card-s3 .n1-card__meta,
.mv-card-s3 .mv-card__meta { font-size: 0.75rem; opacity: 0.85; }
.n1-card-s4 .n1-card__poster,
.mv-card-s4 .mv-card__poster { border-radius: 0; }
.n1-card-s4 .n1-card__badge,
.mv-card-s4 .mv-card__badge,
.mv-card-s4 .n1-card__badge { top: 0; left: 0; right: auto; border-radius: 0; }
.n1-card-s4 .n1-card__title,
.mv-card-s4 .mv-card__title { font-size: 0.92rem; }
.n1-card-s4 .n1-card__reason,
.mv-card-s4 .mv-card__reason { border-top: 1px dashed var(--mv-line); padding-top: 0.25rem; }

.mv-content--ordered { display: flex; flex-direction: column; gap: 1.25rem; }

a { color: var(--mv-accent); text-decoration: none; }
a:hover { color: var(--mv-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(--mv-ink); font-weight: 700; line-height: 1.35; }
h1 { font-family: var(--mv-display); font-size: clamp(1.55rem, 2.4vw, 2.05rem); letter-spacing: 0.04em; font-weight: 600; }
h2 {
  font-family: var(--mv-display);
  font-size: 1.28rem;
  border-left: 0;
  padding-left: 0;
  border-bottom: 2px solid var(--mv-ink);
  display: inline-block;
  padding-bottom: 0.15rem;
  letter-spacing: 0.03em;
}
h3 { font-size: 1.02rem; }

.mv-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--mv-accent); color: #fff; padding: 0.5rem 1rem; z-index: 1000;
}
.mv-skip:focus { left: 0.5rem; top: 0.5rem; }
.mv-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ---------- Cinema shell: left rail + stage ---------- */
.mv-shell {
  display: flex;
  min-height: 100vh;
  background: var(--mv-bg);
  color: var(--mv-header-text);
}
.mv-rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: var(--mv-rail-w);
  min-height: 100vh;
  flex: 0 0 var(--mv-rail-w);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(220, 38, 38, 0.22), transparent 55%),
    linear-gradient(180deg, #101828 0%, var(--mv-rail) 48%, #05070f 100%);
  border-right: 1px solid rgba(248, 250, 252, 0.08);
  padding: 1.25rem 0.85rem 2rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mv-rail__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.35rem 0.4rem;
}
.mv-rail__brand:hover { opacity: 0.94; text-decoration: none !important; }
.mv-rail__logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.mv-rail__mark {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 4px;
  background:
    linear-gradient(160deg, var(--mv-accent) 0 38%, transparent 38%),
    linear-gradient(160deg, transparent 62%, #f8fafc 62%);
  background-color: #0f172a;
  box-shadow: inset 0 0 0 2px rgba(248, 250, 252, 0.28);
}
.mv-rail__name {
  font-family: var(--mv-display);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.mv-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mv-rail__nav a {
  color: rgba(248, 250, 252, 0.72) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  padding: 0.48rem 0.55rem;
  border-left: 2px solid transparent;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mv-rail__nav a:hover,
.mv-rail__nav a.is-active {
  color: #fff !important;
  border-left-color: var(--mv-accent);
  background: rgba(255, 255, 255, 0.04);
}
.mv-stage {
  flex: 1 1 auto;
  min-width: 0;
  background:
    linear-gradient(180deg, #dbe4ef 0%, var(--mv-surface) 18%, #edf2f7 100%);
  color: var(--mv-text);
}
.mv-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.35rem;
  background: rgba(241, 245, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.mv-topbar .mv-search {
  flex: 1 1 280px;
  max-width: 460px;
  display: block;
  position: relative;
  background: transparent;
  border: 0;
  overflow: visible;
}
.mv-topbar .mv-search__row {
  display: flex;
  background: #0b1020;
  border: 1px solid rgba(15, 23, 42, 0.55);
  border-radius: var(--mv-radius);
  overflow: hidden;
}
.mv-topbar .mv-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 0.65rem 0.85rem;
  outline: none;
  cursor: pointer;
}
.mv-topbar .mv-search input::placeholder { color: rgba(248, 250, 252, 0.45); }
.mv-topbar .mv-search button {
  border: 0;
  background: var(--mv-accent);
  color: #fff;
  padding: 0 1.05rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.mv-topbar .mv-search button:hover { background: var(--mv-accent-hover); }
.mv-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(--mv-radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  max-height: 320px;
  overflow: auto;
}
.mv-suggest a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-suggest a:hover { background: rgba(15, 23, 42, 0.06); }
.mv-suggest .is-empty {
  padding: 0.65rem 0.85rem;
  color: #64748b;
  font-size: 0.9rem;
}
.mv-ticker {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}
.mv-ticker__lab {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mv-accent);
  font-weight: 800;
  border: 1px solid rgba(220, 38, 38, 0.35);
  padding: 0.2rem 0.45rem;
}
.mv-ticker__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.mv-ticker__track::-webkit-scrollbar { display: none; }
.mv-ticker__track a {
  color: var(--mv-ink);
  font-size: 0.86rem;
  text-decoration: none;
  opacity: 0.82;
}
.mv-ticker__track a:hover { color: var(--mv-accent); opacity: 1; }

.mv-main { padding: var(--mv-stage-pad); }

@media (max-width: 960px) {
  .mv-shell { flex-direction: column; }
  .mv-rail {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-right: 0;
    border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  }
  .mv-rail__brand { flex-direction: row; align-items: center; gap: 0.55rem; padding: 0; }
  .mv-rail__mark { width: 1.5rem; height: 1.5rem; }
  .mv-rail__logo { width: 2rem; height: 2rem; }
  .mv-rail__name { font-size: 1rem; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-rail__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.15rem;
    max-width: 55vw;
    scrollbar-width: none;
  }
  .mv-rail__nav::-webkit-scrollbar { display: none; }
  .mv-rail__nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
  }
  .mv-rail__nav a:hover,
  .mv-rail__nav a.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--mv-accent);
    background: transparent;
  }
  .mv-topbar {
    padding: 0.55rem 0.85rem 0.6rem;
    box-sizing: border-box;
    width: 100%;
  }
  .mv-topbar .mv-search,
  .mv-topbar .mv-ticker {
    box-sizing: border-box;
    max-width: 100%;
  }
  .mv-main { padding: 0.9rem 1rem 2rem; }
}

/* ---------- 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(--mv-accent) 0%,
    color-mix(in srgb, var(--mv-accent) 55%, #000) 48%,
    var(--mv-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.mv-has-marquee {
  padding-top: 0 !important;
}

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

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

.mv-search {
  flex: 1 1 200px;
  display: block;
  position: relative;
  max-width: 520px;
  min-width: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.mv-search__row {
  display: flex;
  background: color-mix(in srgb, var(--mv-header) 82%, #000);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mv-radius-sm);
  overflow: hidden;
}
.mv-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.55rem 0.75rem;
  min-width: 0;
  cursor: pointer;
}
.mv-search input::placeholder { color: #8b93a3; }
.mv-search button {
  border: 0;
  background: var(--mv-accent);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  white-space: nowrap;
}
.mv-search button:hover { background: var(--mv-accent-hover); }

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

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

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

/* ---------- Layout shells ---------- */
.mv-main { padding: 0.5rem 0 2rem; max-width: 100%; overflow-x: hidden; }
.mv-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) ---------- */
.mv-flow {
  --mv-stack-gap: 0.85rem;
}
.mv-flow--gap-tight { --mv-stack-gap: 0.55rem; }
.mv-flow--gap-cozy { --mv-stack-gap: 0.85rem; }
.mv-flow--gap-roomy { --mv-stack-gap: 1.25rem; }
.mv-flow--gap-airy { --mv-stack-gap: 1.7rem; }

.mv-slot-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.mv-slot-stack > .mv-slot {
  min-width: 0;
  max-width: 100%;
  margin-bottom: var(--mv-stack-gap);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 1.05rem 1rem;
}
.mv-slot {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 1.05rem 1rem;
  margin-bottom: 0.75rem;
}
.mv-slot .mv-panel {
  background: transparent;
  border: 0;
  border-bottom: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.mv-flow .mv-content > .mv-hero,
.mv-flow .mv-content > .mv-panel,
.mv-flow .mv-content > .mv-helpful,
.mv-flow .mv-content > .mv-split,
.mv-flow .mv-content > .mv-duo,
.mv-flow .mv-content > .mv-sec-ending,
.mv-flow .mv-content > .mv-rich {
  margin-bottom: var(--mv-stack-gap);
}

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

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

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

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

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

.mv-content {
  min-width: 0;
  max-width: 100%;
}
.mv-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  box-shadow: none;
  padding: 0.85rem 1.05rem 1rem;
  margin-bottom: 0.75rem;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mv-panel:last-child { margin-bottom: 0.75rem; }
.mv-panel__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.mv-panel__hd h2 { margin: 0; }
.mv-panel__more {
  font-size: 0.78rem;
  color: var(--mv-muted);
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.mv-panel__more:hover { color: var(--mv-accent); }

/* ---------- Movie card grid — magazine strip density ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem 0.95rem;
}
.mv-card,
.mv-root .n1-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.mv-card__link,
.mv-root .n1-card__link { display: block; color: inherit; text-decoration: none; }
.mv-card:hover,
.mv-card__link:hover,
.mv-root .n1-card:hover,
.mv-root .n1-card__link:hover { color: inherit; text-decoration: none; }
.mv-card:hover .mv-card__title,
.mv-card__link:hover .mv-card__title,
.mv-root .n1-card:hover .n1-card__title,
.mv-root .n1-card__link:hover .n1-card__title { color: var(--mv-accent); }
.mv-card__poster,
.mv-root .n1-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 0;
  overflow: hidden;
  background: #0f172a center/cover no-repeat;
  border: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.mv-card:hover .mv-card__poster,
.mv-root .n1-card:hover .n1-card__poster {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.28);
}
.mv-card__poster img,
.mv-root .n1-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mv-card__badge,
.mv-root .n1-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 2;
  max-width: 85%;
  padding: 0.12rem 0.4rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(7, 11, 22, 0.78);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}
.mv-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;
}
.mv-card__title {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mv-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.4em;
}
.mv-card__meta {
  font-size: 0.75rem;
  color: var(--mv-muted);
  margin: 0.15rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-card__reason {
  margin: 0.35rem 0 0;
  padding: 0.25rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--mv-muted);
  background: rgba(var(--mv-accent-rgb),  0.06);
  border-left: 2px solid var(--mv-accent);
  border-radius: 0 4px 4px 0;
}

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

.mv-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;
}
.mv-facts-inline > div {
  min-width: 0;
  max-width: 100%;
}
.mv-facts-inline dt {
  float: left;
  clear: left;
  width: 3.2em;
  color: var(--mv-muted);
}
.mv-facts-inline dd {
  margin: 0 0 0.25rem 3.4em;
  color: var(--mv-text);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.mv-facts-inline dd a {
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.mv-actions .mv-btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.mv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--mv-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;
}
.mv-btn:hover { text-decoration: none; }
.mv-btn--primary {
  background: var(--mv-accent);
  color: #fff;
}
.mv-btn--primary:hover { background: var(--mv-accent-hover); color: #fff; }
.mv-btn--ghost {
  background: var(--mv-surface);
  border-color: var(--mv-line);
  color: var(--mv-ink);
}
.mv-btn--ghost:hover { border-color: var(--mv-accent); color: var(--mv-accent); }

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

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

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

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

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

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

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

/* ---------- Player ---------- */
.mv-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(--mv-radius);
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid #222;
  transform: translateZ(0);
}
body.mv-body--play .mv-hotwords { display: none; }
body.mv-body--play .mv-main--play { padding-top: 0.35rem; }
body.mv-body--play .mv-player-shell #buffer,
body.mv-body--play .mv-player-shell #install { display: none !important; }
/* Lock frame on first paint — MacPlayer height:100% otherwise stretches tall until iframe settles */
.mv-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;
}
.mv-player-shell .MacPlayer table,
.mv-player-shell .MacPlayer #playleft {
  width: 100% !important;
  height: 100% !important;
}
.mv-player-shell .embed-responsive,
.mv-player-shell iframe,
.mv-player-shell video,
.mv-player-shell embed,
.mv-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 ---------- */
.mv-faq details {
  border-bottom: 1px solid var(--mv-line-soft);
  padding: 0.55rem 0;
}
.mv-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--mv-ink);
  list-style: none;
}
.mv-faq summary::-webkit-details-marker { display: none; }
.mv-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--mv-accent);
  font-weight: 700;
}
.mv-faq details[open] summary::before { content: "–"; }
.mv-faq details > p {
  margin: 0.4rem 0 0.2rem 1.1em;
  color: var(--mv-muted);
  font-size: 0.92rem;
}

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

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

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

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

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

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

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

/* ---------- Sidebar ---------- */
.mv-side .mv-panel { padding: 0.85rem; }
.mv-rank { counter-reset: n1rank; }
.mv-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(--mv-line-soft);
  font-size: 0.88rem;
}
.mv-rank li::before {
  content: counter(n1rank);
  font-weight: 800;
  color: var(--mv-muted);
  font-variant-numeric: tabular-nums;
}
.mv-rank li:nth-child(-n+3)::before { color: var(--mv-warm); }
.mv-rank a { color: var(--mv-ink); text-decoration: none; }
.mv-rank a:hover { color: var(--mv-accent); }
.mv-rank .score { color: var(--mv-score); font-size: 0.8rem; font-weight: 700; }

.mv-chipcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.mv-chipcloud a,
.mv-footer .mv-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 .mv-footer a light color */
  color: color-mix(in srgb, var(--mv-accent) 75%, #000) !important;
  background: rgba(var(--mv-accent-rgb), 0.16) !important;
  border: 1px solid rgba(var(--mv-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;
}
.mv-chipcloud a:nth-child(3n+2),
.mv-footer .mv-chipcloud a:nth-child(3n+2) {
  color: #1a3358 !important;
  background: #e8f0ff !important;
  border-color: #7a9ed4 !important;
}
.mv-chipcloud a:nth-child(3n),
.mv-footer .mv-chipcloud a:nth-child(3n) {
  color: #7c2d12 !important;
  background: #ffedd5 !important;
  border-color: #e89555 !important;
}
.mv-chipcloud a:hover,
.mv-footer .mv-chipcloud a:hover {
  background: var(--mv-accent) !important;
  border-color: var(--mv-accent) !important;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}
.mv-chipcloud a:focus-visible {
  outline: 2px solid var(--mv-accent);
  outline-offset: 2px;
}

/* Plain links: black text, white background (继续浏览 / 热门搜索 / 分类导航) */
.mv-chipcloud--plain a,
.mv-footer .mv-chipcloud--plain a,
.mv-chipcloud--plain a:nth-child(3n),
.mv-chipcloud--plain a:nth-child(3n+2),
.mv-footer .mv-chipcloud--plain a:nth-child(3n),
.mv-footer .mv-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(--mv-radius-sm);
}
.mv-chipcloud--plain a:hover,
.mv-footer .mv-chipcloud--plain a:hover {
  color: var(--mv-accent) !important;
  background: #ffffff !important;
  border-color: var(--mv-accent) !important;
  transform: none;
}

/* ---------- Filter / type ---------- */
.mv-filter {
  font-size: 0.88rem;
  padding: 0.75rem 1.05rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--mv-line-soft);
  color: var(--mv-ink);
}
.mv-filter__row {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mv-line-soft);
}
.mv-filter__row:last-child { border-bottom: 0; }
.mv-filter__label {
  color: #475569;
  font-weight: 700;
  padding-top: 0.2rem;
}
.mv-filter__opts { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mv-filter__opts a {
  padding: 0.2rem 0.5rem;
  border-radius: var(--mv-radius-sm);
  color: #1e293b;
  text-decoration: none;
}
.mv-filter__opts a:hover,
.mv-filter__opts a.is-active {
  background: var(--mv-accent);
  color: #fff;
}

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

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

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

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

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

/* ---------- Footer ---------- */
.mv-footer {
  background:
    linear-gradient(180deg, #111827 0%, #070b16 100%);
  color: #94a3b8;
  padding: 1.75rem 1.35rem 1.35rem;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  border-top: 3px double rgba(220, 38, 38, 0.55);
}
.mv-footer a { color: #cbd5e1; text-decoration: none; }
.mv-footer a:hover { color: #fff; }
.mv-footer__stub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}
.mv-footer__brand {
  font-family: var(--mv-display);
  font-size: 1.35rem;
  color: #f8fafc;
  letter-spacing: 0.08em;
}
.mv-footer__tag {
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
.mv-footer__row,
.mv-footer__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-bottom: 0.85rem;
}
.mv-footer__row a {
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}
.mv-footer__cats a {
  font-size: 0.8rem;
  color: #94a3b8;
  border-bottom: 1px solid transparent;
}
.mv-footer__cats a:hover {
  color: #fff;
  border-bottom-color: var(--mv-accent);
}
.mv-footer__cols {
  display: none;
}
.mv-footer h3 {
  color: #e8ecf3;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  font-family: var(--mv-font);
}
.mv-footer ul li { margin-bottom: 0.3rem; }
.mv-footer__copy {
  border-top: 1px solid #1f2735;
  padding-top: 0.85rem;
  text-align: left;
  color: #7d8796;
}
.mv-footer__copy a { color: #9aa3b2; text-decoration: none; }
.mv-footer__copy a:hover { color: #e8ecf3; text-decoration: underline; }
.mv-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) {
  .mv-footer__copy .hidden-xs { display: none !important; }
  .mv-footer { padding: 1.25rem 0.9rem 1.1rem; }
}
.mv-flink {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.75rem;
  justify-content: center;
}

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

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

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

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

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

/* ---------- Type / Show landing pages ---------- */
.mv-type-stack,
.mv-show-stack {
  display: flex;
  flex-direction: column;
}
.mv-type-slot,
.mv-show-slot {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 1.05rem 1rem;
  margin-bottom: 0.75rem;
}
.mv-show-slot .mv-panel,
.mv-type-slot .mv-panel,
.mv-search-slot .mv-panel,
.mv-person-slot .mv-panel {
  background: transparent;
  border: 0;
  border-bottom: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.mv-show-slot .mv-filter {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.mv-type-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.mv-type-hero__banner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(var(--mv-accent-rgb),  0.18), transparent 55%),
    linear-gradient(135deg, #f8faf9 0%, #eef4f2 45%, #e7eef8 100%);
  pointer-events: none;
}
.mv-type-hero--v1 .mv-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%);
}
.mv-type-hero--v2 .mv-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%);
}
.mv-type-hero--v3 .mv-type-hero__banner {
  background:
    linear-gradient(180deg, rgba(var(--mv-accent-rgb),  0.08), transparent 40%),
    linear-gradient(90deg, #f7f7f5 0%, #eef2f7 100%);
}
.mv-type--anime .mv-type-hero__banner,
.mv-show--anime .mv-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%);
}
.mv-type--short .mv-type-hero__banner,
.mv-type--ai .mv-type-hero__banner,
.mv-show--short .mv-type-hero__banner,
.mv-show--ai .mv-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%);
}
.mv-type-hero__body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.2rem 1.15rem;
}
.mv-type-hero__title {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--mv-ink);
  font-family: var(--mv-display);
}
.mv-type-hero__intro {
  margin: 0 0 0.75rem;
  max-width: 52rem;
  color: var(--mv-text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.mv-type-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
}
.mv-type-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 4.5rem;
}
.mv-type-hero__stats strong {
  font-size: 1.05rem;
  color: var(--mv-ink);
}
.mv-type-hero__stats span {
  font-size: 0.78rem;
  color: var(--mv-muted);
}
.mv-type-hero__stat-wide { min-width: 8rem; max-width: 14rem; }
.mv-type-hero__stat-wide strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mv-type-hero__tags { margin-bottom: 0.7rem; }
.mv-type-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}
.mv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.mv-chip {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--mv-line);
  border-radius: var(--mv-radius-sm);
  color: var(--mv-text);
  text-decoration: none;
  font-size: 0.86rem;
  background: #fff;
}
.mv-chip:hover {
  border-color: var(--mv-accent);
  color: var(--mv-accent);
}
.mv-show .mv-filter {
  position: sticky;
  top: calc(var(--mv-marquee-h, 0px) + 0.35rem);
  z-index: 5;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.mv-type--tv .mv-type-hero__title,
.mv-show--tv .mv-type-hero__title { letter-spacing: 0.01em; }
.mv-type--variety .mv-type-hero__intro { font-size: 0.92rem; }
@media (max-width: 640px) {
  .mv-type-hero__title { font-size: 1.25rem; }
  .mv-type-hero__stats li { min-width: 4rem; }
  .mv-show .mv-filter { position: static; }
}

/* ---------- Search landing ---------- */
.mv-search-stack {
  display: flex;
  flex-direction: column;
}
.mv-search-slot {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 1.05rem 1rem;
  margin-bottom: 0.75rem;
}
.mv-search-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.mv-search-hero__banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(var(--mv-accent-rgb),  0.14), transparent 55%),
    linear-gradient(135deg, #f7faf9 0%, #eef3f8 100%);
}
.mv-search-hero--v1 .mv-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%);
}
.mv-search-hero--v2 .mv-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%);
}
.mv-search-hero--v3 .mv-search-hero__banner {
  background: linear-gradient(180deg, rgba(var(--mv-accent-rgb),  0.07), transparent 45%), #f6f7f5;
}
.mv-search-page--anime .mv-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%);
}
.mv-search-page--ai .mv-search-hero__banner,
.mv-search-page--short .mv-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%);
}
.mv-search-hero__body { position: relative; z-index: 1; padding: 1rem 1.2rem 1.15rem; }
.mv-search-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.35;
  font-family: var(--mv-display);
  color: var(--mv-ink);
}
.mv-search-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.mv-search-hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mv-search-hero__meta strong { font-size: 1rem; color: var(--mv-ink); }
.mv-search-hero__meta span { font-size: 0.78rem; color: var(--mv-muted); }
.mv-search--page {
  display: flex;
  gap: 0.4rem;
  max-width: 40rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem;
  border: 1px solid var(--mv-line);
  border-radius: var(--mv-radius);
  background: #fff;
}
.mv-search--page input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  color: var(--mv-ink);
  background: transparent;
}
.mv-search--page button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: var(--mv-radius-sm);
  background: var(--mv-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.mv-search--page.is-sticky {
  position: sticky;
  top: calc(var(--mv-marquee-h, 0px) + 0.35rem);
  z-index: 6;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.mv-search-hero__chip-label {
  margin: 0.45rem 0 0.3rem;
  font-size: 0.8rem;
}
.mv-card--search .mv-card__blurb {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--mv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mv-mark {
  background: rgba(var(--mv-accent-rgb),  0.14);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}
.mv-search-empty .mv-prose { margin-bottom: 0.55rem; }
.mv-body--search { padding-bottom: 1rem; }
@media (max-width: 640px) {
  .mv-search-hero__title { font-size: 1.2rem; }
  .mv-search--page { max-width: none; }
  .mv-search--page button { min-width: 4.5rem; }
}

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

/* ---------- Topic portal ---------- */
.mv-topic-stack { display: flex; flex-direction: column; }
.mv-topic-slot { min-width: 0; }
.mv-topic-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.mv-topic-hero__banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(var(--mv-accent-rgb),  0.12), transparent 55%),
    linear-gradient(135deg, #f7faf8 0%, #eef2f7 100%);
}
.mv-topic-hero--v1 .mv-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%);
}
.mv-topic-hero--v2 .mv-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%);
}
.mv-topic-hero--v3 .mv-topic-hero__banner {
  background: linear-gradient(180deg, rgba(var(--mv-accent-rgb),  0.07), transparent 42%), #f6f7f5;
}
.mv-topic--ai .mv-topic-hero__banner,
.mv-topic--short .mv-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%);
}
.mv-topic--anime .mv-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%);
}
.mv-topic-hero__body { position: relative; z-index: 1; }
.mv-topic-hero__title {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  line-height: 1.3;
  font-family: var(--mv-display);
  color: var(--mv-ink);
}
.mv-topic-hero__stat {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--mv-muted);
}
.mv-topic-hero__intro {
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.mv-topic-hero__intro p { margin: 0; }
.mv-topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.mv-topic-card {
  border: 1px solid var(--mv-line-soft);
  border-radius: var(--mv-radius);
  background: #fff;
  overflow: hidden;
}
.mv-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%;
}
.mv-topic-card__link:hover { background: rgba(var(--mv-accent-rgb),  0.03); }
.mv-topic-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mv-line-soft);
}
.mv-topic-card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mv-topic-card__badge,
.mv-topic-card__score {
  position: absolute;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}
.mv-topic-card__badge {
  left: 0.25rem;
  top: 0.25rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}
.mv-topic-card__score {
  right: 0.25rem;
  bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mv-score);
}
.mv-topic-card__body { min-width: 0; }
.mv-topic-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--mv-ink);
}
.mv-topic-card__meta,
.mv-topic-card__people,
.mv-topic-card__reason {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--mv-muted);
}
.mv-topic-card__people span {
  color: var(--mv-ink);
  margin-right: 0.25rem;
}
.mv-topic-card__reason { color: var(--mv-accent); }
.mv-topic-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.mv-topic-catalog__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--mv-line);
  border-radius: var(--mv-radius);
  text-decoration: none;
  color: inherit;
  background: #fff;
  min-height: 5.5rem;
}
.mv-topic-catalog__item:hover {
  border-color: var(--mv-accent);
}
.mv-topic-catalog__item strong {
  font-size: 1rem;
  color: var(--mv-ink);
}
.mv-topic-catalog__item span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--mv-muted);
}
.mv-topic-index-hero__intro {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  line-height: 1.7;
  color: var(--mv-text);
}
@media (max-width: 640px) {
  .mv-topic-hero__title { font-size: 1.25rem; }
  .mv-topic-card__link { grid-template-columns: 72px minmax(0, 1fr); }
  .mv-topic-cards { grid-template-columns: 1fr; }
}

/* —— Actor / Director person portals —— */
.mv-person-stack { display: flex; flex-direction: column; }
.mv-person-slot {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 1.05rem 1rem;
  margin-bottom: 0.75rem;
}
.mv-person-hero {
  position: relative;
  overflow: hidden;
}
.mv-person-hero__banner {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: linear-gradient(135deg, rgba(var(--mv-accent-rgb),  0.12), rgba(30, 64, 175, 0.08));
  pointer-events: none;
}
.mv-person-hero--v1 .mv-person-hero__banner,
.mv-person.mv-person-hero--v1 .mv-person-hero__banner {
  background: linear-gradient(120deg, rgba(180, 83, 9, 0.1), rgba(var(--mv-accent-rgb),  0.12));
}
.mv-person-hero--v2 .mv-person-hero__banner,
.mv-person.mv-person-hero--v2 .mv-person-hero__banner {
  background: linear-gradient(160deg, rgba(30, 64, 175, 0.1), rgba(67, 56, 202, 0.06));
}
.mv-person--director .mv-person-hero__banner {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.1), rgba(var(--mv-accent-rgb),  0.1));
}
.mv-person-hero__body { position: relative; z-index: 1; }
.mv-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;
}
.mv-person-hero__stat {
  margin: 0 0 0.5rem;
  color: var(--mv-muted, #64748b);
  font-size: 0.95rem;
}
.mv-person-hero__intro {
  max-width: 42rem;
  line-height: 1.7;
}
.mv-person-hero__intro p { margin: 0; }
.mv-person-group { margin-top: 1rem; }
.mv-person-group:first-of-type { margin-top: 0; }
.mv-person-group__title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.mv-person-people .mv-chip { font-variant-numeric: tabular-nums; }
.mv-person-grid { margin-top: 0.25rem; }
@media (max-width: 640px) {
  .mv-person-hero__title { font-size: 1.25rem; }
}

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

/* ---------- PHP n1-card aliases under movie root ---------- */
.mv-root .n1-card__badge,
.mv-card__badge {
  /* height/position fixed above — keep accent chip look */
  background: var(--mv-accent);
  color: #fff;
}
.mv-root .n1-card__score,
.mv-card__score {
  position: absolute; right: 0.35rem; bottom: 0.35rem; z-index: 2;
  background: rgba(7, 11, 22, 0.82); color: var(--mv-score);
  font-size: 0.78rem; font-weight: 800; padding: 0.12rem 0.4rem;
  border-radius: 0; letter-spacing: 0.02em;
}
.mv-root .n1-card__title,
.mv-card__title {
  margin: 0.55rem 0 0.2rem;
  font-size: 0.92rem; font-weight: 700; line-height: 1.35;
  color: var(--mv-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mv-root .n1-card__meta,
.mv-card__meta { margin: 0; font-size: 0.78rem; color: var(--mv-muted); }
.mv-root .n1-card__reason,
.mv-root .n1-card__blurb,
.mv-card__reason,
.mv-card__blurb {
  margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--mv-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mv-root .n1-mark { background: rgba(220,38,38,.15); color: inherit; padding: 0 0.1em; }

/* Hero stats — ticket strip */
.mv-hero-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  padding: 0.85rem 0 1.1rem; margin-bottom: 0.35rem;
  border-bottom: 2px solid var(--mv-ink);
}
.mv-hero-stats__summary {
  margin: 0; font-family: var(--mv-display); font-size: 1.05rem; color: var(--mv-ink);
}
.mv-hero-stats__summary strong { color: var(--mv-accent); font-size: 1.2em; }
.mv-hero-stats__list {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; list-style: none; margin: 0; padding: 0;
}
.mv-hero-stats__list a {
  color: var(--mv-text); text-decoration: none; font-size: 0.82rem;
  border-bottom: 1px solid transparent;
}
.mv-hero-stats__list a:hover { color: var(--mv-accent); border-bottom-color: currentColor; }
.mv-hero-stats__list strong { margin-left: 0.2rem; }
.mv-hero-stats__list em { color: var(--mv-accent); font-style: normal; margin-left: 0.15rem; }

/* Home intro */
.mv-home-intro {
  margin: -0.35rem 0 0.95rem; color: var(--mv-muted); font-size: 0.92rem; max-width: 52rem;
}

@media (max-width: 1100px) {
  .mv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mv-layout--magazine {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.6rem;
}
.mv-grid--lead {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.mv-panel--lead { border-bottom-width: 2px; border-bottom-color: var(--mv-ink); }
.mv-main--home .mv-side .mv-panel {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  padding: 0.85rem 0.9rem;
}
@media (max-width: 1100px) {
  .mv-layout--magazine { grid-template-columns: minmax(0, 1fr); }
  .mv-grid--lead { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   UX polish pass — journey targets ≥9
   ========================================================= */

:root {
  --mv-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mv-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --mv-tap: 44px;
  --mv-max: 1280px;
  --mv-stage-pad: 1rem 1.5rem 2.25rem;
}

/* Focus rings */
.mv-topbar .mv-search:focus-within {
  outline: 2px solid var(--mv-accent);
  outline-offset: 2px;
}
.mv-topbar .mv-search input:focus {
  outline: none;
}
.mv-topbar .mv-search button:focus-visible,
.mv-rail__nav a:focus-visible,
.mv-ticker__track a:focus-visible,
.mv-panel__more:focus-visible,
.mv-btn:focus-visible,
.mv-playlist__tab:focus-visible,
.mv-playlist__eps a:focus-visible,
.mv-footer a:focus-visible,
.mv-card__link:focus-visible,
.mv-root .n1-card__link:focus-visible {
  outline: 2px solid var(--mv-accent);
  outline-offset: 2px;
}

/* Tap targets */
.mv-rail__nav a {
  min-height: var(--mv-tap);
  display: flex;
  align-items: center;
  color: rgba(248, 250, 252, 0.88) !important;
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
}
.mv-ticker__track a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.15rem;
}
.mv-playlist__tab {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border-radius: 0;
}
.mv-playlist__eps a {
  min-height: 40px;
  min-width: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0.45rem 0.65rem;
}
.mv-topbar .mv-search input,
.mv-topbar .mv-search button {
  min-height: var(--mv-tap);
}

/* Panel headings — rule on row, not inline h2 */
h2 {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
}
.mv-panel__hd {
  align-items: flex-end;
  border-bottom: 2px solid var(--mv-ink);
  padding-bottom: 0.45rem;
  margin-bottom: 1rem;
}
.mv-panel__hd h1,
.mv-panel__hd h2 {
  border-bottom: 0;
  margin: 0;
  padding: 0;
}
.mv-panel__more {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

/* Spacing: single inset */
.mv-main { padding: var(--mv-stage-pad); }
.mv-main > .mv-wrap {
  width: 100%;
  max-width: var(--mv-max);
  margin-inline: auto;
}

/* Magazine chips — sharp, single accent */
.mv-chipcloud a,
.mv-footer .mv-chipcloud a,
.mv-chipcloud a:nth-child(3n),
.mv-chipcloud a:nth-child(3n+2),
.mv-footer .mv-chipcloud a:nth-child(3n),
.mv-footer .mv-chipcloud a:nth-child(3n+2),
.mv-chipcloud--plain a,
.mv-footer .mv-chipcloud--plain a,
.mv-chipcloud--plain a:nth-child(3n),
.mv-chipcloud--plain a:nth-child(3n+2),
.mv-footer .mv-chipcloud--plain a:nth-child(3n),
.mv-footer .mv-chipcloud--plain a:nth-child(3n+2) {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 600;
  min-height: 36px;
  color: var(--mv-ink) !important;
  background: transparent !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
}
.mv-chipcloud a:hover,
.mv-footer .mv-chipcloud a:hover,
.mv-chipcloud--plain a:hover,
.mv-footer .mv-chipcloud--plain a:hover {
  color: #fff !important;
  background: var(--mv-accent) !important;
  border-color: var(--mv-accent) !important;
  transform: none;
}

/* Play focus layout */
body.mv-body--play .mv-main--play {
  padding-top: 0.5rem;
}
.mv-wrap--play {
  max-width: min(100%, 1100px);
}
.mv-content--play-focus {
  width: 100%;
}
.mv-body--play .mv-player-shell {
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(7, 11, 22, 0.28);
  background: #000;
}
.mv-play-more {
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}
.mv-grid--play-more {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.mv-body--play .mv-topbar {
  position: sticky;
}
.mv-body--play .mv-ticker {
  display: none;
}
@media (min-width: 961px) {
  .mv-body--play .mv-rail {
    width: 132px;
    flex-basis: 132px;
  }
}

/* Home sidebar compact rank */
.mv-side--home .mv-rank {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mvr;
}
.mv-side--home .mv-rank li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  counter-increment: mvr;
}
.mv-side--home .mv-rank li::before {
  content: counter(mvr);
  flex: 0 0 1.35rem;
  font-weight: 800;
  color: var(--mv-accent);
  font-size: 0.85rem;
}
.mv-side--home .mv-rank a {
  flex: 1;
  min-width: 0;
  color: var(--mv-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-side--home .mv-rank a:hover { color: var(--mv-accent); }
.mv-side--home .mv-rank .score {
  color: var(--mv-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* Hero stats — quieter ticket line */
.mv-hero-stats {
  border-bottom-width: 1px;
  padding: 0.55rem 0 0.75rem;
}
.mv-hero-stats__summary { font-size: 0.95rem; }
.mv-hero-stats__list a { min-height: 32px; display: inline-flex; align-items: center; }

/* Footer maps collapse */
.mv-footer__maps {
  margin-bottom: 0.65rem;
}
.mv-footer__maps summary {
  cursor: pointer;
  color: #cbd5e1;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  list-style: none;
}
.mv-footer__maps summary::-webkit-details-marker { display: none; }
.mv-footer__maps[open] summary { color: #fff; margin-bottom: 0.45rem; }

/* Mobile shell — brand row then full-width nav */
@media (max-width: 960px) {
  .mv-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem 0.55rem;
  }
  .mv-rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
  }
  .mv-rail__name {
    max-width: none;
    font-size: 1.08rem;
  }
  .mv-rail__nav {
    max-width: 100%;
    width: 100%;
    padding-bottom: 0.15rem;
    gap: 0.2rem;
  }
  .mv-rail__nav a {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
  }
  .mv-topbar {
    position: relative; /* avoid dual sticky eating viewport */
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem 0.85rem 0.6rem;
    gap: 0.45rem;
  }
  .mv-topbar .mv-search {
    flex: 0 0 auto; /* desktop uses flex:1 1 280px — kills height in column layout */
    max-width: none;
    width: 100%;
    margin: 0;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    align-items: stretch;
  }
  .mv-topbar .mv-search input,
  .mv-topbar .mv-search button {
    min-height: 0;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }
  .mv-topbar .mv-search input {
    padding-left: 0.75rem;
    padding-right: 0.55rem;
    font-size: 0.92rem;
  }
  .mv-topbar .mv-search button {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    font-size: 0.88rem;
  }
  .mv-ticker {
    flex: 0 0 auto; /* desktop uses flex:1 1 220px — stretches height in column layout */
    width: 100%;
    margin: 0;
    padding: 0;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    align-items: center;
    gap: 0.45rem;
    overflow: hidden;
  }
  .mv-ticker__lab {
    padding: 0.1rem 0.35rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }
  .mv-ticker__track {
    height: 100%;
    align-items: center;
    gap: 0.65rem;
  }
  .mv-ticker__track a {
    min-height: 0;
    height: auto;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
  }
  .seo-marquee-container {
    position: relative !important;
    top: auto !important;
  }
  .mv-grid--play-more,
  .mv-grid--lead,
  .mv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .mv-grid--play-more,
  .mv-grid--lead,
  .mv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mv-card__poster,
  .mv-root .n1-card__poster,
  .mv-chipcloud a,
  .mv-rail__nav a {
    transition: none !important;
  }
  .mv-card:hover .mv-card__poster,
  .mv-root .n1-card:hover .n1-card__poster {
    transform: none;
  }
}

/* Detail / search — keep sidebar usable */
.mv-body--search .mv-layout,
.mv-main .mv-layout {
  gap: 1.35rem;
}
.mv-side .mv-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem 0.95rem;
}
.mv-side .mv-panel__hd {
  margin-bottom: 0.65rem;
}

/* Channel tabs tap */
.mv-channel__tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.55rem;
  border-bottom: 1px solid transparent;
  color: var(--mv-text);
  text-decoration: none;
}
.mv-channel__tabs a:hover {
  color: var(--mv-accent);
  border-bottom-color: var(--mv-accent);
}

/* Search page form + chips */
.mv-search--page {
  display: flex;
  max-width: 560px;
  margin: 0.75rem 0 0.5rem;
  background: #0b1020;
  border: 1px solid rgba(15, 23, 42, 0.55);
  overflow: hidden;
}
.mv-search--page:focus-within {
  outline: 2px solid var(--mv-accent);
  outline-offset: 2px;
}
.mv-search--page input {
  flex: 1;
  min-width: 0;
  min-height: var(--mv-tap);
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 0.65rem 0.85rem;
  outline: none;
}
.mv-search--page button {
  min-height: var(--mv-tap);
  border: 0;
  background: var(--mv-accent);
  color: #fff;
  padding: 0 1.1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
}
.mv-search--page button:hover { background: var(--mv-accent-hover); }
.mv-chip,
.mv-chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0;
  color: var(--mv-ink);
  text-decoration: none;
  font-size: 0.86rem;
  background: transparent;
}
.mv-chip:hover,
.mv-chip-row a:hover {
  background: var(--mv-accent);
  border-color: var(--mv-accent);
  color: #fff;
}
.mv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Actions on play/detail */
.mv-btn {
  min-height: 40px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sticky play bar — keep usable on mobile without covering nav forever */
@media (max-width: 767px) {
  .mv-play-sticky {
    padding: 0.55rem 0.75rem;
    gap: 0.45rem;
  }
  .mv-body--play { padding-bottom: 4.5rem; }
}
\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;
}

