:root {
  color-scheme: dark;
  --blue: #3282B0;
  --steel: #28313E;
  --black: #0B0C0E;
  --bg: #121417;
  --panel: #1A1D23;
  --text: #EDEFF2;
  --muted: #949BA6;
  --amber: #E68A2E;
  --line: #343b45;
  --link: #8ec8e8;
  --radius: 3px;
  --gap: 14px;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; height: auto; color: var(--muted); }
a { color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--blue); color: white; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.25; letter-spacing: -.035em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.4; }
h3 { font-size: 1.05rem; line-height: 1.45; }
p { margin-block: .65em; }
.wrap { width: min(100% - 48px, 1440px); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 12px; transform: translateY(-150%); background: var(--amber); color: var(--black); padding: 10px 20px; z-index: 20; }
.skip:focus { transform: translateY(8px); }
.top { background: var(--black); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 40px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 12px; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.top nav a { color: var(--muted); padding: 20px 0; border-bottom: 2px solid transparent; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); border-color: var(--blue); text-decoration: none; }
.intro { padding: 32px 0 20px; }
.intro > p { max-width: 75ch; color: var(--muted); }
.eyebrow { display: block; color: var(--link); font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.filters { display: grid; grid-template-columns: minmax(190px, 2fr) repeat(5,minmax(0,1fr)) auto; align-items: end; gap: 12px; margin-top: 22px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filters > div { min-width: 0; }
.filters label, .source-bar label { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 6px; }
.filters input, .filters select, .source-bar select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #47505d; border-radius: var(--radius); background: var(--black); color: var(--text); padding: 8px 10px; }
.filters input::placeholder { color: #a0a6b0; }
.filters input:hover, .filters select:hover, .source-bar select:hover { border-color: var(--link); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: var(--radius); background: #26688e; color: white; font-weight: 700; text-align: center; }
.button:hover { background: #205675; text-decoration: none; }
.button.amber { background: var(--amber); color: var(--black); }
.button.amber:hover { background: #f5aa60; }
.spotlight { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(240px,1fr); gap: var(--gap); }
.focus { position: relative; display: grid; align-items: end; min-height: 330px; overflow: hidden; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); isolation: isolate; }
.focus > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.focus::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(11,12,14,.96),rgba(11,12,14,.62) 55%,rgba(11,12,14,.16)),linear-gradient(0deg,rgba(11,12,14,.9),transparent 70%); z-index: -1; }
.focus-copy { padding: clamp(20px,4vw,48px); max-width: 630px; }
.focus-copy h2 { font-size: clamp(2rem,4vw,3.6rem); }
.focus-copy p { margin: 12px 0 22px; }
.quick { border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.quick h2 { margin-bottom: 8px; }
.quick > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.quick > a:last-child { border-bottom: 0; }
.quick small { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.metadata { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.block { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-heading > a { font-size: .85rem; flex-shrink: 0; }
.grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: var(--gap); align-items: stretch; }
.block > h2 + .grid, .block > h2 + .reviews { margin-top: 18px; }
.film-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.film-card:hover { border-color: var(--blue); }
.poster { display: block; position: relative; aspect-ratio: 2/3; background: var(--steel); overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 7px; font-size: .72rem; background: rgba(11,12,14,.91); border: 1px solid #778291; color: var(--text); border-radius: 2px; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 12px; }
.card-body h3 a { color: var(--text); }
.card-body p:not(.metadata) { font-size: .85rem; color: #c5cad2; }
.card-body .metadata { margin-block: 5px; }
.text-link { margin-top: auto; padding-top: 8px; font-size: .82rem; }
.short-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.short-grid .poster { aspect-ratio: 16/9; }
.collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap); }
.collection { background: var(--panel); padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--amber); }
.collection h3 { color: #f0c28f; }
.collection p { color: #c5cad2; }
.collection ul { list-style: none; padding: 0; margin: 18px 0 0; }
.collection li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 10px 0; }
.collection li span { color: var(--muted); font-size: .8rem; }
.reviews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.reviews article { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.reviews p { line-height: 1.9; }
.footer { margin-top: 58px; padding: 32px 0; background: var(--black); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer p { color: var(--muted); font-size: .85rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.crumb { padding-top: 20px; color: var(--muted); font-size: .85rem; }
.detail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 28px 0 18px; }
.detail-head p { color: var(--muted); }
.player { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); }
.screen { display: grid; place-items: center; aspect-ratio: 16/9; max-height: 680px; }
.screen video { display: block; width: 100%; height: 100%; max-height: 680px; object-fit: contain; }
.unavailable { text-align: center; color: var(--muted); padding: 20px; }
.unavailable > span { color: var(--blue); font-size: 2.8rem; }
.unavailable h2 { color: var(--text); }
.source-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.source-bar select { width: min(100%, 300px); }
.source-bar label { margin: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0,1fr); gap: 32px; margin-top: 30px; }
.facts { background: var(--panel); border: 1px solid var(--line); padding: 18px; align-self: start; }
.facts > img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--steel); margin-bottom: 16px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .88rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.essay { background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 4vw, 48px); }
.essay p { max-width: 74ch; line-height: 2; margin: 14px 0 24px; }
.essay h3 { color: #d1e3ef; margin-top: 28px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 26px 0; }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: var(--panel); border: 1px solid var(--line); }
.pagination a[aria-current="page"] { background: #26688e; color: white; }
.empty { padding: 48px 24px; margin: 30px 0; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.empty p { margin: 16px 0 24px; }
@media (max-width: 1200px) {
  .filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filters .search-field { grid-column: span 2; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .short-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; }
  .top nav { gap: 0 18px; }
  .top nav a { padding: 10px 0; font-size: .9rem; }
  .spotlight { grid-template-columns: 1fr; }
  .quick { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .quick h2 { grid-column: 1/-1; }
  .quick > a:last-child { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .short-grid, .collection-grid, .reviews { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout { gap: 18px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .intro { padding-top: 24px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 10px; }
  .filters .button { grid-column: 1/-1; }
  .focus { min-height: 300px; }
  .quick { display: block; padding: 14px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .short-grid, .collection-grid, .reviews { grid-template-columns: 1fr; }
  .block { margin-top: 30px; padding-top: 18px; }
  .section-heading { gap: 8px; }
  .section-heading > a { flex-shrink: 1; text-align: right; }
  .detail-head { display: block; }
  .detail-layout { grid-template-columns: 1fr; }
  .facts { display: grid; grid-template-columns: minmax(0,100px) minmax(0,1fr); gap: 12px; }
  .facts > img { grid-row: span 2; margin: 0; }
  .facts dl { margin: 0; }
  .screen { min-height: 200px; }
  .source-bar { padding: 12px; gap: 8px; }
  .footer { margin-top: 36px; }
  .footer-inner { display: grid; gap: 12px; }
}
@media (max-width: 340px) {
  .filters { grid-template-columns: 1fr; }
  .filters .search-field { grid-column: auto; }
  .grid { grid-template-columns: 1fr; }
  .facts { display: block; }
  .facts > img { max-width: 120px; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --text: #111; --muted: #444; --bg: white; --panel: white; --line: #bbb; --link: #111; }
  .top, .footer, .filters, .player, .pagination, .skip, .button { display: none; }
  .wrap { width: 100%; }
  .essay, .facts, .film-card, .collection { break-inside: avoid; }
}
