:root {
  --bg: #fff7fb;
  --paper: #ffffff;
  --ink: #24131c;
  --muted: #7c6571;
  --line: rgba(98, 43, 70, .14);
  --pink: #ff4f9a;
  --rose: #ff7a63;
  --plum: #6a1b57;
  --mint: #49d6bd;
  --gold: #ffc857;
  --shadow: 0 24px 60px rgba(112, 36, 77, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255,79,154,.18), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(73,214,189,.16), transparent 28%),
    linear-gradient(180deg, #fff7fb 0%, #fff 46%, #fff6f1 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.wrap {
  width: min(1200px, calc(100% - 34px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,247,251,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  color: var(--plum);
  white-space: nowrap;
}

.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(255,79,154,.34);
}

.brand-badge svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #634253;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--plum), var(--pink));
}

.search {
  width: 228px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
}

.search svg {
  width: 17px;
  height: 17px;
  color: var(--pink);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--plum);
  background: #fff;
}

.hero {
  padding: 42px 0 28px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.62)),
    radial-gradient(circle at 18% 18%, rgba(255,200,87,.28), transparent 32%);
  box-shadow: var(--shadow);
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #8d2357;
  background: rgba(255,79,154,.12);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 20px 0 14px;
  color: var(--plum);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.hero p {
  margin: 0;
  color: #6c5360;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--plum);
  font-weight: 800;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 16px 34px rgba(255,79,154,.26);
}

.hero-gallery {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr .82fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 30px;
  background: #f7dbe8;
  box-shadow: var(--shadow);
}

.hero-card.large {
  grid-row: span 2;
}

.hero-card img,
.poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .46s ease, filter .46s ease;
}

.hero-card:hover img,
.card:hover .poster img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.hero-card::after,
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(36,19,28,.78));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.hero-caption strong {
  display: block;
  font-size: 24px;
  line-height: 1.12;
}

.hero-caption span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.82);
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  color: var(--plum);
  font-size: 30px;
  line-height: 1.16;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more {
  color: var(--pink);
  font-weight: 800;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  min-width: 0;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(112,36,77,.09);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card:hover {
  transform: translateY(-8px) rotate(.6deg);
  border-color: rgba(255,79,154,.38);
  box-shadow: 0 26px 55px rgba(112,36,77,.2);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5.15;
  border-radius: 18px;
  background: #f7dbe8;
}

.tag,
.score {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.tag {
  left: 12px;
  color: #fff;
  background: rgba(255,79,154,.88);
}

.score {
  right: 12px;
  color: #4b2b02;
  background: rgba(255,200,87,.92);
}

.play-chip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 13px;
}

.card h3 {
  margin: 12px 3px 5px;
  font-size: 18px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card p {
  margin: 0 3px 4px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.channel {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #fff, #fff0f6);
  transition: transform .2s ease, background .2s ease;
}

.channel:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, #fff5d7, #ffe5f0);
}

.channel strong {
  color: var(--plum);
  font-size: 21px;
}

.channel span {
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  margin: 22px 0;
}

.field,
.select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
}

.field {
  min-width: 0;
  padding: 0 16px;
  outline: 0;
}

.select {
  padding: 0 34px 0 14px;
}

.count {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail {
  padding: 38px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}

.detail-poster {
  min-height: 540px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-copy {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 18px 0 12px;
  color: var(--plum);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f7;
  color: #7f2d58;
  font-weight: 800;
  font-size: 13px;
}

.intro {
  margin: 22px 0 0;
  color: #6c5360;
  font-size: 16px;
  line-height: 1.85;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.episode-grid a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--plum);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 30px rgba(112,36,77,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  box-shadow: 0 20px 42px rgba(112,36,77,.16);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
}

.text-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.text-panel h2 {
  margin: 0 0 12px;
  color: var(--plum);
}

.text-panel p {
  margin: 0 0 14px;
  color: #6c5360;
  line-height: 1.85;
}

.footer {
  margin-top: 32px;
  color: #fff;
  background: linear-gradient(145deg, #49133c, #7f1f5d 58%, #ff5f84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding: 34px 0;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  font-size: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copyright {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.76);
  font-size: 13px;
}

.empty {
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .hero-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .episode-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 24px, 1200px);
  }

  .nav {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 10px 0;
  }

  .menu {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links,
  .search {
    display: none;
    width: 100%;
  }

  .topbar.open .nav-links,
  .topbar.open .search {
    display: flex;
    flex-wrap: wrap;
  }

  .topbar.open .search {
    order: 5;
  }

  .hero-copy {
    min-height: auto;
    padding: 26px;
  }

  .hero-gallery {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-card.large {
    grid-row: auto;
  }

  .hero-card {
    min-height: 320px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .channel-strip,
  .filters,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-item .pill {
    grid-column: 2;
    width: fit-content;
  }
}
