:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #18181c;
  --text: #f2f2f4;
  --muted: #a4a4af;
  --line: #2a2b30;
  --accent: #fc637a;
  --width: 1152px;
  --pad: 16px
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif
}

a {
  text-decoration: none
}

a:hover {
  color: var(--accent)
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-weight: 850;
  font-size: 20px;
  white-space: nowrap;
  color: var(--text)
}

.wordmark img {
  width: 32px;
  height: 32px
}

.wordmark strong {
  font-size: inherit
}

.mast {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 12
}

.mast-inner,
.mast nav,
.mast-tools,
.shelf-head,
.site-end nav,
.trail,
.facts,
.stores,
.filter-row,
.pagination {
  display: flex;
  align-items: center
}

.mast-inner,
.shelf-head {
  justify-content: space-between
}

.mast-inner {
  min-height: 64px;
  gap: 18px
}

.mast nav,
.mast-tools {
  gap: clamp(10px, 1.25vw, 24px)
}

.mast nav {
  min-width: 0;
  font-size: 14px;
  font-weight: 650
}

.mast-tools {
  flex-shrink: 0
}

.catalog-language select,
.catalog-search input,
.catalog-search button {
  border-color: var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  height: 34px
}

.catalog-search input {
  width: clamp(80px, 12vw, 210px)
}

.catalog-search button {
  padding: 4px 8px
}

.catalog-language select {
  width: 96px
}

.nav-menu {
  position: relative
}

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

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

.nav-menu>div {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  width: min(292px, calc(100vw - 32px));
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 12px 48px #0004
}

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

.nav-menu .catalog-search {
  width: 100%
}

.nav-menu .catalog-search input {
  flex: 1
}

.site-end {
  border-top: 1px solid var(--line);
  padding: 32px 0 45px;
  margin-top: 36px;
  color: var(--muted)
}

.site-end nav {
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 14px 0;
  font-size: 14px
}

.site-end small {
  font-size: 13px
}

.trail,
.facts,
.filter-row,
.stores {
  gap: 8px 13px;
  flex-wrap: wrap
}

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

.trail {
  padding: 14px 0
}

.facts {
  font-size: 13px
}

.facts a,
.filter-row a,
.stores a {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 11px
}

.shelf {
  margin-top: 28px
}

.shelf-head {
  gap: 12px;
  margin-bottom: 14px
}

.shelf-head h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0
}

.shelf-head>a {
  font-size: 14px;
  color: var(--muted)
}

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

.catalog-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4
}

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

.catalog-cover img {
  transition: transform .28s
}

.catalog-cover:hover img {
  transform: scale(1.035)
}

.action,
.button-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 17px
}

.action:hover,
.button-fill:hover {
  color: white;
  filter: brightness(1.12)
}

.pagination {
  flex-wrap: wrap
}

.pagination a,
.pagination span {
  margin: 0
}

.pagination [aria-current],
.episode.active {
  background: var(--accent);
  color: white
}

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

.episode-picker .episode.active {
  color: white
}

.series-gallery img {
  height: auto;
  aspect-ratio: 16/9
}

.engagement,
.series-gallery,
.episode-picker {
  margin: 24px 0
}

.engagement a {
  color: var(--accent)
}

.list-panel {
  padding: 8px 0 30px
}

.list-panel .catalog-grid {
  margin-top: 20px
}

.app-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--panel);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 50px);
  border: 1px solid var(--line)
}

.catalog-question {
  background: var(--panel);
  color: var(--text)
}

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

button,
summary {
  touch-action: manipulation
}

.bottom-dock {
  display: none
}

@media(max-width:1080px) {
  .mast-inner>.primary {
    display: none
  }
}

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

@media(max-width:580px) {
  .mast-inner {
    min-height: 54px;
    gap: 8px
  }

  .mast-tools {
    gap: 6px
  }

  .mast-tools>.catalog-language {
    display: none
  }

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

  .wordmark {
    font-size: 17px;
    gap: 5px
  }

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

  .shelf-head h2 {
    font-size: 19px
  }

  .bottom-dock {
    display: flex;
    position: fixed;
    z-index: 9;
    bottom: 0;
    inset-inline: 0;
    align-items: center;
    justify-content: space-around;
    min-height: 50px;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    font-size: 12px;
    gap: 6px
  }

  .bottom-dock a {
    min-width: 0;
    text-align: center;
    overflow-wrap: anywhere
  }

  .bottom-dock~* {}

  body:has(.bottom-dock) {
    padding-bottom: 48px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

:root {
  --bg: #0b0b0d;
  --panel: #18181c;
  --accent: #ff5b8b;
  --width: 1152px;
  --line: #303036
}

.mast-inner {
  min-height: 64px
}

.mast .catalog-search input {
  width: 180px;
  border: 0;
  border-radius: 20px
}

.berry-channel {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none
}

.berry-channel a {
  display: block;
  padding: 8px 16px;
  color: #bdbdc3;
  font-size: 15px;
  white-space: nowrap
}

.berry-channel a:first-child {
  border-radius: 18px;
  background: #2c1c24;
  color: #ff7ca5;
  font-weight: 700
}

.berry-hero {
  height: 344px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  margin: 12px 0 18px;
  box-shadow: inset 0 0 0 1px #37373c;
  background: var(--panel)
}

.berry-hero article {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s
}

.berry-hero article[data-offset="0"] {
  opacity: 1;
  pointer-events: auto
}

.berry-hero article>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%
}

.berry-hero article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #141417fa 0, #1a171be8 30%, #1010145e 76%), linear-gradient(0deg, #111114a6, transparent 60%)
}

.berry-caption {
  position: relative;
  z-index: 1;
  max-width: 58%;
  padding: 42px 48px
}

.berry-caption>span {
  font-size: 13px;
  color: #ff8cb3
}

.berry-caption h1,
.berry-caption h2 {
  margin: 10px 0;
  font-size: 38px;
  line-height: 1.25
}

.berry-caption p {
  color: #d0ced3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.65;
  margin: 9px 0 16px
}

.berry-caption a {
  display: inline-block;
  background: #fa517f;
  color: white;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 24px;
  font-weight: 650
}

.berry-caption .read {
  margin-inline-start: 8px;
  background: #ffffff20
}

.switches {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  bottom: 14px;
  inset-inline-start: 48px
}

.switches button {
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 20px
}

.switches .pip {
  height: 6px;
  width: 6px;
  border-radius: 8px;
  background: #ffffff70
}

.switches .pip[aria-pressed=true] {
  width: 20px;
  background: #fff
}

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

.berry-shortcuts a {
  background: linear-gradient(115deg, #2f1e27, #1c181c);
  position: relative;
  min-height: 86px;
  border-radius: 13px;
  padding: 15px 18px;
  color: #f9eef3;
  display: grid;
  align-content: center
}

.berry-shortcuts a:nth-child(2) {
  background: linear-gradient(115deg, #282036, #1e1a23)
}

.berry-shortcuts a:nth-child(3) {
  background: linear-gradient(115deg, #2e2722, #211d1c)
}

.berry-shortcuts i {
  position: absolute;
  inset-inline-end: 18px;
  top: 15px;
  color: #ff91b4;
  font-size: 24px;
  font-style: normal
}

.berry-shortcuts small,
.berry-shelf .shelf-head small {
  color: #aaa7b0;
  font-size: 13px
}

.berry-shelf {
  margin-top: 28px
}

.berry-shelf h1,
.berry-shelf h2 {
  margin: 0 0 5px
}

.berry-shelf .shelf-head {
  margin-bottom: 14px
}

.berry-home .catalog-cover {
  border-radius: 11px
}

.berry-detail {
  display: grid;
  grid-template-columns: minmax(150px, 235px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(110deg, #291d27, #18181c);
  padding: 25px;
  border-radius: 16px
}

.berry-key img {
  width: 100%;
  height: auto;
  border-radius: 12px
}

.berry-detail h1 {
  font-size: 34px;
  margin: 3px 0
}

.berry-stage {
  position: relative;
  background: black;
  height: 100svh
}

.berry-stage .player-wrap,
.berry-stage video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0
}

.berry-stage .back {
  position: absolute;
  top: 10px;
  inset-inline-start: 16px;
  color: white;
  padding: 9px 14px;
  background: #121217aa;
  border-radius: 20px
}

.stage-episodes {
  position: absolute;
  inset-inline: 15px;
  bottom: 64px;
  display: flex;
  justify-content: space-between;
  padding: 13px 17px;
  border-radius: 12px;
  background: #242424df;
  color: white
}

.bottom-dock b {
  display: block;
  font-size: 20px;
  line-height: 1.15
}

.bottom-dock {
  min-height: 64px
}

body[data-route="watch"] .mast,
body[data-route="watch"] .berry-channel,
body[data-route="watch"] .bottom-dock {
  display: none
}

@media(max-width:650px) {
  .mast-inner {
    min-height: 42px
  }

  .mast .catalog-search input {
    width: clamp(70px, 22vw, 120px)
  }

  .berry-channel {
    padding: 0;
    min-height: 32px;
    gap: 2px
  }

  .berry-channel a {
    font-size: 13px;
    padding: 4px 10px
  }

  .berry-hero {
    height: 264px;
    margin: 8px 0 14px;
    border-radius: 13px
  }

  .berry-caption {
    max-width: 100%;
    padding: 24px 16px
  }

  .berry-caption h1,
  .berry-caption h2 {
    font-size: 27px
  }

  .berry-caption p {
    max-width: 85%;
    -webkit-line-clamp: 2
  }

  .switches {
    inset-inline-start: 16px;
    bottom: 10px
  }

  .berry-shortcuts {
    gap: 7px
  }

  .berry-shortcuts a {
    padding: 9px;
    min-height: 87px;
    justify-content: start;
    align-content: end;
    font-size: 13px
  }

  .berry-shortcuts i {
    inset-inline-start: 9px;
    top: 6px;
    font-size: 16px
  }

  .berry-shortcuts small {
    font-size: 11px
  }

  .berry-shelf {
    margin-top: 18px
  }

  .berry-detail {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    padding: 12px
  }

  .berry-detail h1 {
    font-size: 21px
  }

  .berry-detail p {
    font-size: 13px
  }

  .berry-home .catalog-grid {
    gap: 14px 7px
  }

  .stage-episodes {
    bottom: 55px;
    font-size: 14px
  }
}
