/* zhuzhudy v2 design system (preview, P1). Tokens → base → layout → components → pages.
   Theme: prefers-color-scheme, html[data-theme] overrides. Width: html[data-width] set before paint. */

:root {
  color-scheme: light dark;
  --brand: #ff5a5f; --brand-2: #e8364a; --teal: #14b8a6; --teal-2: #2dd4bf;
  --acc: var(--brand); --acc-soft: color-mix(in srgb, var(--acc) 14%, transparent);
  --imdb: #f5c518; --tmdb: #01b4e4; --douban: #2e963d;
  --r-xs: 6px; --r-sm: 10px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --fs-cap: 12px; --fs-body: 14px; --fs-sub: 16px; --fs-sec: 20px; --fs-h1: 28px; --fs-num: 22px;
  --sec-gap: 32px; --pad: 16px;
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --page-max: 1240px; --card-w: 148px; --ease: cubic-bezier(.2, .7, .2, 1);
  /* light surfaces */
  --bg: #f7f7f8; --s1: #ffffff; --s2: #ffffff; --s3: #f0f1f4; --s4: #e7e9ee;
  --line: rgba(10, 14, 24, .08); --line-2: rgba(10, 14, 24, .14);
  --ink: #111318; --ink-2: #4b5160; --ink-3: #5c6273; --acc-ink: #c62f3a;
  --glass: rgba(255, 255, 255, .72); --hero-ink: #111318;
  --shadow-pop: 0 12px 40px rgba(16, 24, 40, .14);
}
@media (min-width: 761px) { :root { --fs-cap: 13px; --fs-body: 15px; --fs-sub: 17px; --fs-sec: 22px; --fs-h1: 44px; --fs-num: 28px; --sec-gap: 56px; --pad: 24px; --card-w: 164px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10; --s1: #121419; --s2: #191c23; --s3: #20242d; --s4: #2a2f3a;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
    --ink: #eef0f4; --ink-2: #b3b9c6; --ink-3: #8e95a6; --acc-ink: #ff7a7e; --glass: rgba(14, 16, 21, .72); --shadow-pop: 0 16px 48px rgba(0, 0, 0, .5); --heat-hi: #0b0c10;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c10; --s1: #121419; --s2: #191c23; --s3: #20242d; --s4: #2a2f3a;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --ink: #eef0f4; --ink-2: #b3b9c6; --ink-3: #8e95a6; --acc-ink: #ff7a7e; --glass: rgba(14, 16, 21, .72); --shadow-pop: 0 16px 48px rgba(0, 0, 0, .5); --heat-hi: #0b0c10;
}
:root[data-width="narrow"] { --page-max: 960px; }
:root[data-width="wide"] { --page-max: 1480px; }
:root[data-width="full"] { --page-max: 100%; }
@media (min-width: 761px) { :root[data-width="wide"], :root[data-width="full"] { --card-w: 156px; } :root[data-width="narrow"] { --card-w: 150px; } }
body.kind-person { --acc: var(--teal); }
:root[data-theme="dark"] body.kind-person { --acc: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.kind-person { --acc: var(--teal-2); } }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--acc); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: var(--fs-sec); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }
.v2-wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; vertical-align: -3px; }
.ico-sm { width: 14px; height: 14px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }

/* motion */
.will-fade { opacity: 0; transform: translateY(12px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.will-fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .will-fade { opacity: 1; transform: none; } }

/* preview bar */
.v2-preview-bar { background: linear-gradient(90deg, var(--brand), #ff7a59); color: #fff; font-size: 12px; text-align: center; padding: 5px var(--pad); }
.v2-preview-bar a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* header */
.v2-header { position: sticky; top: 0; z-index: 30; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .v2-header { background: var(--s1); } }
.v2-header-bar { display: flex; align-items: center; gap: 16px; height: 60px; }
.v2-logo { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.v2-logo-svg { height: 34px; width: auto; }
.v2-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.v2-nav::-webkit-scrollbar { display: none; }
.v2-nav a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); white-space: nowrap; font-size: 14px; font-weight: 500; }
.v2-nav a:hover { color: var(--ink); background: var(--s3); }
.v2-nav a.is-active { background: var(--s3); color: var(--ink); }
.v2-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--s3); border: 1px solid transparent; border-radius: var(--r-sm); padding: 0 12px; height: 38px; flex: 0 1 300px; min-width: 0; color: var(--ink-3); transition: border-color .16s, background .16s; }
.v2-search:focus-within { border-color: var(--line-2); background: var(--s1); }
.v2-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; height: 36px; outline: none; }
.v2-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.v2-ib, .v2-lang > summary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--s1); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .16s, color .16s; }
.v2-ib:hover, .v2-lang > summary:hover { color: var(--ink); border-color: var(--line-2); }
.v2-ib .ico-auto, .v2-ib .ico-light, .v2-ib .ico-dark, .v2-width-btn .ico-to-narrow { display: none; }
.v2-ib[data-mode="auto"] .ico-auto, .v2-ib[data-mode="light"] .ico-light, .v2-ib[data-mode="dark"] .ico-dark { display: block; }
:root:not([data-width="full"]) .v2-width-btn .ico-to-wide { display: block; }
:root[data-width="full"] .v2-width-btn .ico-to-wide { display: none; }
:root[data-width="full"] .v2-width-btn .ico-to-narrow { display: block; }
.v2-lang { position: relative; }
.v2-lang > summary { list-style: none; }
.v2-lang > summary::-webkit-details-marker { display: none; }
.v2-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line); box-shadow: var(--shadow-pop); z-index: 40; }
.v2-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.v2-menu a:hover { background: var(--s3); color: var(--ink); }
.v2-menu a[aria-current] { font-weight: 700; color: var(--acc); }
@media (max-width: 760px) {
  .v2-header-bar { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; gap: 8px; }
  .v2-logo-svg { height: 30px; }
  .v2-tools { margin-left: auto; }
  .v2-width-btn { display: none !important; }
  .v2-lang-cur { display: none; }
  .v2-search { order: 3; flex: 1 1 100%; }
  .v2-nav { order: 4; flex: 1 1 100%; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
}

/* components */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--s3); color: var(--ink-2); font-size: var(--fs-cap); line-height: 1.4; transition: background .16s, color .16s; }
a.chip:hover { color: var(--ink); background: var(--acc-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: transform .16s var(--ease), border-color .16s, background .16s; }
.btn2:hover { border-color: var(--acc); color: var(--ink); transform: translateY(-1px); }
.btn2.is-primary { background: #c62f3a; border-color: transparent; color: #fff; }
.btn2.is-primary:hover { background: #a3242e; color: #fff; }
.rating { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); transition: border-color .16s; }
.rating:hover { border-color: var(--line-2); color: var(--ink); }
.rating b { font-size: var(--fs-num); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.rating small { color: var(--ink-3); font-size: var(--fs-cap); font-variant-numeric: tabular-nums; }
.rating .src { align-self: center; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 4px; color: #111; }
.rating.imdb .src { background: var(--imdb); }
.rating.tmdb .src { background: var(--tmdb); color: #fff; }
.rating.douban .src { background: var(--douban); color: #fff; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.section { margin-top: var(--sec-gap); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-3); font-size: var(--fs-cap); }
.section-head a:hover { color: var(--acc); }
.note-label { display: inline-block; font-size: 11px; letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; margin-bottom: 8px; }

/* rails: horizontal, scroll-snap, no JS; partially visible last card hints at more */
.rail { scroll-padding-inline: var(--pad); display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--s4) transparent; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 38%; gap: 12px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); } }
.pcard { display: block; min-width: 0; }
.pcard-img { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(135deg, var(--s3), var(--s4)); outline: 1px solid var(--line); outline-offset: -1px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard:hover .pcard-img { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px rgba(0, 0, 0, .18); }
.pcard-title { display: -webkit-box; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* avatars */
.avatar { aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--s3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 44px; font-weight: 800; color: #fff; }
.cast-card { display: block; min-width: 0; }
.cast-card .avatar { aspect-ratio: 3 / 4; outline: 1px solid var(--line); outline-offset: -1px; transition: transform .2s var(--ease); }
a.cast-card:hover .avatar { transform: translateY(-2px); }
.cast-name { margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.cast-role { font-size: 12px; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* movie hero: backdrop clear on the right, faded under the text on the left */
.mv-hero { position: relative; isolation: isolate; overflow: hidden; }
.mv-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 25%; }
.mv-hero-bg.is-blur { filter: blur(48px) saturate(150%); transform: scale(1.25); opacity: .5; }
.mv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 34%, color-mix(in srgb, var(--bg) 20%, transparent) 70%, transparent 100%), linear-gradient(0deg, var(--bg) 0%, transparent 38%); }
.mv-hero-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 56px; padding-bottom: 40px; }
.mv-poster { aspect-ratio: 2 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--s3); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); outline: 1px solid var(--line); outline-offset: -1px; }
.mv-poster img { width: 100%; height: 100%; object-fit: cover; }
.mv-kicker { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.mv-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.mv-sub { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-sub); }
.mv-sub a { color: inherit; }
.mv-tagline { margin-top: 6px; color: var(--ink-3); font-style: italic; }
.mv-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.mv-meta > span { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: var(--fs-cap); color: var(--ink-2); }
.mv-meta > span:empty { display: none; }
.mv-ratings { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.mv-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.mv-actions:empty { display: none; }
.mv-people { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.mv-people dt { color: var(--ink-3); }
.mv-people dd { margin: 0; }
.mv-people a { color: var(--ink); background-image: linear-gradient(var(--line-2), var(--line-2)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.mv-people a:hover { color: var(--acc); }
.mv-quality { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.tier { display: inline-block; min-width: 20px; text-align: center; border-radius: 5px; font-weight: 800; color: #fff; margin-right: 6px; font-size: 11px; line-height: 18px; }
.tier-A { background: #16a34a; } .tier-B { background: #d97706; } .tier-C { background: #6b7280; }
@media (max-width: 760px) {
  .mv-hero-bg { bottom: auto; height: 62vw; max-height: 340px; }
  .mv-hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 62vw + 40px), color-mix(in srgb, var(--bg) 30%, transparent) calc(100% - 62vw + 140px), transparent 100%); }
  .mv-hero-in { grid-template-columns: 108px minmax(0, 1fr); gap: 0 14px; padding-top: calc(min(62vw, 340px) - 96px); padding-bottom: 8px; }
  .mv-hero-text { display: contents; }
  .mv-poster { border-radius: var(--r); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
  .mv-hero-head { align-self: end; }
  .mv-title { font-size: 26px; }
  .mv-sub { font-size: 14px; margin-top: 4px; }
  .mv-meta { margin-top: 8px; }
  .mv-ratings, .mv-actions, .mv-people, .mv-quality { grid-column: 1 / -1; }
  .mv-ratings { margin-top: 16px; gap: 8px; }
  .rating { padding: 7px 10px; }
  .mv-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .mv-actions .btn2:only-child { grid-column: 1 / -1; }
  .mv-people { margin-top: 14px; }
  .mv-quality { margin-top: 10px; }
}

/* movie body */
.mv-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.mv-main, .mv-side { min-width: 0; }
.mv-side { position: sticky; top: 128px; }
.mv-side > * + * { margin-top: 16px; }
@media (max-width: 960px) { .mv-body { grid-template-columns: minmax(0, 1fr); gap: 0; } .mv-side { position: static; } }
.intro-text { color: var(--ink-2); white-space: pre-line; max-width: 72ch; margin-top: 10px; }
.intro-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 761px) { .intro-text.is-clamped { -webkit-line-clamp: 6; } }
.link-more { background: none; border: 0; color: var(--acc-ink); font: inherit; font-weight: 600; padding: 0; margin-top: 6px; cursor: pointer; }
.summary { padding: 16px; border-radius: var(--r); background: var(--s3); color: var(--ink-2); margin-top: 10px; }
.facts { padding: 18px 20px; }
.facts h2 { font-size: 17px; margin-bottom: 12px; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd a { color: var(--acc); }
.credit-line { font-size: 12px; color: var(--ink-3); }
.credit-line a { text-decoration: underline; }
.trailer-box { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; display: grid; place-items: center; margin-top: 12px; }
.trailer-box iframe { width: 100%; height: 100%; border: 0; }
.stills { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 32%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.stills a { scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--s3); }
.stills img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.stills a:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .stills { grid-auto-columns: 78%; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); } }
.watch-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.watch-badge img { width: 44px; height: 44px; border-radius: 10px; }
.watch dl dt { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* P2: sticky section nav, tabbed recommendations, mobile folds, deferred rendering */
.mv-secnav { position: sticky; top: 61px; z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mv-secnav { background: var(--s1); } }
.secnav-in { display: flex; gap: 4px; height: 48px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.secnav-in::-webkit-scrollbar { display: none; }
.secnav-in a { display: inline-flex; align-items: center; padding: 0 12px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-3); box-shadow: inset 0 -2px 0 transparent; transition: color .16s, box-shadow .16s; }
.secnav-in a:hover { color: var(--ink); }
.secnav-in a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.mv-body .section, .mv-side > section { scroll-margin-top: 124px; }
.cv { content-visibility: auto; contain-intrinsic-size: auto 396px; }
@media (max-width: 760px) { .cv { contain-intrinsic-size: auto 358px; } }
.rec-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.rec-tabs::-webkit-scrollbar { display: none; }
.rec-tabs button { flex: none; height: 34px; border: 1px solid var(--line); background: var(--s1); color: var(--ink-2); border-radius: 999px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .16s, color .16s; }
.rec-tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.rec-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rec-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--acc-ink); }
.fold-btn { all: unset; display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; cursor: default; }
.fold-ico { display: none; }
@media (max-width: 760px) {
  /* Mobile is its own layout: the site header scrolls away, the section nav takes the top edge. */
  body.kind-movie .v2-header { position: relative; }
  .mv-secnav { top: 0; margin-top: 4px; }
  .secnav-in { height: 44px; gap: 0; margin: 0 calc(-1 * var(--pad)); padding: 0 calc(var(--pad) - 12px); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .mv-body .section, .mv-side > section { scroll-margin-top: 56px; }
  .mv-body .section { margin-top: 28px; }
  .rec-tabs { margin: 0 calc(-1 * var(--pad)) 12px; padding: 0 var(--pad); }
  .fold-btn { cursor: pointer; width: 100%; justify-content: flex-start; min-height: 44px; }
  .fold-btn .muted { font-weight: 500; font-size: 14px; }
  .fold-ico { display: block; margin-left: auto; color: var(--ink-3); transition: transform .2s var(--ease); }
  .fold.is-open .fold-ico { transform: rotate(180deg); }
  .fold:not(.is-open) .fold-body { display: none !important; }
  .fold.facts { padding: 4px 16px; }
  .fold.facts h2 { margin: 0; font-size: 16px; }
  .fold.facts.is-open { padding-bottom: 16px; }
  .fold.facts .fold-body { margin-top: 4px; }
  .mv-side { margin-top: 28px; }
  .mv-side > * + * { margin-top: 10px; }
  #stills .section-head { margin-bottom: 0; }
  #stills.is-open .section-head { margin-bottom: 12px; }
  .cast-card .cast-role { -webkit-line-clamp: 1; }
}

/* P2.1: no late shifts — cert badge on the poster, trailer as a modal, watch card last in the aside */
.mv-poster { position: relative; }
.mv-cert { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mv-cert:empty { display: none; }
.trailer-dialog { width: min(960px, 94vw); max-width: none; padding: 0; border: 0; border-radius: var(--r-lg); background: #000; color: #fff; overflow: visible; }
.trailer-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.trailer-dialog-in { position: relative; }
.trailer-dialog .trailer-box { margin: 0; }
.trailer-close { position: absolute; right: 0; top: -48px; background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.watch-h { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-empty { font-size: 13px; margin: 4px 0 8px; }
.watch .credit-line { margin-top: 10px; }

/* Top-aligned hero text: if the HTML arrives in chunks, later lines are appended below instead of pushing earlier lines up. */
@media (min-width: 761px) { .mv-hero-in { align-items: start; } .mv-hero-text { padding-top: 64px; } }

/* resources */
.res-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.res-tabs button { border: 1px solid var(--line); background: var(--s1); color: var(--ink-2); border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.res-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.res-panel { display: none; }
.res-panel.is-on { display: block; }
.res-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--s1); }
.res-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.res-row:first-child { border-top: 0; }
.res-row:hover { background: var(--s3); }
.res-row a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.res-badge { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-ink); }
.res-report { display: inline-flex; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; padding: 4px; }
.res-report:hover { color: var(--acc); }

/* person: portrait-forward, teal accent */
.ps-hero { position: relative; isolation: isolate; }
.ps-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 420px at 12% 0%, color-mix(in srgb, hsl(var(--hue, 170) 70% 50%) 26%, transparent), transparent 65%), radial-gradient(700px 360px at 92% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 65%); }
.ps-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.ps-portrait { aspect-ratio: 3 / 4; border-radius: var(--r-xl); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); outline: 1px solid var(--line); outline-offset: -1px; }
.ps-portrait .avatar-ph { font-size: 96px; }
.ps-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-roles .chip:first-child { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.ps-name { font-size: calc(var(--fs-h1) + 8px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 12px; }
.ps-alt { color: var(--ink-2); margin-top: 6px; font-size: var(--fs-sub); }
.ps-facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 14px; }
.ps-facts span { display: inline-flex; align-items: center; gap: 6px; }
.ps-facts .ico { color: var(--acc); }
.ps-links { margin-top: 12px; }
.ps-stats { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); min-width: 0; }
.stat b { display: block; font-size: var(--fs-num); line-height: 1.1; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-tabs { position: sticky; top: 61px; z-index: 10; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.ps-tabs nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.ps-tabs a { padding: 12px 0; color: var(--ink-3); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ps-tabs a:hover { color: var(--ink); }
.ps-known { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 14px; }
.collab { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.collab a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.collab a:hover { border-color: var(--acc); color: var(--ink); }
.collab b { color: var(--acc); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ps-head { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .ps-portrait { width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); aspect-ratio: 4 / 3.4; border-radius: 0; box-shadow: none; outline: 0; position: relative; }
  .ps-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
  .ps-portrait img { object-position: center 20%; }
  .ps-info { margin-top: -72px; position: relative; }
  .ps-name { font-size: 32px; margin-top: 8px; }
  .ps-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; grid-template-columns: none; overflow-x: auto; margin: 18px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
  .ps-tabs { top: 101px; }
  .ps-known { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* P3 person page: portrait-led, teal, its own desktop and mobile layouts */
.ps-head { grid-template-columns: 360px minmax(0, 1fr); align-items: start; padding-bottom: 8px; }
.ps-info { padding-top: 40px; }
.ps-hero::before { background: radial-gradient(1100px 520px at 10% 0%, color-mix(in srgb, hsl(var(--hue, 170) 70% 50%) 30%, transparent), transparent 66%), radial-gradient(800px 420px at 95% 10%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 65%); }
.ps-info { padding-bottom: 12px; }
.ps-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 20px; padding-bottom: 24px; }
.ps-stats .stat b { font-size: calc(var(--fs-num) + 4px); }
a.stat:hover { border-color: var(--acc); color: inherit; }
.ps-tabs { top: 61px; }
.ps-tabs .secnav-in a[data-external] { margin-left: auto; color: var(--acc-ink); gap: 4px; }
.ps-tabs .secnav-in { height: 50px; }
.ps-tabs .secnav-in a { padding: 0 12px; }
.ps-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.ps-main, .ps-side { min-width: 0; }
.ps-side { position: sticky; top: 128px; }
.ps-side > .section + .section { margin-top: 16px; }
.ps-body .section { scroll-margin-top: 124px; }
.ps-bio, .ps-collab { padding: 18px 20px; }
.ps-bio h2, .ps-collab h2 { font-size: 17px; margin-bottom: 10px; }
.ps-bio .intro-text { margin-top: 0; font-size: 14px; }
.ps-credit { margin-top: 12px; }
.ps-strip { display: block; padding: 16px 18px 12px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); color: inherit; }
.ps-strip:hover { border-color: var(--acc); color: inherit; }
.ps-strip-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.ps-strip-head .muted { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.ps-strip-svg { display: block; width: 100%; height: 64px; margin-top: 10px; fill: var(--acc); }
.ps-strip-svg rect { opacity: .85; }
.ps-strip-svg rect:hover { opacity: 1; }
.ps-strip-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ps-known-head { margin-top: 28px; }
.ps-known { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collab { list-style: none; margin: 0; padding: 0; grid-template-columns: 1fr; gap: 0; }
.collab li + li { border-top: 1px solid var(--line); }
.collab a { border: 0; background: none; border-radius: 0; padding: 9px 2px; }
.collab a:hover { color: var(--acc); }
@media (max-width: 960px) { .ps-body { grid-template-columns: minmax(0, 1fr); gap: 0; } .ps-side { position: static; } }
@media (max-width: 760px) {
  body.kind-person .v2-header { position: relative; }
  .ps-head { grid-template-columns: 1fr; gap: 0; padding: 0 var(--pad); }
  .ps-portrait { aspect-ratio: 3 / 4; max-height: 520px; width: calc(100% + 2 * var(--pad)); }
  .ps-portrait::after { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 22%, transparent 55%); }
  .ps-info { margin-top: -132px; padding: 0; }
  .ps-name { font-size: 34px; text-shadow: 0 1px 16px color-mix(in srgb, var(--bg) 60%, transparent); }
  .ps-facts { font-size: 13px; margin-top: 10px; }
  .ps-stats { scroll-padding-inline: var(--pad); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; margin: 16px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 16px; scroll-snap-type: x mandatory; }
  .ps-stats .stat { scroll-snap-align: start; padding: 12px; }
  .ps-stats .stat b { font-size: var(--fs-num); }
  .ps-tabs { top: 0; }
  .ps-tabs .secnav-in { height: 44px; gap: 0; margin: 0 calc(-1 * var(--pad)); padding: 0 calc(var(--pad) - 12px); }
  .ps-tabs .secnav-in a[data-external] { margin-left: 0; }
  .ps-body { display: flex; flex-direction: column; }
  .ps-main, .ps-side { display: contents; }
  #overview { order: 1; } #bio { order: 2; } #works { order: 3; } #collab { order: 4; } .ps-credit { order: 5; }
  .ps-body .section { margin-top: 24px; scroll-margin-top: 56px; }
  .ps-bio { padding: 0; background: none; border: 0; }
  .ps-bio h2 { font-size: var(--fs-sec); }
  .ps-bio .intro-text.is-clamped { -webkit-line-clamp: 3; }
  .ps-strip { padding: 12px 14px 10px; }
  .ps-strip-svg { height: 48px; }
  .ps-known-head { margin-top: 22px; }
  .ps-known { scroll-padding-inline: var(--pad); display: grid; grid-auto-flow: column; grid-auto-columns: 38%; grid-template-columns: none; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; gap: 12px; }
  .ps-known > * { scroll-snap-align: start; }
  .ps-collab { padding: 4px 16px; }
  .ps-collab h2 { margin: 0; font-size: 16px; }
  .ps-collab.is-open { padding-bottom: 8px; }
}

/* P4 career timeline */
.tl { --c-lead: #ff5a5f; --c-support: #f9a8b4; --c-director: #14b8a6; --c-writer: #f59e0b; --acc: var(--teal); }
:root[data-theme="dark"] .tl { --acc: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl { --acc: var(--teal-2); --c-support: #be5b6b; } }
:root[data-theme="dark"] .tl { --c-support: #be5b6b; }
.tl-c-lead { --c: var(--c-lead); } .tl-c-support { --c: var(--c-support); } .tl-c-director { --c: var(--c-director); } .tl-c-writer { --c: var(--c-writer); }
.tl-g1 { --c: #6366f1; } .tl-g2 { --c: #ec4899; } .tl-g3 { --c: #14b8a6; } .tl-g4 { --c: #f59e0b; } .tl-g5 { --c: #8b5cf6; } .tl-g6 { --c: #94a3b8; }
.tl-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 24px; }
.tl-avatar { aspect-ratio: 3 / 4; border-radius: var(--r); outline: 1px solid var(--line); outline-offset: -1px; }
.tl-avatar .avatar-ph { font-size: 36px; }
.tl-back { display: inline-flex; align-items: center; gap: 2px; color: var(--acc); font-weight: 600; font-size: 14px; }
.tl-title h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl-summary { max-width: 80ch; color: var(--ink-2); font-size: var(--fs-sub); line-height: 1.7; margin-top: 8px; }
.tl-empty { margin-top: 24px; }
.tl-body .section { scroll-margin-top: 80px; }
.tl-body h2 { margin-bottom: 14px; }
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tl-bar h2 { margin: 0; }
.tl-view { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--s3); }
.tl-view button { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.tl-view button[aria-pressed="true"] { background: var(--s1); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tl-axis-sec .tl-view { display: none; }
.tl-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tl-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chipset .chip { border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 13px; }
.tl-chipset .chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tl-chipset .chip[aria-pressed="true"] { background: var(--acc-soft); color: var(--ink); border-color: var(--acc); }
.tl-chart { position: relative; height: var(--axis-h, 220px); border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.tl-chart .tl-fallback { position: absolute; inset: auto 16px 16px; width: calc(100% - 32px); height: 60%; fill: var(--acc); opacity: .5; }
.tl-rating { height: 240px; }
.tl-svg { display: block; font: 11px var(--font); }
.tl-grid-l { stroke: var(--line); stroke-width: 1; }
.tl-grid-l.is-h { stroke-dasharray: 2 4; }
.tl-tick { fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-age-l { stroke: var(--acc); stroke-opacity: .35; stroke-dasharray: 3 3; }
.tl-age { fill: var(--acc); font-weight: 700; }
.tl-lane { fill: transparent; } .tl-lane.is-alt { fill: var(--s3); fill-opacity: .5; }
.tl-lane-t { fill: var(--ink-3); font-weight: 600; font-size: 12px; }
.tl-dot { fill: var(--c); fill-opacity: .85; stroke: var(--s1); stroke-width: 1.5; cursor: pointer; transition: r .12s, fill-opacity .12s; }
.tl-dot:hover, .tl-dot:focus { fill-opacity: 1; stroke: var(--ink); outline: none; }
.tl-dot.is-dim, .tl-pt.is-dim { fill-opacity: .12; stroke-opacity: .2; pointer-events: none; }
.tl-pt { fill: var(--acc); fill-opacity: .55; cursor: pointer; }
.tl-pt:hover, .tl-pt:focus { fill-opacity: 1; outline: none; }
.tl-curve { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tl-mark { fill: none; stroke-width: 2; } .tl-mark.is-peak { stroke: #16a34a; } .tl-mark.is-low { stroke: #dc2626; }
.tl-mark-t { fill: var(--ink-2); font-weight: 600; font-size: 11px; }
.tl-hint { font-size: 12px; margin-top: 8px; }
.tl-ms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tl-m { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.tl-m::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--acc); }
.tl-m-best::before, .tl-m-most-voted::before { background: #16a34a; } .tl-m-gap::before { background: var(--ink-3); } .tl-m-upcoming::before { background: var(--c-writer); } .tl-m-first-director::before { background: var(--c-director); } .tl-m-first-lead::before { background: var(--c-lead); }
.tl-m-year { font-size: 20px; font-weight: 800; }
.tl-m-year small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tl-m-label { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.tl-m-film { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-m-val { font-size: 13px; color: var(--ink-2); }
.tl-mix-sum { margin: 0 0 6px; font-size: 15px; color: var(--ink); line-height: 1.6; }
.tl-mix-roles { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }
.tl-heat-wrap { max-width: 100%; }
.tl-heat { width: 100%; max-width: 640px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: 13px; }
.tl-heat th { font-weight: 600; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-heat thead th { padding: 0 2px 4px; text-align: center; }
.tl-heat tbody th { text-align: left; width: 92px; padding-right: 6px; }
.tl-heat td { height: 32px; border-radius: 6px; text-align: center; font-weight: 700;
  background: color-mix(in srgb, var(--acc) calc(10% + var(--a, 0) * 80%), var(--s3));
  color: var(--ink); }
.tl-heat td.is-hi { color: var(--heat-hi, var(--ink)); }
.tl-heat td.is-0 { background: transparent; outline: 1px dashed var(--line); outline-offset: -1px; }
.tl-heat .tl-heat-m { display: none; }
@media (max-width: 640px) {
  .tl-heat .tl-heat-x, .tl-heat .tl-heat-d { display: none; }
  .tl-heat .tl-heat-m { display: table-cell; }
  .tl-heat tbody th { width: 44px; }
  .tl-heat-to { display: none; }
  .tl-heat td { height: 30px; }
}
.tl-mix-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-mix-bars li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: 12px; }
.tl-mix-y, .tl-mix-n { color: var(--ink-3); } .tl-mix-n { text-align: right; }
.tl-mix-stack { display: flex; height: 16px; border-radius: 5px; overflow: hidden; background: var(--s3); gap: 1px; }
.tl-seg { background: var(--c); min-width: 2px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.tl-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tl-person { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.tl-person:hover { border-color: var(--acc); color: inherit; }
.tl-p-kind { font-size: 12px; color: var(--acc-ink); font-weight: 700; }
.tl-person b { font-size: 17px; }
.tl-dec { border-top: 1px solid var(--line); }
.tl-dec:last-of-type { border-bottom: 1px solid var(--line); }
.tl-dec > summary { display: flex; align-items: center; gap: 12px; padding: 14px 2px; cursor: pointer; list-style: none; min-height: 52px; }
.tl-dec > summary::-webkit-details-marker { display: none; }
.tl-dec > summary b { font-size: 17px; }
.tl-dec > summary .ico { margin-left: auto; color: var(--ink-3); transition: transform .16s; }
.tl-dec[open] > summary .ico { transform: rotate(180deg); }
.tl-dec.is-empty { opacity: .45; }
.tl-dec-age { font-size: 13px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 16px 14px; padding: 4px 0 20px; }
.tl-card { position: relative; min-width: 0; }
.tl-score { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .66); color: #ffd84d; font-size: 11px; font-weight: 800; }
.tl-pop { position: fixed; z-index: 50; width: 320px; padding: 10px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.tl-pop-in { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; color: inherit; }
.tl-pop-in img { width: 64px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--s3); }
.tl-pop-in b { display: block; font-size: 15px; line-height: 1.3; padding-right: 28px; }
.tl-pop-in .muted { display: block; font-size: 12px; margin-top: 4px; }
.tl-pop-r { display: block; margin-top: 6px; font-weight: 700; color: var(--acc); font-size: 13px; }
.tl-pop-x { position: absolute; right: 6px; top: 6px; height: 30px; min-width: 30px; padding: 0; }
@media (max-width: 760px) {
  body.kind-person .v2-header { position: relative; }
  .tl-head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding-top: 18px; padding-bottom: 14px; }
  .tl-title h1 { font-size: 22px; }
  .tl-summary { font-size: 14px; }
  .tl-axis-sec .tl-view { display: inline-flex; }
  .tl:not([data-view="axis"]) .tl-axis-sec .tl-chart, .tl:not([data-view="axis"]) .tl-axis-sec .tl-hint { display: none; }
  .tl-chart { overflow-x: auto; overflow-y: hidden; margin: 0 calc(-1 * var(--pad)); border-radius: 0; border-left: 0; border-right: 0; -webkit-overflow-scrolling: touch; }
  .tl-rating { height: 200px; overflow: hidden; }
  .tl-ms { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; grid-template-columns: none; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; }
  .tl-filters .tl-chipset { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: none; }
  .tl-chipset .chip { flex: none; }
  .tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .tl-grid .pcard-title { font-size: 13px; }
  .tl-pop.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .tl-people { grid-template-columns: 1fr; }
}

/* P5: at your age, network, share, compare */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tl-actions { margin-top: 14px; }
.tl-focus { fill: var(--acc); fill-opacity: .14; stroke: var(--acc); stroke-opacity: .5; }
.tl-age-box { padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; align-items: center; }
.tl-age-in { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.tl-age-in input { width: 84px; height: 40px; padding: 0 10px; border-radius: var(--r-sm, 8px); border: 1px solid var(--line-2); background: var(--s2); color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-age-box input[type="range"] { width: 100%; accent-color: var(--acc); }
.tl-age-out, .tl-age-films, .tl-age-box .tl-hint { grid-column: 1 / -1; margin: 0; }
.tl-age-out { font-size: 16px; line-height: 1.6; min-height: 1.6em; }
.tl-age-films { display: flex; gap: 10px; overflow-x: auto; }
.tl-age-films:empty { display: none; }
.tl-age-film { flex: none; width: 92px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: inherit; }
.tl-age-film img { width: 92px; height: 138px; object-fit: cover; border-radius: 6px; background: var(--s3); }
.tl-age-film span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-net { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.tl-net-svg { width: 100%; max-width: 560px; aspect-ratio: 1; display: block; margin: 0 auto; overflow: visible; font: 3px var(--font); }
.tl-net-edge { stroke: var(--acc); stroke-opacity: .55; stroke-linecap: round; }
.tl-net-cross { stroke: var(--ink-3); stroke-opacity: .35; }
.tl-net-me { fill: var(--acc); }
.tl-net-me-t { fill: #fff; font-weight: 800; font-size: 4.4px; }
.tl-net-node { fill: var(--c-lead); stroke: var(--bg); stroke-width: .6; }
.tl-net-svg a:hover .tl-net-node, .tl-net-svg a:focus .tl-net-node { fill: var(--acc); }
.tl-net-t { fill: var(--ink-2); font-weight: 600; }
.tl-net-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.tl-net-list li { break-inside: avoid; display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tl-net-list li > a:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; }
.tl-net-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tl-net-list .muted { font-size: 12px; }
.tl-cmp { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--acc-ink); }
.tl-person .tl-cmp { margin-top: 6px; }
.tl-person > a:first-of-type { color: inherit; }
.cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 24px; }
.cmp-who { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: inherit; }
.cmp-who .tl-avatar { width: 96px; }
.cmp-who b { font-size: 20px; }
.cmp-vs { font-weight: 900; font-size: 28px; color: var(--acc); letter-spacing: .04em; }
.cmp-title { font-size: var(--fs-h2, 26px); font-weight: 800; margin-top: 8px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { font-size: 15px; }
.cmp-table tbody th { color: var(--ink-3); font-weight: 600; width: 24%; }
.cmp-0 { color: #c62f3a; } .cmp-1 { color: #0f766e; }
:root[data-theme="dark"] .cmp-0 { color: var(--c-lead); } :root[data-theme="dark"] .cmp-1 { color: var(--c-director); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp-0 { color: var(--c-lead); } :root:not([data-theme="light"]) .cmp-1 { color: var(--c-director); } }
.cmp-role { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; white-space: nowrap; }
.cmp-role i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cmp-chart { height: 186px; }
.cmp-d-0 { fill: var(--c-lead); } .cmp-d-1 { fill: var(--c-director); }
.tl-dot.is-shared { stroke: var(--ink); stroke-width: 2; fill-opacity: 1; }
.cmp-t-0 { fill: var(--c-lead); } .cmp-t-1 { fill: var(--c-director); }
@media (max-width: 760px) {
  .tl-age-box { grid-template-columns: 1fr; }
  .tl-net { grid-template-columns: 1fr; }
  .tl-net-svg { max-width: 360px; }
  .tl-net-list { columns: 1; }
  .cmp-head { gap: 8px; padding-top: 16px; }
  .cmp-who .tl-avatar { width: 64px; }
  .cmp-who b { font-size: 15px; }
  .cmp-vs { font-size: 18px; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 8px 6px; }
  .cmp-chart { overflow-x: auto; margin: 0 calc(-1 * var(--pad)); border-radius: 0; border-left: 0; border-right: 0; }
}

/* footer */
.v2-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--s1); color: var(--ink-2); font-size: 14px; padding: 40px 0 24px; }
.v2-fcols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 32px; }
.v2-fbrand p { margin-top: 12px; font-size: 13px; color: var(--ink-3); max-width: 40ch; }
.v2-fcol > summary, .v2-fcol h2 { display: flex; justify-content: space-between; align-items: center; list-style: none; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin: 0 0 10px; }
.v2-fcol > summary::-webkit-details-marker { display: none; }
.v2-fcol > summary .ico { display: none; }
.v2-fcol a { display: block; padding: 3px 0; }
.v2-fsrc p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.v2-fbottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--ink-3); }
.v2-flang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.v2-flang a[aria-current] { color: var(--ink); font-weight: 700; }
.v2-copy { margin-left: auto; }
@media (max-width: 760px) {
  .v2-footer { padding: 28px 0 20px; }
  .v2-fcols { grid-template-columns: 1fr; gap: 0; }
  .v2-fbrand { padding-bottom: 16px; }
  .v2-fcol { border-top: 1px solid var(--line); padding: 12px 0; }
  .v2-fcol > summary { margin: 0; cursor: pointer; }
  .v2-fcol > summary .ico { display: block; transition: transform .16s; }
  .v2-fcol[open] > summary .ico { transform: rotate(180deg); }
  .v2-fcol[open] > summary { margin-bottom: 8px; }
  .v2-fsrc h2 { margin-top: 4px; }
  .v2-flang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .v2-flang .ico { display: none; }
  .v2-flang a { padding: 9px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
  .v2-copy { margin-left: 0; }
}

/* copied from app.css: lightbox and report dialog */
.intro-body {
  white-space: pre-wrap;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.intro-body.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.still-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .88);
}
.still-frame {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  min-width: 0;
  max-width: 100%;
}
.still-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: .75rem;
}
.still-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  min-width: 0;
  max-height: calc(100vh - 7rem);
  margin-inline: auto;
  object-fit: contain;
  background: #111;
}
.still-lightbox button {
  border: 0;
  border-radius: var(--radius);
  padding: .4rem .75rem;
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.still-lightbox button:hover,
.still-lightbox button:focus-visible {
  background: rgba(255, 255, 255, .28);
}
.still-count {
  margin-right: auto;
  color: rgba(255, 255, 255, .8);
  font-size: .875rem;
}
.report-dialog {
  border: 0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 22rem;
}
.report-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.report-dialog p { margin: 0 0 1rem; }


/* R2-1 shared components: poster grid, breadcrumbs, pager, chips-lg, search box, empty/error state, prose */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 22px 14px; }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } .pgrid .pcard-title { font-size: 13px; } }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-cap); color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs a:hover { color: var(--acc); }
.crumbs [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.pager2 { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 8px; flex-wrap: wrap; }
.pager2-n, .pager2-step { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); background: var(--s3); color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager2-n:hover, .pager2-step:hover { color: var(--ink); background: var(--s4); }
.pager2-n.is-on { background: var(--acc); color: #fff; }
.pager2-step.is-off { opacity: .4; }
.pager2-gap { color: var(--ink-3); padding: 0 4px; }
.chips-lg { gap: 8px; }
.chips-lg .chip { padding: 8px 14px; font-size: 14px; font-weight: 500; }
.chips-lg .chip:hover { background: var(--acc-soft); color: var(--ink); }
.searchbox2 { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 16px; border-radius: var(--r-lg); background: var(--s2); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); color: var(--ink-3); }
.searchbox2:focus-within { border-color: var(--acc); }
.searchbox2 input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-sub); outline: none; }
.searchbox2 .btn2 { height: 44px; }
.state-page { max-width: 720px; padding-top: 56px; padding-bottom: 72px; text-align: center; }
.empty2 { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty2-badge { display: grid; place-items: center; min-width: 96px; height: 96px; padding: 0 20px; border-radius: 28px; background: var(--acc-soft); color: var(--acc-ink); }
.empty2-badge .ico { width: 40px; height: 40px; }
.empty2-code { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.empty2-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; }
.empty2-text { color: var(--ink-2); max-width: 46ch; }
.state-page .searchbox2 { margin: 32px auto 0; text-align: left; }
.state-links { margin-top: 40px; }
.state-h { font-size: var(--fs-cap); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.state-links .chips { justify-content: center; }
.state-actions { display: flex; justify-content: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.state-pre { margin-top: 24px; text-align: left; white-space: pre-wrap; font-size: 12px; background: var(--s3); padding: 12px; border-radius: var(--r-sm); overflow-x: auto; }
.prose-page { padding-top: 24px; padding-bottom: 72px; }
.prose2 { max-width: 72ch; margin: 16px auto 0; }
.prose2 h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; margin-bottom: 24px; }
.prose2-body { color: var(--ink-2); font-size: var(--fs-sub); line-height: 1.75; }
.prose2-body > * + * { margin-top: 1em; }
.prose2-body h2, .prose2-body h3 { color: var(--ink); margin-top: 1.8em; }
.prose2-body h2 { font-size: var(--fs-sec); } .prose2-body h3 { font-size: var(--fs-sub); }
.prose2-body a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.prose2-body ul, .prose2-body ol { padding-left: 1.4em; }
.prose2-body li + li { margin-top: .35em; }
.prose2-body strong { color: var(--ink); }
.prose2-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.prose2-body th, .prose2-body td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }

/* R2-2 browse lists: filter rail (desktop) / bottom sheet (mobile) */
.browse { padding-top: 20px; padding-bottom: 48px; }
.browse-head { margin-top: 10px; }
.browse-head h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.browse-count { font-size: var(--fs-sub); font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.browse-intro { margin-top: 8px; color: var(--ink-2); max-width: 80ch; }
.browse-intro a { color: var(--acc); }
.browse-bar { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; min-height: 36px; }
.browse-filter-btn { display: none; height: 40px; }
.browse-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; }
.browse-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip.is-on { background: var(--acc-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--acc); }
.chip.is-off { color: var(--ink-3); background: transparent; border-style: dashed; cursor: default; }
.chip-n { color: var(--ink-3); font-size: 11px; font-weight: 500; }
.chip.is-on .chip-n { color: var(--ink-2); }
.browse-clear { font-size: var(--fs-cap); color: var(--ink-3); text-decoration: underline; }
.browse-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.browse-rail { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.browse-sheet-head, .browse-sheet-foot, .browse-scrim { display: none; }
.rail-group + .rail-group { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.rail-h { font-size: var(--fs-cap); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.rail-group .chips [data-tier="more"] { display: none; }
.rail-group .chips.is-more [data-tier="more"] { display: inline-flex; }
.rail-more { margin-top: 8px; background: none; border: 0; padding: 4px 0; color: var(--acc); font: inherit; font-size: var(--fs-cap); cursor: pointer; }
.rail-group:not(:has([data-tier="more"])) .rail-more { display: none; }
.rail-hubs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rail-hubs li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.rail-hubs a { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-hubs a:hover { color: var(--acc); }
.browse-main { min-width: 0; }
.browse-main .pgrid { --card-w: 150px; }
@media (max-width: 1023px) { .browse-body { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; } }
@media (max-width: 760px) {
  .browse-body { display: block; }
  .browse-bar { position: sticky; top: 60px; z-index: 20; margin: 12px calc(-1 * var(--pad)) 14px; padding: 8px var(--pad); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .browse-active { flex-wrap: nowrap; }
  .browse-active .chip { white-space: nowrap; }
  .browse-filter-btn { display: inline-flex; flex: none; }
  .browse-intro { font-size: 13px; }
  .browse-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); }
  .browse-rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 61; max-height: 82vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--s1); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-pop); transform: translateY(105%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; }
  .browse-rail.is-open { transform: none; visibility: visible; transition: transform .28s var(--ease); }
  .browse-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-sub); }
  .browse-sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--s4); }
  .browse-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--s3); color: var(--ink); cursor: pointer; }
  .browse-rail-scroll { overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
  .browse-rail .chip { padding: 7px 12px; font-size: 13px; }
  .browse-sheet-foot { display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .browse-sheet-foot .btn2 { width: 100%; }
}

/* Contrast (R2-2 fix): text links use --acc-ink (AA on both themes) and are underlined inside prose. */
body.kind-person { --acc-ink: #0f766e; }
:root[data-theme="dark"] body.kind-person { --acc-ink: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.kind-person { --acc-ink: var(--teal-2); } }
.browse-intro a, .prose2-body a, .empty2-text a { color: var(--acc-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.rail-more, .browse-clear { color: var(--acc-ink); }

/* R2-3 hub pages: tag, keyword, collection, series */
.hub { padding-top: 20px; padding-bottom: 48px; }
.hub-head { margin-top: 14px; }
.hub-kind { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-ink); }
.hub-head h1 { margin-top: 6px; font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; }
.hub-sub { margin-top: 4px; color: var(--ink-3); font-size: var(--fs-sub); }
.hub-intro { margin-top: 10px; color: var(--ink-2); max-width: 80ch; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.hub-stats > div { padding: 10px 16px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line); min-width: 96px; }
.hub-stats dt { font-size: var(--fs-cap); color: var(--ink-3); }
.hub-stats dd { margin: 2px 0 0; font-size: var(--fs-num); font-weight: 800; letter-spacing: -.02em; }
.hub-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; margin-top: var(--sec-gap); }
.hub-body:not(:has(.hub-side)) { grid-template-columns: minmax(0, 1fr); }
.hub-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.hub-box { padding: 16px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line); }
.hub-main .pgrid { --card-w: 150px; }
.pgrid-cell { position: relative; min-width: 0; }
.pgrid-n { position: absolute; z-index: 1; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 13px; font-weight: 800; }
.hub-credit { margin-top: 32px; font-size: var(--fs-cap); }
.hub-credit a { text-decoration: underline; }
@media (max-width: 1023px) { .hub-body { grid-template-columns: minmax(0, 1fr); } .hub-side { position: static; } }
@media (max-width: 760px) { .hub-stats > div { padding: 8px 12px; min-width: 0; flex: 1 1 40%; } .hub-stats dd { font-size: 20px; } }

/* R2-4: search + upcoming */
.srch-head { margin: 8px 0 22px; display: grid; gap: 12px; }
.srch-head h1 { font-size: var(--fs-h1, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.srch-head .searchbox2 { max-width: 640px; }
.srch-count { color: var(--ink-2); font-size: var(--fs-cap); }
.srch-notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--acc-soft); color: var(--ink); margin-bottom: 18px; }
.srch-plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.srch-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--s2, var(--s3)); color: var(--ink); }
.srch-person:hover { background: var(--acc-soft); }
.srch-person > span:nth-child(2) { flex: 1; min-width: 0; }
.srch-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); color: var(--ink-2); font-weight: 600; }
.upc-jump { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; position: sticky; top: 0; z-index: 2; background: var(--bg, var(--s1)); padding-top: 8px; }
.upc-jump .chip { white-space: nowrap; }
.upc-month { scroll-margin-top: 60px; }
.upc-n { color: var(--ink-3); font-size: var(--fs-cap); font-weight: 400; margin-left: 6px; }
.pcard.is-static .pcard-img { position: relative; }
.upc-pill { position: absolute; left: 6px; top: 6px; min-width: 28px; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }

/* R2-5: home */
.home2 { padding-top: 12px; }
.home2-top { display: grid; gap: 20px; margin-bottom: 18px; }
@media (min-width: 1000px) { .home2-top { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; } .home2-top.no-hero { grid-template-columns: 1fr; } }
.hero2 { position: relative; }
.hero2-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.hero2-track::-webkit-scrollbar { display: none; }
.hero2-slide { position: relative; display: block; scroll-snap-align: start; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--s3); color: #fff; }
.hero2-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2-cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: var(--fs-sub); font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.hero2-n { font-size: var(--fs-cap); font-weight: 500; opacity: .85; }
.hero2-btn { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.hero2-btn.is-prev { left: 10px; } .hero2-btn.is-next { right: 10px; }
.hero2-btn:hover { background: rgba(0,0,0,.8); }
@media (max-width: 760px) {
  .hero2-track { grid-auto-columns: 88%; gap: 10px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); border-radius: 0; }
  .hero2-btn { display: none; }
  .hero2-cap { font-size: 15px; padding: 28px 12px 10px; }
}
.rank2 { background: var(--s2, var(--s3)); border-radius: 14px; padding: 16px 16px 8px; }
.rank2 ol { list-style: none; margin: 0; padding: 0; }
.rank2 a { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; color: var(--ink); border-top: 1px solid var(--line, rgba(127,127,127,.15)); }
.rank2 li:first-child a { border-top: 0; }
.rank2 a:hover .rank2-t { color: var(--acc-ink); }
.rank2-n { width: 22px; flex: none; font-weight: 800; color: var(--ink-3); }
.rank2 li:nth-child(-n+3) .rank2-n { color: var(--acc-ink); }
.rank2-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank2-y { color: var(--ink-3); font-size: var(--fs-cap); }
/* Desktop shows hot as the ranked list; mobile shows it as a poster rail instead (lazy images in a hidden rail never load). */
@media (max-width: 999px) { .rank2 { display: none; } }
@media (min-width: 1000px) { .home2-rail.is-hot { display: none; } }
.home2-hs { align-items: center; margin-bottom: 8px; }
.home2-hs-l { color: var(--ink-3); font-size: var(--fs-cap); margin-right: 4px; }
@media (max-width: 760px) { .home2-rail.is-lazy { content-visibility: auto; contain-intrinsic-size: auto 300px; } }
@media (min-width: 761px) { .home2 .rail { grid-auto-columns: calc((100% - 14px * 6) / 7); } }

/* R2-6: person sections + person list */
.ps-tabs .secnav-in a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.psec-n { color: var(--ink-3); font-size: var(--fs-cap); margin-left: 2px; }
.plist .chip.is-on { font-weight: 600; }
.plist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
@media (max-width: 760px) { .plist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } }
.plist-card { display: block; color: var(--ink); }
.plist-ph { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--s3); }
.plist-ph img, .plist-ph .avatar-ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 28px; }
.plist-name { display: flex; gap: 6px; margin-top: 6px; font-size: var(--fs-body); line-height: 1.3; overflow-wrap: anywhere; }
.plist-card:hover .plist-name { color: var(--acc-ink); }
.plist-rank { color: var(--ink-3); font-size: var(--fs-cap); padding-top: 2px; }

/* R2-7: /watch provider pages */
.watch-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 14px; flex-wrap: wrap; }
.watch-head h1 { font-size: var(--fs-h1, 28px); line-height: 1.2; }
.watch-logo { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--s3); }
.watch-logo img { width: 100%; height: 100%; }
.watch-cta { margin-left: auto; }
.watch-region { margin-bottom: 18px; }
.watch-region summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.watch-region .chips { margin-top: 10px; max-height: 180px; overflow: auto; }
.watch-body { display: grid; gap: 28px; }
@media (min-width: 1000px) { .watch-body { grid-template-columns: minmax(0, 1fr) 260px; } }
.watch-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.watch-tabs a { padding: 10px 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.watch-tabs a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.watch-credit { margin-top: 22px; font-size: var(--fs-cap); }
.watch-side h2 { font-size: var(--fs-sub); margin-bottom: 10px; }
.watch-side ul { list-style: none; margin: 0; padding: 0; }
.watch-side a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); }
.watch-side a:hover .watch-on { color: var(--acc-ink); }
.watch-mini { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; background: var(--s3); flex: none; }
.watch-mini img { width: 100%; height: 100%; display: block; }
.watch-on { flex: 1; min-width: 0; }

/* Pager: desktop shows numbers; mobile shows big prev/next + "page X / N" (numbers stay in the HTML for crawlers). */
.pager2-word, .pager2-of { display: none; }
@media (max-width: 760px) {
  .pager2 { flex-wrap: nowrap; gap: 10px; justify-content: space-between; }
  .pager2-n, .pager2-gap { display: none; }
  .pager2-step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; min-height: 48px; height: auto; padding: 0 16px; font-size: 16px; }
  .pager2-word { display: inline; }
  .pager2-of { display: block; flex: none; color: var(--ink-2); font-size: var(--fs-cap); white-space: nowrap; }
  .pager2-step.is-off { opacity: 1; background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
}

/* R2-8: TV */
.tv-score { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; }
.pcard-img { position: relative; }
.tvs-hero { position: relative; overflow: hidden; }
.tvs-bd { display: none; }
@media (min-width: 761px) {
  .tvs-hero { min-height: 420px; color: #fff; background: #111; }
  .tvs-bd { display: block; position: absolute; inset: 0; }
  .tvs-bd img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
  .tvs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.2) 100%); }
  .tvs-head { position: relative; z-index: 1; padding-top: 12px; padding-bottom: 36px; }
  .tvs-hero .crumbs a, .tvs-hero .crumbs span, .tvs-hero .tvs-orig, .tvs-hero .muted { color: rgba(255,255,255,.85); }
  .tvs-hero .chip { background: rgba(255,255,255,.16); color: #fff; }
}
.tvs-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: end; margin-top: 10px; }
@media (min-width: 761px) { .tvs-top { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } }
.tvs-poster { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--s3); box-shadow: var(--shadow-pop, none); }
.tvs-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvs-info h1 { font-size: var(--fs-h1, 28px); line-height: 1.15; margin: 8px 0 4px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .tvs-info h1 { font-size: 24px; } .tvs-info .ps-roles .chip:nth-child(n+3) { display: none; } }
.tvs-orig { color: var(--ink-2); }
.tvs-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: var(--fs-cap); }
.tvs-score { font-weight: 700; }
.tvs-prov { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tvs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
@media (min-width: 1000px) { .tvs-body { grid-template-columns: minmax(0, 1fr) 280px; } .tvs-side { order: 2; } }
@media (max-width: 999px) { .tvs-side { order: -1; } }
.tvs-ov { font-size: var(--fs-sub); line-height: 1.7; max-width: 70ch; }
.tvs-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tvs-tl li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: var(--fs-cap); }
.tvs-tl-track { height: 10px; border-radius: 5px; background: var(--s3); display: block; }
.tvs-tl-bar { display: block; height: 100%; border-radius: 5px; background: var(--acc); min-width: 6px; }
.tvs-tl-y { color: var(--ink-3); }
.tvs-season { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--s1, transparent); }
.tvs-season summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; min-height: 48px; align-items: center; }
.tvs-se-ov { padding: 0 16px 8px; color: var(--ink-2); }
.tvs-eps { list-style: none; margin: 0; padding: 0 16px 12px; }
.tvs-eps li { border-top: 1px solid var(--line); }
.tvs-eps li > a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 8px 0; color: inherit; min-height: 44px; }
.tvs-eps li > a:hover b { color: var(--acc); }
.tvs-et { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tvs-et b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tvs-en { color: var(--ink-3); font-weight: 700; }
@media (min-width: 761px) { .tvs-eps { columns: 2; column-gap: 28px; } .tvs-eps li { break-inside: avoid; } }
.tvs-cast { grid-auto-columns: 110px; }
.tvs-person { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-cap); }
.tvs-person .avatar { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--s3); margin-bottom: 4px; }
.tvs-person img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvs-dl { display: grid; gap: 10px; margin: 0; padding: 16px; border-radius: 14px; background: var(--s2, var(--s3)); }
@media (max-width: 999px) { .tvs-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tvs-dl dt { color: var(--ink-3); font-size: var(--fs-cap); }
.tvs-dl dd { margin: 0; font-weight: 600; }
.tvs .ps-roles .chip:first-child { color: var(--ink); }
@media (min-width: 761px) { .tvs-hero .ps-roles .chip:first-child { color: #fff; } }
img.img-broken { visibility: hidden; }

/* TV show page: highlight, season picker, episodes clamp, drawer */
.tvs-now { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }
.tvs-now-i { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); color: inherit; margin: 0; }
a.tvs-now-i:hover { border-color: var(--acc); }
.tvs-now-k { font-size: var(--fs-cap); color: var(--acc-ink); font-weight: 600; }
.tvs-now-i b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvs-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.tvs-chips::-webkit-scrollbar { display: none; }
.tvs-chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-cap); white-space: nowrap; }
.tvs-chip:hover { color: var(--acc); border-color: var(--acc); }
.tvs-chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.tvs-chip:focus-visible, .tvs-more:focus-visible, .tvs-eps a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tvs-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--s1, transparent); padding: 12px 0 4px; }
.tvs-se-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px 8px; margin: 0; }
.tvs-se-facts b { color: var(--ink); }
.tvs-se-watch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 10px; margin: 0; font-size: var(--fs-cap); }
.tvs-more { display: block; width: calc(100% - 32px); margin: 4px 16px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.tvs-more:hover { color: var(--acc); border-color: var(--acc); }
.js .tvs-eps.is-clamped:not(.is-open) li.m-more { display: none; }
@media (min-width: 761px) {
  .js .tvs-eps.is-clamped:not(.is-open) li.m-more { display: block; }
  .js .tvs-eps.is-clamped:not(.is-open) li.d-more { display: none; }
  .tvs-more.m-only { display: none; }
}
html:not(.js) .tvs-more { display: none; }
.tvs-drawer { width: min(560px, 94vw); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--s2); color: var(--ink); box-shadow: var(--shadow-pop); overflow: auto; }
.tvs-drawer::backdrop { background: rgba(0, 0, 0, .6); }
.tvs-drawer [data-ep-body] { padding: 0 20px 20px; }
.tvs-drawer-x { position: sticky; top: 0; display: flex; justify-content: flex-end; margin: 0; padding: 8px; }
.tvs-drawer-x button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--s3); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.tvs-ep-still { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 12px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--s3); }
.tvs-ep-code { margin: 0 0 4px; font-size: var(--fs-cap); }
.tvs-drawer h3 { margin: 0 0 8px; }
.tvs-ep-ov { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .tvs-drawer { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 85vh; } }

/* /tv home + browse */
.tvh-chips { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; min-width: 0; }
.tvh-chips-l { flex: none; width: 72px; font-size: var(--fs-cap); color: var(--ink-3); }
.tvh-chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px 0; }
.tvh-chips-row::-webkit-scrollbar { display: none; }
.tvh-chips + .tvh-rail { margin-top: 24px; }
.tvb-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.tvf-bar { margin: 8px 0 12px; }
.tvf-bar:not(:has(.chip)) { display: none; }
@media (max-width: 760px) { .tvf-bar:not(:has(.chip)) { display: flex; } .tvb-form { display: none; } .tvf.is-open .tvb-form { display: grid; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); } }
html:not(.js) .tvb-form { display: grid; }
.tvb-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-cap); color: var(--ink-3); }
.tvb-form select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--s2); color: var(--ink); font: inherit; }
.tvb-actions { display: flex; align-items: flex-end; gap: 12px; }
.tvb-go { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 8px; background: var(--acc); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) { .tvb-form { grid-template-columns: 1fr 1fr; gap: 10px; } .tvh-chips-l { width: 56px; } .tvh-rail .section-head h2 { font-size: 1.05rem; } }
/* /tv home on phones and tablets: region / platform rails hidden (the chips cover them), 4 rails left */
@media (max-width: 999px) { .tvh-extra { display: none; } }

/* TV show page: compact air timeline. One hue (teal, as the career heatmap), older seasons lighter,
   selected season ringed; gaps between segments are the hiatuses. */
.tvs-tl2 { --tl: #0f766e; position: relative; }
:root[data-theme="dark"] .tvs-tl2 { --tl: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tvs-tl2 { --tl: var(--teal-2); } }
.tvs-tl2-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 6px 4px 2px; margin: -6px -4px 0; }
.tvs-tl2-strip { display: flex; align-items: flex-start; gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 100%; width: max-content; }
.tvs-tl2-cell { flex: 1 0 38px; display: flex; flex-direction: column; align-items: stretch; min-width: 38px; }
.tvs-tl2-strip.is-long .tvs-tl2-cell { flex: 0 0 38px; }
.tvs-tl2-seg { height: 30px; padding: 0 2px; border: 0; border-radius: 7px; cursor: pointer; font: 600 12px/1 var(--font, inherit); font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink); background: color-mix(in srgb, var(--tl) calc(var(--a, 1) * 85%), transparent); transition: transform .12s; }
.tvs-tl2-seg.is-deep { color: #fff; }
.tvs-tl2-seg:hover { transform: translateY(-1px); }
.tvs-tl2-seg.is-on { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px var(--tl); position: relative; z-index: 1; }
.tvs-tl2-seg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tvs-tl2-y { height: 16px; margin-top: 5px; font-size: 11px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: visible; }
.tvs-tl2-gap { flex: 0 0 auto; display: flex; align-items: center; height: 30px; padding: 0 6px; }
.tvs-tl2-gap-l { font-size: 11px; color: var(--ink-3); white-space: nowrap; padding: 2px 7px; border: 1px dashed var(--line); border-radius: 999px; background: var(--s2, transparent); }
.tvs-tl2-info { min-height: 1.4em; margin: 6px 0 0; font-size: var(--fs-cap); color: var(--ink-2); }

/* Episode drawer: show header, meta row, prev/next */
.tvs-drawer-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 20px; background: var(--s2); border-bottom: 1px solid var(--line); }
.tvs-drawer-show { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tvs-drawer-show img { width: 32px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--s3); flex: none; }
.tvs-drawer-show b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvs-drawer-top .tvs-drawer-x { position: static; padding: 0; }
.tvs-drawer [data-ep-body] { padding: 16px 20px 8px; }
.tvs-ep-code b { color: var(--ink); }
.tvs-ep-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: var(--fs-cap); color: var(--ink-2); }
.tvs-ep-score { color: var(--ink); font-weight: 600; }
.tvs-ep-ov.is-empty { color: var(--ink-3); font-style: italic; }
.tvs-ep-showov { margin: 0 20px 8px; font-size: var(--fs-cap); }
.tvs-drawer-nav { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--s2); border-top: 1px solid var(--line); }
.tvs-drawer-nav .btn2 { flex: 1; justify-content: center; }
.tvs-drawer-nav [aria-disabled="true"] { opacity: .4; pointer-events: none; }
