: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: #07080d;
  --panel: #12151f;
  --text: #f3f5fb;
  --line: #2b2e3a;
  --muted: #b9bdce;
  --accent: #9b4dff;
  --width: 1188px
}

body {
  background: radial-gradient(ellipse at 78% 0, #191323 0, transparent 38rem), var(--bg)
}

.mast {
  background: rgba(9, 11, 17, .96)
}

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

.river-intro {
  padding: 26px 0 16px
}

.river-intro h1 {
  font-size: 30px;
  line-height: 1.28;
  margin: 0 0 7px
}

.river-intro p {
  color: var(--muted);
  margin: 0;
  font-size: 15px
}

.river-curated {
  padding-top: 30px
}

.river-curated>h2,
.river-schedule h2 {
  margin: 0 0 16px;
  font-size: 25px
}

.river-hero {
  height: 440px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden
}

.river-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s
}

.river-frame[data-offset="0"] {
  opacity: 1;
  pointer-events: auto
}

.river-frame>img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.river-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d0d16f7 0%, #11101cd9 30%, #17132269 58%, #100b1215), linear-gradient(0deg, #07081085, transparent 50%)
}

.river-copy {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 44px;
  width: min(540px, 58%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px
}

.river-copy small {
  background: #a345fd;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 9px
}

.river-copy h3 {
  font-size: 32px;
  margin: 0;
  line-height: 1.2
}

.river-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  color: #d3d6e0;
  margin: 0
}

.river-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px
}

.river-actions .action {
  border-radius: 28px;
  background: linear-gradient(110deg, #8c4dff, #f1469d)
}

.switches {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 9px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center
}

.switches button {
  padding: 0;
  border: none;
  background: transparent;
  color: white
}

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

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

.switches [data-step] {
  font-size: 22px;
  padding: 0 5px
}

.river-notice {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-block: 12px 28px;
  font-size: 13px;
  overflow-x: auto
}

.river-notice a {
  white-space: nowrap
}

.river-notice span,
.river-link {
  color: #cc9cff
}

.river-schedule .shelf-head h2 {
  margin: 0
}

.river-lineup {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.river-lineup article {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 9px;
  background: var(--panel);
  border-radius: 13px;
  min-width: 0
}

.river-thumb img {
  display: block;
  width: 66px;
  height: 88px;
  object-fit: cover;
  border-radius: 7px
}

.river-thumb {
  flex: none
}

.river-lineup h3 {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.35
}

.river-lineup small,
.river-link {
  font-size: 12px
}

.river-title {
  font-size: 27px;
  line-height: 1.3;
  margin: 0 0 15px
}

.river-dossier {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 24px
}

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

.river-dossier h2 {
  margin: 0
}

.river-screen {
  background: #060609;
  display: flex;
  justify-content: center;
  align-items: center
}

.river-vertical {
  width: min(460px, 100%);
  height: 100svh;
  position: relative
}

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

.screen-back {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: #090912aa;
  border-radius: 24px;
  padding: 7px 12px;
  color: white;
  font-size: 13px
}

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

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

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

  .river-intro {
    padding: 20px 0 14px;
    min-height: 144px
  }

  .river-intro h1 {
    font-size: 23px
  }

  .river-curated>h2 {
    font-size: 21px
  }

  .river-hero {
    height: 300px
  }

  .river-copy {
    inset-inline-start: 17px;
    width: min(230px, 72%);
    gap: 8px
  }

  .river-copy h3 {
    font-size: 20px
  }

  .river-copy p {
    -webkit-line-clamp: 2;
    font-size: 13px
  }

  .river-copy .facts a {
    display: none
  }

  .river-actions .action {
    padding: 8px 13px
  }

  .river-lineup,
  .river-dossier {
    grid-template-columns: 1fr
  }

  .river-cover img {
    max-height: 365px;
    object-fit: contain;
    background: var(--panel)
  }

  .river-vertical {
    height: 90svh
  }

  .river-title {
    font-size: 22px
  }
}

.river-week {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.river-week>b,
.river-week>a {
  font-size: 13px;
  color: var(--muted);
}

.river-week>div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  flex: 1;
  gap: 8px;
}

.river-week button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1b1d28;
  height: 56px;
  padding: 3px;
  color: var(--text);
}

.river-week small,
.river-week span {
  display: block;
}

.river-week small {
  font-size: 11px;
  color: #c0b6d3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.river-week button[aria-pressed="true"] {
  border-color: #9b6aef;
  background: linear-gradient(140deg, #493064, #29203e);
}

.river-lineup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.river-lineup[hidden] {
  display: none;
}

@media(max-width:600px) {
  .river-intro {
    min-height: 162px
  }

  .river-week {
    padding: 8px;
    gap: 0
  }

  .river-week>div {
    gap: 4px
  }

  .river-week>b,
  .river-week>a {
    display: none
  }

  .river-week button {
    height: 54px;
    font-size: 12px
  }

  .river-lineup {
    grid-template-columns: 1fr
  }

  .river-lineup article {
    align-items: center
  }

  .river-thumb img {
    height: 111px;
    width: 80px;
  }
}
