@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/type/instrument-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/type/instrument-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('/assets/type/noto-serif-titles.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('/assets/type/ma-shan-titles.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #101114;
  --surface: #1b1c20;
  --raised: #27282d;
  --text: #faf7f2;
  --muted: #b4b4b9;
  --dim: #929399;
  --accent: #ff967d;
  --gold: #f5d5ac;
  --line: rgb(244 240 234 / 14%);
  --paper: #f2ede4;
  --print: #211b1a;
  --serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', 'Yu Mincho', Georgia, serif;
  --ui: Geist, 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
  --bezel: inset 0 0 0 1px var(--line);
  --gutter: clamp(32px, 4.6vw, 96px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
body {
  background: var(--bg);
}
.catalog-unavailable {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 10vh var(--gutter);
  background: linear-gradient(0deg, #101114 3%, rgb(16 17 20 / 75%) 35%, transparent 85%),
    url('/assets/stills/glass.webp') center / cover;
}
.catalog-unavailable .stack { justify-items: start; }
.wrap,
.header-inner {
  width: min(calc(100% - var(--gutter) * 2), 1720px);
  margin-inline: auto;
}
::selection {
  background: #ffb29e;
  color: #251916;
}
#header {
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.is-home #header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgb(8 11 15 / 76%), rgb(8 11 15 / 36%) 58%, transparent);
}
.header-inner,
.desktop-nav,
.header-tools,
.nav-search,
.browse-search {
  display: flex;
  align-items: center;
}
.header-inner {
  min-height: 80px;
  gap: clamp(22px, 3.5vw, 64px);
}
.brand {
  gap: 8px;
  font: 745 clamp(22px, 1.75vw, 30px)/1 var(--ui);
  letter-spacing: -0.075em;
}
.brand b {
  font-weight: 540;
}
.brand-mark {
  width: 27px;
  height: 26px;
  background: var(--accent);
  clip-path: polygon(15% 10%, 45% 10%, 26% 90%, 0 90%, 15% 10%, 56% 10%, 100% 50%, 39% 93%, 56% 10%);
}
.desktop-nav {
  min-width: 0;
  gap: clamp(10px, 1.8vw, 30px);
}
.desktop-nav .navlink {
  display: inline-flex;
  flex: none;
  padding: 4px 0;
  border-radius: 0;
  position: relative;
  min-height: 44px;
  font-size: 14px;
  font-weight: 515;
  color: #ceced0;
  white-space: nowrap;
}
.desktop-nav .navlink:hover,
.desktop-nav .active {
  color: #fff;
}
.desktop-nav .active::after {
  content: '';
  position: absolute;
  inset: auto calc(50% - 9px) 0;
  height: 2px;
  background: var(--accent);
}
.header-tools {
  margin-inline-start: auto;
  gap: 9px;
  flex: none;
}
.nav-search,
.browse-search {
  gap: 4px;
  border: 1px solid rgb(247 247 249 / 20%);
  border-radius: 6px;
  background: #15161bb8;
}
.nav-search {
  padding-inline: 4px 12px;
}
.nav-search button {
  display: grid;
  place-items: center;
  height: 38px;
  width: 33px;
}
.nav-search button svg {
  width: 17px;
  height: 17px;
}
.nav-search input,
.browse-search input {
  min-height: 38px;
  padding: 6px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
}
.nav-search input {
  width: clamp(90px, 8.2vw, 150px);
}
.nav-search input::placeholder {
  color: #bbbcc0;
}
.header-tools > .iconbtn {
  background: transparent;
  box-shadow: none;
}
.header-tools > .iconbtn:hover {
  background: rgb(255 255 255 / 10%);
}
.login-btn,
.account-chip {
  min-height: 39px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  background: rgb(245 242 237 / 94%);
  color: #242124;
  font-weight: 640;
}
.login-btn .icon {
  display: none;
}
.account-chip {
  font-variant-numeric: tabular-nums;
}
.account-chip .icon {
  width: 17px;
}
.login-btn:hover,
.account-chip:hover {
  background: white;
}
.search-small,
#mobile-nav {
  display: none;
}

.hero {
  --shade-angle: 90deg;
  isolation: isolate;
  position: relative;
  color: #fff9f1;
  background: #10151b;
}
[dir='rtl'] .hero,
[dir='rtl'] .series-feature {
  --shade-angle: 270deg;
}
.screen-image,
.hero-art,
.hero-image,
.series-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.screen-image,
.series-art {
  overflow: hidden;
  z-index: -1;
}
.screen-image .hero-art {
  opacity: 0;
  transition: opacity 0.26s ease-out;
}
.screen-image .hero-art.on-screen {
  opacity: 1;
}
.hero-image {
  object-fit: cover;
  object-position: center;
}
@media (min-width: 761px) {
  [dir='rtl'] .hero-art[data-prepared] {
    transform: scaleX(-1);
  }
}
.screen-image::after,
.series-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg), rgb(16 17 20 / 52%) 9%, transparent 34%),
    linear-gradient(
      var(--shade-angle),
      rgb(10 13 18 / 84%) 0%,
      rgb(10 13 18 / 69%) 24%,
      rgb(10 13 18 / 28%) 48%,
      transparent 66%
    );
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: clamp(465px, min(42vw, 71svh), 742px);
  padding-block: clamp(152px, 15vw, 285px) clamp(42px, 3.8vw, 76px);
}
.hero-notes {
  display: grid;
  min-width: 0;
  width: min(50vw, 690px);
}
.program-entry {
  min-width: 0;
  grid-area: 1/1;
  align-self: end;
}
.program-entry[inert] {
  visibility: hidden;
  pointer-events: none;
}
.program-entry:not([inert]) > .title-block {
  animation: reveal-title 0.36s var(--ease) both;
}
@keyframes reveal-title {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.program-meta,
.poster-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.program-meta {
  gap: 6px 0;
  color: #ebe6df;
  font-size: 13px;
  font-weight: 510;
  line-height: 1.4;
}
.program-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: 16px;
  color: #f8d3bc;
  font-size: inherit;
  font-weight: 600;
}
.program-label::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.program-meta > span,
.poster-meta > span {
  display: inline-flex;
  align-items: center;
}
.program-meta > span + span::before,
.poster-meta > span + span::before {
  content: '';
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 100%;
  margin-inline: 9px;
  opacity: 0.68;
}
.reward-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.program-meta .reward-meta {
  gap: 0;
}
.reward-meta .icon {
  width: 14px;
  height: 14px;
}
.program-meta .reward-meta .icon {
  margin-inline-end: 4px;
}
.hero-notes .title-block {
  margin-block: clamp(17px, 1.7vw, 31px) 0;
}
.title-block :is(h1, .program-title) {
  font: 400 clamp(67px, 7.8vw, 145px)/0.93 var(--serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.title-block :is(h1, .program-title):lang(zh) {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', 'Songti SC', var(--serif);
  font-size: clamp(74px, 8.9vw, 160px);
  letter-spacing: -0.023em;
  line-height: 1;
  margin-inline-start: -0.045em;
}
.title-block :is(h1, .program-title):lang(ja),
.title-block :is(h1, .program-title):lang(ko) {
  line-height: 1.1;
}
.original-title {
  margin-top: 8px;
  color: #ecd8c4;
  font: 510 clamp(11px, 0.92vw, 15px)/1.45 var(--ui);
  letter-spacing: 0.27em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.synopsis {
  max-width: 41em;
  margin: clamp(16px, 1.55vw, 28px) 0 clamp(20px, 1.75vw, 34px);
  color: #e2dfdf;
  font-size: clamp(14px, 1.08vw, 18px);
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.hero-notes .actions {
  gap: clamp(15px, 1.6vw, 30px);
}
.watch-cta,
.actions .watch-cta {
  padding: 0 clamp(18px, 1.8vw, 32px);
  min-height: 48px;
  border-radius: 5px;
  gap: 10px;
  color: #261916;
  background: var(--accent);
  box-shadow: none;
  font-weight: 690;
}
.watch-cta:hover {
  background: #ffa992;
}
.play-disc,
.episode-disc {
  display: inline-grid;
  place-items: center;
  flex: none;
}
.watch-cta .play-disc svg {
  width: 17px;
  height: 17px;
}
.details-link,
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 540;
}
.details-link {
  color: #f7f2ed;
}
.details-link > span {
  display: inline-flex;
}
.details-link .icon,
.textlink .icon {
  width: 15px;
  height: 15px;
}
.details-link:hover,
.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: end;
  align-self: end;
  gap: 3px;
}
.hero-controls .iconbtn {
  height: 40px;
  width: 40px;
  min-height: 40px;
  border: 1px solid #ffffff35;
  background: rgb(14 17 22 / 60%);
  box-shadow: none;
}
.hero-controls .iconbtn:hover {
  background: #48464a;
}
.hero-controls .iconbtn .icon {
  width: 15px;
  height: 15px;
}
.frame-number {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-inline-end: 9px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #c4c5ca;
  white-space: nowrap;
}
.frame-number strong {
  font-size: 19px;
  font-weight: 550;
  color: #faf8f3;
}
.filmstrip {
  display: flex;
  align-items: center;
  margin-inline-end: 12px;
  overflow-x: auto;
  max-width: 15vw;
  scrollbar-width: none;
}
.filmstrip-item {
  display: grid;
  place-items: center;
  padding: 0 3px;
  height: 44px;
  min-width: 27px;
}
.filmstrip-item::after {
  content: '';
  width: 100%;
  height: 3px;
  background: #b8b8be7a;
  border-radius: 2px;
}
.filmstrip-item[aria-pressed='true']::after {
  background: var(--accent);
}
.filmstrip-item:focus-visible {
  outline-offset: -2px;
}
.rails {
  display: grid;
  gap: clamp(40px, 4.6vw, 80px);
  padding-block: 15px 88px;
  min-width: 0;
}
.sect-head {
  gap: 16px;
  margin-bottom: 18px;
}
.rail h2,
.genre-index h2,
.episode-overview h2 {
  font: 650 clamp(23px, 2.1vw, 37px)/1.15 var(--ui);
  letter-spacing: -0.055em;
}
.rail h2:lang(zh),
.genre-index h2:lang(zh),
.episode-overview h2:lang(zh) {
  letter-spacing: 0.035em;
}
.rail-controls,
.rail-arrows {
  display: flex;
  align-items: center;
}
.rail-controls {
  gap: 17px;
}
.rail-arrows {
  gap: 4px;
}
.rail-arrows[hidden] {
  display: none;
}
.rail-arrows .iconbtn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  background: transparent;
}
.rail-arrows .iconbtn:disabled {
  opacity: 0.32;
}
.rail-arrows .icon {
  width: 15px;
  height: 15px;
}
.poster-rail,
.poster-grid {
  --columns: 6;
  --gap: clamp(12px, 1.25vw, 24px);
  display: grid;
  gap: var(--gap);
}
.poster-rail {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--gap)) / var(--columns) - var(--gap));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  margin: -5px;
  padding: 5px;
  scroll-padding-inline: 5px;
}
.poster-rail::-webkit-scrollbar,
.filmstrip::-webkit-scrollbar {
  display: none;
}
.poster-grid {
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  row-gap: 28px;
}
.poster-grid > .empty {
  grid-column: 1/-1;
}
.poster-card {
  min-width: 0;
  display: block;
  scroll-snap-align: start;
  border-radius: 5px;
}
.poster-frame {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  aspect-ratio: 2/3;
  border-radius: 5px;
  background: var(--surface);
}
.poster-type {
  position: absolute;
  inset: auto 7% 8%;
  display: grid;
  gap: 4cqw;
  color: #fbecd7;
  pointer-events: none;
}
.poster-type strong {
  overflow-wrap: anywhere;
  text-wrap: balance;
  font: 400 18cqw/0.99 var(--serif);
  letter-spacing: -0.025em;
}
.poster-type[data-long] strong {
  font-size: 13.5cqw;
  line-height: 1.08;
}
.poster-type strong:lang(zh) {
  font:
    400 20cqw/1.04 'Ma Shan Zheng',
    'Noto Serif SC',
    var(--serif);
  letter-spacing: -0.035em;
}
.poster-type strong:lang(hi),
.poster-type strong:lang(ar),
.poster-type strong:lang(th),
.poster-type strong:lang(bn) {
  line-height: 1.18;
}
.poster-type small {
  font: 550 max(8px, 4.5cqw)/1.25 var(--ui);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.poster-type[data-film='silk'] {
  color: #ffe3a9;
  text-align: center;
}
.poster-type[data-film='silk']:lang(zh):not([data-long]) {
  inset: auto 6% 7% auto;
  justify-items: end;
}
.poster-type[data-film='silk']:lang(zh):not([data-long]) strong {
  writing-mode: vertical-rl;
  font-size: 25cqw;
}
.poster-type[data-film='summer'] {
  color: #683827;
}
.poster-type[data-film='summer'] strong:lang(zh),
.poster-type[data-film='glass'] strong:lang(zh),
.poster-type[data-film='pines'] strong:lang(zh) {
  font:
    600 18cqw/1.15 'Noto Serif SC',
    var(--serif);
}
.poster-type[data-film='line'] {
  color: #ffc67c;
}
.poster-type[data-film='line'] strong,
.poster-type[data-film='signal'] strong {
  font-family: var(--ui);
  font-weight: 690;
  letter-spacing: -0.06em;
}
.poster-type[data-film='pines'] {
  text-align: center;
}
.poster-type[data-film='encore'] {
  inset: 6% 7% auto;
}
.poster-type[data-film='signal'] {
  color: #cbf3f2;
}
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s var(--ease),
    filter 0.4s var(--ease);
}
.poster-play {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--print);
  background: var(--paper);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.poster-play .icon {
  width: 16px;
  height: 16px;
}
.poster-card:focus-visible .poster-play,
.poster-card:hover .poster-play {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .poster-card:hover .poster-frame img {
    transform: scale(1.035);
    filter: brightness(1.07);
  }
}
.poster-caption {
  padding: 12px 0 0;
  display: grid;
  gap: 4px;
}
.poster-caption h3 {
  font: 580 clamp(15px, 1.16vw, 21px)/1.35 var(--ui);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.poster-caption h3:lang(zh) {
  letter-spacing: 0.03em;
}
.poster-meta {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.poster-meta > span + span::before {
  margin-inline: 7px;
}
.ads-slot {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.ads-slot:empty {
  display: none;
}
.ad-unit {
  border-radius: 8px;
}
.ad-copy h3 {
  font-size: clamp(21px, 2.1vw, 34px);
}
.ad-copy {
  padding: clamp(20px, 2.3vw, 36px);
  max-width: 72%;
}
.genre-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.25vw, 24px);
}
.genre-entry {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  gap: 14px;
  min-width: 0;
  min-height: clamp(120px, 12vw, 200px);
  padding: clamp(16px, 1.65vw, 30px);
  background: var(--surface);
  border-radius: 6px;
}
.genre-image,
.genre-image::after,
.genre-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.genre-image {
  z-index: -1;
}
.genre-image img {
  object-fit: cover;
  object-position: 50% 38%;
  transition: transform 0.35s var(--ease);
}
.genre-image::after {
  content: '';
  background: linear-gradient(0deg, #0c0e14e8, #0c0e1470 51%, #0c0e1412);
}
.genre-entry:hover img {
  transform: scale(1.04);
}
.genre-entry-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.genre-entry-label strong {
  font: 620 clamp(20px, 1.7vw, 30px)/1.22 var(--ui);
  overflow-wrap: anywhere;
}
.genre-entry-label small {
  color: #e1dfe0;
  overflow-wrap: anywhere;
}
.genre-entry > .icon {
  margin-inline-start: auto;
}
.interior h1 {
  font-family: var(--ui);
  font-weight: 640;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.interior h1:lang(zh) {
  letter-spacing: 0.025em;
}
.interior {
  padding-block: clamp(30px, 3.6vw, 65px) 88px;
}
.interior h1 {
  font-size: clamp(43px, 5.4vw, 86px);
}
.browse-head,
.library-title {
  display: flex;
  align-items: center;
  gap: 17px;
}
.browse-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(20px, 2.5vw, 38px);
}
.library-title {
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
}
.result-count,
.section-label {
  color: var(--muted);
  font-size: 13px;
}
.browse-search {
  padding-inline: 15px;
  gap: 8px;
}
.browse-search input {
  width: clamp(150px, 17vw, 270px);
}
.genre-chips {
  margin-block: 21px 28px;
  gap: 7px;
}
.chip,
.tab {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip.active,
.tab.active {
  background: var(--paper);
  color: var(--print);
}
.series-page {
  display: grid;
  gap: clamp(28px, 4vw, 67px);
}
.series-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
}
.series-copy .textlink {
  margin-top: -8px;
  min-height: 36px;
}
.series-copy > .muted {
  max-width: 42em;
  overflow-wrap: anywhere;
}
.series-copy .section-label {
  color: var(--gold);
}
.series-copy .watch-cta {
  margin-top: 5px;
}

.series-feature {
  --shade-angle: 90deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(330px, 32vw, 550px);
  padding: clamp(25px, 4vw, 75px);
  background: var(--surface);
  border-radius: 8px;
}
.series-art::after {
  background:
    linear-gradient(0deg, #0d0e13b8, transparent 54%),
    linear-gradient(var(--shade-angle), #090c13eb, #0a0d16b0 36%, transparent 71%);
}
.series-copy {
  width: min(54%, 660px);
}
.series-copy .textlink {
  color: var(--text);
}
.series-copy .title-block h1 {
  font-size: clamp(56px, 6vw, 105px);
  line-height: 1.03;
}
.series-copy .title-block h1:lang(zh) {
  font-size: clamp(65px, 7.4vw, 127px);
}
.series-copy > .muted {
  color: #e0dfe2;
}

.episode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
  gap: 12px;
}
.episode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: var(--surface);
  box-shadow: var(--bezel);
  border-radius: 15px;
  min-width: 0;
}
.episode-card:hover {
  background: var(--raised);
}
.episode-disc {
  width: 38px;
  height: 38px;
  background: var(--raised);
  color: var(--text);
}
.episode-disc .icon {
  width: 14px;
  height: 14px;
}
.episode-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.episode-info strong {
  overflow-wrap: anywhere;
  font-weight: 560;
}
.episode-info small {
  color: var(--muted);
}
.episode-card .reward-meta {
  margin-inline-start: auto;
}
.player-page {
  width: min(calc(100% - var(--gutter) * 2), 1600px);
  margin: 0 auto;
  padding-block: 12px 38px;
}
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(278px, 25vw, 400px);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'screen heading' 'screen side';
  align-items: start;
  gap: 0 clamp(20px, 2.9vw, 56px);
}
.player-well {
  grid-area: screen;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  container-type: size;
  width: 100%;
  height: clamp(320px, calc(100dvh - 125px), min(83vw, 860px));
  border-radius: 7px;
  background: #08090c;
  --film-ratio: 0.75;
}
.player-ambience {
  z-index: -2;
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(32px) saturate(0.7);
  opacity: 0.45;
}
.player-well::before {
  content: '';
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #08090cea, transparent 46%, #08090c73);
}
.video-surface {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100cqw, calc(100cqh * var(--film-ratio)));
  height: min(100cqh, calc(100cqw / var(--film-ratio)));
  background: #090a0c;
}
.video-surface video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-surface video::cue {
  font-family: var(--ui);
  color: #fff;
  background: #101014c9;
}
.screen-cover,
.screen-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.screen-cover {
  display: grid;
  place-items: center;
  pointer-events: none;
}
.screen-cover[hidden] {
  display: none;
}
.screen-cover img {
  object-fit: cover;
  object-position: center 36%;
}
.screen-play {
  pointer-events: auto;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(60px, 5.6vw, 83px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: #17191fa8;
  border: 1px solid #fffb;
  box-shadow: 0 3px 24px #06070a33;
}
.screen-play:hover {
  background: #343035ea;
}
.screen-play .icon {
  width: 32%;
  height: 32%;
  margin-inline-start: 3px;
}
.player-alert {
  position: absolute;
  z-index: 2;
  inset: auto 8% 10%;
  text-align: center;
  background: var(--surface);
  border-radius: 10px;
  padding: 16px;
}
.player-alert .btn {
  margin-top: 8px;
}
.watch-heading {
  grid-area: heading;
  min-width: 0;
  padding-block: 4px 23px;
  display: grid;
  gap: 18px;
}
.watch-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
}
.watch-back:hover {
  color: var(--text);
}
.watch-back .icon {
  width: 16px;
  height: 16px;
}
.watch-heading > .iconbtn {
  display: none;
}
.watch-title {
  min-width: 0;
}
.watch-title h1 {
  font: 400 clamp(41px, 4.1vw, 76px)/1.02 var(--serif);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.watch-title h1:lang(zh) {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(44px, 4.3vw, 80px);
}
.watch-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.watch-meta strong {
  color: var(--text);
  font-weight: 600;
}
.watch-meta span::before {
  content: '·';
  margin-inline-end: 9px;
  color: var(--dim);
}
.player-program {
  grid-area: side;
  display: grid;
  gap: 25px;
  min-width: 0;
  align-content: start;
}
.player-program > section {
  min-width: 0;
  padding-block: 17px 0;
  border-block-start: 1px solid var(--line);
}
.player-program h2 {
  font-size: 19px;
}
.watch-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.watch-section-title .textlink {
  color: var(--accent);
  min-height: 36px;
}
.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(116px, 100%), 1fr));
  gap: 8px;
  margin-top: 12px;
  max-height: clamp(118px, 28dvh, 300px);
  padding: 3px;
  overflow: auto;
  scroll-padding: 3px;
}
.watch-episode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  min-height: 56px;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--surface);
}
.watch-episode .icon {
  grid-row: 1/3;
  width: 15px;
  height: 15px;
  color: var(--dim);
}
.watch-episode span {
  font-size: 13px;
  font-weight: 560;
  overflow-wrap: anywhere;
}
.watch-episode small {
  font-size: 11px;
  color: var(--muted);
}
.watch-episode.active {
  background: #382723;
  box-shadow: inset 0 0 0 1px #9d5e4b;
}
.watch-episode.active :is(.icon, span) {
  color: #ffac91;
}
.watch-episode:hover:not(.active) {
  background: var(--raised);
}
.reward-box {
  display: grid;
  gap: 12px;
  padding-block: 16px 0;
  overflow-wrap: anywhere;
}
.reward-box .inline {
  font-size: 13px;
  color: var(--muted);
}
.reward-box .reward-meta {
  color: var(--gold);
}
.reward-box .help {
  font-size: 13px;
}
.reward-box .btn,
.reward-box .textlink {
  width: fit-content;
  border-radius: 5px;
}
.watch-dock {
  display: none;
}
.watch-ad:has(.ad-unit) {
  margin-block-start: 23px;
}
.watch-sheet .episode-list {
  max-height: 53dvh;
}
.watch-sheet .reward-box {
  padding: 0;
}
@media (max-width: 899px), (max-width: 1100px) and (max-height: 550px) and (pointer: coarse) {
  body:has(.player-page) :is(#header, #mobile-nav) {
    display: none;
  }
  body:has(.player-page) #toast {
    inset-block-end: calc(64px + env(safe-area-inset-bottom));
  }
  .player-page {
    width: 100%;
    padding: 0;
  }
  .watch-layout {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: 'heading' 'screen' 'actions';
    gap: 0;
    align-items: stretch;
    background: #0b0c0e;
  }
  .watch-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    align-items: center;
    min-height: 57px;
    padding: max(4px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 5px
      max(10px, env(safe-area-inset-left));
  }
  .watch-back,
  .watch-heading > .iconbtn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--text);
    background: transparent;
    box-shadow: none;
  }
  .watch-back .icon {
    width: 21px;
    height: 21px;
  }
  .watch-back span,
  .watch-meta span {
    display: none;
  }
  .watch-title h1,
  .watch-title h1:lang(zh) {
    font: 620 17px/1.25 var(--ui);
    letter-spacing: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .watch-meta {
    margin-top: 2px;
    font-size: 11px;
  }
  .watch-meta strong {
    color: var(--muted);
    font-weight: 480;
  }
  .player-well {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }
  .video-surface {
    width: 100%;
    height: 100%;
    background: transparent;
  }
  .screen-play {
    width: 65px;
  }
  .player-program {
    display: none;
  }
  .watch-dock {
    grid-area: actions;
    display: flex;
    gap: 4px;
    justify-content: space-between;
    align-items: center;
    min-height: 57px;
    padding: 4px max(12px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .watch-dock > * {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px min(2.5vw, 13px);
    color: var(--text);
    font: 550 13px/1.25 var(--ui);
    overflow-wrap: anywhere;
  }
  .watch-dock .icon {
    width: 18px;
    height: 18px;
  }
  .watch-dock .dock-points {
    color: var(--gold);
  }
  .watch-dock .dock-next {
    color: var(--accent);
  }
  .dialog.watch-sheet {
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 16px 19px max(23px, env(safe-area-inset-bottom));
    max-height: 80dvh;
    border-radius: 17px 17px 0 0;
    background: #1b1b20;
  }
  .watch-sheet .dialog-head {
    margin-bottom: 12px;
  }
  .dialog.watch-sheet .dialog-head h2 {
    font: 600 20px/1.25 var(--ui);
  }
  .watch-sheet .episode-list {
    margin: 0;
  }
  .watch-ad:has(.ad-unit) {
    margin: 15px var(--gutter);
  }
}
@media (max-height: 550px) and (orientation: landscape) and (max-width: 1100px) {
  .watch-heading {
    padding-block: 0;
  }
  .watch-dock {
    min-height: 44px;
    padding-block: 0;
  }
  .screen-cover img {
    object-fit: contain;
    background: #0a0b0f;
  }
  .dialog.watch-sheet {
    max-height: 92dvh;
  }
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  accent-color: var(--accent);
}
progress::-webkit-progress-bar {
  background: #45444a;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 8px;
}
.panel {
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 #ffffff06;
}
.account-page {
  display: grid;
  gap: 22px;
}

.account-page {
  max-width: 1250px;
}
.account-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 5vw, 75px);
  align-items: end;
  padding-block: 0 clamp(12px, 1.5vw, 23px);
}
.account-heading h1 {
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: 1.13;
}
.account-heading > p {
  grid-column: 1 / -1;
  margin-top: 12px;
  max-width: 48em;
  color: var(--muted);
  line-height: 1.65;
}
.account-shortcut {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.account-signin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  border-block-start: 1px solid var(--line);
  padding-block-start: 20px;
}
.account-signin p {
  color: var(--muted);
  font-size: 14px;
}
.account-signin .btn {
  border-radius: 5px;
}
.account-page .rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 1.7vw, 26px);
}
.rule-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
}
.account-page .panel {
  border-radius: 10px;
}
.account-page .rule-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 27px);
  line-height: 1.28;
}
.rule-heading svg,
.record-empty svg {
  color: var(--accent);
  flex: none;
}
.rule-panel > p {
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}
.rule-panel > .rule-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.rule-panel > .textlink {
  width: fit-content;
  color: var(--text);
  min-height: 32px;
}
.rule-panel .help:empty {
  display: none;
}
.award-rates,
.earned-breakdown,
.rule-lines {
  margin: 0;
}
.award-rates,
.earned-breakdown {
  display: flex;
  gap: 18px clamp(20px, 3vw, 58px);
  flex-wrap: wrap;
}
.award-rates {
  padding-block: 8px;
}
.rule-fact {
  min-width: 0;
}
.rule-fact dt,
.quote-result > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 480;
}
.rule-fact dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.award-rates dd {
  font-size: clamp(23px, 2.3vw, 40px);
  color: var(--gold);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.rule-lines {
  display: grid;
}
.rule-lines .rule-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.rule-lines .rule-fact:last-child {
  border: 0;
}
.rule-lines dt {
  max-width: 100%;
}
.rule-lines dd {
  margin: 0;
  margin-inline-start: auto;
  text-align: end;
}
.sample-episode {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 570;
  min-height: 42px;
  width: fit-content;
  max-width: 100%;
}
.sample-episode:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sample-episode > .icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.watch-example {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: 125px;
  border-radius: 6px;
  background: #101216;
}
.watch-example > img,
.watch-example::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.watch-example > img {
  object-fit: cover;
  object-position: 50% 38%;
}
.watch-example::after {
  content: '';
  background: linear-gradient(0deg, #101218ef, #10121888 52%, #10121811);
}
.watch-example > div {
  padding: 14px 17px 9px;
}
.watch-example small {
  display: block;
  color: #efd2b8;
}
.invite-rules {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #221d21;
}
.invite-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.invite-rules::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(95deg, #141219e8, #15111985), linear-gradient(0deg, #151319 2%, transparent 90%);
}
.invite-rules > p, .invite-rules dt {
  color: #ded5cd;
}
.invite-rules .award-rates {
  padding-block: clamp(12px, 2.5vw, 34px);
}
.calc-inputs,
.mall-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.calc-inputs .field {
  align-content: end;
}
.calc-episode > p {
  color: var(--muted);
  font-size: 13px;
}
.invite-estimate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-block-start: 1px solid var(--line);
  padding-block-start: 14px;
}
.invite-estimate output {
  color: var(--gold);
  font-size: clamp(25px, 2.4vw, 38px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.mall-guide {
  gap: clamp(18px, 2.4vw, 34px);
}
.mall-guide .market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.mall-guide .market-heading .field {
  width: min(100%, 290px);
}
.mall-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(20px, 3.5vw, 56px);
  margin: 0;
}
.mall-facts .rule-fact {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.mall-facts dd { margin: 0; }
.denominations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 22px);
}
.denomination {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-width: 0;
  text-align: start;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, #323035, #242328);
  padding: clamp(14px, 1.8vw, 27px);
  transition: border-color 160ms var(--ease);
}
.denomination:hover { border-color: var(--accent); }
.denomination[aria-pressed='true'] {
  color: #2c201b;
  border-color: #eabfa5;
  background: linear-gradient(120deg, #f4dec2, #ddae98);
}
.denomination-top, .denomination-cost {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 560;
}
.denomination-top {
  justify-content: space-between;
  letter-spacing: 0.06em;
}
.denomination-top .icon { opacity: 0; }
.denomination[aria-pressed='true'] .denomination-top .icon { opacity: 1; }
.denomination-cash {
  font: 400 clamp(27px, 3.4vw, 55px)/1.15 var(--serif);
  overflow-wrap: anywhere;
}
.denomination-cost {
  border-block-start: 1px dashed currentColor;
  padding-block-start: 11px;
}
.denomination-cost .icon, .denomination-top .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.mall-details {
  column-gap: clamp(22px, 4vw, 64px);
  align-items: start;
}
.mall-terms, .mall-quote {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.mall-terms p {
  line-height: 1.65;
}
.mall-quote .sandbox-note {
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
}
.mall-checkout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 10px;
}
.withdrawal-guide .field > select,
.withdrawal-guide .field > input {
  width: 100%;
}
.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px;
  align-items: end;
}
.quote-result {
  display: grid;
  gap: 7px;
}
.quote-result output {
  min-height: 45px;
  display: flex;
  align-items: center;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 620;
  color: var(--gold);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.sandbox-note {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sandbox-note .icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.share-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  background: linear-gradient(115deg, #382b29, var(--surface));
}
.share-panel h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font: 500 14px var(--ui);
}
.invite-code {
  display: inline-block;
  font: 620 clamp(23px, 2.4vw, 38px)/1.25 var(--ui);
  letter-spacing: 0.07em;
  color: var(--gold);
}
.earned-breakdown {
  padding-block: 16px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.earned-breakdown dd {
  font-size: 20px;
}
.wallet-history .earned-breakdown {
  padding-top: 0;
}
.record-empty {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  line-height: 1.6;
  padding-block: 18px 4px;
}
.account-page :is(.panel, .account-heading) {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .account-heading {
    column-gap: 14px;
  }
  .account-shortcut {
    max-width: 32vw;
  }
  .mall-guide .market-heading .field {
    width: 100%;
  }
  .mall-details {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .mall-quote {
    grid-row: 1;
  }
  .denominations {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .denomination {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
  }
  .denomination-top {
    position: relative;
    font-size: 10px;
  }
  .denomination-top .icon {
    display: none;
  }
  .denomination[aria-pressed='true'] {
    box-shadow: inset 3px 0 #a95739;
  }
  .denomination-cost {
    max-width: 31vw;
    text-align: end;
    border-block-start: 0;
    border-inline-start: 1px dashed currentColor;
    padding-block-start: 0;
    padding-inline-start: 10px;
  }
  .denomination-cost .icon { display: none; }
  .denomination-cash { font-size: 26px; }
  .mall-checkout .btn { width: 100%; }
  .invite-rules .award-rates {
    padding-block: 8px;
  }
  .account-signin {
    padding-block-start: 14px;
  }
  .account-signin p {
    flex: 1 1 172px;
    font-size: 13px;
  }
  .account-page .rules-grid,
  .share-panel {
    grid-template-columns: 1fr;
  }
  .rule-panel {
    gap: 13px;
  }
  .account-page .award-rates dd {
    font-size: 25px;
  }
  .account-page .wallet-layout {
    gap: 14px;
  }
  .rules-grid .watch-example {
    min-height: 105px;
  }
}
.account-page .metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.account-page .metric {
  background: var(--surface);
  box-shadow: var(--bezel);
}
.wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 20px;
}
.balance-card {
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 14px;
}
.balance-card {
  background: linear-gradient(115deg, #39302e, #242025);
  border-inline-end: 6px solid #a16c60;
}
.balance-card > strong {
  font: 400 clamp(52px, 6vw, 94px)/1 var(--serif);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.copyline {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: wrap;
}
.copyline input {
  min-width: min(305px, 100%);
  flex: 1;
}
.bank-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(14px, 2vw, 28px);
  background: linear-gradient(110deg, #352825, #211f22 65%);
}
.bank-mark {
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 88px);
  aspect-ratio: 1.55;
  background: linear-gradient(120deg, #f2ceae, #bf8e78);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #fff3;
  color: #3a2721;
}
.bank-mark .icon {
  width: 25px;
  height: 25px;
}
.panel .bank-card-copy h2 {
  margin: 0 0 7px;
  font-size: clamp(18px, 1.6vw, 25px);
}
.bank-card-copy p, .bank-rules p {
  line-height: 1.55;
}
.bank-card .btn {
  border-radius: 6px;
  justify-self: start;
}
.wallet-layout .bank-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
}
.wallet-layout .bank-card .btn {
  grid-column: 2;
}
.bank-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.bank-identity bdi[dir='ltr'] {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.bank-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.bank-form {
  min-width: 0;
}
.bank-name-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.bank-form [hidden] { display: none; }
.bank-form .btn {
  max-width: 100%;
  border-radius: 6px;
}
.bank-fields, .bank-numbers {
  display: grid;
  min-width: 0;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bank-fields {
  padding: 0;
  margin: 0;
  border: 0;
}
.bank-numbers, .bank-numbers > :only-child {
  grid-column: 1 / -1;
}
.bank-sandbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 14px;
  background: #312b24;
  color: #ecdbb7;
  border-radius: 6px;
  font-size: 13px;
}
.bank-sandbox span {
  display: flex;
  align-items: start;
  gap: 8px;
  flex: 1 1 200px;
  line-height: 1.5;
}
.bank-sandbox .icon {
  width: 17px;
  height: 17px;
  flex: none;
}
.bank-sandbox .btn {
  min-height: 44px;
  padding: 6px 12px;
  font-size: 13px;
}
.bank-form input[aria-invalid='true'] { border-color: var(--accent); }
.field-error { color: #ffafa0; font-size: 13px; }
.field-error:empty { display: none; }
.quote-amount { min-width: 0; }
.quote-amount .btn { min-height: 44px; padding-inline: 0; color: var(--accent); }
.quote-row { align-items: start; }
.quote-amount [hidden], .mall-checkout [hidden] { display: none; }
.wallet-rules { border-block-start: 1px solid var(--line); }
.wallet-rules summary {
  padding-block: 13px;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}
.wallet-rules p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.payout-page { max-width: 780px; }
.payout-review { display: grid; gap: 20px; }
.payout-review > .btn, .payout-review > .textlink { justify-self: start; }
.payout-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px 32px;
  margin: 0;
  border-block-end: 1px solid var(--line);
  padding-block-end: 18px;
}
.payout-totals > :first-child { flex: 1 1 185px; }
.payout-totals > :first-child dd { color: var(--gold); font-size: clamp(26px, 3vw, 42px); }
.bank-rules {
  background: linear-gradient(135deg, #302623, #201d20 68%);
}
.linked-bank {
  border-block-start: 1px solid var(--line);
  padding-block-start: 16px;
}
.linked-bank small {
  color: var(--muted);
}
.linked-bank .bank-identity {
  margin-top: 6px;
}
[dir='rtl'] .bank-card .btn .icon {
  transform: scaleX(-1);
}
@media (max-width: 760px) {
  .bank-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .bank-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .bank-card .btn, .wallet-layout .bank-card .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .bank-fields, .bank-numbers {
    grid-template-columns: minmax(0, 1fr);
  }
  .bank-form > .btn,
  .payout-review .form > .btn,
  .payout-review > .btn {
    justify-self: stretch;
    min-height: 48px;
  }
}
.inline-alert {
  font-size: 13px;
  line-height: 1.55;
  background: #332f25;
  color: #ecdbb7;
  border-radius: 12px;
  padding: 13px 17px;
}
.tabs {
  margin-bottom: 15px;
}
.dialog {
  background: #222226;
  border-radius: 22px;
  box-shadow:
    var(--bezel),
    0 18px 65px #07080a66;
}
.dialog .dialog-head h2 {
  font-size: 32px;
}
input,
textarea,
select {
  background-color: #17171b;
}

@media (min-width: 1700px) {
  .poster-rail,
  .poster-grid {
    --columns: 7;
  }
}
@media (max-width: 1190px) {
  .nav-search {
    display: none;
  }
  .search-small {
    display: inline-flex;
  }
  .desktop-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .poster-rail,
  .poster-grid {
    --columns: 5;
  }
}
@media (min-width: 761px) and (max-width: 965px) {
  .header-inner {
    gap: 19px;
  }
  .desktop-nav {
    gap: 13px;
  }
  .desktop-nav .navlink {
    font-size: 13px;
  }
  .header-tools {
    gap: 3px;
  }
  .hero-notes {
    width: min(53vw, 565px);
  }
  .hero-stage {
    padding-bottom: 31px;
  }
  .filmstrip {
    max-width: 85px;
  }
  .poster-rail,
  .poster-grid {
    --columns: 4;
  }
  .wallet-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: clamp(18px, 4.7vw, 32px);
  }
  .header-inner {
    min-height: 62px;
    gap: 8px;
  }
  .brand {
    font-size: 23px;
    gap: 6px;
  }
  .brand-mark {
    width: 23px;
    height: 23px;
  }
  .desktop-nav {
    display: none;
  }
  .header-inner > .brand {
    flex: none;
  }
  .header-tools {
    container: header-actions / inline-size;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1px;
    justify-content: flex-end;
  }
  .header-tools > .iconbtn {
    width: 44px;
    height: 44px;
  }
  .login-btn,
  .account-chip {
    padding: 6px 12px;
    min-height: 38px;
    margin-inline-start: 4px;
    font-size: 13px;
  }
  .login-btn,
  .account-chip {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.2;
  }
  #mobile-nav {
    display: flex;
    position: fixed;
    z-index: 3;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 3px max(9px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom))
      max(9px, env(safe-area-inset-left));
    background: #111215f5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  #mobile-nav .navlink {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 3px;
    gap: 3px;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    color: var(--muted);
  }
  #mobile-nav .navlink.active {
    color: var(--accent);
  }
  #mobile-nav .icon {
    width: 18px;
    height: 18px;
  }
  #toast {
    inset-block-end: calc(74px + env(safe-area-inset-bottom));
  }
  .hero-stage {
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    min-height: clamp(478px, 65svh, 630px);
    gap: 6px;
    padding-block: clamp(200px, 28svh, 290px) 6px;
  }
  .hero-image {
    object-position: center 25%;
  }
  .screen-image::after {
    background: linear-gradient(
      0deg,
      var(--bg) 0%,
      rgb(13 16 21 / 96%) 12%,
      rgb(13 16 21 / 79%) 35%,
      rgb(13 16 21 / 27%) 54%,
      transparent 72%
    );
  }
  .hero-notes {
    width: min(100%, 570px);
  }
  .program-meta,
  .program-label,
  .program-meta .reward-meta {
    font-size: 11px;
  }
  .program-label {
    gap: 6px;
    margin-inline-end: 10px;
  }
  .program-label::before {
    width: 16px;
  }
  .program-meta > span + span::before {
    margin-inline: 6px;
  }
  .hero-notes .title-block {
    margin-top: 10px;
  }
  .title-block :is(h1, .program-title) {
    font-size: clamp(52px, 10.2vw, 77px);
  }
  .title-block :is(h1, .program-title):lang(zh) {
    font-size: clamp(61px, 15vw, 86px);
  }
  .original-title {
    font-size: 10px;
    margin-top: 3px;
    letter-spacing: 0.2em;
  }
  .synopsis {
    font-size: 13px;
    line-height: 1.58;
    margin: 11px 0 14px;
  }
  .watch-cta,
  .actions .watch-cta {
    min-height: 44px;
    padding-inline: 20px;
  }
  .hero-controls {
    width: 100%;
    gap: 0;
    justify-content: start;
  }
  .frame-number {
    font-size: 10px;
    margin-inline-end: 7px;
  }
  .frame-number strong {
    font-size: 15px;
  }
  .filmstrip {
    max-width: 51%;
    margin-inline: 0 auto;
  }
  .filmstrip-item {
    min-width: 30px;
  }
  .hero-controls .iconbtn {
    min-height: 44px;
    height: 44px;
    width: 44px;
    border: 0;
    background: transparent;
  }
  .rails {
    padding-block: 9px calc(83px + env(safe-area-inset-bottom));
    gap: 33px;
  }
  .sect-head {
    margin-bottom: 10px;
  }
  .rail h2,
  .genre-index h2,
  .episode-overview h2 {
    font-size: 22px;
  }
  .rail-controls {
    gap: 8px;
  }
  .rail-arrows {
    display: none;
  }
  .poster-rail,
  .poster-grid {
    --gap: 10px;
  }
  .poster-rail {
    --columns: 3.65;
  }
  .poster-grid {
    --columns: 3;
  }
  .poster-caption {
    padding-top: 8px;
    gap: 3px;
  }
  .poster-meta {
    font-size: 11px;
  }
  .genre-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .genre-entry {
    min-height: 105px;
    padding: 13px;
  }
  .genre-entry-label strong {
    font-size: 17px;
  }
  .genre-entry-label small {
    font-size: 11px;
  }
  .genre-entry > .icon {
    width: 15px;
  }
  .interior {
    padding: 17px 0 calc(83px + env(safe-area-inset-bottom));
  }
  .series-feature {
    min-height: 405px;
    padding: 22px;
  }
  .series-art::after {
    background: linear-gradient(0deg, #0b0c12f5 6%, #0b0c12a8 48%, transparent 80%);
  }
  .series-copy {
    width: min(100%, 530px);
    gap: 9px;
    padding-top: 130px;
  }
  .series-copy .title-block h1,
  .series-copy .title-block h1:lang(zh) {
    font-size: clamp(48px, 11vw, 70px);
  }
  .series-copy .section-label {
    display: none;
  }
  .wallet-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-page .metric-row {
    gap: 7px;
  }
  .account-page .metric {
    padding: 14px;
  }
  .account-page .metric > span svg {
    display: none;
  }
}

@media (max-width: 490px) {
  .poster-rail {
    --columns: 2.55;
  }
  .poster-grid {
    --columns: 2;
  }
  .browse-head {
    align-items: stretch;
    flex-direction: column;
  }
  .browse-search input {
    width: 100%;
  }
  .genre-chips {
    margin-block: 16px 21px;
  }
  .account-page .metric-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 95px), 1fr));
  }
}
@media (max-width: 350px) {
  :root {
    --gutter: 15px;
  }
  .header-tools > .iconbtn {
    width: 40px;
  }
  .poster-rail {
    --columns: 2.3;
  }
  .filmstrip-item {
    min-width: 24px;
  }
}
@container header-actions (max-width: 185px) {
  .login-btn {
    min-height: 44px;
    width: 44px;
    padding: 0;
    margin: 0;
    flex: none;
    background: transparent;
    color: var(--text);
  }
  .login-btn > .icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
  }
  .login-btn > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
