: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 {
  color-scheme: light;
  --bg: #fff6ee;
  --panel: #fffbf9;
  --text: #161313;
  --line: #f3d7c3;
  --muted: #766c68;
  --accent: #e45f15;
  --width: 1440px;
  --pad: 28px
}

body {
  font-size: 14px
}

.frame-width {
  max-width: calc(100% - var(--pad) * 2)
}

.mast {
  position: sticky;
  top: 0;
  background: #fff6eef5;
  border-color: #f3e2d5
}

.mast-inner {
  min-height: 64px;
  justify-content: initial;
  gap: clamp(18px, 5vw, 75px)
}

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

.mast .catalog-search input,
.mast .catalog-search button {
  background: #fffdfb;
  border-color: #e8d6c8
}

.wordmark {
  color: #d95513
}

.apricot-discover {
  border-bottom: 1px solid #ffc3a1
}

.apricot-tabs,
.apricot-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none
}

.apricot-tabs {
  justify-content: center;
  min-height: 55px;
  padding-top: 12px
}

.apricot-tabs a {
  color: #5e5651;
  font-size: 16px;
  white-space: nowrap;
  font-weight: 650
}

.apricot-tabs a:first-child {
  color: #e46c22;
  border-bottom: 3px solid #fb8237
}

.apricot-filter {
  min-height: 68px;
  gap: 9px
}

.apricot-filter a {
  font-size: 13px;
  background: #fffaf5;
  white-space: nowrap;
  border: 1px solid #f1ceb5;
  border-radius: 99px;
  padding: 5px 12px
}

.apricot-filter a:first-child {
  background: #fd8438;
  color: white;
  border-color: transparent
}

.apricot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(265px, 23vw, 328px);
  gap: 26px;
  align-items: start;
  margin-top: 24px
}

.apricot-layout>* {
  min-width: 0
}

.read-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%)
}

.apricot-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  align-items: start
}

.apricot-cards article {
  min-width: 0
}

.apricot-cover {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: #ecded6;
  aspect-ratio: 3/4
}

.apricot-cards article:nth-child(4n+2) .apricot-cover,
.apricot-cards article:nth-child(4n+3) .apricot-cover {
  aspect-ratio: 0.674
}

.apricot-cards article:nth-child(4n) .apricot-cover {
  aspect-ratio: .8
}

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

.apricot-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s
}

.apricot-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0003, transparent 24%, transparent 70%, #0004);
  pointer-events: none
}

.apricot-cover span,
.apricot-cover small {
  position: absolute;
  z-index: 1;
  font-size: 11px;
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
  background: #201a16a3
}

.apricot-cover span {
  top: 9px;
  inset-inline-start: 9px
}

.apricot-cover small {
  bottom: 9px;
  inset-inline-end: 9px
}

.apricot-cards h3 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  margin: 7px 0 3px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap
}

.apricot-tags {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  gap: 8px;
  color: #a4623f;
  font-size: 12px
}

.apricot-watch {
  display: inline-block;
  margin-top: 8px;
  color: #857874;
  font-size: 12px
}

.apricot-rail,
.apricot-side>section,
.apricot-dossier {
  border: 1px solid #f1d7c5;
  background: #fffbf9;
  border-radius: 16px;
  padding: 18px
}

.apricot-layout>.apricot-rail {
  position: sticky;
  top: 84px
}

.apricot-rail h2 {
  font-size: 18px
}

.rail-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px
}

.rail-card b {
  color: #f67a29
}

.rail-card img {
  width: 40px;
  height: 53px;
  border-radius: 7px;
  object-fit: cover
}

.rail-card span {
  min-width: 0
}

.rail-card strong,
.rail-card small {
  display: block
}

.rail-card strong {
  line-height: 1.36;
  font-size: 14px
}

.rail-card small {
  font-size: 11px;
  color: var(--muted)
}

.apricot-inner {
  width: min(1280px, calc(100% - var(--pad)*2));
  margin-inline: auto
}

.apricot-inner .trail {
  min-height: 56px
}

.apricot-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 356px);
  gap: 24px;
  align-items: start
}

.apricot-view>* {
  min-width: 0
}

.apricot-video {
  aspect-ratio: 16/9;
  background: #151110;
  border-radius: 16px;
  overflow: hidden
}

.apricot-stage-poster {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: #111
}

.apricot-stage-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.apricot-stage-poster b {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #fb8036e6;
  border-radius: 50%;
  font-size: 25px
}

.apricot-video .player-wrap,
.apricot-video video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain
}

.apricot-dossier {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 40px)
}

.apricot-dossier h1 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2vw, 28px)
}

.apricot-side .episode-picker {
  margin: 0
}

.apricot-side .episode-picker h2 {
  margin-top: 0
}

.apricot-side .apricot-rail {
  margin-top: 14px
}

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

@media(max-width:1100px) {
  .apricot-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px
  }

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

@media(max-width:850px) {

  .apricot-layout,
  .apricot-view {
    grid-template-columns: 1fr
  }

  .apricot-layout>.apricot-rail {
    display: none
  }

  .apricot-view {
    gap: 14px
  }

  .apricot-side .apricot-rail {
    display: none
  }
}

@media(max-width:600px) {
  :root {
    --pad: 8px
  }

  .mast-inner {
    min-height: 55px;
    gap: 8px
  }

  .apricot-tabs {
    min-height: 48px;
    gap: 10px;
    padding-top: 5px
  }

  .apricot-tabs a {
    font-size: 14px
  }

  .apricot-filter {
    min-height: 56px
  }

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

  .apricot-cover {
    border-radius: 14px
  }

  .apricot-video {
    aspect-ratio: 9/16
  }

  .apricot-inner .trail {
    font-size: 12px
  }

  .apricot-dossier {
    padding: 18px 14px
  }

  .site-end .frame-width {
    padding-inline: 8px
  }

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