:root {
  --bg: #fafafc;
  --surface: #ffffff;
  --surface-soft: #f2f1f6;
  --text: #2b2933;
  --heading: #24212e;
  --muted: #777481;
  --brand: #7468b5;
  --brand-soft: #eeecf8;
  --accent: #e9a34a;
  --line: #e8e6ee;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 18px 45px rgba(36, 33, 46, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.72; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(116, 104, 181, 0.38); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--heading); color: white; padding: 10px 14px; border-radius: 8px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(232,230,238,.9); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; letter-spacing: .03em; }
.brand img { width: 116px; height: 38px; object-fit: contain; }
.brand span { display: none; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; color: #5d5968; font-size: 15px; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-soft); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 19px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-home { padding: 56px 0 28px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-home__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; }
.hero-home__copy { padding: 18px 0; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--heading); line-height: 1.24; margin: 0; }
h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -.04em; }
h2 { font-size: clamp(27px, 3.4vw, 42px); letter-spacing: -.025em; }
h3 { font-size: 20px; }
p { margin: 0; }
.lead { margin-top: 22px; color: #5d5968; font-size: 18px; line-height: 1.85; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--brand); border-radius: 999px; color: white; background: var(--brand); font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(116,104,181,.2); }
.button--accent { background: var(--accent); border-color: var(--accent); color: #2f261b; }
.button--ghost { background: white; color: var(--brand); border-color: var(--line); }
.hero-chips { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chips span { padding: 7px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.hero-home__visual { position: relative; }
.hero-home__visual > img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.visual-note { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.visual-note strong { color: var(--heading); }
.visual-note span { color: var(--muted); font-size: 14px; text-align: right; }

.section { padding: 76px 0; }
.section--tight { padding-top: 52px; }
.section--soft { background: var(--surface-soft); }
.section-head { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 750; }
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform .2s ease; }
.text-link--top { padding-bottom: 5px; }

.media-grid { display: grid; gap: 24px; }
.media-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid--library { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ddd8ef; }
.media-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.5; background: #eceaf2; }
.media-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .media-card__image img { transform: scale(1.025); }
.media-card__badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--heading); font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.media-card__body { padding: 20px; }
.media-card__meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.media-card h3 a:hover { color: var(--brand); }
.media-card p { margin: 10px 0 15px; color: var(--muted); font-size: 14px; }
.media-card--compact .media-card__body { padding: 16px 17px 18px; }
.media-card--compact .media-card__image { aspect-ratio: 1.7; }
.media-card--compact h3 { font-size: 18px; }
.media-card--compact p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.split-feature { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; }
.split-feature__image img { width: 100%; aspect-ratio: 1.38; object-fit: cover; border-radius: var(--radius-lg); }
.split-feature__copy > p { margin-top: 18px; color: var(--muted); }
.check-list { margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 900; }

.genre-layout { display: grid; grid-template-columns: .74fr 1.26fr; gap: 46px; }
.genre-layout__intro p { margin-top: 16px; color: var(--muted); }
.genre-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.genre-list a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.85); }
.genre-list a:hover { background: white; box-shadow: 0 10px 24px rgba(36,33,46,.06); }
.genre-list strong { color: var(--heading); }
.genre-list span { color: var(--muted); font-size: 13px; }

.official-callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 36px; border-radius: var(--radius-md); background: white; border: 1px solid var(--line); }
.official-callout p { margin-top: 10px; max-width: 760px; color: var(--muted); }
.official-callout--inside { margin: 58px 0 0; }

.page-shell { padding: 30px 0 76px; }
.breadcrumb { margin-bottom: 34px; overflow-x: auto; }
.breadcrumb ol { margin: 0; padding: 0; display: flex; align-items: center; gap: 9px; list-style: none; white-space: nowrap; color: var(--muted); font-size: 13px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 9px; color: #bbb6c4; }
.breadcrumb a:hover { color: var(--brand); }
.page-intro { max-width: 780px; padding: 34px 0 40px; }
.page-intro--wide { max-width: 900px; }
.page-intro h1 { font-size: clamp(34px, 5vw, 56px); }
.page-intro p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; padding: 10px; background: var(--surface-soft); border-radius: 16px; }
.filter-bar a { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-bar a[aria-current="page"], .filter-bar a:hover { background: white; color: var(--brand); box-shadow: 0 4px 12px rgba(36,33,46,.05); }

.cinema-hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; align-items: center; padding: 26px 0 62px; }
.cinema-hero h1 { font-size: clamp(36px, 4.8vw, 58px); }
.cinema-hero p { margin-top: 20px; color: var(--muted); font-size: 17px; }
.cinema-hero img { width: 100%; aspect-ratio: 1.42; object-fit: cover; border-radius: var(--radius-lg); }
.content-band { padding: 56px 0; border-top: 1px solid var(--line); }
.count-tag { padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; }

.official-panel { display: grid; gap: 32px; }
.official-panel__main { display: grid; grid-template-columns: 1.02fr .98fr; gap: 42px; align-items: center; padding: 34px; border-radius: var(--radius-lg); background: var(--surface-soft); }
.official-panel__main img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 22px; }
.official-panel__main p { margin: 14px 0 16px; color: var(--muted); }
.domain-pill { display: inline-flex; padding: 7px 11px; margin-bottom: 12px; border-radius: 999px; background: white; color: var(--brand); font-size: 12px; font-weight: 800; }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact-grid article { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.fact-grid h3 { font-size: 17px; }
.fact-grid p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.section-inset { padding: 58px 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq-list summary { padding: 17px 0; cursor: pointer; color: var(--heading); font-weight: 750; }
.faq-list p { padding: 0 0 18px; color: var(--muted); }

.watch-page { display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; align-items: center; padding: 20px 0 54px; }
.watch-page__cover img { width: 100%; aspect-ratio: 1.18; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.watch-page__info h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 62px); }
.watch-kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-kicker span { padding: 7px 11px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.meta-table { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 26px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.meta-table div { padding: 13px 15px; background: white; }
.meta-table dt { color: var(--muted); font-size: 12px; }
.meta-table dd { margin: 3px 0 0; color: var(--heading); font-weight: 700; }
.watch-detail { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; padding: 46px 0; border-top: 1px solid var(--line); }
.watch-detail p { margin-top: 14px; color: var(--muted); }
.watch-detail aside { padding: 24px; border-radius: 18px; background: var(--surface-soft); }
.watch-detail aside h2 { font-size: 20px; }
.watch-detail aside ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.highlight-grid article { min-height: 150px; padding: 24px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.highlight-grid span { color: var(--accent); font-weight: 900; }
.highlight-grid p { margin-top: 18px; color: var(--heading); font-weight: 650; }

.empty-state { max-width: 720px; margin: 56px auto; padding: 50px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state p { margin: 16px 0 24px; color: var(--muted); }

.site-footer { margin-top: 30px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { padding: 56px 0 34px; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 44px; }
.footer-brand { color: var(--heading); font-size: 22px; font-weight: 850; }
.footer-grid p { margin-top: 12px; max-width: 480px; color: var(--muted); }
.footer-grid h2 { margin-bottom: 12px; font-size: 14px; letter-spacing: .08em; }
.footer-grid a, .footer-grid span { display: block; margin: 7px 0; color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { padding: 20px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .hero-home__grid, .split-feature, .cinema-hero, .official-panel__main, .watch-page { grid-template-columns: 1fr; }
  .hero-home__copy { max-width: 760px; }
  .hero-home__visual { order: -1; }
  .hero-home__visual > img { aspect-ratio: 1.65; }
  .media-grid--featured, .media-grid--dense, .media-grid--library { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .genre-layout { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .watch-page__cover img { aspect-ratio: 1.6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: 76px; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
  .hero-home { padding-top: 28px; }
  .hero-home__grid { gap: 30px; }
  .hero-home__visual > img { aspect-ratio: 1.25; }
  .visual-note { position: static; margin-top: 10px; flex-direction: column; gap: 2px; background: white; }
  .visual-note span { text-align: left; }
  .section { padding: 58px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .media-grid--featured, .media-grid--dense, .media-grid--library { grid-template-columns: 1fr; }
  .media-card__image, .media-card--compact .media-card__image { aspect-ratio: 1.75; }
  .genre-list { grid-template-columns: 1fr; }
  .official-callout { align-items: flex-start; flex-direction: column; padding: 26px; }
  .page-shell { padding-top: 20px; }
  .page-intro { padding-top: 18px; }
  .cinema-hero { gap: 28px; padding-top: 10px; }
  .fact-grid { grid-template-columns: 1fr; }
  .official-panel__main { padding: 20px; gap: 24px; }
  .watch-page { gap: 28px; }
  .watch-page__cover img { aspect-ratio: 1.25; }
  .meta-table { grid-template-columns: 1fr; }
  .watch-detail { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .media-card__image, .media-card--compact .media-card__image { aspect-ratio: 1.42; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; }
  .filter-bar a { white-space: nowrap; }
  .empty-state { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Extended layout refinements */
@supports (text-wrap: balance) {
  h1, h2, h3 { text-wrap: balance; }
}

.media-card__body > .text-link { font-size: 13px; }
.media-card__body > .text-link::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .25; }
.page-intro + .filter-bar { position: sticky; top: 86px; z-index: 20; }
.content-band:last-child { padding-bottom: 12px; }
.official-panel__main strong { color: var(--heading); }
.faq-list details[open] { border-color: #dcd7ee; box-shadow: 0 10px 30px rgba(36,33,46,.04); }
.faq-list summary::marker { color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .genre-list a, .media-card, .button, .site-nav a { will-change: transform; }
}

@media (max-width: 760px) {
  .page-intro + .filter-bar { top: 76px; }
  .content-band { padding: 44px 0; }
  .official-panel { gap: 22px; }
  .section-inset { padding: 44px 0; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .filter-bar, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .media-card, .official-panel__main, .fact-grid article, .faq-list details { break-inside: avoid; box-shadow: none; }
}

.guide-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.guide-notes article { padding: 24px; min-height: 190px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.guide-notes h2 { font-size: 19px; }
.guide-notes p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.guide-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.guide-groups article { padding: 26px; background: var(--surface-soft); border-radius: 20px; }
.guide-groups h3 { margin-bottom: 14px; }
.guide-groups ul { margin: 0; padding-left: 20px; color: var(--muted); }
.guide-groups li + li { margin-top: 9px; }
@media (max-width: 900px) { .guide-notes, .guide-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .guide-notes, .guide-groups { grid-template-columns: 1fr; } }

.library-helper { margin: -18px 0 26px; color: var(--muted); font-size: 14px; }
.library-helper .text-link { margin-left: 8px; }

.decision-table { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.decision-row { display: grid; grid-template-columns: .55fr .75fr 1.7fr; gap: 0; border-bottom: 1px solid var(--line); }
.decision-row:last-child { border-bottom: 0; }
.decision-row > span { padding: 16px 18px; color: var(--muted); }
.decision-row > span + span { border-left: 1px solid var(--line); }
.decision-row strong { color: var(--heading); }
.genre-reading { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.genre-reading article { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.genre-reading__head { display: grid; gap: 10px; }
.genre-reading__head > span { width: max-content; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.genre-reading__head p, .genre-reading ul, .genre-reading__tip { color: var(--muted); }
.genre-reading ul { margin: 16px 0; padding-left: 20px; }
.genre-reading li + li { margin-top: 7px; }
.genre-reading__tip { margin-bottom: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.watching-habits__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.watching-habits__grid article { padding: 24px; background: var(--surface-soft); border-radius: 18px; }
.watching-habits__grid h3 { font-size: 18px; }
.watching-habits__grid p { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .decision-row { grid-template-columns: 1fr; }
  .decision-row > span + span { border-left: 0; border-top: 1px solid var(--line); }
  .genre-reading, .watching-habits__grid { grid-template-columns: 1fr; }
}
