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 {
  --max: 1284px;
  --margin: 24px;
  --bg: #131416;
  --surface: #232428;
  --line: #424348;
  --accent: #fc7203;
  --brand: white;
  --text: #f4f4f5;
  --muted: #a4a5a9;
  --button-text: #fff
}

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

.mast {
  background: #000;
  position: sticky;
  top: 0;
  z-index: 15
}

.bar {
  height: 70px
}

.brand {
  font-weight: 900;
  letter-spacing: -.04em
}

.nav {
  gap: 23px;
  flex: 1
}

.nav a:first-child {
  color: var(--accent);
  position: relative
}

.nav a:first-child:after {
  content: "";
  position: absolute;
  bottom: -6px;
  inset-inline-start: calc(50% - 8px);
  width: 16px;
  height: 2px;
  background: var(--accent)
}

.tools .catalog-search {
  overflow: hidden;
  border-radius: 6px;
  background: #27282b;
  gap: 0;
  height: 36px
}

.tools .catalog-search input {
  border: 0;
  font-size: 14px;
  padding-inline: 12px
}

.tools .catalog-search button {
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  width: 48px;
  flex: none
}

.menu summary {
  border-color: #333
}

.stage {
  width: 100%;
  aspect-ratio: 1920/740;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #222
}

.stage-slide,
.stage-art {
  position: absolute;
  inset: 0
}

.stage-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #101113e8 0, transparent 72%), linear-gradient(90deg, #0c0d1080, transparent 58%)
}

.stage-art img {
  object-position: center 36%
}

.stage-body {
  position: absolute;
  inset-inline-start: max(var(--margin), calc((100% - var(--max)) / 2));
  bottom: 9%;
  width: min(37%, 540px)
}

.stage h2 {
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1.2;
  margin: 0;
  color: white;
  text-shadow: 0 2px 8px #0006
}

.stage-body p {
  margin: 12px 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #eee;
  font-size: 15px
}

.stage .action {
  border-radius: 7px
}

.switcher {
  position: absolute;
  bottom: 9%;
  inset-inline-end: max(var(--margin), calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 10px
}

.switcher>button {
  background: #14151785;
  color: #fff;
  border: 1px solid #ffffff70;
  border-radius: 100%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1
}

.stops {
  gap: 7px
}

.stops button {
  width: clamp(48px, 5.4vw, 82px);
  aspect-ratio: 16/9;
  border-radius: 5px;
  border: 2px solid transparent;
  overflow: hidden
}

.stops img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72
}

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

.stops button[aria-pressed=true] img {
  opacity: 1
}

.cinema .shelf {
  padding-inline: 13px;
  margin: 24px 0 38px
}

.shelf-title {
  margin-bottom: 12px;
  min-height: 60px;
  align-items: center
}

.shelf-title h2 {
  font-size: 32px;
  font-weight: 500
}

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

.catalog-cover img {
  aspect-ratio: 9/14
}

.catalog-cover {
  border-radius: 8px
}

.catalog-title {
  font-size: 17px;
  line-height: 1.45
}

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

.file-page {
  max-width: 1186px
}

.dossier {
  display: grid;
  grid-template-columns: minmax(160px, 285px) minmax(0, 1fr);
  gap: 40px;
  margin-block: 23px 55px
}

.file-art {
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden
}

.copy h1 {
  font-size: 34px
}

.copy .action {
  border-radius: 5px
}

.file-page .episode-picker {
  padding: 20px;
  background: var(--surface);
  border-radius: 11px;
  margin-bottom: 34px
}

.projection {
  background: #060606;
  display: grid;
  justify-items: center
}

.reel-screen {
  position: relative;
  width: min(100%, calc((100dvh - 70px) * .5625));
  height: calc(100dvh - 70px)
}

.reel-screen .player-wrap {
  height: 100%;
  border-radius: 0
}

.return,
.pick {
  position: absolute;
  background: #0009;
  color: #fff;
  border-radius: 22px;
  padding: 7px 13px;
  font-size: 13px
}

.return {
  inset-inline-start: 12px;
  top: 14px
}

.pick {
  inset-inline-end: 12px;
  bottom: 65px
}

.watch-copy {
  max-width: 900px
}

@media(max-width:980px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px
  }

  .stops button {
    width: 46px
  }

  .nav {
    gap: 12px
  }
}

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

  .bar {
    height: 46px
  }

  .brand {
    font-size: 19px
  }

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

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

  .stage-body {
    inset-inline-start: 14px;
    bottom: 16px;
    width: 74%
  }

  .stage h2 {
    font-size: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden
  }

  .stage-body p,
  .stage-body>.action,
  .switcher>button,
  .stops img {
    display: none
  }

  .switcher {
    bottom: 9px;
    inset-inline-end: 12px
  }

  .switcher .stops {
    gap: 4px
  }

  .switcher .stops button {
    width: 5px;
    height: 5px;
    border: 0;
    background: #fff8;
    border-radius: 99px;
    aspect-ratio: auto
  }

  .switcher .stops button[aria-pressed=true] {
    width: 15px;
    background: var(--accent)
  }

  .cinema .shelf {
    margin: 10px 0 18px;
    padding: 0
  }

  .shelf-title {
    min-height: 27px;
    margin-bottom: 10px
  }

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

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

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

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

  .catalog-cover {
    border-radius: 5px
  }

  .file-page {
    width: 100%;
    padding-inline: 14px
  }

  .dossier {
    display: block;
    margin: 13px 0 24px
  }

  .file-art {
    width: min(65%, 210px);
    margin: auto
  }

  .copy h1 {
    font-size: 25px
  }

  .file-page .episode-picker {
    padding: 14px
  }

  .reel-screen {
    width: 100%;
    height: 100svh
  }

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

  .watch-copy {
    padding-inline: 8px
  }
}

.catalog-cover {
  position: relative
}

.catalog-cover img {
  aspect-ratio: 157/272
}

.genre-mark,
.episode-mark {
  position: absolute;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: #fff;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.genre-mark {
  top: 8px;
  inset-inline-start: 8px;
  background: var(--accent)
}

.episode-mark {
  bottom: 8px;
  inset-inline-end: 8px;
  background: #1d2325a6
}

.catalog-card h3 {
  margin: 4px 0 0;
  font-weight: 500
}

.catalog-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500
}

.card-detail {
  display: none
}

@media(max-width:700px) {
  .card-detail {
    display: inline-block;
    max-width: 100%;
    padding: 2px 9px;
    background: #383939;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    line-height: 20px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .catalog-meta {
    display: block
  }

  .genre-mark,
  .episode-mark {
    font-size: 10px;
    padding: 3px 5px
  }

  .genre-mark {
    top: 5px;
    inset-inline-start: 5px
  }

  .episode-mark {
    bottom: 5px;
    inset-inline-end: 5px
  }
}
