body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif
}

a {
  text-decoration: none
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere
}

h1 {
  line-height: 1.2
}

img {
  display: block
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--margin)));
  margin-inline: auto
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  font-size: 22px;
  color: var(--brand);
  font-weight: 800
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.brand:hover {
  color: var(--accent)
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-width: 0
}

.nav,
.tools,
.filters,
.tags,
.foot nav,
.stops {
  display: flex;
  align-items: center;
  gap: 16px
}

.nav {
  min-width: 0
}

.nav a {
  white-space: nowrap
}

.tools {
  gap: 10px
}

.nav a:hover,
.foot a:hover,
.tags a:hover,
.shelf-title a:hover {
  color: var(--accent)
}

.menu {
  position: relative
}

.menu>summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px
}

.menu>summary::-webkit-details-marker {
  display: none
}

.menu>div {
  z-index: 80;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 7px);
  width: min(275px, 86vw);
  padding: 17px;
  background: var(--surface);
  box-shadow: 0 8px 40px #0008;
  border: 1px solid var(--line);
  border-radius: 9px
}

.menu nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px
}

.menu .catalog-language {
  display: block;
  margin-top: 12px
}

.catalog-search {
  max-width: 200px
}

.catalog-search input,
.catalog-language select {
  border-color: var(--line)
}

.inside {
  padding-block: 24px 45px
}

.inside h1 {
  margin-block: 14px
}

.crumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  overflow-wrap: anywhere
}

.filters,
.tags {
  flex-wrap: wrap;
  margin-block: 16px
}

.tags {
  gap: 7px
}

.tags a,
.facts {
  font-size: 13px
}

.tags a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 5px 12px
}

.shelf {
  margin-block: 30px
}

.shelf-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px
}

.shelf-title h2 {
  margin: 0
}

.shelf-title a,
.shelf-title>span,
.facts {
  color: var(--muted)
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: var(--button-text, #101010);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px
}

.full-collection,
.inside {
  scroll-margin-top: 70px
}

.engagement {
  font-size: 13px;
  color: var(--muted)
}

.episode {
  border-color: var(--line)
}

.episode.active,
.pagination [aria-current] {
  background: var(--accent);
  color: var(--button-text, #101010);
  border-color: transparent
}

.foot {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-block: 32px 45px
}

.foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap
}

.foot nav {
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px
}

.foot small {
  color: var(--muted)
}

.download {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 7vw, 90px);
  background: var(--surface);
  border-radius: 14px;
  padding: clamp(20px, 6vw, 70px)
}

.download .domain-qr {
  flex: none
}

[data-panel][hidden] {
  display: none !important
}

.stops button {
  padding: 0;
  border: 0;
  background: #fff6;
  cursor: pointer
}

.stops button[aria-pressed=true] {
  background: var(--accent)
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.copy {
  min-width: 0
}

.synopsis {
  line-height: 1.7;
  overflow-wrap: anywhere
}

.player-wrap {
  max-width: 100%
}

.player-wrap video {
  height: 100%;
  width: 100%
}

@media(max-width:1060px) {
  .tools>.catalog-language {
    display: none
  }

  .nav {
    gap: 13px
  }
}

@media(max-width:850px) {
  .bar>.nav {
    display: none
  }
}

@media(max-width:600px) {
  .inside {
    padding-block: 15px 28px
  }

  .download {
    flex-direction: column;
    text-align: center
  }

  .brand {
    font-size: 19px
  }

  .brand img {
    width: 29px;
    height: 29px
  }

  .tools>.catalog-search {
    display: none
  }

  .foot .wrap {
    align-items: flex-start;
    flex-direction: column
  }

  .foot {
    margin-top: 27px
  }

  .shelf {
    margin-block: 23px
  }

  .shelf-title {
    gap: 8px
  }

  .shelf-title h2 {
    font-size: 20px
  }

  .shelf-title a {
    font-size: 13px
  }
}

@media(prefers-reduced-motion:no-preference) {

  .action,
  .episode,
  .nav a,
  .tags a,
  .stops button {
    transition: color .18s, background .18s, transform .18s
  }

  .action:hover {
    filter: brightness(1.1);
    transform: translateY(-2px)
  }

  .episode:hover {
    border-color: var(--accent)
  }

  .menu[open]>div {
    animation: open-panel .16s ease-out
  }

  .catalog-cover img {
    transition: transform .3s, filter .3s
  }

  .catalog-cover:hover img {
    transform: scale(1.035);
    filter: saturate(1.12)
  }

  @keyframes open-panel {
    from {
      opacity: 0;
      transform: translateY(-6px)
    }

    to {
      opacity: 1;
      transform: none
    }
  }
}

:root {
  --margin: 3vw;
  --max: 1480px;
  --bg: #0b0a0a;
  --surface: #1b1917;
  --text: #f3efe8;
  --muted: #b9afa0;
  --line: #423c32;
  --accent: #dfc28f;
  --brand: #eaca91
}

.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden
}

.mast {
  height: 76px;
  background: #11100f;
  border-bottom: 1px solid var(--line);
  z-index: 20;
  position: relative
}

.bar {
  height: 100%;
  justify-content: flex-start
}

.bar .tools {
  margin-inline-start: auto
}

.brand {
  font-weight: 900;
  color: var(--brand)
}

.nav {
  gap: 32px;
  font-weight: 600
}

.tools>.catalog-search {
  background: #201f1e;
  border-radius: 22px;
  padding-inline: 7px
}

.tools>.catalog-search input {
  border: 0
}

.ribbon,
.ticker {
  display: flex;
  align-items: center;
  gap: 17px;
  overflow: auto;
  scrollbar-width: none
}

.ribbon {
  min-height: 73px
}

.ribbon a {
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 20px;
  font-weight: 650
}

.ribbon a:first-child {
  background: var(--accent);
  color: #231b11
}

.matrix {
  display: grid;
  grid-template-columns: 1.225fr 1fr;
  gap: 20px
}

.billboard {
  aspect-ratio: 2/1;
  min-width: 0;
  background: #15130f;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px
}

.billboard article,
.billboard .content-image {
  position: absolute;
  inset: 0
}

.billboard .content-image:after,
.mini:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000c, transparent 65%)
}

.billboard article>div {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 23px;
  max-width: 82%;
  pointer-events: none
}

.billboard h2 {
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.15;
  margin: 4px 0
}

.billboard article>div a {
  pointer-events: auto
}

.billboard small,
.tonight h2,
.shelf-title h2 {
  color: var(--accent)
}

.stops {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 14px;
  gap: 5px
}

.stops button {
  width: 7px;
  height: 7px;
  border-radius: 9px
}

.stops button[aria-pressed=true] {
  width: 18px
}

.tonight {
  display: flex;
  min-height: 0;
  min-width: 0;
  flex-direction: column
}

.tonight h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 9px
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px;
  flex: 1
}

.mini {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #342d25;
  isolation: isolate
}

.mini:first-child {
  grid-row: span 2
}

.mini img {
  position: absolute;
  inset: 0
}

.mini strong {
  position: absolute;
  bottom: 9px;
  inset-inline: 8px;
  z-index: 1;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 2px 8px #000
}

.ticker {
  min-height: 50px;
  margin: 15px 0 18px;
  border-block: 1px solid #322c24;
  font-size: 13px
}

.ticker b {
  color: var(--accent);
  white-space: nowrap
}

.ticker a {
  white-space: nowrap
}

.plaza-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px 10px
}

.shelf-title {
  margin-block: 10px;
  min-height: 26px
}

.shelf-title h2 {
  font-size: 18px
}

.plaza-card {
  min-width: 0
}

.plaza-picture {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 5px
}

.plaza-copy h3 {
  font-size: 15px;
  margin: 3px 0;
  line-height: 1.4
}

.plaza-copy p {
  font-size: 12px;
  margin: 4px 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.plaza-kind,
.plaza-open {
  font-size: 11px;
  color: var(--accent)
}

.plaza-preview,
.reaction,
.dock {
  display: none
}

.feature-file {
  display: grid;
  grid-template-columns: minmax(0, 2.64fr) minmax(0, 1fr);
  gap: 33px
}

.file-stage {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #131313;
  border-radius: 9px;
  overflow: hidden
}

.round-play {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0009;
  color: white
}

.intro {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface)
}

.intro h1 {
  font-size: 25px
}

.intro .episode {
  padding: 4px 8px
}

.intro .synopsis {
  max-height: 10.2em;
  overflow: auto
}

.theatre {
  position: relative;
  isolation: isolate;
  background: #080808;
  overflow: hidden
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .15;
  filter: blur(35px)
}

.theatre-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.75fr) 1fr;
  gap: 3vw;
  align-items: center
}

.screen {
  position: relative;
  background: #050505;
  height: calc(100svh - 52px);
  border-radius: 12px;
  overflow: hidden
}

.screen .player-wrap {
  height: 100%
}

.program,
.theatre-picks {
  min-width: 0
}

.program-cover {
  max-width: 150px;
  aspect-ratio: 2/3;
  margin-block: 18px
}

.program h1 {
  font-size: 27px
}

.program .synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.theatre-picks {
  background: #141414bb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px
}

.back,
.choose {
  position: absolute;
  color: white;
  background: #0009;
  border-radius: 16px;
  padding: 5px 10px;
  font-size: 13px
}

.back {
  inset-inline-start: 13px;
  top: 12px
}

.choose {
  inset-inline-end: 14px;
  bottom: 62px
}

body[data-route="watch"] .mast {
  display: none
}

.theatre-notes h2 {
  font-size: 21px
}

@media(max-width:980px) and (min-width:701px) {

  .catalog-grid,
  .plaza-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr))
  }

  .nav {
    gap: 12px
  }

  .feature-file {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px
  }

  .intro {
    padding: 12px
  }

  .program-cover {
    max-width: 90px
  }

  .theatre-layout {
    grid-template-columns: 1fr 2fr;
    gap: 15px
  }

  .program {
    display: none
  }
}

@media(max-width:700px) {
  :root {
    --margin: 16px
  }

  .mast {
    height: 52px
  }

  .mast .bar {
    gap: 5px
  }

  .brand {
    font-size: 17px
  }

  .brand img {
    width: 26px;
    height: 26px
  }

  .tools>.catalog-search,
  .tools>.catalog-language {
    display: none
  }

  .menu summary {
    height: 34px;
    width: 34px
  }

  .dock {
    display: flex;
    position: fixed;
    z-index: 15;
    bottom: max(10px, env(safe-area-inset-bottom));
    inset-inline: 12px;
    min-height: 56px;
    border: 1px solid #ffffff37;
    border-radius: 25px;
    justify-content: space-evenly;
    align-items: center;
    background: #141311df;
    backdrop-filter: blur(15px)
  }

  .dock a {
    min-width: 0;
    max-width: 25%;
    overflow-wrap: anywhere;
    font-size: 10px;
    text-align: center;
    line-height: 1.2
  }

  .dock i {
    font: normal 21px/1.1 system-ui;
    display: block
  }

  .foot {
    padding-bottom: 90px
  }

  body[data-route="home"] .mast {
    position: absolute;
    top: 0;
    inset-inline: 0;
    background: linear-gradient(#090808c7, transparent);
    border: 0
  }

  .plaza-home {
    width: 100%;
    position: relative
  }

  .ribbon {
    position: absolute;
    top: 52px;
    z-index: 3;
    inset-inline: 12px;
    min-height: 36px;
    gap: 6px
  }

  .ribbon a {
    padding: 4px 9px;
    font-size: 12px;
    background: #09090975;
    color: #fff
  }

  .matrix,
  .ticker {
    display: none
  }

  .plaza>.shelf-title {
    display: none
  }

  .plaza-grid {
    display: block
  }

  .plaza-card {
    height: 100svh;
    position: relative;
    isolation: isolate;
    background: #080808;
    overflow: hidden;
    border-bottom: 1px solid #222
  }

  .plaza-picture,
  .plaza-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    object-fit: cover
  }

  .plaza-preview {
    pointer-events: none;
    opacity: 0
  }

  .plaza-preview.is-playing {
    opacity: 1
  }

  .plaza-card:after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(0deg, #080808 1%, #08080899 27%, transparent 59%)
  }

  .plaza-copy {
    position: absolute;
    bottom: 88px;
    inset-inline-start: 16px;
    width: min(78%, 430px);
    z-index: 1
  }

  .plaza-copy h3 {
    font-size: 24px
  }

  .plaza-kind {
    font-weight: 700
  }

  .plaza-copy p {
    font-size: 13px;
    color: #eee
  }

  .plaza-open {
    display: inline-block;
    margin-top: 8px;
    background: #e6c694;
    color: #231a0c;
    padding: 7px 20px;
    border-radius: 22px;
    font-weight: 700
  }

  .reaction {
    display: grid;
    gap: 12px;
    position: absolute;
    inset-inline-end: 14px;
    bottom: 128px;
    z-index: 1
  }

  .reaction a {
    font: 24px/1 system-ui;
    color: #fff;
    text-align: center;
    background: #0005;
    border-radius: 50%;
    padding: 4px
  }

  .plaza>.pagination,
  .plaza-home>.shelf,
  .plaza-home>#hot,
  .plaza-home>#fresh {
    padding-inline: 14px
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px 8px
  }

  .catalog-title {
    font-size: 13px
  }

  .catalog-meta {
    font-size: 11px
  }

  .dossier {
    width: 100%;
    padding-top: 0
  }

  .dossier>.crumb {
    padding-inline: 16px;
    margin: 8px 0
  }

  .feature-file {
    display: block
  }

  .file-stage {
    border-radius: 0
  }

  .intro {
    border: 0;
    background: transparent;
    padding: 14px 16px
  }

  .intro h1 {
    font-size: 23px
  }

  .dossier>.engagement,
  .dossier>.series-gallery,
  .dossier>.shelf {
    margin-inline: 16px
  }

  .theatre-layout {
    display: block;
    width: 100%;
    min-height: 0
  }

  .program {
    display: none
  }

  .screen {
    height: 100svh;
    width: 100%;
    border-radius: 0
  }

  .theatre-picks {
    margin: 12px 16px;
    padding: 13px
  }

  .theatre-notes {
    padding-top: 5px
  }

  body[data-route="watch"] .dock {
    display: none
  }
}

@media(prefers-reduced-motion:no-preference) {
  .plaza-preview {
    transition: opacity .22s
  }

  .mini img,
  .plaza-picture img {
    transition: transform .25s
  }

  .mini:hover img,
  .plaza-picture:hover img {
    transform: scale(1.035)
  }
}

.reel-pages {
  display: none
}

@media(max-width:700px) {
  .reel-pages {
    display: block;
    position: fixed;
    z-index: 18;
    inset-inline-end: 15px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    font-size: 12px;
    color: #f1e1c4
  }

  .reel-pages summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #c9ac7e90;
    border-radius: 14px;
    background: #161310eb;
    padding: 3px 8px
  }

  .reel-pages summary::-webkit-details-marker {
    display: none
  }

  .reel-pages nav {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 6px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: min(230px, 75vw);
    max-height: 42svh;
    overflow: auto;
    padding: 8px;
    border-radius: 9px;
    background: #191614f5;
    border: 1px solid #68583e
  }

  .reel-pages nav a {
    padding: 4px 0;
    text-align: center;
    border: 1px solid #504439;
    border-radius: 5px;
    color: white
  }

  .reel-pages nav a:hover {
    background: var(--accent);
    color: #191511
  }
}

@media(min-width:981px) {
  .theatre-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.747fr) minmax(0, 1.072fr)
  }
}

@media(max-width:700px) {
  body[data-route="detail"] .mast {
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(#0e0d0cbf, transparent);
    border: 0
  }

  body[data-route="detail"] .dossier>.crumb {
    display: none
  }
}
