:root {
  color-scheme: dark;
  --pink:#ff3c72;
  --muted:#92929e;
}
html {
  scroll-behavior: smooth;
}
body.home {
  background: #08080b;
  font-family:
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.home header {
  position: absolute;
  top: 0;
  width: 100%;
  background: linear-gradient(#08080bd9, transparent);
  border: 0;
  padding: 0 5%;
  height: 88px;
  gap: 34px;
}
.logo {
  font-weight: 800;
  letter-spacing: -1.5px;
}
.logo span {
  color: #ff567e;
}
.home-link {
  font-size: 14px;
  color: #d4d4db;
}
.home-main {
  display: block;
  min-height: 100vh;
}
.hero {
  position: relative;
  height: min(740px, 78vw);
  min-height: 590px;
  overflow: hidden;
  background: #14141a;
}
.hero-background,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  object-fit: cover;
  object-position: center 30%;
  animation: hero-in .45s ease both;
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      #08080bf5 0%,
      #08080b88 38%,
      #08080b0a 72%),
    linear-gradient(
      0deg,
      #08080b 0%,
      transparent 48%);
}
.hero-content {
  position: absolute;
  left: 5%;
  bottom: 85px;
  width: 530px;
  max-width: 45%;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #a3a3b1;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4778;
  box-shadow: 0 0 14px #ff4778;
}
.hero h1 {
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.16;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero .tags {
  margin: 0 0 20px;
}
.hero .tags span {
  background: #ffffff14;
  border: 1px solid #ffffff10;
  color: #d0d0d8;
  font-size: 12px;
  padding: 7px 12px;
}
.hero-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #a8a8b4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 28px;
}
.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  min-height: 50px;
  box-shadow: 0 8px 30px #0003;
  transition: transform .2s, background .2s;
}
.watch-button[hidden] {
  display: none;
}
.watch-button:hover {
  background: #ff4778;
  color: #fff;
  transform: translateY(-2px);
}
.hero-thumbnails {
  display: flex;
  gap: 12px;
  position: absolute;
  right: 5%;
  bottom: 86px;
}
.hero-thumbnails button {
  padding: 0;
  width: 78px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  opacity: .6;
  transition: opacity .2s, transform .2s;
  border: 2px solid transparent;
  background: #222;
}
.hero-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-thumbnails button.active {
  opacity: 1;
  border-color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 6px 25px #0009;
}
.library {
  padding: 0 5% 54px;
  scroll-margin-top: 25px;
}
.library-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.library-top .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}
.library-top h2 {
  font-size: 28px;
  letter-spacing: -.7px;
  margin: 0;
}
.catalog-count {
  font-size: 13px;
  color: #777785;
}
.section-nav {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
  margin: 0 0 23px;
}
.section-nav a {
  font-size: 12px;
  white-space: nowrap;
  padding: 10px 14px;
  background: #17171e;
  border: 1px solid #272731;
  border-radius: 22px;
  color: #aaaab8;
}
.section-nav a:hover {
  border-color: #ff3c7277;
  color: #fff;
}
.shelf {
  margin-bottom: 36px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: -.3px;
  margin: 0;
}
.rail-controls {
  display: flex;
  gap: 8px;
}
.rail-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1b1b23;
  border: 1px solid #2c2c36;
  color: #aaa;
  transition: background .15s;
}
.rail-controls button:hover {
  background: #363640;
  color: #fff;
}
.series-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 100px)/6);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 3px 1px 10px;
}
.series-rail::-webkit-scrollbar,
.section-nav::-webkit-scrollbar {
  display: none;
}
.series-card {
  min-width: 0;
  scroll-snap-align: start;
}
.card-art {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 11px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #252531,
      #14141b);
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.series-card:hover img {
  transform: scale(1.035);
}
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #08080bbb;
  backdrop-filter: blur(6px);
  opacity: 0;
  font-size: 18px;
  border: 1px solid #fff5;
  transition: opacity .2s;
}
.series-card:hover .card-play {
  opacity: 1;
}
.episode-count {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 11px;
  background: linear-gradient(transparent, #000b);
  font-size: 11px;
  color: #e1e1e9;
}
.series-card h3 {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  margin: 11px 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-card p {
  color: #777786;
  font-size: 11px;
  margin: 0;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.home footer {
  margin: 0 5%;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #21212b;
  color: #6e6e7d;
  font-size: 12px;
}
.home footer .logo {
  color: #ddd;
  font-size: 24px;
}
.skeleton-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.skeleton-row i {
  aspect-ratio: 3/4;
  border-radius: 11px;
  background:
    linear-gradient(
      100deg,
      #17171e 30%,
      #242430 50%,
      #17171e 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.retry-button {
  background: #ff3c72;
  color: #fff;
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 22px;
  margin-top: 8px;
}
#home-status {
  color: #aaa;
  line-height: 1.6;
}
.is-loading .hero-content p {
  width: 85%;
  height: 48px;
  background: #ffffff09;
  border-radius: 6px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes hero-in {
  from {
    opacity: .3;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1800px) {
  .series-rail {
    grid-auto-columns: calc((100% - 120px)/7);
  }
}
@media (max-width: 1100px) {
  .hero-thumbnails {
    gap: 8px;
  }
  .hero-thumbnails button {
    width: 58px;
    height: 84px;
  }
  .series-rail {
    grid-auto-columns: calc((100% - 60px)/4);
  }
  .hero-content {
    max-width: 53%;
  }
}
@media (max-width: 700px) {
  .home header {
    height: 68px;
    padding: max(12px, env(safe-area-inset-top)) 20px 12px;
    gap: 16px;
  }
  .home .logo {
    font-size: 26px;
  }
  .home-link {
    margin-left: auto !important;
    margin-right: 0 !important;
    font-size: 12px;
  }
  .home .language-select {
    font-size: 13px;
    max-width: 116px;
    margin-left: 0;
  }
  .hero {
    height: 640px;
    min-height: 0;
  }
  .hero-image {
    object-position: 65% center;
  }
  .hero-shade {
    background:
      linear-gradient(
        0deg,
        #08080b 0%,
        #08080bd9 25%,
        #08080b30 70%);
  }
  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 138px;
    max-width: none;
    width: auto;
  }
  .hero h1 {
    font-size: 32px;
    letter-spacing: -.8px;
    margin-bottom: 14px;
    max-width: 95%;
  }
  .hero .tags {
    margin-bottom: 13px;
    gap: 6px;
  }
  .hero .tags span {
    font-size: 10px;
    padding: 5px 9px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 14px;
  }
  .hero-content p {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 20px;
    line-height: 1.7;
  }
  .watch-button {
    font-size: 14px;
    padding: 13px 24px;
    min-height: 46px;
  }
  .hero-thumbnails {
    left: 20px;
    right: auto;
    bottom: 25px;
    gap: 10px;
  }
  .hero-thumbnails button {
    width: 53px;
    height: 74px;
    border-radius: 8px;
  }
  .library {
    padding: 0 20px 26px;
  }
  .library-top {
    margin-bottom: 18px;
  }
  .library-top h2 {
    font-size: 24px;
  }
  .catalog-count {
    font-size: 11px;
  }
  .section-nav {
    margin-bottom: 19px;
    gap: 7px;
  }
  .section-nav a {
    font-size: 11px;
    padding: 9px 12px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .rail-controls button {
    width: 32px;
    height: 32px;
  }
  .series-rail {
    grid-auto-columns: 43%;
    gap: 12px;
  }
  .shelf {
    margin-bottom: 25px;
  }
  .series-card h3 {
    font-size: 13px;
  }
  .card-art {
    border-radius: 9px;
  }
  .home footer {
    margin: 0 20px;
    font-size: 11px;
    gap: 20px;
  }
  .skeleton-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .skeleton-row i:nth-child(n+3) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.hero.is-ad {
  height: clamp(270px, 41.67vw, 740px);
  min-height: 270px;
  background: #08080b;
}
.hero.is-ad .hero-content,
.hero.is-ad .hero-shade {
  display: none;
}
.hero.is-ad .hero-image {
  object-fit: contain;
  object-position: center;
}
.hero.is-ad .hero-thumbnails {
  bottom: 22px;
}
.hero-thumbnails button img[src*=advertise-cover] {
  object-fit: contain;
  object-position: center;
  background: #08080b;
}
@media (max-width: 700px) {
  .hero.is-ad {
    height: 300px;
    min-height: 300px;
  }
  .hero.is-ad .hero-image {
    object-position: center 45%;
  }
  .hero.is-ad .hero-thumbnails {
    bottom: 6px;
  }
}
.section-heading-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.shelf-count {
  font-size: 12px;
  color: #6e6e7d;
  white-space: nowrap;
}
.rail-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-all {
  font-size: 12px;
  color: #ff7999;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #3a2733;
  white-space: nowrap;
}
.view-all:hover {
  background: #30212a;
  color: #ffa8c0;
}
.home header .site-nav {
  margin-left: 8px;
}
.home #provider-notice .provider-notice {
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .section-heading-left {
    gap: 8px;
  }
  .shelf-count {
    font-size: 10px;
  }
  .view-all {
    font-size: 11px;
    padding: 7px 10px;
  }
  .home header {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 10px;
  }
  .home header .site-nav {
    width: 100%;
    order: 3;
    margin-left: 0;
  }
}
