@font-face {
  font-family: "Drama Serif";
  src: url("assets/home/fonts/drama-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #10130f;
  --ink: #f8f2da;
  --muted: #c5c0ae;
  --line: #918e7c;
  --accent: #f1bc67;
  --gutter: clamp(28px, 3vw, 48px);
  font-family: "Drama Serif", "Songti SC", "STSong", serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button:focus:not(:focus-visible) { outline: none; }
h1, p { margin: 0; }
::selection { color: var(--canvas); background: var(--accent); }
.skip-link { position: fixed; top: -80px; left: 24px; padding: 12px 20px; z-index: 30; color: var(--canvas); background: var(--ink); }
.skip-link:focus { top: 12px; }
.cinema { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 28px; }
.masthead { height: 64px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: 1px; }
.film-mark { width: 30px; height: 23px; flex: none; }
.masthead-rule { height: 1px; background: var(--ink); flex: 1; opacity: .85; }
.series-count { font-size: 16px; letter-spacing: 1px; }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.act-tab { position: relative; min-height: 48px; border: 0; background: none; padding: 4px 0 16px; color: var(--muted); font-size: 16px; white-space: nowrap; text-align: left; }
.act-tab:not(:first-child) { text-align: center; }
.act-tab:last-child { text-align: right; }
.act-tab[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.act-tab::after { content: ""; position: absolute; left: 0; right: 7%; bottom: -2px; height: 3px; border-radius: 2px; background: var(--accent); opacity: 0; }
.act-tab[aria-pressed="true"]::after { opacity: 1; }
.act-tab:last-child::after { left: 7%; right: 0; }
.act-name { margin-left: .42em; }
.act-range { margin-left: .2em; font-variant-numeric: lining-nums; }
.mobile-act { display: none; }
.hero { height: clamp(330px, calc(100svh - 320px), 500px); position: relative; isolation: isolate; }
.hero-art { position: absolute; inset: 0 -1px 0 24%; z-index: -1; overflow: hidden; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position-desktop, 50% 48%); }
.hero-art::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(90deg, var(--canvas) 0%, #10130fe8 6%, #10130f70 18%, transparent 34%), linear-gradient(0deg, var(--canvas) 0%, #10130f80 12%, transparent 30%), linear-gradient(270deg, var(--canvas) 0%, transparent 10%); }
.hero-copy { position: relative; width: max-content; max-width: 46%; margin-left: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.episode-label { font-size: 17px; line-height: 1.5; letter-spacing: 2px; margin-bottom: 12px; }
h1 { font-size: calc(clamp(44px, 4.4vw, 64px) * var(--title-scale, 1)); font-weight: 800; letter-spacing: -1px; line-height: 1.12; }
h1 span { display: block; white-space: nowrap; }
h1 .quoted { text-indent: -.5em; }
.hero-action { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.hero-action[hidden] { display: none; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 25px; border: 0; border-radius: 50px; color: #11150e; background: var(--ink); font-size: 21px; font-weight: 600; line-height: 1; }
.play-button svg { width: 18px; height: 22px; }
.play-button:not(:disabled):hover { background: #fffbed; }
.hero-duration { font-size: 18px; font-variant-numeric: lining-nums tabular-nums; }
.episode-index { padding: 16px 0 0; }
.episodes { display: grid; grid-template-columns: repeat(var(--episode-columns, 4), minmax(0, 1fr)); gap: 20px 24px; margin: 0; padding: 0; list-style: none; }
.episode-item { position: relative; min-width: 0; }
.episode-item:not(:last-child)::after { content: ""; position: absolute; right: -12px; width: 1px; height: calc(100% - 22px); top: 5px; background: var(--line); opacity: .45; }
.episode-card { display: flex; width: 100%; min-height: 144px; gap: 18px; padding: 0 0 14px; border: 0; background: none; text-align: left; position: relative; }
.episode-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); opacity: 0; }
.episode-card[aria-current="true"]::after { opacity: 1; }
.episode-poster { width: 80px; height: 128px; object-fit: cover; object-position: center; flex: none; border-radius: 4px; border: 1px solid #f4e8c22b; }
.episode-details { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 4px 0 4px; }
.episode-number { font-size: 20px; line-height: 1.2; margin-bottom: 6px; font-variant-numeric: lining-nums; }
.episode-name { font-size: 18px; line-height: 1.42; font-weight: 500; overflow-wrap: anywhere; }
.episode-name span { display: block; }
.episode-duration { font-size: 16px; line-height: 1.3; margin-top: auto; padding-top: 10px; font-variant-numeric: lining-nums tabular-nums; }
.episode-card:not(:disabled):hover .episode-name { color: var(--accent); }
.episode-card:not(:disabled):hover .episode-poster { border-color: #f1bc6780; }
.episode-card:disabled .episode-details { color: var(--muted); }
.episode-card:disabled .episode-duration { color: var(--line); }
.hero.is-coming .hero-art { left: 43%; right: 4%; }
.hero.is-coming .hero-art img { object-fit: contain; }
.hero.is-coming .hero-art::after { background: linear-gradient(0deg, var(--canvas), transparent 16%); }
.player-open { overflow: hidden; }
.player { padding: 0; border: 1px solid #f8f2da24; width: min(1000px, calc(100vw - 48px)); max-width: none; height: min(960px, calc(100dvh - 48px)); max-height: none; background: #10130f; color: var(--ink); border-radius: 8px; overflow: hidden; }
.player::backdrop { background: #050705ed; }
.player-shell { height: 100%; display: flex; flex-direction: column; }
.player-header { min-height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 16px 8px 24px; border-bottom: 1px solid #f8f2da24; }
.player-header p { font-size: 17px; font-weight: 500; }
.close-player { width: 44px; height: 44px; flex: none; padding: 10px; border: 0; background: none; border-radius: 50%; }
.close-player:hover { background: #f8f2da14; }
.close-player svg { width: 24px; height: 24px; }
.player-stage { flex: 1; min-height: 0; position: relative; display: flex; justify-content: center; background: #000; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.player-footer { min-height: 62px; flex: none; padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f8f2da24; gap: 16px; font-size: 15px; }
.player-footer button { border: 0; background: none; min-height: 44px; padding: 10px 8px; }
.player-footer button:disabled { opacity: .3; }
.player-footer button:not(:disabled):hover { color: var(--accent); }
.player-counter { font-variant-numeric: lining-nums tabular-nums; }
.player-error { position: absolute; inset: 0; display: flex; gap: 16px; padding: 24px; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #10130f; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.player-error p + p { font-size: 14px; color: var(--muted); }
.player-error button { border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 10px 28px; min-height: 44px; }
.player-error[hidden] { display: none; }
.noscript { padding: 24px; text-align: center; }
@media (max-width: 1150px) and (min-width: 861px) {
  .masthead { gap: 24px; }
  .act-range { display: none; }
  .hero-copy { margin-left: 0; max-width: 52%; }
  .hero-art { left: 16%; }
  .episode-index { padding: 0; }
  .episodes { gap: 30px 24px; }
  .episode-card { gap: 12px; }
  .episode-item::after { right: -12px; }
  .episode-name { font-size: 17px; }
}
@media (min-width: 1280px) {
  .episodes[data-count="6"] { gap: 20px; }
  .episodes[data-count="6"] .episode-card { gap: 12px; min-height: 128px; }
  .episodes[data-count="6"] .episode-poster { width: 60px; height: 96px; }
  .episodes[data-count="6"] .episode-number { font-size: 18px; margin-bottom: 5px; }
  .episodes[data-count="6"] .episode-name { font-size: 15px; line-height: 1.45; }
  .episodes[data-count="6"] .episode-duration { font-size: 15px; }
  .episodes[data-count="6"] .episode-item::after { right: -10px; }
}
@media (min-width: 861px) and (max-width: 1279px) {
  .episodes[data-count="5"], .episodes[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
  .episodes[data-count="5"] .episode-item:nth-child(3n)::after,
  .episodes[data-count="6"] .episode-item:nth-child(3n)::after { display: none; }
  main[data-episode-count="5"] .hero,
  main[data-episode-count="6"] .hero { height: clamp(300px, calc(100svh - 430px), 430px); }
  .episodes[data-count="5"] .episode-card,
  .episodes[data-count="6"] .episode-card { min-height: 124px; }
  .episodes[data-count="5"] .episode-poster,
  .episodes[data-count="6"] .episode-poster { width: 68px; height: 109px; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .cinema { max-width: 620px; padding-bottom: 44px; }
  .masthead { height: 38px; gap: 16px; }
  .brand { gap: 11px; font-size: 19px; letter-spacing: 1px; }
  .film-mark { width: 24px; height: 19px; }
  .series-count { font-size: 15px; letter-spacing: .7px; }
  .masthead-rule { opacity: .85; }
  .act-tab, .act-tab:not(:first-child), .act-tab:last-child { min-height: 44px; text-align: center; padding: 6px 0 12px; font-size: 16px; }
  .act-name, .act-range { display: none; }
  .act-tab::after, .act-tab:last-child::after { left: 0; right: 10%; height: 3px; }
  .act-tab:last-child::after { left: 10%; right: 0; }
  .mobile-act { display: block; font-size: 16px; line-height: 1.5; padding-top: 5px; }
  .hero { height: clamp(390px, 103.4vw, 570px); margin: 0 calc(-1 * var(--gutter)); }
  .hero-art { inset: 0 0 auto; height: 87%; }
  .hero-art img { object-position: var(--hero-position, 57% 48%); }
  .hero-art::after { background: linear-gradient(0deg, var(--canvas) 0%, #10130ff5 8%, #10130f65 27%, transparent 48%), linear-gradient(90deg, #10130f45, transparent 16%, transparent 88%, #10130f45), linear-gradient(180deg, var(--canvas), transparent 10%); }
  .hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; width: auto; height: auto; margin: 0; max-width: none; display: block; padding: 0; }
  .episode-label { font-size: 16px; line-height: 1.5; letter-spacing: 2px; margin-bottom: 10px; }
  h1 { font-size: calc(clamp(39px, 10.4vw, 59px) * var(--title-scale, 1)); line-height: 1.06; letter-spacing: -1.3px; }
  .hero-action { margin-top: 8px; gap: 16px; }
  .play-button { height: 36px; padding: 0 24px; gap: 10px; font-size: 19px; }
  .play-button svg { width: 16px; height: 19px; }
  .hero-duration { font-size: 17px; }
  .episode-index { padding: 0; }
  .episodes { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .episode-item { border-bottom: 1px solid var(--line); }
  .episode-item::after { display: none; }
  .episode-card { min-height: 84px; padding: 6px 0 6px 16px; gap: 14px; align-items: center; }
  .episode-card::after { left: -1px; top: 25%; bottom: 25%; width: 3px; height: auto; right: auto; }
  .episode-poster { width: 60px; height: 72px; border-radius: 3px; }
  .episode-details { padding: 0 55px 0 0; flex: 1; }
  .episode-number { font-size: 17px; line-height: 1.2; margin-bottom: 3px; }
  .episode-name { font-size: 17px; line-height: 1.3; }
  .episode-duration { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 0; margin: 0; font-size: 16px; }
  .hero.is-coming { height: 430px; }
  .hero.is-coming .hero-art { left: 32%; right: 0; height: 74%; }
  .hero.is-coming .hero-copy { bottom: 28px; }
  .player { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .player-header { padding-left: 16px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 60px; }
  .player-header p { font-size: 15px; }
  .player-footer { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 17px; gap: 7px; }
  .masthead { gap: 11px; }
  .series-count { font-size: 13px; letter-spacing: 0; }
  .episode-card { gap: 10px; padding-left: 12px; }
  .episode-poster { width: 51px; height: 74px; }
  .episode-name { font-size: 15px; }
  .episode-details { padding-right: 48px; }
  .episode-duration { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: color .16s, background-color .16s; }
  .act-tab::after, .episode-card::after { transition: opacity .16s; }
}
