/* Structure used by the catalogue controls. Themes below supply their own composition. */
:root { --body: #080b16; --panel: #171b27; --ink: #fff; --quiet: #a7adba; --action: #05bbad; --main-width: 1200px; --gutter: 24px; }
body { background:var(--body); color:var(--ink); font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif; }
.page-width { width:min(var(--main-width),calc(100% - var(--gutter)*2)); margin-inline:auto; }
.mast, .mast *, .page-width *, .cinema-theater *, .blink-theater * { box-sizing:border-box; }
.mast { position:relative; z-index:5; background:var(--body); }
.mast-inner { min-height:64px; width:min(var(--main-width),calc(100% - var(--gutter)*2)); margin:auto; display:flex; align-items:center; gap:clamp(14px,2.2vw,32px); }
.mast .wordmark { display:inline-flex; align-items:center; gap:6px; font-size:20px; font-weight:800; white-space:nowrap; }
.wordmark b { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; font:900 23px/1 Arial,sans-serif; }
.mast-links { display:flex; align-items:center; gap:clamp(12px,1.7vw,25px); min-width:0; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.mast-links::-webkit-scrollbar, .catalog-row::-webkit-scrollbar, .still-strip::-webkit-scrollbar {display:none}
.mast-links a { flex:none; font-size:14px; font-weight:600; padding-block:8px; }
.mast-links a:hover,.mast-links a[aria-current] { color:var(--action); }
.mast-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-inline-start:auto; flex:0 1 250px; min-width:115px; }
.mast-search { border-radius:24px; background:var(--panel); min-width:0; width:100%; display:flex; align-items:center; padding-inline:12px 5px; }
.mast-search input { width:0; flex:1; min-width:0; height:36px; color:var(--ink); border:0; background:transparent; outline-offset:0; }
.mast-search button,.mast-lang { width:32px; height:36px; padding:6px; color:var(--ink); background:transparent; border:0; display:grid; place-items:center; cursor:pointer; }
.mast-lang { position:relative; flex:none; overflow:hidden; }
.mast-tools svg { width:20px; height:20px; }
.mast-lang select { position:absolute; inset:0; opacity:0; width:100%; min-width:0; max-width:100%; height:100%; padding:0; border:0; -webkit-appearance:none; appearance:none; cursor:pointer; }
.mast-lang:focus-within { outline:2px solid var(--action); }
.page-width h1,.page-width h2,.page-width h3,.cinema-theater h1,.blink-theater h1 { color:var(--ink); line-height:1.2; overflow-wrap:anywhere; }
.series-path { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; color:var(--quiet); padding-block:18px; overflow-wrap:anywhere; }
.series-path a:hover,.sheet-link:hover { color:var(--action); }
.series-tags,.book-selectors,.cinema-controls,.film-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.series-tags a,.tag-line { display:inline-flex; border-radius:24px; padding:3px 10px; font-size:12px; color:var(--action); background:var(--panel); }
.series-cta, .rank-play { display:inline-flex; align-items:center; gap:8px; max-width:100%; background:var(--action); color:white; padding:12px 23px; font-size:16px; line-height:1.3; font-weight:700; border-radius:8px; transition:filter .2s ease,transform .2s ease; }
.series-cta:hover,.rank-play:hover { filter:brightness(1.12); transform:translateY(-2px); }
.series-cover { width:100%; height:auto; display:block; object-fit:cover; }
.series-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:16px; }
.series-heading h2 { margin:0; font-size:24px; line-height:1.25; }
.series-heading>a,.series-heading>span { flex:none; font-size:13px; color:var(--quiet); }
.catalog-row,.still-strip { display:grid; grid-auto-flow:column; gap:14px; grid-auto-columns:calc((100% - 70px)/6); overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:thin; padding-block:1px 6px; }
.catalog-row .card { min-width:0; scroll-snap-align:start; }
.catalog-row .card .poster { display:block; width:100%; aspect-ratio:3/4; border-radius:10px; overflow:hidden; background:var(--panel); }
.catalog-row .card .poster img,.still-strip img { display:block; width:100%; height:100%; object-fit:cover; }
.catalog-row .card .card-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; line-height:1.35; font-size:16px; margin:7px 0 4px; color:var(--ink); }
.catalog-row .card .card-tags { color:var(--quiet); font-size:12px; }
.home-shelf, .series-related,.series-gallery,.episode-list { margin-block:28px; min-width:0; }
.still-strip { grid-auto-columns:clamp(94px,15%,170px); }
.still-strip img { aspect-ratio:3/4; border-radius:8px; }
.episode-range { margin-bottom:8px; }
.episode-range summary,.plot-toggle summary { cursor:pointer; color:var(--quiet); width:fit-content; }
.episode-range summary { font-size:12px; padding:3px 10px; border-radius:6px; background:var(--panel); }
.episode-range[open] summary { color:var(--action); }
.episode-cells { display:grid; grid-template-columns:repeat(auto-fill,minmax(56px,1fr)); gap:6px; margin-block:10px; }
.episode-cells .episode { position:relative; min-width:0; width:100%; height:38px; padding:3px 8px; display:flex; justify-content:center; align-items:center; gap:4px; color:var(--ink); border:0; background:var(--panel); border-radius:5px; font:inherit; font-size:13px; }
.episode-cells .first-cell { color:var(--action); font-weight:bold; }
.episode-cells .episode:hover { box-shadow:inset 0 0 0 1px var(--action); }
.episode-cells .lock-icon { width:11px; height:11px; position:absolute; inset-inline-end:3px; top:2px; color:var(--quiet); }
.page-width .engagement,.cinema-guide .engagement,.blink-panel .engagement { margin-block:12px; }
.page-width .catalogue-date,.cinema-guide .catalogue-date,.blink-panel .catalogue-date { font-size:12px; color:var(--quiet); }
.page-width .engagement-action,.cinema-guide .engagement-action,.blink-panel .engagement-action { padding:4px 8px; color:var(--quiet); font-size:12px; }
.reader-screen .player-wrap,.screen-bay .player-wrap,.blink-screen .player-wrap { min-height:0; }
.player-wrap video { display:block; object-fit:contain; background:black; }
.theater-back { position:absolute; top:24px; inset-inline-start:24px; width:36px; height:36px; display:grid; place-items:center; font:26px/1 Arial; background:#24242bcc; color:#fff; border-radius:50%; z-index:2; }
@media(max-width:850px) {
  .mast-inner { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,180px); gap:0 16px; padding-top:7px; min-height:72px; }
  .mast .mast-links { grid-row:2; grid-column:1/-1; gap:20px; }
  .mast-tools { grid-column:2; grid-row:1; min-width:0; width:100%; }
  .mast-lang,.mast-search button { width:28px; }
  .mast-search input { height:29px; }
  :root { --gutter:16px; }
  .series-heading h2 { font-size:20px; }
  .catalog-row { grid-auto-columns:clamp(132px,32%,175px); gap:12px; }
  .home-shelf,.series-related,.series-gallery,.episode-list { margin-block:22px; }
}
@media(max-width:420px) {
  .mast-inner { grid-template-columns:minmax(0,1fr) minmax(100px,40%); gap:0 8px; }
  .mast-tools { gap:2px; }
}

:root { --body:#111217; --panel:#25262c; --ink:#f5f5f6; --quiet:#a5a5a9; --action:#ff922f; --main-width:1680px; --gutter:4vw; }
.mast { background:linear-gradient(#111218,#101115); }
.mast-inner { min-height:84px; gap:18px; }
.wordmark b { color:#40dea6; background:#222a29; border-radius:50%; }
.mast-links { border-radius:24px; background:#2d2d34; padding:3px 22px; gap:28px; }
body[data-view="home"] .mast { position:absolute; top:0; width:100%; background:linear-gradient(#101116ba,transparent); }
body[data-view="home"] .mast-links,body[data-view="home"] .mast-search { background:#32343a9c; backdrop-filter:blur(12px); }
.cinema-banner { position:relative; }
.cinema-shot { position:relative; height:clamp(350px,33.33vw,600px); display:flex; align-items:flex-end; isolation:isolate; }
.cinema-shot[hidden] { display:none; }
.cinema-backdrop,.cinema-shade { position:absolute; inset:0; z-index:-1; width:100%; height:100%; }
.cinema-backdrop { object-fit:cover; object-position:center 26%; }
.cinema-shade { background:linear-gradient(0deg,var(--body),transparent 48%),linear-gradient(90deg,#0009,transparent 65%); }
.cinema-caption { padding-bottom:24px; }
.cinema-caption h1,.cinema-caption h2 { font-size:clamp(25px,2.2vw,35px); width:min(520px,82%); margin:0 0 16px; }
.series-cta { border-radius:30px; }
.cinema-caption .series-cta { background:#fff; color:#151515; padding:13px 31px; }
.cinema-controls { position:absolute; inset-inline-end:var(--gutter); bottom:18px; }
.cinema-controls button { width:10px; height:24px; background:none; border:0; cursor:pointer; padding:0; }
.cinema-controls button::before { content:""; display:block; height:6px; width:6px; background:#999; border-radius:8px; margin:auto; }
.cinema-controls button[aria-pressed="true"] { width:28px; }
.cinema-controls button[aria-pressed="true"]::before { width:100%; background:white; }
.shelf-wrap { padding-top:14px; }
.catalog-row { grid-auto-columns:calc((100% - 120px)/7); gap:20px; }
.catalog-row .card .poster { aspect-ratio:2/3; border-radius:12px; }
.film-sheet { display:grid; grid-template-columns:195px minmax(0,1fr); gap:20px; align-items:start; }
.film-sheet .series-cover { aspect-ratio:3/4; border-radius:8px; }
.film-description h1 { margin:0 0 12px; font-size:clamp(24px,2.3vw,34px); }
.film-length,.film-plot,.cinema-guide p { color:var(--quiet); font-size:14px; }
.film-actions { justify-content:space-between; gap:16px; }
.film-actions .series-cta { background:linear-gradient(130deg,#ff8126,#ffb567); color:#170c04; }
.cinema-profile .series-tags a,.cinema-guide .series-tags a { background:#28292e; color:#ddd; }
.cinema-profile .episode-cells { grid-template-columns:repeat(12,minmax(0,1fr)); gap:5px; }
.cinema-profile .episode-list { margin-top:40px; }
body[data-view="watch"] .mast { display:none; }
.cinema-theater { display:grid; grid-template-columns:minmax(0,1fr) minmax(325px,30%); gap:12px; background:#101116; }
.screen-bay { position:relative; display:grid; place-items:center; min-width:0; }
.cinema-theater .player-wrap { width:min(100%,55dvh); height:100dvh; padding:0; border-radius:20px; display:block; background:black; }
.cinema-theater video { width:100%; height:100%; max-height:none; border-radius:inherit; }
.cinema-guide { height:calc(100dvh - 24px); min-width:0; overflow:auto; margin:12px 4px 12px 0; padding:22px; border-radius:16px; background:#1b1c22; scrollbar-width:thin; }
.cinema-guide .series-path { padding-top:0; font-size:12px; }
.cinema-guide h1 { margin:15px 0; font-size:22px; }
.cinema-guide .sheet-link { color:var(--quiet); font-size:13px; }
.cinema-guide .episode-cells { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:850px) {
  .mast-inner { min-height:76px; gap:0 16px; }
  .mast .mast-links { border-radius:0; background:transparent; padding:0; }
  body[data-view="home"] .mast { position:relative; background:#0e0f12; }
  body[data-view="home"] .mast-links { background:none; backdrop-filter:none; }
  .cinema-shot { height:clamp(305px,60vw,435px); }
  .cinema-caption { padding-bottom:24px; }
  .cinema-caption h1,.cinema-caption h2 { width:90%; }
  .catalog-row { grid-auto-columns:clamp(125px,31%,170px); gap:10px; }
  .cinema-profile .episode-cells { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .cinema-theater { grid-template-columns:minmax(0,1fr); gap:0; }
  .cinema-theater .player-wrap { height:min(72dvh,640px); width:100%; border-radius:0; }
  .cinema-guide { margin:0; height:auto; padding:18px var(--gutter); border-radius:0; overflow:visible; }
  .theater-back { top:12px; inset-inline-start:12px; }
}
@media(max-width:600px) {
  .film-sheet { grid-template-columns:92px minmax(0,1fr); gap:10px 14px; }
  .film-description { display:contents; }
  .film-sheet .series-cover { grid-row:1/4; }
  .film-description h1,.film-description .series-tags,.film-length { grid-column:2; margin:0; }
  .film-plot,.film-actions { grid-column:1/-1; margin:0; }
  .film-actions { align-items:flex-start; }
  .film-actions .engagement { margin:0; }
  .cinema-controls { bottom:6px; }
}

/* Reuse the catalogue motion vocabulary on the controls that belong to this theme. */
@media (prefers-reduced-motion:no-preference) {
  .home-shelf { animation:driftIn .38s ease both; }
  .series-cta { position:relative; overflow:hidden; isolation:isolate; }
  .series-cta::after { content:""; position:absolute; inset:0 auto 0 -40%; width:32%; background:linear-gradient(90deg,transparent,#fff6,transparent); transform:translateX(-180%) skewX(-20deg); pointer-events:none; }
  .series-cta:is(:hover,:focus-visible)::after { animation:shineSweep .65s ease; }
  .series-heading>a:hover span { display:inline-block; animation:arrowMove .45s ease; }
  .wordmark:hover b { animation:dotBounce .35s ease; }
  .mast-search:focus-within { animation:inputFocus .24s ease forwards; }
  .mast-links a:is(:hover,:focus-visible) { background:linear-gradient(var(--action),var(--action)) left bottom/0 2px no-repeat; animation:underlineSweep .24s ease forwards; }
  .series-tags a:hover,.blink-filters a:hover { animation:tagReveal .2s ease; }
  .book-selectors button:hover { animation:coverTilt .45s ease; }
  .book-slide:not([hidden]) .book-cover,.cinema-shot:not([hidden]) .cinema-caption,.series-cover { animation:posterReveal .38s ease; }
  .cinema-controls button[aria-pressed="true"]::before { animation:softPulse 2s ease 2; }
  .rank-cards article b { animation:numberTick .35s ease; }
}

/* The cinema directory mirrors the seven-cover recommendation row at full size. */
.listing { width:min(1680px,calc(100% - var(--gutter)*2)); padding-top:20px; }
.listing>.eyebrow { display:none; }
.listing>h1 { font-size:clamp(26px,2.8vw,40px); margin:0 0 18px; }
.listing>.chips { gap:8px; margin:0 0 24px; flex-wrap:wrap; }
.listing>.chips a { background:#292a31; border:0; color:#dedee2; padding:6px 14px; border-radius:28px; }
.listing>.chips a.selected { background:#ff953e; color:#17100a; }
.listing>.grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:24px 20px; }
.listing .card .poster { aspect-ratio:2/3; border-radius:13px; }
.listing .card .card-title { font-size:15px; line-height:1.4; }
@media(max-width:1000px) { .listing>.grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px 12px; } }
@media(max-width:680px) { .listing>.grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 9px; } .listing .card .card-title { font-size:13px; } }
