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: 1240px;
  --margin: 24px;
  --bg: #121313;
  --surface: #222424;
  --line: #393c38;
  --accent: #bedf64;
  --brand: #eff6eb;
  --muted: #b8bdb5;
  --text: #f8fbf7
}

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

.mast {
  background: #131414;
  border-bottom: 1px solid #2c2e2b;
  position: sticky;
  top: 0;
  z-index: 20
}

.bar {
  height: 64px
}

.nav {
  font-size: 14px;
  font-weight: 600
}

.tools .catalog-search {
  border-radius: 30px;
  border: 1px solid var(--line);
  padding-inline: 9px;
  background: #222
}

.tools input {
  border: 0
}

.feature {
  margin-block-start: 24px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: #202321
}

.slide {
  height: min(33vw, 408px);
  position: relative;
  isolation: isolate
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -1
}

.scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #171a17 1%, #151a1566 55%, transparent), linear-gradient(90deg, #14191480, transparent 64%)
}

.scene img {
  object-position: center 39%
}

.lead {
  position: absolute;
  bottom: 23px;
  inset-inline-start: 32px;
  width: min(640px, 73%);
  pointer-events: none
}

.lead a {
  pointer-events: auto
}

.lead h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.16;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lead p {
  margin: 7px 0
}

.status {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700
}

.teaser {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e4e6df
}

.lead .tags {
  margin: 6px 0 0
}

.lead .tags a {
  background: #1a1d1a99;
  border-color: #ffffff34
}

.thumbs {
  height: 71px;
  display: flex;
  padding: 10px 32px;
  gap: 8px
}

.thumbs button {
  width: 78px;
  border: 1px solid #ffffff30;
  border-radius: 5px;
  overflow: hidden;
  padding: 0;
  background: #111
}

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

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

.feature .stops {
  position: absolute;
  inset-inline-end: 27px;
  bottom: 26px;
  gap: 6px
}

.feature .stops button {
  height: 6px;
  width: 6px;
  border-radius: 5px
}

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

.rails .shelf {
  margin-block: 37px 57px
}

.rails .shelf-title h2 {
  font-size: 23px
}

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

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

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

.catalog-cover img {
  aspect-ratio: 2/3
}

.catalog-title {
  line-height: 1.4
}

.file {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  margin: 22px 0 34px
}

.portrait {
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden
}

.copy h1 {
  font-size: 38px
}

.watch-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 28%);
  gap: 24px;
  align-items: start
}

.screen {
  position: relative;
  height: calc(100dvh - 64px);
  background: #020202
}

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

.back {
  position: absolute;
  top: 16px;
  inset-inline-start: 18px;
  background: #101110a8;
  border-radius: 20px;
  padding: 8px 14px;
  color: white
}

.watch-panel {
  background: #1b1d1c
}

.watch-tab {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  border-bottom: 1px solid var(--line)
}

.watch-info {
  padding: 20px
}

.watch-info h1 {
  font-size: 22px
}

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

.watch-info .engagement {
  gap: 12px
}

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

  .file {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 22px
  }

  .watch-board {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 8px
  }
}

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

  .bar {
    height: 48px
  }

  .feature {
    width: 100%;
    border-radius: 0;
    margin-top: 0
  }

  .slide {
    height: auto;
    aspect-ratio: 16/9
  }

  .lead {
    inset-inline-start: 16px;
    bottom: 18px;
    width: 84%
  }

  .lead h2 {
    font-size: clamp(21px, 6vw, 28px)
  }

  .lead .teaser,
  .lead .tags,
  .thumbs {
    display: none
  }

  .lead .status {
    margin: 2px 0 0
  }

  .feature .stops {
    bottom: 10px;
    inset-inline-end: 12px;
    gap: 4px
  }

  .feature .stops button {
    width: 5px;
    height: 5px
  }

  .rails .shelf {
    margin-block: 24px
  }

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

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

  .rails .shelf:not(.full-collection) .catalog-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 20px) / 3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin
  }

  .catalog-card {
    scroll-snap-align: start
  }

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

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

  .file {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px
  }

  .copy h1 {
    margin: 0;
    font-size: 22px
  }

  .file .synopsis,
  .file .engagement {
    grid-column: 1/-1
  }

  .watch-board {
    display: block
  }

  .screen {
    height: 100svh
  }

  .watch-panel {
    padding: 0
  }

  .watch-info {
    padding: 16px
  }

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

  .watch-info .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(min-width:601px) {
  .file {
    margin-top: 53px
  }

  .file .copy h1 {
    margin-top: 0
  }

  .portrait {
    aspect-ratio: 280/397
  }
}

@media(max-width:600px) {
  .file {
    grid-template-columns: min(33vw, 128px) minmax(0, 1fr);
    grid-template-areas: "art title" "art facts" "art tags" "art start" "blurb blurb" "meta meta";
    gap: 7px 16px;
    margin-top: 35px;
    align-items: start
  }

  .file .copy {
    display: contents
  }

  .file .portrait {
    grid-area: art;
    aspect-ratio: 128/181
  }

  .file h1 {
    grid-area: title
  }

  .file .facts {
    grid-area: facts;
    margin: 0
  }

  .file .tags {
    grid-area: tags;
    margin: 0
  }

  .file .action {
    grid-area: start;
    justify-self: start
  }

  .file .synopsis {
    grid-area: blurb;
    margin: 12px 0 0
  }

  .file .engagement {
    grid-area: meta
  }
}

.age-dialog {
  width: min(460px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  margin: auto;
  padding: 30px;
  background: #151215;
  border: 1px solid #663847;
  border-radius: 22px;
  box-shadow: 0 18px 60px #0005;
  color: #f6f2f4;
  direction: inherit
}

.age-dialog:not([open]) {
  display: none
}

.age-dialog::backdrop {
  background: rgba(16, 17, 18, .96)
}

html:has(.age-dialog[open]) {
  overflow: hidden
}

.age-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px
}

.age-identity .brand {
  font-size: 23px;
  color: #f6f2f4
}

.age-identity>span {
  border: 1px solid #6d394b;
  border-radius: 7px;
  padding: 4px 9px;
  color: #ef83a8;
  background: #231820;
  font-size: 12px;
  line-height: 20px
}

.age-dialog h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 13px
}

.age-dialog>p {
  color: #b9b2b6;
  font-size: 14px;
  line-height: 1.85;
  margin: 0
}

.age-decisions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 10px;
  margin-top: 26px
}

.age-decisions button {
  display: block;
  min-height: 46px;
  padding: 10px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 13px;
  overflow-wrap: anywhere;
  font-weight: 550;
  cursor: pointer
}

.age-decisions [data-age-exit] {
  background: transparent;
  border: 1px solid #4a4046;
  color: #d5cbd0
}

.age-decisions [data-age-enter] {
  background: #e96694;
  border: 1px solid transparent;
  color: #210b13
}

.age-decisions [data-age-enter]:hover {
  background: #f27da6
}

.age-decisions button:focus-visible {
  outline: 2px solid #e96694;
  outline-offset: 3px
}

@media(max-width:700px) {
  .age-dialog {
    padding: 24px;
    border-radius: 20px
  }

  .age-identity {
    margin-bottom: 24px
  }

  .age-dialog h2 {
    font-size: 22px
  }

  .age-dialog p {
    font-size: 13px
  }

  .age-decisions {
    gap: 8px;
    margin-top: 24px
  }

  .age-decisions button {
    font-size: 12px
  }
}

@media(max-width:340px) {
  .age-decisions {
    grid-template-columns: 1fr
  }

  .age-decisions [data-age-enter] {
    grid-row: 1
  }
}
