:root {
  --bg: #0d0d0d;
  --ink: #fff;
  --soft: #aaa;
  --pop: #5df2b8;
  --panel: #1a1b1e;
  --bar: #1d1d1b;
  --gutter: clamp(16px, 6.67vw, 128px);
  --head-gutter: clamp(22px, 6.67vw, 128px);
  --storyx: 5.1%;
  --storyb: 9%;
  --thumbx: 5.1%;
  --mobilebar: 59px;
  --herotop: 20px;
  --radius: 12px;
  --button-radius: 7px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--pop);
}

button {
  color: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--ink);
}

.brand img {
  width: 35px;
  height: 35px;
  display: block;
}

.brand strong {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.bar {
  background: var(--bar);
  position: sticky;
  top: 0;
  z-index: 6;
  border-bottom: 1px solid #ffffff0e;
}

.bar-inner,
.tools,
.desktop-nav {
  display: flex;
  align-items: center;
}

.bar-inner {
  height: 77px;
  gap: clamp(14px, 2.8vw, 45px);
  margin: auto;
  padding-inline: var(--head-gutter);
  max-width: 1920px;
}

.desktop-nav {
  gap: clamp(8px, 1.5vw, 22px);
  flex-shrink: 0;
}

.desktop-nav a {
  color: var(--soft);
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--pop);
}

.tools {
  margin-inline-start: auto;
  gap: 12px;
  min-width: 0;
}

.catalog-search {
  border-radius: 32px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid #ffffff17;
  height: 42px;
  align-items: center;
}

.catalog-search input {
  border: none;
  height: 100%;
  font-size: 13px;
}

.catalog-search button {
  display: grid;
  place-items: center;
}

.catalog-language select {
  font-size: 12px;
  border-color: #ffffff28;
  max-width: 94px;
}

.menu,
.find {
  display: none;
  position: relative;
}

.menu summary,
.find summary {
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

summary::-webkit-details-marker {
  display: none;
}

.menu>div,
.find>div {
  position: absolute;
  top: 32px;
  inset-inline-start: -2px;
  width: min(270px, 85vw);
  border: 1px solid #ffffff23;
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 36px #0009;
  z-index: 10;
}

.menu nav {
  display: grid;
  padding-block: 12px;
  gap: 5px;
}

.menu nav a {
  padding: 4px;
}

.find>div {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.page-content,
.billboard {
  width: min(1440px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-width: 0;
}

.billboard {
  margin-block-start: var(--herotop);
  height: clamp(425px, 43.3vw, 710px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #080808;
  border-radius: var(--radius);
}

.slide-field,
.slide,
.slide-cover,
.slide-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide[hidden] {
  display: none;
}

.slide-cover img {
  object-fit: cover;
  object-position: center 38%;
}

.slide-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #060909cd, transparent 76%), linear-gradient(0deg, #060909f2, transparent 77%);
}

.slide-copy {
  position: absolute;
  inset-inline-start: var(--storyx);
  bottom: var(--storyb);
  width: min(42%, 620px);
  z-index: 1;
  pointer-events: none;
}

.slide-copy a {
  pointer-events: auto;
}

.slide-copy h1,
.slide-copy h2 {
  font-size: clamp(27px, 2.4vw, 42px);
  line-height: 1.25;
  margin: 7px 0;
  letter-spacing: -.025em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.slide-copy p,
.slide-copy>span {
  color: #ddd;
  font-size: 14px;
  margin: 5px 0 9px;
}

.slide-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36em;
}

.slide-copy small {
  color: var(--pop);
  font-size: 14px;
}

.play-button {
  background: var(--pop);
  color: #111;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--button-radius);
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
}

.play-button:hover {
  color: #111;
  filter: brightness(1.1);
}

.previews {
  position: absolute;
  inset-inline-end: var(--thumbx);
  bottom: 78px;
  width: min(54%, 700px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.previews button {
  min-width: 0;
  border: 2px solid transparent;
  background: #111;
  border-radius: var(--button-radius);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  position: relative;
  aspect-ratio: .91;
  opacity: .72;
}

.previews img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.previews button span {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, #0009);
  color: white;
  font-size: 12px;
  padding: 12px 4px 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.previews [aria-pressed=true] {
  opacity: 1;
  border-color: var(--pop);
}

.dots {
  display: flex;
  gap: 7px;
  position: absolute;
  inset-inline-end: var(--thumbx);
  bottom: 36px;
  width: min(54%, 700px);
  justify-content: center;
}

.dots button {
  border: 0;
  padding: 0;
  width: 7px;
  height: 7px;
  border-radius: 5px;
  background: #ffffff66;
  cursor: pointer;
}

.dots [aria-pressed=true] {
  background: var(--pop);
  width: 22px;
}

.rack {
  margin-block: 32px 45px;
}

.rack-title,
.facts,
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rack-title {
  justify-content: space-between;
  margin-bottom: 18px;
}

.rack-title h2,
.dossier h2 {
  margin: 0;
  font-size: 24px;
}

.rack-title h2::before {
  content: "";
  display: inline-block;
  vertical-align: -1px;
  background: var(--pop);
  width: 4px;
  height: .85em;
  margin-inline-end: 10px;
  border-radius: 3px;
}

.rack-title>a {
  color: var(--soft);
  font-size: 14px;
  flex-shrink: 0;
}

.chips {
  flex-wrap: wrap;
}

.chips a,
.facts span {
  color: var(--soft);
  background: var(--panel);
  padding: 6px 15px;
  border-radius: var(--button-radius);
  font-size: 14px;
}

.chips a:hover {
  color: var(--pop);
}

.tag-rack {
  padding-block: 15px;
}

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

.catalog-cover {
  border-radius: var(--radius);
}

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

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

.catalog-meta,
.crumb {
  color: var(--soft);
  font-size: 13px;
}

.crumb {
  padding: 22px 0;
  overflow-wrap: anywhere;
}

.theater {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 24px;
}

.theater>*,
.dossier,
.info-card,
.app {
  background: var(--panel);
  padding: 22px;
  border-radius: var(--radius);
}

.screen {
  min-width: 0;
}

.screen h1 {
  font-size: 22px;
}

.player-wrap video {
  aspect-ratio: 16/9;
  height: auto;
}

.episode-picker h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.episode {
  padding: 8px 14px;
  border-color: #ffffff28;
}

.episode.active,
.pagination [aria-current] {
  color: var(--pop);
  border-color: var(--pop);
}

.text-link {
  display: block;
  color: var(--pop);
  margin-top: 18px;
  overflow-wrap: anywhere;
}

.dossier,
.info-card {
  margin-block: 22px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 16px;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
}

.dossier-grid h1,
.dossier-grid h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.dossier p,
.engagement,
.facts {
  color: var(--soft);
}

.facts {
  flex-wrap: wrap;
  gap: 5px;
}

.facts span,
.tags a {
  padding: 3px 8px;
  font-size: 13px;
  background: #ffffff0c;
}

.tags {
  gap: 5px;
  margin-top: 8px;
}

.engagement {
  font-size: 13px;
  align-items: flex-start;
}

.engagement a {
  border: 1px solid #ffffff20;
  border-radius: 16px;
  padding: 3px 9px;
}

.app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-block: 20px;
}

.list-body .chips {
  margin-block: 18px;
}

.pagination {
  gap: 6px;
}

.pagination a {
  border-color: #ffffff22;
}

footer {
  padding: 28px 0;
  border-top: 1px solid #ffffff19;
  background: var(--bar);
  color: var(--soft);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0;
  font-size: 14px;
}

footer p {
  font-size: 12px;
  margin: 0;
}

.age-check {
  border: 0;
  padding: 0;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.age-check[open] {
  display: grid;
  place-items: center;
}

.age-check>div {
  width: min(500px, calc(100% - 48px));
  padding: 20px 0;
}

.age-check .brand {
  font-size: 32px;
}

.age-check .brand strong {
  font-size: clamp(32px, 5vw, 42px);
}

.age-check .brand img {
  width: 55px;
  height: 55px;
}

.age-check h2 {
  margin: 22px 0 7px;
  font-size: 26px;
}

.age-check p {
  color: var(--soft);
  margin: 0 0 28px;
}

.age-check button {
  display: block;
  width: 100%;
  padding: 15px;
  min-height: 56px;
  margin-top: 14px;
  border: 1px solid #ffffff14;
  border-radius: 30px;
  background: var(--panel);
  font-weight: 650;
  cursor: pointer;
}

.age-check [data-enter] {
  color: #101410;
  background: var(--pop);
}

.age-check span {
  display: inline-block;
  margin-top: 28px;
  border: 1px solid #ffffff40;
  border-radius: 100%;
  padding: 6px;
  color: var(--soft);
}

.announce {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  margin: 30px 0 0;
  min-height: 60px;
  border-radius: 8px;
  padding: 10px 20px;
}

.announce strong {
  flex-shrink: 0;
  color: var(--pop);
}

.announce a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media(max-width:1180px) {
  .desktop-nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .slide-copy {
    max-width: 38%;
  }
}

@media(max-width:920px) {
  .bar-inner {
    padding-inline: 16px;
    gap: 16px;
    height: var(--mobilebar);
  }

  .bar-inner .tools {
    display: none;
  }

  .bar-inner .find {
    display: block;
    margin-inline-start: auto;
  }

  .brand strong {
    font-size: 20px;
  }

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

  .theater {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .billboard {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: clamp(320px, 68vw, 480px);
  }

  .slide-copy {
    inset-inline: 16px;
    bottom: 40px;
    width: auto;
    max-width: none;
  }

  .slide-copy h1,
  .slide-copy h2 {
    font-size: 24px;
    max-width: 100%;
  }

  .slide-copy p {
    -webkit-line-clamp: 2;
  }

  .previews {
    display: none;
  }

  .dots {
    inset-inline: 0;
    width: 100%;
    bottom: 16px;
  }

  .rack-title h2 {
    font-size: 20px;
  }

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

  .chips {
    gap: 8px;
  }

  .chips a {
    padding: 5px 10px;
  }
}

@media(max-width:550px) {
  .billboard {
    height: clamp(310px, 96.15vw, 435px);
  }

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

  .tag-rack .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tag-rack .chips a {
    white-space: nowrap;
  }

  .theater>*,
  .dossier,
  .info-card {
    padding: 14px;
  }

  .dossier-grid {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

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

  .rack {
    margin-block: 28px;
  }

  .catalog-title {
    font-size: 15px;
  }

  .age-check h2 {
    font-size: 23px;
  }

  .announce {
    margin-top: 14px;
    min-height: 42px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .slide:not([hidden]) {
    animation: bill-in .5s ease-out both;
  }

  @keyframes bill-in {
    from {
      opacity: .35;
    }

    to {
      opacity: 1;
    }
  }

  .previews button,
  .chips a,
  .play-button,
  .episode,
  .dots button {
    transition: opacity .2s, color .2s, background-color .2s, transform .2s, width .2s;
  }

  .previews button:hover,
  .play-button:hover {
    transform: translateY(-2px);
  }

  .menu[open]>div,
  .find[open]>div {
    animation: menu-in .18s ease-out;
  }

  @keyframes menu-in {
    from {
      opacity: .2;
      translate: 0 -5px;
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

.desktop-nav a:first-child {
  border-radius: 22px;
  background: var(--pop);
  color: #101610;
  padding: 6px 18px;
}

@media(min-width:1181px) {
  .slide-copy {
    max-width: 31%;
  }

  .slide-copy h1,
  .slide-copy h2 {
    font-weight: 550;
  }
}

@media(max-width:550px) {
  .announce {
    display: none;
  }
}

@media(max-width:550px) {
  :root {
    --gutter: 16px
  }
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 12px 0 32px;
}

.foot-grid h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--ink);
}

.foot-grid nav {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

.foot-grid .foot-brand p {
  margin: 12px 0 5px;
}

.foot-grid .foot-brand>a:last-child {
  font-size: 13px;
  color: var(--pop);
  overflow-wrap: anywhere;
}

.foot-grid h2,
.foot-grid nav a {
  overflow-wrap: anywhere;
}

.rack-title h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 32px);
}

@media(max-width:620px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 12px;
  }
}
