/* Home page geometry follows the user-provided reference while keeping catalog states truthful. */
.home-page .hero {
  height: clamp(430px, 38vw, 600px);
  min-height: 430px;
  max-height: 600px;
}

/* Home hero controls: stored late declarations 216–240, adapted to this shell. */
.home-page .hero-dots {
  display: none;
}
.home-page .hero-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.home-page .hero-thumb-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-page .hero-thumb-nav {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.home-page .hero-thumb-nav svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.home-page .hero-dot:focus-visible,
.home-page .hero-thumb-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  body .home-page .hero-scene {
    inset: 0;
  }
  body .home-page .hero-vignette {
    display: block;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36.057%;
    aspect-ratio: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
  }
  body .home-page .hero-copy {
    display: flex;
    flex-direction: column;
    top: auto;
    right: auto;
    bottom: 7%;
    left: 14px;
    width: calc(100% - 116px);
    max-width: none;
    gap: 0;
  }
  body .home-page .hero-actions {
    display: none;
  }
  body .home-page .hero-copy h1 {
    display: block;
    width: 100%;
    color: #fff;
    font-family: 'PingFang SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }
  body .home-page .hero-dots:not([hidden]) {
    position: absolute;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    top: auto;
    right: 14px;
    bottom: 8.41%;
    left: auto;
    width: auto;
    padding: 0;
    gap: 4px;
  }
  body .home-page .hero-dot {
    width: 4px;
    height: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    margin: 0;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    opacity: 0.3;
    cursor: pointer;
  }
  body .home-page .hero-dot.is-active {
    width: 12px;
    height: 4px;
    background: #ec237f;
    border-radius: 3px;
    opacity: 1;
  }
}
@media (min-width: 1024px) {
  body .home-page .hero-vignette {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, #000 100%) left bottom / 100% calc(100vw * 206 / 1920) no-repeat,
      radial-gradient(ellipse 76% 72% at 0% 100%, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.26) 56%, rgba(0, 0, 0, 0) 100%);
  }
  body .home-page .hero-play-button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: calc(100vw * 14 / 1920) calc(100vw * 24 / 1920);
    gap: calc(100vw * 8 / 1920);
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: calc(100vw * 49 / 1920);
  }
  body .home-page .hero-play-icon {
    display: block;
    width: calc(100vw * 29 / 1920);
    height: calc(100vw * 32 / 1920);
    margin: calc(100vw * 7 / 1920) calc(100vw * 8.5 / 1920);
    flex: 0 0 auto;
    object-fit: contain;
  }
  body .home-page .hero-play-text {
    color: #fff;
    font-family: 'PingFang SC', sans-serif;
    font-size: calc(100vw * 28 / 1920);
    line-height: calc(100vw * 40 / 1920);
    font-weight: 400;
    white-space: nowrap;
  }
  body .home-page .hero-thumbs {
    top: auto;
    right: calc(100vw * 218 / 1920);
    bottom: calc(100vw * 60 / 1920);
    left: auto;
    gap: calc(100vw * 14 / 1920);
    transform: none;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }
  body .home-page .hero-thumb {
    width: calc(100vw * 100 / 1920);
    height: calc(100vw * 140 / 1920);
    flex: 0 0 auto;
    border: 0;
    border-radius: calc(100vw * 12 / 1920);
    transform: scale(1);
    transform-origin: center;
    opacity: 1;
    box-shadow: none;
    background-image: var(--poster-art), var(--poster-bg);
  }
  body .home-page .hero-thumb::before {
    content: none;
  }
  body .home-page .hero-thumb.is-active {
    width: calc(100vw * 100 / 1920);
    height: calc(100vw * 140 / 1920);
    transform: scaleX(1.16) scaleY(1.157143);
  }
  body .home-page .hero-thumb-overlay {
    border-radius: inherit;
    background: #000;
    opacity: 0.5;
  }
  body .home-page .hero-thumb.is-active .hero-thumb-overlay {
    opacity: 0;
  }
  body .home-page .hero-thumb-nav {
    width: calc(100vw * 26 / 1920);
    height: calc(100vw * 26 / 1920);
    flex: 0 0 auto;
  }
}

.home-page .hero.is-empty .scene-coast.has-art {
  background-position: center 47%;
}

.home-page .hero.is-empty .hero-counter,
.home-page .hero.is-empty .hero-thumbs:empty {
  display: none;
}

.home-page .shortcut-rail {
  padding: 20px 0 10px;
}

.home-page .shortcut-card {
  height: 68px;
}

.home-page .content-section {
  padding-top: 25px;
}

.home-page .section-heading {
  margin-bottom: 17px;
}

.home-page .drama-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-page .drama-grid .drama-card {
  display: block;
}

.home-page .compact-grid {
  overflow: visible;
}

.home-page .editorial-banner {
  min-height: 116px;
  margin: 35px 0 12px;
  padding: 22px 30px;
}

.home-page .editorial-copy h2 {
  font-size: clamp(19px, 2vw, 26px);
}

.home-page .content-section .route-empty {
  min-height: 122px;
  padding: 24px 18px;
}

.business-catalog-notice {
  padding-block: 6px;
}

@media (max-width: 900px) {
  .home-page .hero {
    height: clamp(430px, 52vw, 560px);
    min-height: 430px;
    max-height: 560px;
  }

  .home-page .drama-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-page .hero {
    height: auto;
    aspect-ratio: 375 / 138.67;
    min-height: 0;
    max-height: none;
  }

  .home-page .hero-copy {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 7%;
    width: auto;
    transform: none;
  }

  .home-page .hero-copy h1 {
    margin: 0;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .home-page .hero .eyebrow,
  .home-page .hero-meta,
  .home-page .hero-subtitle,
  .home-page .hero-counter,
  .home-page .hero-thumbs,
  .home-page .hero-scroll-cue {
    display: none;
  }

  .home-page .hero.is-empty .hero-subtitle {
    display: block;
    margin: 6px 0 0;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .home-page .hero-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .home-page .hero-actions .button {
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
  }

  .home-page .drama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .editorial-banner {
    min-height: 94px;
    margin: 24px 0 10px;
    padding: 16px 18px;
  }

  .home-page .editorial-copy p:not(.section-kicker) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .home-page .hero {
    height: calc(100vw * 710 / 1920);
    min-height: 0;
    max-height: none;
  }
}

/* Home hero content: shared visible text bounds. */
@media(min-width:768px) {
  .home-page .hero-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
}

/* Home hero content: desktop source declaration mapping. */
@media(min-width:1024px) {
  .home-page .hero-copy {
    left: calc(100vw * 184 / 1920);
    top: auto;
    bottom: calc(100vw * 65 / 1920);
    width: calc(100vw * 787 / 1920);
    max-width: calc(100% - 100vw * 1100 / 1920);
    transform: none;
  }
  .home-page .hero-copy h1 {
    width: 100%;
    display: block;
    font-family: 'PingFang SC', 'Noto Sans SC', sans-serif;
    font-size: calc(100vw * 36 / 1920);
    line-height: calc(100vw * 46 / 1920);
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
  }
  .home-page .hero-subtitle {
    font-family: 'PingFang SC', 'Noto Sans SC', sans-serif;
    font-size: calc(100vw * 18 / 1920);
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: 0;
  }
}

/* Home hero content: shared visible text bounds. */
.home-page .hero-thumb span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Home hero content: tablet source position and long-title defense. */
@media(min-width:768px) and (max-width:1023px) {
  .home-page .hero-copy {
    left: 40px;
    top: auto;
    bottom: 36px;
    width: min(520px, 55%);
    max-width: none;
    transform: none;
  }
  .home-page .hero-copy h1 {
    font-family: 'PingFang SC', 'Noto Sans SC', sans-serif;
    font-size: 36px;
    line-height: 46px;
    font-weight: 600;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .home-page .hero-subtitle {
    font-family: 'PingFang SC', 'Noto Sans SC', sans-serif;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
  }
  .home-page .hero-thumbs {
    display: none;
  }
}
