html,
body {
  background: #000;
  color: #fff;
}

body {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  font-size: 24px;
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif;
  overflow-x: hidden;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: #000;
  padding-bottom: 160px;
  position: relative;
}

/* header */
.page-header {
  height: 110px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  left: 24px;
  top: 0;
  width: calc(100% - 48px);
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 15px;
}

.header-left,
.header-right {
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex: none;
  margin-right: 12px;
}

.header-info {
  min-width: 0;
}

.header-title-row {
  display: flex;
  align-items: center;
}

.header-name {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.header-badge {
  height: 28px;
  margin-left: 8px;
}

.header-sub {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.2;
  color: #F0C14B;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  flex: none;
}

.header-action {
  width: 72px;
  height: 86px;
  display: block;
  cursor: pointer;
}

.header-action + .header-action {
  margin-left: 22px;
}

/* announce */
.announce {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: #000;
  margin-bottom: 30px;
}

.announce-icon {
  height: 60px;
  flex: none;
  margin-right: 12px;
  display: block;
}

.announce-marquee {
  flex: 1;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.announce-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 24px;
  line-height: 40px;
  color: #F0C14B;
  animation: marquee 16s linear infinite;
}

.announce-track span {
  display: block;
  line-height: 40px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* banner */
.banner-viewport {
  position: relative;
  width: 100%;
  height: 860px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
  transform: translateX(11%);
}

.banner-slide {
  position: relative;
  flex: none;
  width: 78%;
  height: 100%;
  margin-right: 16px;
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.88);
  opacity: 0.78;
  transform-origin: center center;
  transition: transform 0.45s ease, opacity 0.45s ease;
  cursor: pointer;
  background: #111;
}

.banner-slide.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.banner-slide.active::after {
  opacity: 0;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-title {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 36px;
  text-align: center;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: #f3c45a;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 3;
}

.banner-desc {
  padding: 28px 30px 8px;
  text-align: center;
  background: #000;
}

.banner-desc p {
  font-size: 24px;
  line-height: 46px;
  color: #D8CCB5;
}

.banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 12px;
  background: #5c5c5c;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.banner-dots span + span {
  margin-left: 14px;
}

.banner-dots span.active {
  width: 36px;
  background: #f3c45a;
}

/* dual marquee */
.feed-marquee {
  padding: 24px 0 8px;
  background: #000;
}

.feed-row + .feed-row {
  margin-top: 28px;
}

.feed-row-title {
  padding: 0 24px 16px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.feed-row-mask {
  overflow: hidden;
  width: 100%;
}

.feed-row-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.feed-row-left {
  animation: marquee-left 22s linear infinite;
}

.feed-row-right {
  animation: marquee-right 78s linear infinite;
}

.feed-card {
  flex: none;
  margin-right: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.feed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card-wide {
  width: 340px;
  height: 210px;
}

.feed-card-small {
  width: 168px;
  height: 210px;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* section */
.section {
  padding: 28px 24px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
  color: #F0C14B;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  margin-right: 10px;
  background: #F0C14B;
}

.section-more {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: #D8CCB5;
  cursor: pointer;
}

.section-more img {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.card-item {
  width: 50%;
  padding: 0 8px 22px;
  cursor: pointer;
}

.card-cover {
  position: relative;
  width: 100%;
  padding-top: 128.23%;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.card-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 72px;
  height: 36px;
  object-fit: fill;
  z-index: 2;
}

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 72px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 600;
  color: #FFD91C;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(90deg, #0F1314, #3F342D) padding-box,
    linear-gradient(90deg, #0F1314, #3F342D) border-box;
  z-index: 2;
}

.card-update {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
  background: url("../img/update-bg.webp") center / 100% 100% no-repeat;
  z-index: 2;
}

.card-name {
  margin-top: 12px;
  font-size: 26px;
  line-height: 36px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* footer note */
.page-note {
  position: relative;
  padding: 20px 90px 24px;
  text-align: center;
}

.page-note p {
  font-size: 20px;
  line-height: 36px;
  color: #B7AB94;
}

.back-top {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  cursor: pointer;
}

/* bottom bar */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: 140px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111 url("../img/footer-bg.webp") center / cover no-repeat;
  z-index: 30;
}

.bottom-btn {
  height: 80px;
  cursor: pointer;
}

.bottom-btn.download {
  height: 86px;
}

.page-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 85vw;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(35, 35, 35, 0.95);
  color: #fff;
  font-size: 16px;
  text-align: center;
  pointer-events: none;
  z-index: 100;
}

.banner-dots [role="button"] {
  cursor: pointer;
}

.banner-dots [role="button"]:focus-visible,
.back-top:focus-visible,
.bottom-btn:focus-visible {
  outline: 2px solid #f3c45a;
  outline-offset: 4px;
}

/* Mobile spacing and type stay readable instead of scaling the whole design. */
@media (max-width: 749px) {
  body {
    --mobile-gutter: clamp(12px, 3.2vw, 24px);
    --mobile-button-height: calc((100vw - 2 * var(--mobile-gutter) - 12px) / 6.68);
    max-width: none;
    margin: 0;
    font-size: 14px;
  }

  .page {
    padding-bottom: calc(var(--mobile-button-height) + 44px + env(safe-area-inset-bottom, 0px));
  }

  .page-header {
    height: auto;
    min-height: 76px;
    padding: 10px var(--mobile-gutter);
    gap: 12px;
  }

  .header-bg {
    left: 0;
    width: 100%;
    border-radius: 0 0 12px 12px;
  }

  .header-left {
    flex: 1;
    gap: 8px;
  }

  .header-logo {
    width: clamp(44px, 11.5vw, 64px);
    height: clamp(44px, 11.5vw, 64px);
    border-radius: 10px;
    margin-right: 0;
  }

  .header-info {
    overflow: hidden;
  }

  .header-title-row {
    white-space: nowrap;
  }

  .header-name {
    font-size: clamp(18px, 4.8vw, 28px);
  }

  .header-badge {
    height: clamp(18px, 4.3vw, 24px);
    margin-left: 6px;
    flex: none;
  }

  .header-sub {
    margin-top: 7px;
    font-size: clamp(10px, 2.6vw, 14px);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-right {
    gap: clamp(8px, 2.4vw, 16px);
  }

  .header-action {
    width: clamp(36px, 9.5vw, 52px);
    height: auto;
    aspect-ratio: 72 / 86;
  }

  .header-action + .header-action {
    margin-left: 0;
  }

  .announce {
    height: 44px;
    padding: 0 var(--mobile-gutter);
    margin-bottom: 4px;
  }

  .announce-icon {
    height: 30px;
    margin-right: 8px;
  }

  .announce-marquee {
    min-width: 0;
    height: 28px;
  }

  .announce-track,
  .announce-track span {
    font-size: clamp(13px, 3.2vw, 18px);
    line-height: 28px;
  }

  /* A 72%-wide portrait at 3:4 keeps the complete poster in a shorter carousel. */
  .banner-viewport {
    height: 96vw;
  }

  .banner-slide {
    width: 72%;
    margin-right: 12px;
    border-radius: 16px;
  }

  .banner-slide.active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }

  .banner-title {
    left: 14%;
    right: 14%;
    bottom: 20px;
    font-size: clamp(24px, 5.6vw, 36px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  }

  .banner-desc {
    padding: 14px var(--mobile-gutter) 8px;
  }

  .banner-desc p {
    font-size: clamp(13px, 3.2vw, 18px);
    line-height: 1.8;
  }

  .banner-dots {
    margin-top: 12px;
  }

  .banner-dots span {
    width: 6px;
    height: 6px;
    border-radius: 6px;
  }

  .banner-dots span + span {
    margin-left: 8px;
  }

  .banner-dots span.active {
    width: 20px;
  }

  .feed-marquee {
    padding: 12px 0 16px;
  }

  .feed-row + .feed-row {
    margin-top: 20px;
  }

  .feed-row-title {
    padding: 0 var(--mobile-gutter) 10px;
    font-size: clamp(18px, 4.2vw, 24px);
    line-height: 1.4;
  }

  .feed-row-mask {
    padding: 0 var(--mobile-gutter);
  }

  .feed-card {
    margin-right: 12px;
    border-radius: 10px;
  }

  .feed-card-wide {
    width: 62vw;
    height: auto;
    aspect-ratio: 34 / 21;
  }

  .feed-card-small {
    width: 82vw;
    height: auto;
    aspect-ratio: 710 / 240;
  }

  .section {
    padding: 16px var(--mobile-gutter) 0;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .section-title {
    font-size: clamp(18px, 4.2vw, 24px);
  }

  .section-more {
    font-size: clamp(13px, 3.2vw, 18px);
  }

  .section-title::before {
    width: 3px;
    height: 18px;
    margin-right: 8px;
  }

  .section-more img {
    width: 16px;
    height: 16px;
    margin-left: 2px;
  }

  .card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
  }

  .card-item {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .card-cover {
    border-radius: 10px;
  }

  .card-tag {
    top: 6px;
    left: 6px;
    width: 44px;
    height: 22px;
  }

  .card-score {
    top: 6px;
    right: 6px;
    width: 44px;
    height: 22px;
    font-size: 12px;
    border-width: 1px;
    border-radius: 4px;
  }

  .card-update {
    bottom: 8px;
    max-width: calc(100% - 12px);
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .card-name {
    margin-top: 8px;
    font-size: clamp(14px, 3.5vw, 20px);
    line-height: 1.5;
  }

  .page-note {
    padding: 24px 56px 12px;
  }

  .page-note p {
    font-size: 12px;
    line-height: 1.8;
  }

  .back-top {
    right: var(--mobile-gutter);
    width: 40px;
    height: 40px;
  }

  .bottom-bar {
    height: auto;
    padding: 12px var(--mobile-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid rgba(240, 193, 75, 0.18);
  }

  .bottom-btn,
  .bottom-btn.download {
    width: 100%;
    height: auto;
    min-width: 0;
    aspect-ratio: 334 / 100;
    object-fit: contain;
  }
}
.download-notice {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: max-content;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

