:root {
  --red: #ff3f2f;
  --deep-red: #d91f18;
  --text: #181818;
  --muted: #7b7b84;
  --bg: #f7f7f8;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #131414;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #131414;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 80px;
  gap: 56px;
  background: rgba(19, 20, 20, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}

.brand img {
  width: 104px;
  height: 24px;
  border-radius: 0;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-left: 0;
  font-size: 16px;
  font-weight: 600;
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.42);
}

.nav .active {
  color: rgba(255, 255, 255, 0.92);
}

.download-btn {
  margin-left: -22px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 848px;
  overflow: hidden;
  color: #fff;
  background: #131414;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
  transition: background-image 280ms ease;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 20, 20, 0) 50%, rgba(19, 20, 20, 0.94) 100%),
    linear-gradient(90deg, rgba(19, 20, 20, 0.7) 0%, rgba(19, 20, 20, 0.16) 42%, rgba(19, 20, 20, 0.42) 100%);
}

.hero-content {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 232px;
  bottom: auto;
}

.hero-title-wrap {
  min-height: 320px;
}

.hero-title-img {
  display: block;
  max-width: 480px;
  max-height: 320px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.hero-title-img[src=""] {
  display: none;
}

.hero h1 {
  display: none;
  max-width: 300px;
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.48);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.tag-row span {
  padding: 7px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-intro {
  display: -webkit-box;
  max-width: 560px;
  min-height: 18px;
  margin: 0 0 26px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 192px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #ff9233, #ff7e0d);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.hero-dots {
  position: absolute;
  left: 80px;
  right: auto;
  bottom: 46px;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.hero-dots button {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dots .active {
  width: 18px;
  height: 5px;
  background: #fff;
}

.hero-posters {
  position: absolute;
  right: 0;
  top: 336px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.hero-poster {
  position: relative;
  width: 98px;
  height: 136px;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0.72;
  background: #333;
  transition: 180ms ease;
}

.hero-poster.active {
  width: 104px;
  height: 144px;
  opacity: 1;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  content: "";
}

.featured-strip {
  display: none;
}

.poster-track {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 0 16px 10px 0;
  scrollbar-width: none;
}

.poster-track::-webkit-scrollbar {
  display: none;
}

.mini-poster {
  position: relative;
  flex: 0 0 94px;
  height: 128px;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12);
}

.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-poster span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 7px 7px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  font-size: 12px;
  font-weight: 700;
}

.featured-strip p {
  margin: 0;
  padding-right: 16px;
  color: #a6a6ad;
  text-align: center;
  font-size: 13px;
}

.hot-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px 70px;
  color: #fff;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-tabs .active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 18px;
}

.drama-card {
  min-width: 0;
}

.cover {
  position: relative;
  aspect-ratio: 108 / 146;
  overflow: hidden;
  border-radius: 8px;
  background: #e5e5e8;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.drama-card:hover img {
  transform: scale(1.035);
}

.episode {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.drama-card h3 {
  display: -webkit-box;
  height: 39px;
  margin: 7px 0 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.48;
  letter-spacing: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.drama-card p {
  margin: 0;
  overflow: hidden;
  color: #8f9098;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-cta {
  display: none;
}

.download-panel[hidden] {
  display: none;
}

.download-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.panel-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.52);
}

.panel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(318px, calc(100vw - 46px));
  padding: 30px 22px 24px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.panel-close {
  position: absolute;
  top: 10px;
  right: 13px;
  border: 0;
  color: #9a9aa2;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.panel-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.panel-card h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.panel-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.qr-code-img {
  display: block;
  width: 154px;
  height: 154px;
  margin: 0 auto;
  border: 1px solid #eeeeef;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 760px) {
  body {
    background: #181a1a;
  }

  .page-shell {
    background: #181a1a;
  }

  .topbar {
    height: 54px;
    gap: 0;
    padding: 0 16px;
    background: rgba(24, 26, 26, 0.96);
  }

  .brand img {
    width: 92px;
    height: 21px;
  }

  .nav {
    gap: 22px;
    margin-left: auto;
    font-size: 15px;
  }

  .download-btn {
    display: none;
  }

  .hero {
    height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(24, 26, 26, 0) 38%, rgba(24, 26, 26, 0.8) 78%, #181a1a 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 58%);
  }

  .hero-content {
    left: 20px;
    right: 20px;
    top: 295px;
    bottom: auto;
  }

  .hero-title-wrap {
    min-height: 106px;
  }

  .hero-title-img {
    max-width: 320px;
    max-height: 180px;
  }

  .tag-row {
    gap: 7px;
    margin: 0 0 11px;
  }

  .tag-row span {
    padding: 5px 8px;
    font-size: 12px;
  }

  .hero-intro {
    max-width: 320px;
    min-height: 17px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 17px;
  }

  .play-btn {
    display: none;
  }

  .hero-posters {
    display: none;
  }

  .hero-dots {
    left: 20px;
    bottom: 34px;
  }

  .featured-strip {
    display: none;
  }

  .hot-section {
    margin-top: -4px;
    padding: 0 16px 86px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-head span {
    display: none;
  }

  .drama-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
  }

  .drama-card h3 {
    font-size: 13px;
  }

  .mobile-cta {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(300px, calc(100vw - 48px));
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(180deg, #ff9233, #ff7e0d);
    font-size: 15px;
    font-weight: 800;
    transform: translateX(-50%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }
}

@media (max-width: 360px) {
  .nav {
    gap: 15px;
  }
}
