/* Homepage layout — PC 1700 / H5 375, hardcoded UI */

.home-page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 32px 110px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #07060d;
  color: #fff;
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, sans-serif;
}

.home-page a {
  text-decoration: none;
  color: inherit;
}

.home-page img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

/* ----- shared panel head ----- */
.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.home-panel-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.home-panel-title {
  margin: 0;
  color: #f2f2fa;
  font-size: calc(28px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 42px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-panel-title--lg {
  color: #f2f2fa;
  font-size: calc(28px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 42px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.home-panel-bar {
  display: none;
  width: 6px;
  height: 16px;
  border-radius: 3px;
  background: #f12b9e;
  flex-shrink: 0;
}

.home-panel-sub {
  margin: 0;
  color: #8f879e;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
}

.home-panel-sub--pc {
  color: #a3a3b8;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 21px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.home-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-more-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.home-more--ghost {
  padding: 8px 14px;
  background: #171321;
  border-radius: 16px;
  outline: 1px solid #2e263d;
  outline-offset: -1px;
  color: #b8adc7;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
}

.home-more--text {
  color: #ef2385;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  line-height: 21px;
}

.home-more--pill {
  width: 132px;
  height: 44px;
  justify-content: center;
  background: #1b1b2b;
  border-radius: 22px;
  outline: 1px solid #47475c;
  outline-offset: -1px;
  color: #a3a3b8;
  font-size: calc(14px + var(--pc-font-boost, 0px));
}

.home-more--h5 {
  display: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
}

.home-more--pc-only {
  display: inline-flex;
}

.home-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-block--pc-only {
  display: flex;
}

/* ----- Hero PC ----- */
.home-hero-h5 {
  display: none;
}

.home-hero-pc {
  width: 100%;
  background: #090710;
  border-radius: 20px;
  outline: 1px solid #333857;
  outline-offset: -1px;
  overflow: hidden;
}

.home-hero-stage {
  position: relative;
  width: 100%;
  height: 725px;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  will-change: opacity;
}

.home-hero-bg.is-active {
  opacity: 1;
}

.home-hero-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 55.764706%),
    linear-gradient(90deg, rgba(0, 0, 0, 0) 51.882353%, #000 100%);
  pointer-events: none;
  z-index: 1;
}

.home-hero-fade::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28.413793%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, #000 100%);
}

.home-hero-info {
  position: absolute;
  left: 74px;
  top: 343px;
  width: min(787px, 55%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 2;
  transition: opacity 320ms ease, transform 320ms ease;
}

.home-hero.is-switching .home-hero-info {
  opacity: 0;
  transform: translateY(8px);
}

.home-hero-h5-cover {
  transition: opacity 700ms ease-in-out;
}

.home-hero.is-switching .home-hero-h5-cover {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-bg,
  .home-hero-info,
  .home-hero-h5-cover {
    transition: none;
  }
}

.home-hero-badge {
  padding: 4px 12px;
  background: rgba(255, 74, 74, 0.08);
  border-radius: 999px;
  color: #f12b9e;
  font-size: calc(18px + var(--pc-font-boost, 0px));
  line-height: 24px;
}

.home-hero-title {
  margin: 0;
  color: #fff;
  font-size: calc(36px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 1.2;
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-hero-tags span {
  padding: 5px 10px;
  background: rgba(24, 24, 24, 0.6);
  border-radius: 5px;
  font-size: calc(16px + var(--pc-font-boost, 0px));
}

.home-hero-desc {
  margin: 0;
  color: #fff;
  font-size: calc(18px + var(--pc-font-boost, 0px));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero-cta {
  width: 142px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f12b9e;
  border-radius: 9px;
  box-shadow: 0 7px 17px rgba(241, 43, 158, 0.22);
  color: #fff;
  font-size: calc(18px + var(--pc-font-boost, 0px));
}

.home-hero-thumbs {
  position: absolute;
  right: 69px;
  top: 145px;
  width: 208px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.home-hero-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.home-hero-thumb {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  width: 208px;
  height: 117px;
}

.home-hero-thumb.is-active {
  border: 3px solid #ff40a6;
}

.home-hero-thumb img {
  width: 100%;
  height: 100%;
}

.home-hero-thumb-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #cf0470;
  cursor: pointer;
  position: relative;
}

.home-hero-thumb-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(45deg);
}

.home-hero-thumb-nav--up::after {
  transform: translate(-50%, -30%) rotate(-135deg);
}

/* ----- Notice ----- */
.home-notice {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(207, 4, 112, 0.1);
}

.home-notice-label {
  width: 96px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #cf0470;
  color: #fff;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  font-weight: 700;
  font-family: "Noto Sans SC", sans-serif;
}

.home-notice-viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-notice-track {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.home-notice-track.is-marquee {
  width: max-content;
  padding-right: 0;
  animation: home-notice-marquee 16s linear infinite;
}

.home-notice-track.is-marquee:hover {
  animation-play-state: paused;
}

.home-notice-text {
  margin: 0;
  color: #cf0470;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  line-height: 24px;
  white-space: nowrap;
}

.home-notice-track:not(.is-marquee) .home-notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.home-notice-track.is-marquee .home-notice-text {
  flex-shrink: 0;
  padding-right: 64px;
}

@keyframes home-notice-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ----- Split: rank + recommend ----- */
.home-split {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
}

.home-rank-panel {
  width: 620px;
  flex-shrink: 0;
  padding: 24px;
  box-sizing: border-box;
  background: #10101a;
  border-radius: 16px;
  outline: 1px solid #2b2b3b;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 128px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-rank-item.is-alt {
  background: transparent;
}

.home-rank-num {
  width: 36px;
  text-align: center;
  color: #a3a3b8;
  font-size: calc(28px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 42px;
  font-family: "Noto Sans SC", sans-serif;
  flex-shrink: 0;
}

.home-rank-num.is-top {
  color: #ef2385;
}

.home-rank-cover {
  width: 96px;
  height: 128px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.home-rank-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-rank-name {
  color: #f2f2fa;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.home-rank-desc {
  color: #a3a3b8;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  line-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-rank-heat {
  color: #ef2385;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
}

.home-recommend-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----- Poster cards ----- */
.home-poster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.home-poster-grid--4 > .home-poster {
  width: calc((100% - 60px) / 4);
}

.home-poster-grid--6 {
  justify-content: space-between;
  gap: 20px 0;
}

.home-poster-grid--6 > .home-poster {
  width: calc((100% - 100px) / 6);
}

.home-poster-grid--2 > .home-poster {
  width: calc((100% - 7px) / 2);
}

.home-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #0c0c15;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-poster--tall {
  border-radius: 20px;
  background: transparent;
}

.home-poster--tall .home-poster-body {
  padding: 12px 10px;
  gap: 6px;
  background: #110f1f;
  border-radius: 0 0 20px 20px;
}

.home-poster--feature {
  width: 546px;
  flex-shrink: 0;
  border-radius: 41px;
  background: transparent;
  overflow: hidden;
}

.home-poster--feature .home-poster-cover {
  width: 100%;
  height: 729px;
  aspect-ratio: auto;
  border-radius: 41px 41px 0 0;
}

.home-poster--feature .home-poster-ep {
  right: 24px;
  bottom: 16px;
  padding: 16px 25px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  font-size: calc(25px + var(--pc-font-boost, 0px));
  line-height: 37px;
  font-weight: 400;
  color: #fff;
}

.home-poster--feature .home-poster-body {
  padding: 25px 21px;
  gap: 12px;
  background: #110f1f;
  border-radius: 0 0 41px 41px;
}

.home-poster--feature .home-poster-title {
  color: #fff;
  font-size: calc(33px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 45px;
}

.home-poster--feature .home-poster-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: calc(29px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 41px;
}

.home-poster--feature .home-poster-foot {
  color: rgba(255, 255, 255, 0.6);
  font-size: calc(25px + var(--pc-font-boost, 0px));
  line-height: 37px;
}

.home-poster-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 247 / 329;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #1a1824;
}

.home-poster--tall .home-poster-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 266 / 355;
  border-radius: 20px 20px 0 0;
}

.home-poster--tall .home-poster-ep {
  right: 12px;
  bottom: 12px;
  left: auto;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
  color: #fff;
}

.home-poster-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.home-poster-ep {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 8px;
  color: #f2f2fa;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
}

.home-poster-corner {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  line-height: 22px;
  z-index: 1;
}

.home-poster-corner.is-new {
  background: #6a74ff;
}

.home-poster-corner.is-free {
  background: #10b9a2;
}

.home-poster-corner.is-hot {
  background: linear-gradient(90deg, #ff2d26 0%, #ffc41c 100%);
}

.home-poster-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0c0c15;
  border-radius: 0 0 12px 12px;
}

.home-poster-title {
  margin: 0;
  color: #f2f2fa;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.home-poster-desc {
  margin: 0;
  color: #a3a3b8;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  line-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-poster-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #a3a3b8;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  line-height: 18px;
}

.home-poster--tall .home-poster-title {
  color: #fff;
  font-weight: 400;
  line-height: 22px;
}

.home-poster--tall .home-poster-desc,
.home-poster--tall .home-poster-foot {
  color: rgba(255, 255, 255, 0.6);
}

/* ----- Playlist ----- */
.home-playlist {
  display: flex;
  gap: 24px;
  width: 100%;
}

.home-playlist-card {
  flex: 1 1 0;
  min-width: 0;
  height: 210px;
  display: flex;
  gap: 20px;
  background: #121729;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease;
}

.home-playlist-cover {
  width: 157.5px;
  height: 210px;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.home-playlist-body {
  width: 326px;
  max-width: calc(100% - 177.5px);
  padding-top: 20px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.home-playlist-title {
  margin: 0;
  color: #f2f2fa;
  font-size: calc(22px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 33px;
  transition: color 0.2s ease;
}

.home-playlist-desc {
  margin: 0;
  max-width: 296px;
  color: #a3a3b8;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 21px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-playlist-count {
  margin: 0;
  color: #f00594;
  font-size: calc(12px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 18px;
}

.home-playlist-enter {
  color: #f2f2fa;
  font-size: calc(14px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 21px;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-poster:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .home-poster:hover .home-poster-cover img {
    transform: scale(1.06);
  }

  .home-poster:hover .home-poster-title {
    color: #ef2385;
  }

  .home-rank-item:hover {
    background: rgba(239, 35, 133, 0.08);
  }

  .home-rank-item:hover .home-rank-cover {
    transform: scale(1.04);
  }

  .home-rank-item:hover .home-rank-name {
    color: #ef2385;
  }

  .home-playlist-card:hover {
    transform: translateY(-4px);
    background: #171d36;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .home-playlist-card:hover .home-playlist-cover {
    transform: scale(1.04);
  }

  .home-playlist-card:hover .home-playlist-title,
  .home-playlist-card:hover .home-playlist-enter {
    color: #ef2385;
  }
}

/* ----- Story theater ----- */
.home-story--pc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  overflow: hidden;
}

.home-story--h5 {
  display: none;
}

.home-story-group {
  display: grid;
  grid-template-columns: minmax(0, 546px) minmax(0, 266px);
  column-gap: 20px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.home-story-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  row-gap: 21px;
  width: 100%;
  min-width: 0;
}

.home-story-stack .home-poster--tall {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.home-story-group > .home-poster--feature {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.home-story-group .home-poster-body {
  box-sizing: border-box;
  min-height: 0;
}

.home-story-stack .home-poster-body {
  flex: 1 1 auto;
}

.home-story-stack .home-poster--tall .home-poster-cover {
  height: 355px;
  aspect-ratio: auto;
}

/* ----- Featured film carousel ----- */
.home-featured {
  gap: 20px;
  position: relative;
}

.home-featured-ambient {
  display: none;
}

.home-featured-stage {
  position: relative;
  width: 100%;
  padding: 12px 21px;
  box-sizing: border-box;
  background: #030406;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 624px;
}

.home-featured-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  transition: none;
}

.home-featured-item {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: width 0.28s ease, height 0.28s ease, opacity 0.28s ease;
}

.home-featured-item.is-hidden {
  display: none !important;
}

.home-featured-item.is-far {
  width: 240px;
  height: 320px;
  opacity: 0.65;
}

.home-featured-item.is-side {
  width: 300px;
  height: 400px;
  opacity: 0.85;
}

.home-featured-item.is-center {
  width: 450px;
  height: 600px;
  opacity: 1;
}

.home-featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-featured-caption {
  position: absolute;
  left: 17px;
  bottom: 18px;
  z-index: 1;
  color: #f2f2fa;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  font-weight: 700;
  line-height: 24px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.home-featured-item .home-poster-corner {
  z-index: 2;
}

.home-featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #1b1b2b;
  outline: 1px solid #47475c;
  outline-offset: -1px;
  cursor: pointer;
  z-index: 3;
  padding: 0;
}

.home-featured-nav--prev {
  left: 12px;
}

.home-featured-nav--next {
  right: 12px;
}

.home-featured-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
}

.home-featured-nav--prev::after {
  transform: translate(-30%, -50%) rotate(135deg);
}

.home-featured-nav--next::after {
  transform: translate(-70%, -50%) rotate(-45deg);
}

.home-featured-h5-meta {
  display: none;
}

/* ----- Friends ----- */
.home-friends {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-friends-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: calc(24px + var(--pc-font-boost, 0px));
  font-weight: 600;
  line-height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-friends-item {
  width: auto;
  padding: 9px 8px;
  box-sizing: border-box;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: calc(16px + var(--pc-font-boost, 0px));
  line-height: 22px;
}

/* ========== H5 ========== */
@media (max-width: 767px) {
  .home-page {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px 24px;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    gap: 18px;
    overflow-x: hidden;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    box-sizing: border-box;
  }

  .home-hero-pc,
  .home-block--pc-only,
  .home-story--pc,
  .home-more--ghost,
  .home-more--text,
  .home-more--pill,
  .home-more--pc-only,
  .home-panel-sub--pc {
    display: none !important;
  }

  .home-hero,
  .home-hero-h5,
  .home-block,
  .home-split,
  .home-rank-panel,
  .home-recommend-panel,
  .home-friends {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-hero-h5,
  .home-story--h5,
  .home-more--h5,
  .home-featured-h5-meta {
    display: flex;
  }

  .home-story--h5 {
    display: grid;
  }

  .home-panel-bar {
    display: inline-block;
  }

  .home-panel-head {
    gap: 8px;
  }

  .home-panel-title,
  .home-panel-title--lg,
  .home-friends-title {
    font-size: calc(18px + var(--pc-font-boost, 0px));
    font-weight: 400;
    line-height: 24px;
    color: #fff;
  }

  /* Hero card */
  .home-hero-h5 {
    width: 100%;
  }

  .home-hero-h5-card {
    width: 100%;
    background: #10101a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .home-hero-h5-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 193;
    object-fit: cover;
  }

  .home-hero-h5-body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .home-hero-h5-title {
    margin: 0;
    color: #f2f2fa;
    font-size: calc(20px + var(--pc-font-boost, 0px));
    font-weight: 700;
    line-height: 30px;
    word-break: break-word;
  }

  .home-hero-h5-desc {
    margin: 0;
    color: #a3a3b8;
    font-size: calc(14px + var(--pc-font-boost, 0px));
    line-height: 21px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-hero-h5-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .home-hero-h5-cta {
    width: 128px;
    max-width: 45%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #cf0470;
    border-radius: 22px;
    color: #f2f2fa;
    font-size: calc(14px + var(--pc-font-boost, 0px));
    font-weight: 700;
  }

  .home-hero-h5-pager {
    color: #a3a3b8;
    font-size: calc(12px + var(--pc-font-boost, 0px));
    flex-shrink: 0;
  }

  /* Notice */
  .home-notice {
    height: auto;
    min-height: 40px;
    padding: 0;
    background: #1f1809;
  }

  .home-notice-label {
    width: auto;
    height: auto;
    align-self: stretch;
    padding: 10px 12px;
    background: transparent;
    color: #ffc242;
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
  }

  .home-notice-viewport {
    padding: 10px 12px 10px 0;
  }

  .home-notice-track {
    padding: 0;
  }

  .home-notice-text {
    color: #deba6e;
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
  }

  .home-notice-track.is-marquee .home-notice-text {
    padding-right: 40px;
  }

  /* Rank + recommend stack */
  .home-split {
    flex-direction: column;
    gap: 18px;
  }

  .home-rank-panel {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
  }

  .home-rank-panel .home-panel-title--lg {
    font-size: calc(18px + var(--pc-font-boost, 0px));
    font-weight: 400;
    line-height: 24px;
  }

  .home-rank-item,
  .home-rank-item.is-alt {
    height: auto;
    min-height: 96px;
    gap: 10px;
    padding: 8px 4px 8px 0;
    background: rgba(255, 255, 255, 0.03);
  }

  .home-rank-num {
    width: 24px;
    font-size: calc(22px + var(--pc-font-boost, 0px));
    line-height: 32px;
  }

  .home-rank-cover {
    width: 72px;
    height: 96px;
  }

  .home-rank-meta {
    gap: 6px;
  }

  .home-rank-name {
    font-size: calc(14px + var(--pc-font-boost, 0px));
    font-weight: 400;
    line-height: 20px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .home-rank-desc {
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
  }

  .home-recommend-panel {
    padding-top: 0;
    gap: 12px;
  }

  /* Poster grids：CSS Grid 双列，避免 % + flex 溢出 */
  .home-poster-grid,
  .home-poster-grid--4,
  .home-poster-grid--6,
  .home-poster-grid--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 7px;
    width: 100%;
    justify-content: stretch;
  }

  .home-poster-grid--4 > .home-poster,
  .home-poster-grid--6 > .home-poster,
  .home-poster-grid--2 > .home-poster,
  .home-story-stack .home-poster,
  .home-poster--tall,
  .home-poster--feature {
    width: 100% !important;
    max-width: 100%;
  }

  .home-poster {
    background: #110f1f;
    border-radius: 6px;
    min-width: 0;
  }

  .home-poster--tall,
  .home-poster--feature {
    border-radius: 6px;
  }

  .home-poster--tall .home-poster-body,
  .home-poster--feature .home-poster-body {
    background: transparent;
    border-radius: 0 0 6px 6px;
  }

  /* Safari 在 grid > flex(column) 中计算行高会忽略 aspect-ratio，封面被压扁/高度为 0，
     H5 统一用 padding-top 撑出 3:4 比例 */
  .home-poster-cover,
  .home-poster--tall .home-poster-cover,
  .home-poster--feature .home-poster-cover {
    width: 100%;
    height: 0;
    padding-top: 133.333333%;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-radius: 6px 6px 0 0;
  }

  .home-poster-cover > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .home-poster--feature .home-poster-title {
    font-size: calc(14px + var(--pc-font-boost, 0px));
    line-height: 20px;
  }

  .home-poster--feature .home-poster-desc {
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
  }

  .home-poster-body {
    background: transparent;
    padding: 8px 10px;
    gap: 4px;
    min-width: 0;
  }

  .home-poster-title {
    font-size: calc(14px + var(--pc-font-boost, 0px));
    line-height: 20px;
    color: #f5f0fa;
    font-weight: 700;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-poster-desc {
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
    color: #8c859c;
  }

  .home-poster-foot {
    gap: 4px;
    font-size: calc(12px + var(--pc-font-boost, 0px));
    color: #a89eb5;
  }

  .home-poster-foot span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-poster-corner {
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
    padding: 4px 8px;
    border-radius: 8px;
    right: 8px;
    top: 8px;
  }

  .home-poster-ep {
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    background: rgba(8, 6, 13, 0.88);
  }

  /* Playlist */
  .home-block--playlist {
    gap: 12px;
  }

  .home-playlist {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .home-playlist-card {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px;
    gap: 12px;
    background: #10101a;
    border-radius: 12px;
  }

  .home-playlist-cover {
    width: 72px;
    height: 96px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .home-playlist-body {
    width: auto;
    max-width: none;
    flex: 1;
    padding: 0;
    gap: 4px;
    min-width: 0;
  }

  .home-playlist-title {
    font-size: calc(14px + var(--pc-font-boost, 0px));
    line-height: 21px;
  }

  .home-playlist-desc {
    max-width: none;
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
    -webkit-line-clamp: 2;
  }

  .home-playlist-desc,
  .home-playlist-count {
    font-size: calc(12px + var(--pc-font-boost, 0px));
    font-weight: 400;
    line-height: 18px;
    color: #a3a3b8;
  }

  .home-playlist-enter {
    color: #ff3da6;
    font-size: calc(14px + var(--pc-font-boost, 0px));
    font-weight: 400;
    line-height: 21px;
  }

  .home-more--h5 {
    gap: 2px;
  }

  .home-more--h5 .home-more-icon {
    width: 18px;
    height: 18px;
  }

  /* Featured carousel H5 */
  .home-featured {
    gap: 18px;
    padding: 24px 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    max-width: none;
    border-radius: 0;
    background: #000 url("/static/images/jxyp_bg.png") no-repeat center top / 100% auto;
    overflow: hidden;
  }

  .home-featured-ambient {
    display: none;
  }

  .home-featured > .home-panel-head,
  .home-featured > .home-featured-stage,
  .home-featured > .home-featured-h5-meta {
    position: relative;
    z-index: 1;
  }

  .home-featured-stage {
    width: 100%;
    min-height: 0;
    height: 346px;
    max-height: none;
    aspect-ratio: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .home-featured-track {
    position: relative;
    width: 100%;
    height: 100%;
    gap: 0;
    display: block;
  }

  .home-featured-item {
    transition: left 0.28s ease, width 0.28s ease, height 0.28s ease, top 0.28s ease, opacity 0.28s ease;
  }

  .home-featured-item.is-far,
  .home-featured-item.is-hidden {
    display: none !important;
  }

  .home-featured-item.is-side {
    position: absolute;
    width: 189px;
    height: 296px;
    top: 25px;
    opacity: 1;
    border-radius: 24px;
  }

  .home-featured-item.is-side::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    pointer-events: none;
  }

  .home-featured-item.is-side-left {
    left: 0;
    z-index: 1;
  }

  .home-featured-item.is-side-right {
    left: auto;
    right: 0;
    z-index: 1;
  }

  .home-featured-item.is-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    width: 247px;
    height: 346px;
    max-width: none;
    margin: 0;
    border-radius: 24px;
    opacity: 1;
  }

  .home-featured-caption,
  .home-featured-nav {
    display: none !important;
  }

  .home-featured-h5-meta {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .home-featured-h5-meta h3 {
    margin: 0;
    width: 100%;
    color: #fff;
    font-size: calc(16px + var(--pc-font-boost, 0px));
    font-weight: 500;
    line-height: 22px;
  }

  .home-featured-h5-meta p {
    margin: 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.55);
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-featured-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .home-featured-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
  }

  .home-featured-dots span.is-active {
    width: 20px;
    border-radius: 4px;
    background: #f12b9e;
  }

  /* Friends */
  .home-friends {
    padding-top: 12px;
    gap: 12px;
  }

  .home-friends-title {
    font-size: calc(18px + var(--pc-font-boost, 0px));
  }

  .home-friends-list {
    gap: 8px 11px;
  }

  .home-friends-item {
    width: auto;
    max-width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.1);
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -1px;
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(12px + var(--pc-font-boost, 0px));
    line-height: 18px;
  }
}

/* 超窄屏（iPhone SE 等）再收紧 */
@media (max-width: 374px) {
  .home-page {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    gap: 14px;
  }

  .home-rank-cover {
    width: 64px;
    height: 86px;
  }

  .home-rank-num {
    width: 20px;
    font-size: calc(18px + var(--pc-font-boost, 0px));
  }

  .home-hero-h5-title {
    font-size: calc(18px + var(--pc-font-boost, 0px));
    line-height: 26px;
  }

  .home-hero-h5-cta {
    width: 112px;
    height: 40px;
    font-size: calc(13px + var(--pc-font-boost, 0px));
  }

  .home-poster-grid,
  .home-poster-grid--4,
  .home-poster-grid--6,
  .home-poster-grid--2 {
    gap: 10px 6px;
  }
}

/* Mid desktop: shrink padding */
@media (min-width: 768px) and (max-width: 1439px) {
  .home-page {
    padding-left: 40px;
    padding-right: 40px;
  }

  .home-hero-stage {
    height: 520px;
  }

  .home-hero-info {
    left: 40px;
    top: auto;
    bottom: 48px;
  }

  .home-hero-title {
    font-size: calc(28px + var(--pc-font-boost, 0px));
  }

  .home-hero-thumbs {
    right: 24px;
    top: 80px;
    transform: scale(0.85);
    transform-origin: top right;
  }

  .home-rank-panel {
    width: 420px;
  }

  .home-poster-grid--4 > .home-poster {
    width: calc((100% - 40px) / 3);
  }

  .home-poster-grid--6 > .home-poster {
    width: calc((100% - 60px) / 4);
  }

  .home-featured-item.is-far {
    width: 160px;
    height: 213px;
  }

  .home-featured-item.is-side {
    width: 220px;
    height: 293px;
  }

  .home-featured-item.is-center {
    width: 320px;
    height: 426px;
  }

  .home-featured-stage {
    min-height: 450px;
    gap: 20px;
  }

  .home-featured-track {
    gap: 20px;
  }
}

/* PC: Figma 1842:5119 — ranking + recommendations */
@media (min-width: 768px) {
  .home-page {
    padding-left: clamp(40px, calc((100vw - 1700px) / 2), 110px);
    padding-right: clamp(40px, calc((100vw - 1700px) / 2), 110px);
  }

  .home-split {
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  }

  .home-rank-panel {
    align-self: stretch;
  }

  .home-rank-panel > .home-panel-head {
    height: 44px;
    flex-shrink: 0;
  }

  .home-rank-num {
    width: auto;
    min-width: 18px;
    text-align: left;
  }

  .home-rank-meta {
    flex: 0 1 390px;
    max-width: 390px;
  }

  .home-rank-name,
  .home-rank-desc {
    width: 365px;
    max-width: 100%;
  }

  .home-recommend-panel {
    padding-top: 24px;
    box-sizing: border-box;
  }

  .home-recommend-panel .home-panel-heading {
    height: 64px;
  }

  .home-recommend-panel .home-poster {
    border-radius: 20px 20px 12px 12px;
  }

  .home-recommend-panel .home-poster-cover {
    aspect-ratio: 3 / 4;
    border-radius: 20px 20px 0 0;
  }

  .home-recommend-panel .home-poster-ep {
    width: 51px;
    min-width: 51px;
    height: 32px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1440px) {
  .home-rank-panel {
    width: clamp(420px, 36.470588%, 620px);
  }
}

/* PC: Figma 1813:8982 — one 1700px coordinate system at every desktop width. */
@media (min-width: 768px) {
  .home-page {
    container-type: inline-size;
    padding-top: clamp(12px, calc(1.882353vw - 1.505882px), 32px);
    padding-left: clamp(40px, calc((100vw - 1700px) / 2), 110px);
    padding-right: clamp(40px, calc((100vw - 1700px) / 2), 110px);
    padding-bottom: clamp(16px, calc(2.352941vw - 1.882353px), 40px);
    gap: clamp(12px, calc(1.882353vw - 1.505882px), 32px);
  }

  .home-page > * {
    min-width: 0;
  }

  .home-block {
    gap: 1.176471cqw;
  }

  .home-block--hot {
    gap: 1.411765cqw;
  }

  .home-panel-head {
    gap: 0.941176cqw;
  }

  .home-panel-heading {
    gap: 0.235294cqw;
  }

  .home-panel-title {
    gap: 0.235294cqw;
    font-size: calc(1.294118cqw + var(--pc-font-boost, 0px));
    line-height: 1.647059cqw;
  }

  .home-panel-title--lg {
    font-size: calc(1.647059cqw + var(--pc-font-boost, 0px));
    line-height: 2.470588cqw;
  }

  .home-panel-sub--pc {
    color: #8f879e;
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-recommend-panel .home-panel-sub--pc {
    color: #a3a3b8;
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.235294cqw;
  }

  .home-more {
    gap: 0.235294cqw;
  }

  .home-more-icon {
    width: 0.823529cqw;
    height: 0.823529cqw;
  }

  .home-more--ghost {
    padding: 0.470588cqw 0.823529cqw;
    border-radius: 0.941176cqw;
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-more--text {
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.235294cqw;
  }

  .home-more--pill {
    width: 7.764706cqw;
    height: 2.588235cqw;
    border-radius: 1.294118cqw;
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
  }

  .home-hero-pc {
    border-radius: 1.176471cqw;
  }

  .home-hero-stage {
    height: 42.647059cqw;
  }

  .home-hero-fade {
    height: 100%;
  }

  .home-hero-info {
    left: 4.352941cqw;
    top: 20.176471cqw;
    bottom: auto;
    width: 46.294118cqw;
    gap: 0.941176cqw;
  }

  .home-hero-badge {
    padding: 0.235294cqw 0.705882cqw;
    font-size: calc(1.058824cqw + var(--pc-font-boost, 0px));
    line-height: 1.411765cqw;
  }

  .home-hero-title {
    font-size: calc(2.117647cqw + var(--pc-font-boost, 0px));
  }

  .home-hero-tags {
    gap: 0.411765cqw;
  }

  .home-hero-tags span {
    padding: 0.294118cqw 0.588235cqw;
    border-radius: 0.294118cqw;
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
  }

  .home-hero-desc {
    font-size: calc(1.058824cqw + var(--pc-font-boost, 0px));
    line-height: 1.588235cqw;
  }

  .home-hero-cta {
    width: 8.352941cqw;
    height: 2.529412cqw;
    border-radius: 0.529412cqw;
    font-size: calc(1.058824cqw + var(--pc-font-boost, 0px));
  }

  .home-hero-thumbs {
    right: 4.058824cqw;
    top: 8.529412cqw;
    width: 12.235294cqw;
    gap: 0.705882cqw;
    transform: none;
  }

  .home-hero-thumb-list {
    gap: 1.176471cqw;
  }

  .home-hero-thumb {
    width: 12.235294cqw;
    height: 6.882353cqw;
    border-radius: 0.588235cqw;
  }

  .home-hero-thumb-nav {
    width: 2.588235cqw;
    height: 2.588235cqw;
    border-radius: 1.294118cqw;
  }

  .home-notice {
    height: 2.588235cqw;
    border-radius: 0.470588cqw;
  }

  .home-notice-label {
    width: 5.647059cqw;
    height: 2.588235cqw;
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
  }

  .home-notice-track {
    padding: 0 1.176471cqw;
  }

  .home-notice-text {
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
    line-height: 1.411765cqw;
  }

  .home-notice-track.is-marquee .home-notice-text {
    padding-right: 3.764706cqw;
  }

  .home-split {
    gap: 1.882353cqw;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  }

  .home-rank-panel {
    width: 36.470588cqw;
    padding: 1.411765cqw;
    gap: 0.941176cqw;
    border-radius: 0.941176cqw;
    align-self: stretch;
  }

  .home-rank-panel > .home-panel-head {
    height: 2.588235cqw;
    flex-shrink: 0;
  }

  .home-rank-list {
    gap: 0.941176cqw;
  }

  .home-rank-item {
    gap: 0.941176cqw;
    height: 7.529412cqw;
    border-radius: 0.470588cqw;
  }

  .home-rank-num {
    width: auto;
    min-width: 1.058824cqw;
    text-align: left;
    font-size: calc(1.647059cqw + var(--pc-font-boost, 0px));
    line-height: 2.470588cqw;
  }

  .home-rank-cover {
    width: 5.647059cqw;
    height: 7.529412cqw;
    border-radius: 0.470588cqw;
  }

  .home-rank-meta {
    flex: 0 1 22.941176cqw;
    max-width: 22.941176cqw;
    gap: 0.470588cqw;
  }

  .home-rank-name,
  .home-rank-desc {
    width: 21.470588cqw;
    max-width: 100%;
  }

  .home-rank-name {
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
    line-height: 1.411765cqw;
  }

  .home-rank-desc {
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.235294cqw;
  }

  .home-rank-heat {
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-recommend-panel {
    padding-top: 1.411765cqw;
    gap: 1.176471cqw;
    box-sizing: border-box;
  }

  .home-recommend-panel .home-panel-heading {
    height: 3.764706cqw;
  }

  .home-recommend-panel .home-poster {
    width: 14.529412cqw;
    border-radius: 1.176471cqw 1.176471cqw 0.705882cqw 0.705882cqw;
  }

  .home-recommend-panel .home-poster-cover {
    aspect-ratio: 3 / 4;
    border-radius: 1.176471cqw 1.176471cqw 0 0;
  }

  .home-recommend-panel .home-poster-ep {
    width: 3cqw;
    min-width: 3cqw;
    height: 1.882353cqw;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .home-poster-grid {
    gap: 1.176471cqw;
  }

  .home-poster-grid--4 > .home-poster {
    width: 14.529412cqw;
  }

  .home-poster-grid--6 {
    gap: 1.176471cqw 0;
  }

  .home-poster-grid--6 > .home-poster {
    width: 15.647059cqw;
  }

  .home-poster {
    border-radius: 0.705882cqw;
  }

  .home-poster-cover {
    border-radius: 0.705882cqw 0.705882cqw 0 0;
  }

  .home-poster-ep {
    right: 0.588235cqw;
    bottom: 0.588235cqw;
    padding: 0.352941cqw 0.588235cqw;
    border-radius: 0.470588cqw;
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-poster-corner {
    right: 0.705882cqw;
    top: 0.705882cqw;
    padding: 0.352941cqw 0.705882cqw;
    border-radius: 0.352941cqw;
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.294118cqw;
  }

  .home-poster-body {
    padding: 0.588235cqw;
    gap: 0.352941cqw;
    border-radius: 0 0 0.705882cqw 0.705882cqw;
  }

  .home-poster-title {
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
    line-height: 1.411765cqw;
  }

  .home-poster-desc {
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.235294cqw;
  }

  .home-poster-foot {
    gap: 0.470588cqw;
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-poster--tall {
    border-radius: 1.176471cqw;
  }

  .home-poster--tall .home-poster-cover {
    border-radius: 1.176471cqw 1.176471cqw 0 0;
  }

  .home-poster--tall .home-poster-body {
    padding: 0.705882cqw 0.588235cqw;
    gap: 0.352941cqw;
    border-radius: 0 0 1.176471cqw 1.176471cqw;
  }

  .home-poster--tall .home-poster-ep {
    right: 0.705882cqw;
    bottom: 0.705882cqw;
    padding: 0.470588cqw 0.705882cqw;
    border-radius: 0.352941cqw;
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-poster--tall .home-poster-title {
    line-height: 1.294118cqw;
  }

  .home-playlist {
    gap: 1.411765cqw;
  }

  .home-playlist-card {
    height: 12.352941cqw;
    gap: 1.176471cqw;
    border-radius: 0.705882cqw;
  }

  .home-playlist-cover {
    width: 9.264706cqw;
    height: 12.352941cqw;
  }

  .home-playlist-body {
    width: 19.176471cqw;
    max-width: calc(100% - 10.441176cqw);
    padding-top: 1.176471cqw;
    padding-right: 0.941176cqw;
    gap: 0.588235cqw;
  }

  .home-playlist-title {
    font-size: calc(1.294118cqw + var(--pc-font-boost, 0px));
    line-height: 1.941176cqw;
  }

  .home-playlist-desc {
    max-width: 17.411765cqw;
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.235294cqw;
  }

  .home-playlist-count {
    font-size: calc(0.705882cqw + var(--pc-font-boost, 0px));
    line-height: 1.058824cqw;
  }

  .home-playlist-enter {
    font-size: calc(0.823529cqw + var(--pc-font-boost, 0px));
    line-height: 1.235294cqw;
  }

  .home-story--pc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.098824cqw;
  }

  .home-story-group {
    grid-template-columns: minmax(0, 32.127059cqw) minmax(0, 15.647059cqw);
    column-gap: 1.176471cqw;
  }

  .home-story-stack {
    row-gap: 1.235294cqw;
  }

  .home-story-stack .home-poster--tall {
    width: 15.647059cqw;
  }

  .home-story-stack .home-poster--tall .home-poster-cover {
    height: 20.882353cqw;
  }

  .home-poster--feature {
    width: 32.127059cqw;
    border-radius: 2.415547cqw;
  }

  .home-poster--feature .home-poster-cover {
    height: 42.875882cqw;
    border-radius: 2.415547cqw 2.415547cqw 0 0;
  }

  .home-poster--feature .home-poster-ep {
    right: 1.449329cqw;
    bottom: 0.966218cqw;
    padding: 0.966218cqw 1.449329cqw;
    border-radius: 0.724664cqw;
    font-size: calc(1.449329cqw + var(--pc-font-boost, 0px));
    line-height: 2.174118cqw;
  }

  .home-poster--feature .home-poster-body {
    padding: 1.449329cqw 1.207774cqw;
    gap: 0.724664cqw;
    border-radius: 0 0 2.415547cqw 2.415547cqw;
  }

  .home-poster--feature .home-poster-title {
    font-size: calc(1.932438cqw + var(--pc-font-boost, 0px));
    line-height: 2.657059cqw;
  }

  .home-poster--feature .home-poster-desc {
    font-size: calc(1.690883cqw + var(--pc-font-boost, 0px));
    line-height: 2.415294cqw;
  }

  .home-poster--feature .home-poster-foot {
    font-size: calc(1.449329cqw + var(--pc-font-boost, 0px));
    line-height: 2.174118cqw;
  }

  .home-featured {
    gap: 1.176471cqw;
  }

  .home-featured .home-panel-head {
    height: 3.764706cqw;
  }

  .home-featured .home-panel-heading {
    gap: 0;
  }

  .home-featured-stage {
    min-height: 36.705882cqw;
    padding: 0.705882cqw 1.235294cqw;
    border-radius: 0.941176cqw;
  }

  .home-featured-track {
    gap: 1.882353cqw;
  }

  .home-featured-item {
    border-radius: 0.705882cqw;
  }

  .home-featured-item.is-far {
    width: 14.117647cqw;
    height: 18.823529cqw;
  }

  .home-featured-item.is-side {
    width: 17.647059cqw;
    height: 23.529412cqw;
  }

  .home-featured-item.is-center {
    width: 26.470588cqw;
    height: 35.294118cqw;
  }

  .home-featured-caption {
    left: 1cqw;
    bottom: 1.058824cqw;
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
    line-height: 1.411765cqw;
  }

  .home-featured-nav {
    width: 2.588235cqw;
    height: 2.588235cqw;
    border-radius: 1.294118cqw;
  }

  .home-featured-nav--prev {
    left: 0.705882cqw;
  }

  .home-featured-nav--next {
    right: 0.705882cqw;
  }

  .home-friends {
    padding-top: 1.058824cqw;
    gap: 1.058824cqw;
  }

  .home-friends-title {
    gap: 0.235294cqw;
    font-size: calc(1.411765cqw + var(--pc-font-boost, 0px));
    line-height: 1.882353cqw;
  }

  .home-friends-list {
    gap: 0.705882cqw;
  }

  .home-friends-item {
    width: 8.588235cqw;
    padding: 0.529412cqw 0.470588cqw;
    border-radius: 0.352941cqw;
    font-size: calc(0.941176cqw + var(--pc-font-boost, 0px));
    line-height: 1.294118cqw;
  }
}

/* Keep the existing H5 content sequence while the PC grid mirrors Figma. */
.home-rank-heat--h5,
.home-poster-heat--h5,
.home-poster-corner--h5 {
  display: none;
}

@media (max-width: 767px) {
  .home-rank-heat--pc,
  .home-poster-heat--pc {
    display: none;
  }

  .home-rank-heat--h5,
  .home-poster-heat--h5 {
    display: inline;
  }

  .home-poster-corner--h5 {
    display: block;
  }
}

/* H5 国产浏览器兼容（夸克 / UC / QQ 等旧内核） */
@media (max-width: 767px) {
  html,
  body {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  .home-page {
    -webkit-tap-highlight-color: transparent;
  }

  .home-page a,
  .home-page button {
    touch-action: manipulation;
  }

  .home-featured-item.is-center {
    -webkit-transform: translateX(-50%);
  }

  /* 不支持 aspect-ratio（Chrome < 88 / iOS < 15）时用 padding 撑高封面 */
  @supports not (aspect-ratio: 1 / 1) {
    .home-hero-h5-cover {
      height: calc((100vw - 32px) * 0.562682);
    }
  }

  /* 不支持 flex gap（Chrome < 84 / iOS < 14.1）时用 margin 模拟 */
  .no-flexgap .home-page > * + * { margin-top: 18px; }
  .no-flexgap .home-block > * + * { margin-top: 20px; }
  .no-flexgap .home-block--playlist > * + * { margin-top: 12px; }
  .no-flexgap .home-featured > * + * { margin-top: 18px; }
  .no-flexgap .home-hero-h5-card > * + * { margin-top: 12px; }
  .no-flexgap .home-hero-h5-body > * + * { margin-top: 8px; }
  .no-flexgap .home-split > * + * { margin-top: 18px; }
  .no-flexgap .home-rank-panel > * + * { margin-top: 16px; }
  .no-flexgap .home-rank-list > * + * { margin-top: 16px; }
  .no-flexgap .home-rank-meta > * + * { margin-top: 6px; }
  .no-flexgap .home-recommend-panel > * + * { margin-top: 12px; }
  .no-flexgap .home-poster-body > * + * { margin-top: 4px; }
  .no-flexgap .home-playlist > * + * { margin-top: 12px; }
  .no-flexgap .home-playlist-body > * + * { margin-top: 4px; }
  .no-flexgap .home-featured-h5-meta > * + * { margin-top: 12px; }
  .no-flexgap .home-friends > * + * { margin-top: 12px; }

  .no-flexgap .home-panel-head > * + * { margin-left: 8px; }
  .no-flexgap .home-panel-bar { margin-right: 4px; }
  .no-flexgap .home-more--h5 .home-more-icon { margin-left: 2px; }
  .no-flexgap .home-hero-h5-foot > * + * { margin-left: 12px; }
  .no-flexgap .home-rank-item > * + * { margin-left: 10px; }
  .no-flexgap .home-poster-foot > * + * { margin-left: 4px; }
  .no-flexgap .home-playlist-card > * + * { margin-left: 12px; }
  .no-flexgap .home-featured-dots > * + * { margin-left: 10px; }

  .no-flexgap .home-friends-list {
    margin-bottom: -8px;
    margin-right: -11px;
  }

  .no-flexgap .home-friends-list > * {
    margin: 0 11px 8px 0;
  }
}

@media (max-width: 374px) {
  @supports not (aspect-ratio: 1 / 1) {
    .home-hero-h5-cover {
      height: calc((100vw - 24px) * 0.562682);
    }
  }

  .no-flexgap .home-page > * + * { margin-top: 14px; }
}
