:root {
  color-scheme: dark;
  --bg: #0d1424;
  --header: #111a2e;
  --panel: #18243b;
  --raised: #253653;
  --text: #f1f5ff;
  --muted: #becbe4;
  --line: #354765;
  --accent: #bfceff;
  --accent-ink: #142341;
  --page-gutter: clamp(16px, 2.1vw, 42px);
  --radius: 13px;
  --sticky-offset: 89px;
  --gap: clamp(13px, 2vw, 22px);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id][tabindex="-1"]:focus { outline: none; }
[id][tabindex="-1"] { scroll-margin-top: var(--sticky-offset); }
.sr-only, .skip-link:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; }
.shell { width: calc(100% - 2 * var(--page-gutter)); margin-inline: auto; }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line); background: var(--header); }
.header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 72px; align-items: center; gap: 18px; }
.brand { display: inline-flex; justify-self: start; gap: 10px; align-items: center; font-size: 1.12rem; font-weight: 800; letter-spacing: .035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); }
.brand-mark .icon-play { transform: translateX(1px); }
.brand-mark.site-logo { display: block; object-fit: contain; background: transparent; border-radius: 0; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a { display: inline-flex; align-items: center; color: var(--muted); min-height: 44px; font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.main-nav a[aria-current], .main-nav a:hover { color: var(--accent); }
.header-categories { position: relative; justify-self: end; }
.header-categories > summary { list-style: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding-inline: 13px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; white-space: nowrap; font-size: .875rem; font-weight: 700; }
.header-categories > summary::-webkit-details-marker { display: none; }
.header-categories > nav { display: grid; min-width: 143px; position: absolute; right: 0; top: calc(100% + 9px); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 5px; }
.header-categories > nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 11px; font-size: .875rem; border-radius: 6px; }
.header-categories > nav a:hover { background: var(--raised); color: var(--accent); }
.icon { display: inline-block; flex: none; vertical-align: middle; }
.icon-play { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.icon-menu { width: 13px; height: 10px; border-block: 1.5px solid currentColor; position: relative; }
.icon-menu::after { content: ""; position: absolute; top: 3px; width: 100%; border-top: 1.5px solid currentColor; }
.icon-bookmark { width: 13px; height: 16px; position: relative; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 77%, 0 100%); }
.icon-bookmark::after { content: ""; position: absolute; inset: 2px 2px 3px; background: var(--raised); clip-path: inherit; }
[aria-pressed="true"] .icon-bookmark::after { display: none; }

main { flex: 1; padding-block: 22px 72px; }
.landing-hero { min-height: clamp(475px, 42vw, 640px); position: relative; display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(12px, 2.1vw, 39px); align-items: center; isolation: isolate; overflow: hidden; padding: 15px clamp(16px, 3vw, 58px); border: 1px solid #435378; border-radius: 17px; }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 75% 47%, #5974b532, transparent 66%), url("assets/muchang-blue-stage.webp") 55% 53% / cover no-repeat, #151f34; }
.landing-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0e1728e8, #101b3070 36%, #101a2b1a 69%), linear-gradient(0deg, #0e1628ba, transparent 43%); pointer-events: none; }
.landing-copy { padding-block: clamp(18px, 2.8vw, 38px); }
.hero-update { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #b0bee451; border-radius: 999px; background: #afc7fb0d; color: #d7e3ff; font-size: .875rem; font-weight: 700; }
.hero-update::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: #e6a29a; box-shadow: 0 0 0 4px #e6a29a28; }
.hero-update:hover { border-color: var(--accent); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 750; letter-spacing: .13em; }
.eyebrow > span { padding-inline: 5px; opacity: .7; }
.landing-copy h1 { margin-top: 17px; font-family: "Noto Serif SC", "STSong", "SimSun", serif; font-size: clamp(3rem, 5.3vw, 5.2rem); line-height: 1.12; letter-spacing: -.046em; font-weight: 900; }
.landing-copy h1 em { font-style: normal; color: var(--accent); background: linear-gradient(115deg, #edf5ff 1%, #a2beff 73%, #a28ff3); background-clip: text; -webkit-text-fill-color: transparent; }
.intro { color: var(--muted); line-height: 1.9; font-size: 1rem; margin-top: 22px; max-width: 34em; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: .875rem; background: var(--raised); transition: background-color .18s ease, transform .18s ease; }
.button:hover:not(:disabled) { background: var(--panel); transform: translateY(-1px); }
.button:active:not(:disabled) { transform: scale(.98); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.08); background: var(--accent); }
.button[aria-pressed="true"] { color: var(--accent); }
.landing-copy .button { min-height: 51px; padding-inline: 18px; font-size: .9375rem; }

.hero-stage { display: grid; gap: 10px; width: min(100%, 1040px); min-width: 0; justify-self: center; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 5px 12px; flex-wrap: wrap; margin-inline: 3%; padding-block: 9px 0; border-top: 1px solid #879cc05c; }
.stage-label { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 750; letter-spacing: .11em; color: #d6e3fc; }
.stage-label::before { content: ""; display: block; width: 13px; height: 2px; border-radius: 2px; background: #e5a59e; }
.hero-gallery { min-width: 0; width: 100%; justify-self: center; position: relative; }
.cover-stack { width: 100%; aspect-ratio: 1.65; max-height: 515px; position: relative; }
.cover-stack::before { content: ""; position: absolute; inset: 14% -1% 0; background: radial-gradient(ellipse, #829eff2a, #456cb12a 40%, transparent 71%); animation: cover-glow 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes cover-glow { from { opacity: .58; transform: translateX(-3%) scale(.96); } to { opacity: 1; transform: translateX(3%) scale(1.02); } }
.stack-poster { --x: 0%; --y: 11%; --angle: 0deg; --scale: .56; position: absolute; top: 5%; left: 33%; display: block; visibility: hidden; opacity: 0; width: 34%; height: 87%; padding: 4px; overflow: hidden; border: 1px solid #a4bde799; border-radius: 10px; background: linear-gradient(140deg, #b4c9ee, #374a72 43%, #8da9de); box-shadow: 0 16px 38px #070e22c2; transform: translate(var(--x), var(--y)) rotate(var(--angle)) scale(var(--scale)); transition: transform .62s cubic-bezier(.22,.7,.25,1), opacity .35s ease, visibility .35s, box-shadow .25s ease; }
.stack-poster[data-slot]:is(:hover,:focus-visible) { z-index: 6; transform: translate(var(--x), calc(var(--y) - 8px)) rotate(var(--angle)) scale(calc(var(--scale) + .02)); box-shadow: 0 18px 47px #070e22ed; }
.stack-poster img { height: 100%; object-fit: cover; object-position: center 35%; border-radius: 6px; }
.stack-poster::after { content: ""; position: absolute; inset: 46% 4px 4px; border-radius: 0 0 6px 6px; background: linear-gradient(transparent, #101b32eb); pointer-events: none; }
.stack-poster:is([data-slot="1"], [data-slot="2"], [data-slot="3"], [data-slot="4"], [data-slot="5"]) { visibility: visible; opacity: 1; }
.stack-poster[data-slot="1"] { --x: -99%; --y: 7%; --angle: -5deg; --scale: .58; z-index: 1; }
.stack-poster[data-slot="2"] { --x: 101%; --y: 12%; --angle: 6deg; --scale: .58; z-index: 2; }
.stack-poster[data-slot="3"] { --x: -64%; --y: 4%; --angle: -3deg; --scale: .77; z-index: 3; }
.stack-poster[data-slot="4"] { --x: 70%; --y: 12%; --angle: 4deg; --scale: .75; z-index: 4; }
.stack-poster[data-slot="5"] { --x: 0%; --y: 0%; --angle: 0deg; --scale: 1; z-index: 5; }
.hero-gallery[data-motion-paused="false"] .stack-poster[data-slot="5"] { animation: poster-float 6s ease-in-out infinite; }
.hero-gallery[data-motion-paused="false"] .stack-poster[data-slot="5"]:is(:hover, :focus-visible) { animation-play-state: paused; }
.hero-gallery[data-motion-paused="true"] .cover-stack::before { animation-play-state: paused; }
@keyframes poster-float {
  0%, 100% { translate: 0 0; rotate: -.6deg; }
  50% { translate: 0 -8px; rotate: .6deg; }
}
.stage-float { position: absolute; z-index: 7; display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; color: #eff4ff; border: 1px solid #b7c9f64c; border-radius: 13px; background: #142037ef; box-shadow: 0 10px 30px #070c22a8; backdrop-filter: blur(12px); }
.stage-float:hover { border-color: #bacbff; }
.stage-float-latest { top: 11%; left: 13%; }
.stage-float-player { right: 9%; bottom: clamp(55px, 6vw, 87px); }
.stage-float-mark { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #162345; background: linear-gradient(140deg, #bed8ff, #a99bed); }
.stage-float-player .stage-float-mark { background: linear-gradient(140deg, #cdd7fb, #a0cbe7); }
.stage-float strong, .stage-float small { display: block; white-space: nowrap; }
.stage-float strong { font-size: .84rem; }
.stage-float small { color: #c2d0ef; font-size: .72rem; margin-top: 2px; }
.hero-gallery[data-motion-paused="false"] .stage-float { animation: badge-float 5s ease-in-out infinite; }
.hero-gallery[data-motion-paused="false"] .stage-float-player { animation-delay: -2.5s; }
@keyframes badge-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.stack-caption { position: absolute; z-index: 1; inset: auto 10% 8% 10%; display: grid; gap: 5px; }
.stack-caption small { color: #c6d9ff; font-size: .8125rem; font-weight: 700; }
.stack-caption strong { font-size: clamp(.9rem, 1.65vw, 1.25rem); color: #f7faff; }
.deck-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; position: relative; z-index: 7; }
.deck-actions .button { min-height: 44px; padding-inline: 9px; background: var(--header); border-color: var(--line); font-weight: 650; }
.deck-actions .deck-toggle { color: var(--accent); }
.deck-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(44px, 1fr); align-items: center; gap: 5px; overflow-x: auto; margin-inline: 3%; padding: 3px; scrollbar-width: thin; }
.deck-thumbnails button { width: 100%; height: clamp(44px, 4.3vw, 63px); min-width: 44px; overflow: hidden; padding: 2px; border: 1px solid #6c83b787; border-radius: 6px; background: #1e304d; color: var(--text); opacity: .69; transition: opacity .2s ease, border-color .2s ease; }
.deck-thumbnails button:is(:hover, [aria-pressed="true"]) { border-color: #c7d9ff; opacity: 1; }
.deck-thumbnails img { height: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 28%; border-radius: 3px; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.landing-actions .action-row { margin-top: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 15px; width: min(100%, 480px); margin: 19px 0 0; padding-top: 13px; border-top: 1px solid #adc7fb3d; }
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 3px; }
.hero-stats dt { color: var(--muted); font-size: .8125rem; }
.hero-stats dd { color: #c6d9ff; margin: 0; font-size: clamp(1.4rem, 2.25vw, 2.12rem); font-weight: 850; line-height: 1.13; font-variant-numeric: tabular-nums; }
.hero-phone { position: relative; display: block; width: clamp(59px, 5vw, 80px); padding: 4px; border: 1px solid #91a6d7; border-radius: 11px; background: #111a30; box-shadow: 0 10px 21px #060e21d1; transform: rotate(-7deg); transition: transform .26s ease; }
.hero-phone:hover { transform: translateY(-5px) rotate(-3deg); }
.hero-phone-screen { display: grid; gap: 4px; background: #273754; border-radius: 8px; padding: 4px; overflow: hidden; }
.hero-phone-speaker { width: 28%; height: 3px; display: block; border-radius: 15px; background: #7184ae; margin-inline: auto; }
.hero-phone-screen img { aspect-ratio: 5 / 4; object-fit: cover; object-position: center 28%; border-radius: 4px; }
.hero-phone-action { color: var(--accent); font-size: .59rem; text-align: center; padding-bottom: 1px; }

.section-block { margin-top: clamp(38px, 6vw, 77px); }
main > .section-block:first-child { margin-top: 19px; }
.collection-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 17px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.section-description { color: var(--muted); line-height: 1.75; margin-top: 7px; }
.text-link { color: var(--accent); font-size: .875rem; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection-head > .text-link { white-space: nowrap; }

.screening { background: linear-gradient(135deg, var(--panel), #1c2947); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 4vw, 42px); }
.screening-top { display: grid; grid-template-columns: 1fr minmax(122px, 25%); align-items: center; gap: clamp(18px, 5vw, 72px); }
.screening-description h2 { margin: 8px 0 11px; font-size: clamp(1.8rem, 4.5vw, 3.6rem); font-weight: 850; line-height: 1.16; }
.screening-description h2 a:hover { color: var(--accent); }
.screening-description .action-row { margin-top: 0; }
.screening-summary { color: var(--muted); line-height: 1.8; max-width: 46ch; margin-block: 13px 18px; }
.screening-top .screening-cover { width: min(100%, 200px); justify-self: center; border-radius: 12px; aspect-ratio: 3 / 4; }
.screening-bottom { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.screening-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.screening-thumb { min-width: 0; text-align: left; display: flex; align-items: stretch; gap: 9px; border: 1px solid var(--line); padding: 0; overflow: hidden; background: var(--bg); border-radius: 9px; min-height: 72px; }
.screening-thumb:hover { border-color: var(--accent); }
.screening-thumb img { width: 52px; object-fit: cover; }
.screening-thumb > span { min-width: 0; padding: 8px 5px 8px 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow-wrap: anywhere; }
.screening-thumb strong { font-size: .875rem; }
.screening-thumb small { color: var(--muted); font-size: .8125rem; }
.screening-controls { display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: 17px; color: var(--muted); font-size: .875rem; }

.library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.library-stats > div { display: grid; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; }
.library-stats strong { color: var(--text); line-height: 1.2; font-size: 1.6rem; }
.library-stats span { color: var(--muted); font-size: .875rem; }
.filters { padding: clamp(12px, 2.1vw, 20px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.filter-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, .27fr) minmax(115px, .27fr); gap: 12px; }
.filter-fields label, .query-field { display: grid; align-content: start; gap: 6px; font-size: .875rem; color: var(--muted); }
.filter-fields input, .filter-fields select { width: 100%; min-width: 0; min-height: 44px; padding-inline: 11px; border: 1px solid var(--line); background: var(--bg); border-radius: 7px; color: var(--text); }
.filter-fields select { appearance: none; padding-right: 27px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-repeat: no-repeat; }
.filter-fields .query-field > span { display: flex; align-items: stretch; gap: 8px; }
.filter-fields .query-field button { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.chip, .tag { display: inline-flex; align-items: center; padding-inline: 11px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); font-size: .875rem; color: var(--muted); }
.chip:hover, .tag:hover { color: var(--text); background: var(--raised); }
.chip[aria-current], .pagination [aria-current], .episode-grid [aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 750; }
.result-count { font-size: .875rem; color: var(--muted); margin-bottom: 13px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .875rem; color: var(--muted); }
.meta > span + span::before { content: "·"; margin-right: 7px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.film-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.poster { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--raised); }
.poster img { height: 100%; object-fit: cover; object-position: 50% 36%; transition: transform .3s ease; }
.poster:hover img { transform: scale(1.04); }
.poster:focus-visible { outline-offset: -4px; }
.poster-badge { position: absolute; inset: auto 9px 9px auto; color: #fff; font-size: .8125rem; background: #101b33e6; padding: 5px 8px; border: 1px solid #ffffff3b; border-radius: 6px; }
.film-copy { display: flex; flex-direction: column; flex: 1; padding: clamp(10px, 1.6vw, 16px); }
.card-title { font-size: 1.085rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.card-title a:hover { color: var(--accent); }
.card-meta { margin-top: 6px; font-size: .8125rem; gap: 4px; }
.card-meta > span + span::before { margin-right: 4px; }
.card-summary { color: var(--muted); font-size: .875rem; line-height: 1.65; margin: 8px 0 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.card-actions .button { padding-inline: 10px; }
.compact-cards .poster { aspect-ratio: 6 / 7; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 20px; }
.empty { text-align: center; padding: clamp(30px, 6vw, 72px) 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty p { color: var(--muted); line-height: 1.75; margin: 9px 0 17px; }

.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.moods-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.mood-card { display: flex; align-items: center; gap: clamp(10px, 2vw, 23px); padding: clamp(13px, 2vw, 26px); min-height: 104px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(125deg, #293953, var(--panel) 73%); }
.widget-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border: 1px solid #596b96; border-radius: 11px; background: #273954; color: var(--accent); font-size: 1.3rem; }
.mood-card:hover { border-color: var(--accent); }
.mood-card strong { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.mood-card p, .feature-card p { color: var(--muted); font-size: .875rem; line-height: 1.65; margin-top: 5px; }
.feature-card { display: grid; align-content: start; justify-items: start; padding: clamp(14px, 2.1vw, 28px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card:hover { border-color: var(--accent); }
.feature-card h3 { margin-top: 12px; font-size: 1.1rem; }
.popular-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.popular-card { display: block; border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius); background: var(--panel); position: relative; height: 100%; }
.popular-card:hover { border-color: var(--accent); }
.popular-card img { aspect-ratio: 5 / 6; object-fit: cover; object-position: center 34%; }
.popular-card > div { padding: 12px; display: grid; gap: 5px; }
.popular-card strong { font-size: 1rem; }
.popular-number { position: absolute; top: 10px; left: 10px; min-width: 34px; padding: 5px 8px; border-radius: 6px; text-align: center; color: var(--accent-ink); background: var(--accent); font-weight: 850; }
.topic-card { display: grid; grid-template-columns: minmax(58px, 27%) minmax(0, 1fr); overflow: hidden; min-height: 130px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-card:hover { border-color: var(--accent); }
.topic-card img { height: 100%; object-fit: cover; }
.topic-copy { display: flex; justify-content: center; flex-direction: column; gap: 5px; padding: 10px 13px; }
.topic-label { color: var(--accent); font-size: .8125rem; }
.topic-copy > span:last-child { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.ranking-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rank-item { display: grid; grid-template-columns: 35px 54px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 10px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.rank-item:hover { border-color: var(--accent); }
.rank-item img { width: 54px; height: 67px; object-fit: cover; border-radius: 5px; }
.rank-number { color: var(--accent); font-size: 1.2rem; font-weight: 800; }
.rank-copy { display: grid; gap: 4px; min-width: 0; }
.rank-summary { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-action { white-space: nowrap; }

.portable-panel { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(20px, 5vw, 76px); background: linear-gradient(121deg, #dbe8ff, #abbce7 69%, #899fcf); color: #1b2d4b; border: 1px solid #849cca; border-radius: 19px; padding: clamp(20px, 4vw, 56px); }
.portable-copy .eyebrow { color: #455679; }
.portable-copy h2 { margin-block: 8px 11px; font-size: clamp(1.9rem, 4vw, 3.9rem); line-height: 1.15; }
.portable-copy > p:last-of-type { line-height: 1.65; }
.device-options { display: grid; gap: 8px; margin-top: 18px; }
.device-option { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 12px; border: 1px solid #344b7755; border-radius: 9px; background: #f5f8ff; color: #243555; text-align: left; }
.device-option[aria-pressed="true"] { border-color: #47639c; background: #e6eeff; box-shadow: inset 4px 0 #7187bf; }
.device-option small { display: block; margin-top: 2px; font-size: .8125rem; color: #516381; }
.device-option .widget-icon { width: 34px; height: 34px; }
.device-preview { display: grid; justify-items: center; min-width: 0; gap: 15px; }
.phone-gallery { width: min(100%, 510px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(6px, 1vw, 13px); }
.preview-phone { min-width: 0; padding: 5px; border: 1px solid #61749f; border-radius: clamp(9px, 1.45vw, 19px); background: #142137; color: #f4f7ff; box-shadow: 0 13px 27px #26375855; transition: transform .22s ease; }
.preview-phone:nth-child(2) { margin-top: 11px; }
.preview-phone:hover { transform: translateY(-4px); }
.preview-phone-screen { display: grid; align-content: start; aspect-ratio: 5 / 8; gap: 5px; padding: 6px; overflow: hidden; border-radius: 11px; background: #263b5b; }
.mock-head, .mock-name { font-weight: 750; font-size: clamp(.58rem, 1vw, .78rem); line-height: 1.25; overflow-wrap: anywhere; }
.mock-caption { display: block; padding: 5px 0 1px; text-align: center; font-weight: 750; font-size: .8125rem; }
.mock-feature { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; }
.mock-feature img, .mock-episode-cover img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 30%; }
.mock-feature strong { position: absolute; inset: auto 0 0; padding: 5px 4px; background: #111b34d6; font-size: clamp(.55rem, .85vw, .73rem); }
.mock-search { padding: 3px 4px; border-radius: 3px; background: #192a45; font-size: .55rem; color: #dde8ff; }
.mock-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.mock-grid img { min-width: 0; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.mock-episode-cover { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 5px; }
.mock-runs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.mock-runs span { display: grid; place-items: center; padding-block: 2px; color: #c2d7ff; background: #162947; border-radius: 3px; font-size: .55rem; }
.device-link { background: #213a67 !important; border-color: #213a67 !important; color: #f2f7ff !important; }
.faq { display: grid; grid-template-columns: .65fr 1fr; gap: var(--gap); }
.faq-intro { border: 1px solid var(--line); border-radius: 15px; padding: clamp(20px, 3vw, 42px); background: linear-gradient(155deg, #233455, var(--panel) 75%); }
.faq h2 { font-size: clamp(1.8rem, 3.6vw, 3.35rem); line-height: 1.17; }
.faq h2 em { color: var(--accent); font-style: normal; }
.faq-intro p { margin-top: 12px; }
.faq p { color: var(--muted); line-height: 1.7; }
.faq-items { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.faq details[open] { border-color: #7990c1; }
.faq summary { display: flex; list-style: none; min-height: 52px; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq-items p { padding: 0 14px 13px; }
.editorial-block { padding: clamp(15px, 2.8vw, 38px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(140deg, #1a2a45, var(--bg) 76%); }
.editorial-heading { display: grid; gap: 8px; margin-bottom: 18px; }
.editorial-heading h2 { font-family: "Noto Serif SC", "STSong", "SimSun", serif; font-size: clamp(1.65rem, 3.15vw, 2.9rem); line-height: 1.23; }
.editorial-heading > p:last-child { color: var(--muted); line-height: 1.65; }
.editorial-grid, .overview-grid, .clients-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.editorial-grid > *, .overview-grid > *, .client-qr, .talk-list article { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: clamp(12px, 1.8vw, 24px); }
.editorial-grid h3, .overview-grid h3, .client-qr h3 { font-size: clamp(1rem, 1.6vw, 1.28rem); color: var(--accent); }
.editorial-grid p, .client-qr p, .talk-row p { color: var(--muted); line-height: 1.75; margin-top: 7px; }
.overview-grid, .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-grid ul { margin: 9px 0 0; padding: 0; list-style: none; }
.overview-grid li { padding: 9px 0; line-height: 1.55; color: var(--muted); }
.overview-grid li + li { border-top: 1px solid var(--line); }
.overview-facts { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-bottom: 13px; padding: 9px 12px; border-inline-start: 2px solid #e3a6a1; color: var(--muted); background: #a9bdff0c; }
.overview-facts strong { color: var(--text); }
.step-label { display: block; margin-bottom: 6px; color: #edbdb4; font-size: .875rem; font-weight: 700; }
.tutorial-grid .text-link { margin-top: 3px; }
.client-links, .talk-list { display: grid; gap: 8px; }
.client-links a { display: flex; align-items: center; gap: 11px; min-height: 61px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.client-links a:hover { border-color: var(--accent); }
.client-links .widget-icon { font-size: .875rem; }
.client-links small { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; }
.client-qr { display: grid; grid-template-columns: minmax(70px, 132px) minmax(0, 1fr); gap: 15px; align-content: center; align-items: center; }
.client-qr img { aspect-ratio: 1; max-width: 132px; border-radius: 7px; background: #fff; }
.talk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.talk-row + .talk-row { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.talk-row h3 { font-size: 1.08rem; line-height: 1.55; }
.talk-row p { margin-top: 0; }
.talk-mark { display: grid; place-items: center; width: 30px; height: 28px; color: var(--accent); border: 1px solid var(--line); border-radius: 6px; font-weight: 750; }
.talk-row:first-child .talk-mark { color: #efbeb6; }
.talk-actions { margin-top: 7px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .8125rem; }
.talk-actions .button { min-height: 44px; }

.hot-showcase { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); }
.hot-lead, .hot-row { border: 1px solid var(--line); background: var(--panel); border-radius: 13px; overflow: hidden; }
.hot-lead { display: grid; grid-template-columns: minmax(105px, 31%) minmax(0, 1fr); background: linear-gradient(128deg, #223557, var(--panel) 70%); }
.hot-cover, .hot-row img { min-height: 0; }
.hot-cover img, .hot-row img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hot-lead-copy { align-self: center; min-width: 0; padding: clamp(13px, 2.5vw, 34px); }
.hot-lead h3 { margin-block: 7px 5px; font-size: clamp(1.5rem, 3vw, 2.8rem); }
.hot-lead h3 a:hover { color: var(--accent); }
.hot-summary { color: var(--muted); margin-top: 11px; line-height: 1.75; }
.hot-lead .action-row { margin-top: 14px; }
.hot-list { display: grid; grid-auto-rows: 1fr; gap: 9px; }
.hot-row { display: grid; grid-template-columns: 63px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-right: 15px; min-height: 82px; }
.hot-row:hover, .hot-lead:focus-within { border-color: var(--accent); }
.hot-row strong, .hot-row small { display: block; overflow-wrap: anywhere; }
.hot-row small { color: var(--muted); margin-top: 4px; }
.hot-row-action { color: var(--accent); font-size: .8125rem; }
#latest .cards { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(7px, 1vw, 14px); }
#latest .film-copy { padding-inline: 9px; }
#latest .card-title { font-size: clamp(.83rem, 1.12vw, 1rem); }
@media (max-width: 1040px) {
  #latest .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hot-showcase { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  #latest .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-row { grid-template-columns: 55px minmax(0, 1fr); }
  .hot-row-action { display: none; }
  .hot-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}

body[data-theme="paper"] { color-scheme: light; --bg: #eef3fb; --header: #f9fbff; --panel: #fff; --raised: #e9eff9; --text: #1a2944; --muted: #4d6080; --line: #c6d2e6; --accent: #355998; --accent-ink: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .875rem; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.detail-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: clamp(18px, 4vw, 39px); }
.detail-poster { width: clamp(92px, 15vw, 170px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--bg); }
.detail-copy h1, .watch-title { font-size: clamp(1.8rem, 4.4vw, 3.4rem); font-weight: 850; overflow-wrap: anywhere; }
.detail-copy h1 { margin-top: 14px; }
.detail-year { font-size: .7em; color: var(--muted); white-space: nowrap; }
.synopsis { margin-block: 22px 26px; }
.synopsis > p { max-width: 62ch; line-height: 1.9; margin-top: 13px; text-wrap: pretty; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag { color: var(--accent); background: var(--panel); }
.episodes { margin-top: 18px; }
.episodes .result-count { margin-bottom: 0; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(73px, 1fr)); gap: 8px; padding: 0; list-style: none; margin: 0; }
.episode-grid .button { width: 100%; padding: 0 4px; }
.watch-title { margin-bottom: 16px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); gap: var(--gap); align-items: start; }
.player-content { overflow: hidden; border-radius: var(--radius); background: #111b30; border: 1px solid var(--line); }
.player { width: 100%; display: block; aspect-ratio: 16 / 9; background: #111b30; }
.player-shell { display: grid; place-items: center; background: #111b30; }
.player-shell[data-format="portrait"] .player { aspect-ratio: 9 / 16; width: min(100%, 56.25svh, 420px); object-fit: contain; }
.playback-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px 12px; background: var(--panel); border-top: 1px solid var(--line); }
.playback-tools output { color: var(--muted); font-size: .875rem; margin-inline-end: auto; }
.playback-tools select { min-height: 44px; padding-inline: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--raised); }
.playback-tools [hidden] { display: none; }
.playback-format { display: flex; gap: 6px; }
.playback-format .button[aria-pressed="true"] { border-color: var(--accent); }
.watch-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: var(--panel); border-top: 1px solid var(--line); }
.player-empty { aspect-ratio: 16 / 9; display: grid; align-content: center; justify-items: center; text-align: center; color: #fff; padding: 20px; gap: 8px; }
.player-empty p { color: #bfcee7; line-height: 1.65; }
.player-note { padding: 12px 14px; font-size: .875rem; color: var(--muted); background: var(--panel); }
.player-note:empty { display: none; }
.watch-layout .episodes { margin-top: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.watch-layout .section-title { font-size: 1.25rem; }

.preview-dialog { color: var(--text); background: var(--panel); position: fixed; padding: 20px; width: min(570px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 13px; }
.preview-dialog::backdrop { background: #080f20cc; }
.dialog-layout { display: grid; grid-template-columns: minmax(76px, 31%) minmax(0, 1fr); gap: 15px; align-items: start; }
.dialog-layout > img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.dialog-layout h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); margin-bottom: 8px; }
.dialog-close { display: flex; justify-content: end; margin-bottom: 11px; }
.dialog-summary { line-height: 1.7; margin-block: 10px 15px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: var(--header); }
.footer-row { display: grid; grid-template-columns: .85fr 1fr 1.45fr; gap: 22px; align-items: start; padding-block: 27px; }
.footer-row .brand { font-size: .9rem; }
.footer-row .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand p { margin-top: 9px; font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.footer-links h2 { font-size: .95rem; }
.footer-links > div { display: flex; flex-wrap: wrap; column-gap: 16px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.map-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.map-directory section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.map-directory ul { list-style: none; padding: 0; margin: 8px 0 0; }
.map-directory a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.map-directory a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 960px) {
  :root { --sticky-offset: 118px; }
  .header-row { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 8px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; scrollbar-width: thin; }
  .header-categories { grid-column: 2; grid-row: 1; }
}
@media (max-width: 820px) {
  .landing-hero { grid-template-columns: 1fr; gap: 9px; }
  .landing-hero::before { background: linear-gradient(180deg, #0e1728ed, #101b3088 62%, #0e1728a8); }
  .landing-copy { padding-block: 16px 7px; }
  .hero-gallery { margin-block: 6px 10px; }
  .cover-stack { width: 100%; }
}
@media (max-width: 690px) {
  .landing-copy h1 { font-size: clamp(2.6rem, 10vw, 3.75rem); }
  .landing-actions { gap: 10px 12px; margin-top: 16px; }
  .intro { margin-top: 14px; }
  .stack-poster { border-radius: 11px; }
  .screening-thumbs, .cards, .topics-grid, .moods-grid, .feature-grid, .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-fields { grid-template-columns: 1fr 1fr; }
  .filter-fields .query-field { grid-column: 1 / -1; }
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
  .portable-panel { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .editorial-grid, .overview-grid, .clients-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .875rem; }
  .collection-head { align-items: start; flex-wrap: wrap; }
  .screening-top { grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; }
  .screening-summary { font-size: .875rem; }
  .screening-thumb img { width: 40px; }
  .topics-grid { grid-template-columns: 1fr; }
  .mood-card { align-items: flex-start; flex-direction: column; }
  .stack-poster:is([data-slot="1"], [data-slot="2"]) { visibility: hidden; opacity: 0; }
  .hero-stats { gap: 9px; }
  .stage-float { padding: 5px 7px 5px 5px; gap: 5px; border-radius: 8px; }
  .stage-float-latest { left: 2%; top: 3%; }
  .stage-float-player { right: 2%; bottom: 54px; }
  .stage-float-mark { flex-basis: 21px; width: 21px; height: 22px; border-radius: 5px; font-size: .73rem; }
  .stage-float strong { font-size: .70rem; }
  .stage-float small { font-size: .62rem; }
  .rank-item { grid-template-columns: 25px 44px minmax(0, 1fr); gap: 8px; padding-inline: 9px; }
  .rank-item img { width: 44px; height: 59px; }
  .rank-action { display: none; }
  .detail-card { gap: 12px; }
  .footer-row, .map-directory { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.landing-copy h1.hero-title-site {
  max-width: 16em;
  font-size: clamp(2rem, 3.35vw, 3.65rem);
  line-height: 1.23;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
@media (max-width: 690px) {
  .landing-copy h1.hero-title-site { font-size: clamp(1.8rem, 6.1vw, 2.65rem); }
}

.footer-friends {
  grid-column: 1 / -1;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.footer-friends span {
  color: var(--muted);
  font-size: .875rem;
}
