:root {
  color-scheme: dark;
  --pink: #f5315e;
  --bg: #151314;
  --muted: #aba8aa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font: 16px/1.45 "Poppins", "Helvetica Neue", Arial, sans-serif;
}
a,
button,
summary,
input {
  font: inherit;
  color: inherit;
}
a {
  text-decoration: none;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
a:hover,
.filters [aria-current],
nav [aria-current] {
  color: var(--pink);
}
.wrap,
.head {
  max-width: 1520px;
  margin: auto;
  width: 90%;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #151314f5;
}
.home header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(#151314ed, transparent);
}
.head {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 34px);
}
.logo {
  width: 120px;
  height: auto;
  display: block;
}
.head nav {
  display: flex;
  gap: clamp(12px, 2.3vw, 38px);
  font-weight: 650;
}
.head > form {
  margin-left: auto;
  background: #2a2829;
  border-radius: 50px;
  width: clamp(170px, 22vw, 300px);
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.head input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  outline: 0;
}
.head form button {
  font-size: 24px;
  padding: 0 8px 0 0;
}
.language,
summary {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.language img {
  width: 16px;
}
.visitor {
  position: relative;
}
.visitor img {
  width: 26px;
}
.visitor .visitor-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  white-space: nowrap;
}
.account-menu { display: none; }
.visitor:focus-within .account-menu { display: block; }
@media (hover: hover) {
  .visitor:hover .account-menu { display: block; }
}
.visitor > div,
.head nav.mobile-open {
  background: #262425;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 12px 24px #0006;
}
.visitor > div {
  position: absolute;
  right: 0;
  min-width: 145px;
}
.visitor a,
.visitor form {
  display: block;
  padding: 6px;
}
.menu {
  display: none;
}
.stage {
  padding: clamp(90px, 10.2vw, 173px) 0 28px;
  background: url(homeBg.png) center top/100% auto no-repeat;
  overflow: hidden;
  text-align: center;
}
.stage:has(.empty) {
  min-height: 38vh;
  display: grid;
  place-items: center;
}
.carousel {
  position: relative;
  height: clamp(295px, 35.5vw, 585px);
  perspective: 1200px;
}
.slide {
  position: absolute;
  display: block;
  width: clamp(205px, 25.4vw, 400px);
  height: 90%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transition: transform 0.42s, opacity 0.35s;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: #252122;
  box-shadow: 0 14px 26px #0008;
}
.slide b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 clamp(14px, 1.5vw, 23px) / 1.5 Georgia, serif;
  margin: 6px auto;
}
.slide[data-position="0"] {
  visibility: visible;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}
.slide:is([data-position="-1"], [data-position="1"], [data-position="-2"], [data-position="2"]) {
  visibility: visible;
  opacity: 0.66;
  z-index: 2;
  pointer-events: auto;
}
.slide[data-position="-1"] {
  transform: translateX(-127%) rotateY(19deg) scale(0.88);
}
.slide[data-position="1"] {
  transform: translateX(27%) rotateY(-19deg) scale(0.88);
}
.slide[data-position="-2"] {
  transform: translateX(-196%) rotateY(23deg) scale(0.77);
  opacity: 0.42;
  z-index: 1;
}
.slide[data-position="2"] {
  transform: translateX(96%) rotateY(-23deg) scale(0.77);
  opacity: 0.42;
  z-index: 1;
}
.prev,
.next {
  position: absolute;
  top: 39%;
  z-index: 4;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff35;
  font-size: 25px;
}
.prev {
  left: 15%;
}
.next {
  right: 15%;
}
.dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 22px auto 0;
}
.dots button {
  border-radius: 40px;
  width: 8px;
  height: 8px;
  padding: 0;
  background: #ffffff70;
}
.dots .active {
  background: white;
  width: 18px;
}
.mobile-caption {
  display: none;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.heading > a,
.crumb,
.tags,
.empty,
aside p,
.results p {
  color: var(--muted);
}
h2 {
  font-size: clamp(22px, 2.35vw, 36px);
  margin: 0 0 14px;
  line-height: 1.2;
}
.heading h2 {
  margin: 0;
}
.heading {
  margin-bottom: 16px;
}
.shelf {
  margin: 32px 0 44px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 14px;
}
.poster,
.result-cover {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: #272426;
}
.poster img,
.result-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s;
}
.poster span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  border-radius: 22px;
  background: var(--pink);
  color: white;
  padding: 6px 12px;
  opacity: 0;
}
.poster:hover span,
.poster:focus-visible span {
  opacity: 1;
}
.poster:hover img {
  transform: scale(1.045);
}
h3 {
  font-size: 17px;
}
.card h3 {
  margin: 8px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tags {
  font-size: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tags a + a:before {
  content: "⦁";
  padding-right: 6px;
}
.inner {
  padding: 28px 0 55px;
  min-height: 63vh;
}
.crumb {
  font-size: 14px;
  margin: 0 0 22px;
}
.inner h1 {
  font-size: clamp(24px, 3vw, 42px);
  margin: 0 0 24px;
}
.filters,
.actions,
.episodes,
.pager {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filters a,
.actions button,
.episodes a,
.pager a {
  background: #282628;
  border-radius: 6px;
  padding: 8px 15px;
}
.filters a[aria-current],
.episodes a[aria-current],
.actions [aria-pressed="true"] {
  color: var(--pink);
  background: #45212d;
}
.empty {
  grid-column: 1/-1;
  margin: 22px 0;
}
.results article {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #ffffff14;
}
.result-cover {
  width: clamp(120px, 15vw, 212px);
  flex: none;
}
.results h2 {
  font-size: 24px;
}
.results .primary {
  margin-top: 18px;
}
.primary {
  background: var(--pink);
  border-radius: 25px;
  padding: 10px 24px;
  display: inline-block;
  color: white !important;
  font-weight: 600;
}
.watch {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #211f20;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 34px;
}
.screen {
  background: black;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.screen video {
  width: 100%;
  height: min(66vh, 670px);
  object-fit: contain;
}
.start-video {
  position: absolute;
  font-size: 34px;
  background: #0008;
  border-radius: 50%;
  width: 80px;
  height: 80px;
}
.video-status {
  position: absolute;
  bottom: 14%;
  pointer-events: none;
}
.watch aside {
  padding: 22px;
  max-height: 68vh;
  overflow: auto;
}
.watch h1,
.watch h2 {
  font-size: 23px;
}
.watch h3 {
  margin-bottom: 4px;
}
.watch p {
  margin-top: 4px;
}
.episodes a {
  min-width: 42px;
  text-align: center;
}
.auth,
.download-panel {
  max-width: 560px;
  margin: 50px auto;
  padding: 32px;
  border-radius: 18px;
  background: #262425;
}
.auth form {
  display: grid;
  gap: 14px;
}
.auth input:not([type="checkbox"]) {
  background: #131213;
  border: 1px solid #484448;
  padding: 12px;
  border-radius: 6px;
}
.auth a {
  display: block;
  margin-top: 16px;
}
.download-panel img {
  width: 150px;
}
.pager {
  justify-content: center;
}
footer {
  padding: 36px 0;
  background: #100f10;
}
footer .wrap {
  display: flex;
  gap: 8%;
  align-items: flex-start;
}
footer a,
footer button {
  display: block;
  color: #aaa;
  margin: 7px 0;
  font-size: 14px;
  padding: 0;
}
footer h3 {
  margin: 0;
}
dialog {
  position: fixed;
  inset: auto 28px 28px auto;
  margin: 0;
  width: 398px;
  max-width: 90vw;
  background: #262526;
  border: 1px solid #ffffff12;
  box-shadow: 0 8px 32px #0006;
  color: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  z-index: 15;
}
dialog h3 {
  margin: 0 0 10px;
}
dialog p {
  color: #ccc;
  font-size: 13px;
}
dialog > div {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
dialog > div button {
  flex: 1;
  border: 1px solid #ffffff32;
  border-radius: 20px;
  padding: 8px 7px;
  font-size: 12px;
}
.close {
  position: absolute;
  right: 8px;
  top: 3px;
  font-size: 24px;
  color: #aaa;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #333;
  z-index: 16;
}
#notice:not(:empty) {
  padding: 10px 18px;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .head {
    gap: 14px;
  }
  .language {
    display: none;
  }
}
@media (max-width: 767px) {
  .wrap,
  .head {
    width: calc(100% - 32px);
  }
  .head {
    height: 54px;
    min-height: 54px;
    gap: 12px;
  }
  .head .logo {
    width: 90px;
  }
  .menu {
    display: block;
    padding: 0;
  }
  .menu img {
    width: 21px;
  }
  .head nav,
  .visitor-link span {
    display: none;
  }
  .head nav.mobile-open {
    position: absolute;
    top: 52px;
    left: 10px;
    display: grid;
    width: 175px;
  }
  .head > form {
    width: auto;
    min-width: 60px;
    flex: 1;
    padding: 0 7px;
  }
  .head input {
    height: 32px;
    font-size: 14px;
  }
  .head form button {
    font-size: 20px;
  }
  .stage {
    padding: 0;
    position: relative;
    background: #1c1a1b;
  }
  .carousel {
    height: min(145vw, 72vh);
  }
  .slide {
    width: 100%;
    height: 100%;
  }
  .slide:not([data-position="0"]),
  .slide b,
  .prev,
  .next {
    display: none;
  }
  .slide img {
    border-radius: 0;
    box-shadow: none;
  }
  .stage:after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 42% 0 0;
    background: linear-gradient(transparent, #151314 92%);
  }
  .mobile-caption {
    position: absolute;
    z-index: 5;
    bottom: 31px;
    left: 12px;
    right: 12px;
    display: grid;
    justify-items: center;
    gap: 10px;
  }
  .mobile-caption strong {
    font-size: 20px;
    text-shadow: 0 2px 5px #000;
  }
  .mobile-caption .primary {
    padding: 7px 32px;
    font-size: 14px;
  }
  .dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    gap: 6px;
  }
  .dots button {
    width: 5px;
    height: 5px;
  }
  .dots .active {
    width: 12px;
  }
  .shelf {
    margin: 21px 0 28px;
  }
  .heading {
    margin-bottom: 10px;
  }
  .heading h2 {
    font-size: 22px;
  }
  .heading > a {
    font-size: 12px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 8px;
  }
  .card h3 {
    font-size: 14px;
  }
  .tags {
    font-size: 11px;
  }
  .poster {
    border-radius: 5px;
  }
  .inner {
    padding-top: 14px;
  }
  .results article {
    gap: 14px;
  }
  .results h2 {
    font-size: 17px;
  }
  .results p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .results .primary {
    font-size: 12px;
    padding: 7px 15px;
  }
  .watch {
    display: block;
  }
  .screen {
    min-height: 290px;
  }
  .screen video {
    height: 53vh;
  }
  .watch aside {
    padding: 16px;
    max-height: none;
  }
  .episodes a {
    padding: 6px 10px;
  }
  .auth {
    margin: 28px 16px;
  }
  .visitor > div {
    z-index: 10;
  }
  footer .wrap {
    gap: 18px;
    flex-wrap: wrap;
  }
  footer .logo {
    width: 90px;
  }
  dialog {
    width: 238px;
    bottom: 20px;
    right: 10px;
    padding: 20px 14px;
  }
  dialog > div {
    display: grid;
  }
  .crumb {
    font-size: 12px;
  }
  .shelf .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stage {
  position: relative;
}
.ring {
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  height: auto;
  pointer-events: none;
}
.slide:is([data-position="-1"], [data-position="1"]) {
  opacity: 1;
  filter: brightness(0.68);
}
.slide:is([data-position="-2"], [data-position="2"]) {
  opacity: 1;
  filter: brightness(0.45);
}
.screen .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.screen video {
  background: transparent;
}
.screen:has(.video-poster) video {
  opacity: 0;
}
.screen .start-video {
  z-index: 1;
}
.dots {
  position: relative;
}
.shelf .grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 42px) / 4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.shelf .grid::-webkit-scrollbar {
  display: none;
}
.shelf .card {
  scroll-snap-align: start;
}
.shelf .empty {
  grid-column: auto;
  white-space: nowrap;
}
.hero-play {
  min-width: 55%;
}
@media (min-width: 1100px) {
  .home .wrap {
    width: 70%;
    max-width: 1380px;
  }
  .head {
    width: auto;
    margin-left: max(15%, calc((100% - 1380px) / 2));
    margin-right: 20px;
    max-width: none;
  }
  .head nav {
    gap: clamp(24px, 3vw, 50px);
  }
  .carousel {
    height: clamp(320px, 36.8vw, 600px);
  }
  .dots button {
    width: 7px;
    height: 7px;
  }
}
@media (max-width: 767px) {
  .ring {
    display: none;
  }
  .carousel {
    height: min(136vw, 72vh);
  }
  .dots {
    position: absolute;
  }
  .shelf .grid {
    grid-auto-columns: 30%;
    gap: 8px;
  }
  .shelf .heading {
    padding-left: 16px;
  }
  .head .logo {
    width: 103px;
  }
  .poster:focus-visible span {
    display: none;
  }
  .home footer {
    margin-bottom: 32px;
  }
}
@media (hover: none) {
  .poster span {
    display: none;
  }
}
.slide-link {
  display: block;
  height: 100%;
}
.slide-info {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0 0 14px 14px;
  padding: 20px;
  text-align: left;
  background: linear-gradient(transparent, #131111dc 10%);
  font-size: 14px;
}
.slide-info p {
  margin: 6px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-info .primary {
  padding: 6px 18px;
}
.slide-info button {
  float: right;
  padding: 6px;
}
.slide-info button img {
  width: 22px;
  height: 22px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
@media (min-width: 768px) {
  .slide[data-position="0"]:is(:hover, :focus-within) .slide-info {
    display: block;
  }
}
.shelf,
.card {
  position: relative;
}
.card-share,
.row-prev,
.row-next {
  position: absolute;
  color: white;
  border-radius: 24px;
  background: #131313c9;
}
.card-share {
  right: 6px;
  top: 8px;
  padding: 4px 10px;
  opacity: 0;
}
.card:hover .card-share,
.card:focus-within .card-share {
  opacity: 1;
}
.row-prev,
.row-next {
  top: 45%;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
}
.row-prev {
  left: -16px;
}
.row-next {
  right: -16px;
}
.shelf .grid {
  scroll-behavior: smooth;
}
.episode .wrap.inner {
  width: 84.5%;
  max-width: 1280px;
}
.watch {
  display: block;
}
.watch aside {
  max-height: none;
  overflow: visible;
}
.screen video {
  height: clamp(500px, 71.25vw, 912px);
}
.leave-player,
.sound-prompt,
.player-tools {
  position: absolute;
  color: #fff;
  z-index: 2;
}
.leave-player {
  top: 4%;
  left: 4%;
  width: 40px;
  height: 40px;
  text-align: center;
  background: #242424cb;
  border-radius: 50%;
  font-size: 28px;
}
.sound-prompt {
  background: #151314b8;
  border: 1px solid #fff8;
  padding: 10px 20px;
  border-radius: 6px;
  top: 48%;
}
.player-tools {
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(transparent, #111c);
}
.player-tools button {
  white-space: nowrap;
}
.seek {
  flex: 1;
  min-width: 16px;
  accent-color: var(--pink);
}
.episode-ranges,
.picker-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.picker-heading {
  justify-content: space-between;
}
.episode-ranges button {
  padding: 6px 10px;
  color: #aaa;
}
.episode-ranges [aria-pressed="true"] {
  color: var(--pink);
  border-bottom: 2px solid;
}
.episodes a[hidden],
.sound-prompt[hidden] {
  display: none;
}
.screen:fullscreen video {
  height: 100vh;
}
.video-status {
  z-index: 2;
}
.watch .start-video {
  z-index: 3;
}
.sound-prompt:not([hidden]) ~ .video-status:empty {
  display: none;
}
#episode-picker {
  scroll-margin-top: 78px;
}
@media (max-width: 767px) {
  .episode .wrap.inner {
    width: 100%;
  }
  .episode .crumb,
  .episode .wrap.inner > h2 {
    padding: 0 16px;
  }
  .screen video {
    height: min(174vw, calc(100svh - 94px));
  }
  .watch {
    border-radius: 0;
  }
  .player-tools {
    gap: 4px;
    padding: 12px 6px;
    font-size: 13px;
  }
  .row-prev,
  .row-next {
    display: none;
  }
  .card-share {
    display: none;
  }
  .episode .wrap.inner > .grid {
    padding: 0 16px;
  }
}

.episode-recommend{margin-top:32px}

.head > form { position: relative; }
#search-suggestions {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  right: 0;
  width: max(100%, 245px);
  max-width: calc(100vw - 24px);
  padding: 16px;
  background: #242424;
  box-shadow: 0 8px 30px #0007;
  border-radius: 10px;
}
#search-suggestions h2 { font-size: 16px; margin: 0 0 8px; }
#search-suggestions ul { margin: 0; padding: 0; list-style: none; }
#search-suggestions a { display: block; padding: 6px 0; font-size: 14px; }
#mobile-menu {
  inset: 0 auto 0 0;
  width: min(320px, 85vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 12px;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: #232323;
}
#mobile-menu::backdrop, #picker-sheet::backdrop { background: #000a; }
body:has(#mobile-menu[open], #picker-sheet[open]) { overflow: hidden; }
#mobile-menu header {
  display: flex;
  position: static;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}
#mobile-menu .logo { width: 82px; }
.dismiss { padding: 0 4px; font-size: 30px; line-height: 1; }
#mobile-menu nav > a, #mobile-menu summary, .drawer-lang {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border-bottom: 1px solid #ffffff26;
  font-size: 20px;
  font-weight: 600;
}
#mobile-menu nav > a::before, #mobile-menu summary::before {
  display: inline-grid; width: 26px; place-items: center; font-size: 22px;
}
#mobile-menu a[href="/"]::before { content: "◎"; }
#mobile-menu header a[href="/"]::before { content: none; }
#mobile-menu summary::before { content: "▷"; }
#mobile-menu a[href="/download"]::before { content: "⇩"; }
#mobile-menu a[href="/blog"]::before { content: "▤"; }
#mobile-menu summary::after { content: "⌄"; margin-left: auto; }
#mobile-menu details[open] summary::after { content: "⌃"; }
#mobile-menu summary::-webkit-details-marker { display: none; }
.drawer-lang { border: 0; }
.drawer-lang img { width: 24px; }
.drawer-genres a { display: block; padding: 10px 40px; font-size: 15px; }
.genres .wrap.inner { width: 80%; max-width: 1536px; padding-top: 15px; }
.genres .crumb { margin-bottom: 22px; }
.genres .inner h1, .genres .inner h2 { font-size: 24px; line-height: 1.5; margin: 0 0 5px; }
.genre-tabs { display: flex; gap: 32px; border-bottom: 1px solid #ffffff1a; }
.genre-tabs a { padding: 8px 0; color: #aaa; }
.genre-tabs a[aria-current] { border-bottom: 1px solid var(--pink); color: #fff; font-weight: bold; }
.genres .filters { margin: 16px 0 24px; gap: 10px; }
.filters a { border-radius: 50px; font-size: 14px; padding: 8px 12px; }
.filters a[aria-current] { color: white; background: var(--pink); }
.genres .grid { margin-top: 16px; grid-template-columns: repeat(6,minmax(0,1fr)); }
.genres .card h3 { font-size: 16px; white-space: normal; }
.genres .card .tags { font-size: 13px; }
.episode-step { position: absolute; top: 50%; right: 4%; display: grid; gap: 14px; transform: translateY(-50%); }
.episode-step button { width: 44px; height: 44px; border-radius: 50%; color: white; background: #333a; font-size: 26px; line-height: 1; }
.episode-step button:disabled { opacity: .4; cursor: default; }
#picker-sheet {
  inset: auto 0 0;
  width: 100%; max-width: none; max-height: 68dvh;
  padding: 16px;
  text-align: left;
  border-radius: 16px 16px 0 0;
  overflow: auto;
}
#picker-sheet .dismiss { float: right; margin-left: 12px; }
#picker-sheet h3 { margin: 0; }
#picker-sheet .episodes { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
@media (max-width: 767px) {
  .genres .wrap.inner { width: calc(100% - 24px); padding-top: 8px; }
  .genres .crumb { margin-bottom: 12px; }
  .genres .inner h1, .genres .inner h2 { font-size: 18px; }
  .genre-tabs { gap: 16px; }
  .genre-tabs a { font-size: 14px; }
  .genres .filters { gap: 6px; margin: 12px 0; }
  .filters a { font-size: 12px; padding: 4px 7px; }
  .genres .grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
  .genres .card h3 { font-size: 14px; }
  .genres .card .tags { font-size: 11px; }
  .episode-step { top: 76%; right: 3%; gap: 9px; }
  .episode-step button { width: 34px; height: 34px; }
}
.poster img[data-cover-src]:not([src]), .result-cover img[data-cover-src]:not([src]) { visibility: hidden; }
.card-synopsis { display: none; }
@media (min-width: 768px) and (hover: hover) {
  .genres .poster:is(:hover,:focus-visible) .card-synopsis {
    display: -webkit-box;
    position: absolute; inset: auto 0 0;
    padding: 30px 10px 46px;
    background: linear-gradient(transparent, #111e 30%);
    font-size: 13px; line-height: 1.4; color: white;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    max-height: 125px;
  }
}
#share-fallback { inset: 0; margin: auto; height: fit-content; text-align: left; }
#share-fallback input { display: block; width: 100%; margin-top: 8px; padding: 8px; }

/* 榜单、搜索结果和全集目录 */
.catalogue-wrap { width: 80%; max-width: 1536px; padding-top: 16px; }
.catalogue-wrap .crumb { margin-bottom: 34px; }
.rank .catalogue-wrap h1 { font-size: 30px; margin: 0 0 20px; }
.rank-card {
  display: flex; gap: 15px; align-items: center; margin-bottom: 20px;
  border-radius: 20px; background: #ffffff0d; padding: 12px 20px 12px 12px;
}
.rank-card:hover { background: #ffffff14; }
.rank-cover, .chapter-thumb, .collection-cover {
  display: block; overflow: hidden; border-radius: 8px; background: #292729;
}
.rank-cover { width: 131px; aspect-ratio: 131/174; flex: none; }
.rank-cover img, .collection-cover img, .chapter-thumb img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.rank-copy {
  flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title play" "desc desc"; align-items: center; gap: 8px 16px;
}
.rank-copy h2 { grid-area: title; margin: 0; font-size: 20px; }
.rank-copy p, .search-copy p, .chapter-row p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; overflow-wrap: anywhere; color: #b0adaf;
}
.rank-copy p { grid-area: desc; margin: 0; font-size: 14px; line-height: 1.7; }
.watch-link, .download-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(102deg,#f5315e 48%,#ff512c);
  border-radius: 7px; color: white; font-size: 14px; font-weight: 600; padding: 8px 18px;
}
.watch-link:hover, .download-link:hover { color: white; filter: brightness(1.1); }
.watch-link img { width: 16px; height: 16px; }
.rank-copy .watch-link { grid-area: play; justify-self: start; }
.search .catalogue-wrap { padding-top: 32px; }
.search-list article { gap: 16px; align-items: stretch; margin-bottom: 32px; padding: 0; border: 0; }
.search-list .result-cover { width: min(22%,208px); aspect-ratio: 3/4; align-self: flex-start; }
.search-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; align-items: flex-start; }
.search-copy h2 { font-size: 20px; margin: 0; }
.search-copy p { line-height: 2; margin: 12px 0; -webkit-line-clamp: 4; }
.search-copy mark { background: transparent; color: var(--pink); }
.search-tags { display: flex; flex-wrap: wrap; padding: 5px 12px; border-radius: 20px; background: #2e2e2e; color: #aaa; font-size: 12px; }
.search-tags a + a:before { content: "、"; }
.search-copy .watch-link { align-self: flex-end; margin-top: auto; min-width: 180px; }
.work-intro {
  position: relative; isolation: isolate; display: grid; align-items: start;
  grid-template-columns: minmax(145px,224px) minmax(0,1fr) auto; gap: 12px 16px;
}
.intro-backdrop { display: none; }
.collection-cover { grid-row: 1; grid-column: 1; aspect-ratio: 3/4; }
.work-info { grid-row: 1; grid-column: 2/-1; padding: 18px 0; }
.collection .work-info h1 { margin: 0; font-size: 32px; }
.work-counts, .work-tags, .work-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.work-counts { color: #bdb8bd; gap: 24px; }
.work-tags a { border: 1px solid #ffffff80; border-radius: 20px; padding: 4px 18px; font-size: 14px; }
.work-links { margin-top: 26px; }
.work-links a { width: min(35%,220px); min-height: 48px; }
.work-links .watch-link { background: linear-gradient(145deg,#9f53ff,#f52154 45%,#ffa41b); }
.download-link { background: #2d2c2d; }
.work-description { grid-column: 1/-1; margin: 0; font-size: 14px; color: #bbb; line-height: 1.7; }
.work-share { grid-column: 3; grid-row: 1; align-self: end; margin-bottom: 18px; padding: 6px 12px; display: flex; align-items: center; gap: 5px; color: #ccc; }
.work-share img { width: 23px; }
.chapter-list { margin-top: 40px; scroll-margin-top: 80px; }
.chapter-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #ffffff20; margin-bottom: 20px; }
.chapter-heading h2 { font-size: 18px; margin: 0; }
.chapter-row { display: flex; gap: 16px; margin-bottom: 16px; }
.chapter-thumb { width: 142px; aspect-ratio: 142/188; flex: none; }
.chapter-row h3 { margin: 0; font-size: 20px; }
.chapter-row p { font-size: 14px; margin-top: 14px; }
.catalogue-pager { margin: 36px auto; display: flex; align-items: center; justify-content: center; gap: 18px; }
.catalogue-pager a, .catalogue-pager [aria-disabled] { display: grid; place-content: center; width: 42px; height: 42px; font-size: 26px; border-radius: 6px; }
.catalogue-pager a:hover { background: #2b292b; }
.catalogue-pager [aria-disabled] { opacity: .35; }

@media (max-width: 767px) {
  .catalogue-wrap { width: calc(100% - 24px); padding-top: 10px; }
  .catalogue-wrap .crumb { margin-bottom: 26px; }
  .rank .catalogue-wrap h1 { font-size: 24px; margin-bottom: 16px; }
  .rank-card { padding: 8px; gap: 8px; margin-bottom: 14px; border-radius: 10px; background: #292929; }
  .rank-cover { width: 114px; }
  .rank-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .rank-copy h2, .search-copy h2, .chapter-row h3 { font-size: 14px; }
  .rank-copy p { font-size: 12px; line-height: 1.5; }
  .rank-copy .watch-link { font-size: 12px; padding: 4px 12px; border-radius: 4px; }
  .search .catalogue-wrap { padding-top: 24px; }
  .search-list article { gap: 12px; margin-bottom: 24px; }
  .search-list .result-cover { width: 41%; max-width: 175px; }
  .search-copy p { font-size: 13px; line-height: 1.7; margin: 6px 0 8px; -webkit-line-clamp: 3; }
  .search-copy .watch-link { min-width: 0; padding: 4px 15px; }
  .search-tags { padding: 4px 9px; font-size: 11px; }
  .collection .catalogue-wrap .crumb { margin-bottom: 16px; }
  .work-intro { margin: 0 -12px; padding: 38px 12px 16px; overflow: hidden; grid-template-columns: minmax(85px,30%) minmax(0,1fr); gap: 10px; }
  .intro-backdrop { display: block; position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); z-index: -2; filter: blur(18px) brightness(.48); object-fit: cover; }
  .work-intro:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent,#151314 96%); }
  .collection .work-info { padding: 0; align-self: stretch; display: flex; flex-direction: column; }
  .collection .work-info h1 { font-size: 16px; }
  .work-counts, .work-tags { margin-top: 8px; font-size: 12px; gap: 6px 10px; }
  .work-tags a { font-size: 11px; padding: 2px 8px; }
  .work-links { margin-top: auto; padding-top: 8px; gap: 6px; }
  .work-links a { flex: 1; width: auto; min-height: 32px; padding: 5px; font-size: 12px; }
  .work-description { font-size: 13px; }
  .work-share { grid-row: auto; grid-column: 1/-1; justify-content: center; background: #ffffff0d; border-radius: 18px; margin: 0; }
  .chapter-list { margin-top: 26px; scroll-margin-top: 62px; }
  .chapter-thumb { width: 28%; max-width: 128px; }
  .chapter-row { gap: 10px; }
  .chapter-row p { margin-top: 7px; font-size: 13px; }
}
.chapter-runtime { display: block; margin-top: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }

.download header { background: #140907; }
.download main {
  background: radial-gradient(ellipse at 2% 0, #791d17 0, transparent 28rem),
    radial-gradient(ellipse at 98% 25rem, #520627 0, transparent 30rem), #080607;
}
.download-hero {
  width: min(90%, 1440px); margin: auto; min-height: min(760px, 80vh); padding: 64px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center;
}
.download-copy h1 { font-size: clamp(50px, 7vw, 92px); line-height: 1.02; margin: 0; }
.download-copy h1 strong { display: block; color: var(--pink); }
.download-copy p, .get-app p, .download-faq p { color: #b7aeb0; }
.download-actions { display: flex; gap: 14px; margin: 34px 0 14px; }
.app-primary, .app-secondary {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 40px; padding: 13px 26px; font-weight: 650; color: white;
}
.app-primary { background: linear-gradient(110deg,#fa392f,#fa007b); }
.app-secondary { border: 1px solid #ffffff38; }
.download-actions a { flex: 1; max-width: 210px; }
.download-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 550px; justify-self: center; }
.download-art a {
  position: absolute; left: 9%; top: 1%; width: 55%; height: 90%; overflow: hidden;
  transform: rotate(-10deg); z-index: 1; border: 6px solid #363030;
  border-radius: 26px; background: #241e20; box-shadow: 0 18px 40px #0008;
}
.download-art a:nth-child(2) { left: 42%; top: 11%; height: 82%; width: 48%; transform: rotate(14deg); z-index: 0; }
.download-art a:focus-visible { z-index: 2; }
.download-art img { width: 100%; height: 100%; object-fit: cover; }
.download-art span { position: absolute; inset: auto 0 0; padding: 24px 10px 12px; color: white; text-align: center; background: linear-gradient(transparent,#10080be6); }
.download-more { width: min(90%,1280px); margin: auto; padding-bottom: 40px; }
.download-more > section { margin-bottom: 40px; }
.get-app { display: flex; align-items: center; justify-content: center; gap: 32px; background: #25171c; border-radius: 20px; padding: 32px; }
.app-qr { width: 172px; height: 172px; border-radius: 8px; }
.copy-download { color: #ddd; text-decoration: underline; margin: 8px; }
.download-faq details { border-bottom: 1px solid #ffffff28; padding: 16px 0; }
.download-faq summary { cursor: pointer; }
.app-strip { display: none; }
@media (max-width: 767px) {
  .download-hero { width: calc(100% - 40px); grid-template-columns: minmax(0,1fr); gap: 32px; min-height: 0; padding: 32px 0 22px; }
  .download-hero h1 { font-size: clamp(48px,14vw,65px); }
  .download-copy p { font-size: 14px; }
  .download-art { max-width: 430px; }
  .download-actions { margin: 20px 0 12px; gap: 8px; }
  .download-art a { border-width: 4px; border-radius: 18px; }
  .get-app { flex-direction: column; text-align: center; padding: 20px 12px; gap: 14px; }
  .app-strip:not([hidden]) {
    display: flex; align-items: center; gap: 8px; position: fixed; z-index: 9;
    inset: auto 6px max(6px,env(safe-area-inset-bottom)); padding: 9px 12px;
    border-radius: 10px; background: #f6eeee; color: #241418; box-shadow: 0 4px 24px #0005; font-size: 13px;
  }
  .app-strip a { margin-left: auto; background: var(--pink); color: white; border-radius: 7px; padding: 6px 14px; }
  .app-strip button { font-size: 20px; color: #544; }
  body:has(.app-strip:not([hidden])) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body:has(dialog[open]) .app-strip { display: none; }
}

/* Account header and user center */
.account-avatar {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.visitor .account-avatar { width: 26px; height: 26px; }
.visitor-link span {
  max-width: 11ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-page-bar { display: none; }
.user main {
  min-height: 80vh;
  background: radial-gradient(ellipse 90% 55% at 28% 0%, #361425, transparent 80%), #0c090e;
}
.user-center {
  width: min(768px, calc(100% - 24px));
  margin: auto;
  padding: 8px 0 36px;
}
.user-center h1 { margin: 0 0 12px; font-size: 24px; line-height: 32px; font-weight: 600; }
.user-panels { display: grid; grid-template-columns: minmax(0, 352fr) minmax(0, 404fr); gap: 12px; }
.user-card, .user-history { background: #ffffff1a; border-radius: 8px; padding: 18px; }
.user-card { display: flex; flex-direction: column; min-height: 327px; }
.user-identity { display: flex; align-items: center; gap: 16px; }
.user-identity .account-avatar { width: 54px; height: 54px; }
.user-identity > div { min-width: 0; overflow-wrap: anywhere; }
.user-identity strong { display: block; font-size: 20px; line-height: 26px; font-weight: 500; }
.user-number { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #ffffff80; font-size: 14px; line-height: 20px; }
.user-number button { position: relative; width: 16px; height: 16px; padding: 0; }
.user-number button::before, .user-number button::after {
  content: ""; position: absolute; width: 7px; height: 8px; border: 1px solid currentColor; border-radius: 2px;
}
.user-number button::before { left: 5px; top: 2px; }
.user-number button::after { left: 2px; top: 5px; background: #30252d; }
.user-contact { display: flex; align-items: center; min-height: 48px; margin-top: 24px; }
.user-card > form, .user-card > .primary { margin: auto auto 0; }
.user-logout, .user-card .primary {
  display: block; width: 195px; max-width: 100%; height: 36px; padding: 0;
  line-height: 34px; text-align: center; border-radius: 80px; font-size: 16px; font-weight: 500;
}
.user-logout { border: 1px solid #ffffff4d; color: #fffc; }
.user-logout:hover { background: #ffffff0d; }
.user-history h2 { font-size: 18px; margin: 0 0 15px; }
.user-history #history { color: #bcb7bf; overflow-wrap: anywhere; }
@media (min-width: 1100px) {
  .user .head { margin-right: max(8.5%, calc((100% - 1550px) / 2)); }
}
@media (max-width: 767px) {
  .user { background: radial-gradient(ellipse 150% 410px at 23% 0%, #371426, transparent), #0c090e; }
  .user > header { position: relative; background: transparent; }
  .user > header .head { display: none; }
  .user-page-bar { position: relative; height: 48px; display: flex; justify-content: center; align-items: center; }
  .user-page-bar .logo { width: auto; height: 24px; }
  .user-page-bar [data-user-back] { position: absolute; left: 2px; top: 3px; width: 42px; height: 42px; display: grid; place-items: center; }
  .user-page-bar [data-user-back]::before { content: ""; width: 10px; height: 10px; border: solid #fffb; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
  .user main { min-height: 0; background: transparent; }
  .user-center { min-height: calc(100svh - 108px); padding: 3px 0 9px; display: flex; flex-direction: column; }
  .user-center h1 { font-size: 18px; line-height: 24px; margin: 0 0 11px; }
  .user-panels { flex: 1; display: flex; flex-direction: column; gap: 0; }
  .user-card { display: contents; }
  .user-identity { order: 0; gap: 9px; }
  .user-identity strong { font-size: 24px; line-height: 30px; }
  .user-history { order: 1; margin: 23px 0 9px; padding: 16px 12px; border-radius: 12px; }
  .user-contact { order: 2; margin: 0; min-height: 51px; }
  .user-card > form, .user-card > .primary { order: 3; width: calc(100% - 6px); margin: auto auto 0; }
  .user-logout, .user-card .primary { width: 100%; height: 48px; line-height: 46px; }
  .user-logout { border-color: #ffffff3d; }
}
