:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(244, 63, 94, 0.16);
  --soft: #fff7ed;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff1f2 0%, #ffffff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 247, 0.88);
  border-bottom: 1px solid rgba(251, 113, 133, 0.18);
  box-shadow: 0 12px 34px rgba(244, 63, 94, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--rose-dark);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.26);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.10);
}

.nav-link:hover,
.mobile-link:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.inline-filter,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.inline-filter input,
.search-page-form input {
  width: 220px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 11px 16px;
  outline: none;
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus,
.search-page-form input:focus {
  border-color: rgba(244, 63, 94, 0.48);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.top-search button,
.mobile-search button,
.inline-filter button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.20);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.10);
  color: var(--rose-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  gap: 10px;
  flex-direction: column;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 32px;
  background: linear-gradient(100deg, rgba(255, 228, 230, 0.95), rgba(252, 231, 243, 0.78), rgba(255, 237, 213, 0.92));
}

.hero-bg-one,
.hero-bg-two {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-bg-one {
  top: -130px;
  left: -80px;
  background: #fb7185;
}

.hero-bg-two {
  right: -80px;
  bottom: -140px;
  background: #fdba74;
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.10);
  border: 1px solid rgba(244, 63, 94, 0.16);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 20px 0 12px;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  color: #881337;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 42px);
  color: #111827;
}

.hero-copy p,
.page-hero p,
.feature-panel p,
.category-card-large p,
.content-card p {
  color: #475569;
  line-height: 1.85;
  font-size: 16px;
}

.hero-tags,
.detail-meta,
.detail-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(244, 63, 94, 0.16);
}

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

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
}

.ghost-btn {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.ghost-btn.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.20);
}

.hero-art {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.28), rgba(249, 115, 22, 0.18)),
    #fff7ed;
  box-shadow: 0 30px 80px rgba(190, 18, 60, 0.25);
  transform: rotate(1.2deg);
}

.hero-art::after,
.poster-wrap::after,
.category-cover::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.46));
  pointer-events: none;
}

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

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  cursor: pointer;
}

.hero-dot.active {
  width: 54px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.feature-panel h2,
.content-card h2 {
  margin: 10px 0 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-link,
.text-btn {
  color: var(--rose-dark);
  font-weight: 900;
}

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

.category-tile {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.20), transparent 9rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(190, 18, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile span {
  color: var(--rose-dark);
  font-weight: 900;
}

.category-tile strong {
  color: #111827;
  line-height: 1.45;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  background: var(--card);
  box-shadow: 0 16px 36px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-wrap,
.category-cover,
.detail-poster,
.rank-thumb {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.14)),
    #fff7ed;
}

.poster-wrap {
  aspect-ratio: 16 / 10;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.card-row,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-badge {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-year,
.card-meta {
  color: var(--muted);
  font-size: 13px;
}

.movie-card strong {
  font-size: 18px;
  color: #111827;
  line-height: 1.35;
}

.card-desc {
  min-height: 48px;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.feature-panel,
.rank-panel,
.content-card {
  border-radius: 30px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: var(--shadow);
}

.feature-panel {
  min-height: 420px;
  padding: 38px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 13rem),
    linear-gradient(135deg, #e11d48, #db2777, #f97316);
}

.feature-panel h2,
.feature-panel p {
  color: #fff;
}

.feature-panel h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.rank-panel,
.content-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 78px 1fr 28px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(244, 63, 94, 0.10);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(190, 18, 60, 0.10);
}

.rank-num {
  font-size: 22px;
  font-weight: 950;
  color: var(--rose);
  text-align: center;
}

.rank-thumb {
  height: 68px;
  border-radius: 16px;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.rank-info strong {
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info span,
.rank-arrow {
  color: var(--muted);
}

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

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 56px 24px 28px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 60px);
}

.page-hero p {
  max-width: 760px;
}

.category-list-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
  min-height: 230px;
  border-radius: 22px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-samples a {
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.inline-filter {
  margin-top: 22px;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 24px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  min-height: 520px;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(190, 18, 60, 0.22);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--rose-dark);
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-line {
  color: #475569;
  line-height: 1.85;
  font-size: 18px;
  max-width: 820px;
}

.detail-meta,
.detail-tags {
  margin: 16px 0;
}

.player-section {
  padding-top: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.58));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 20px 48px rgba(244, 63, 94, 0.38);
  font-size: 34px;
}

.player-shell.playing .player-start {
  opacity: 0;
  pointer-events: none;
}

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

.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

.search-page-form input {
  width: 100%;
  min-height: 52px;
}

.search-card.is-hidden {
  display: none;
}

.site-footer {
  margin-top: 36px;
  background: #fff;
  border-top: 1px solid rgba(244, 63, 94, 0.14);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: start;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--rose-dark);
  font-weight: 800;
  background: rgba(244, 63, 94, 0.08);
  border-radius: 999px;
  padding: 9px 12px;
}

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .top-search {
    display: none;
  }

  .hero-slide,
  .split-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 820px;
  }

  .hero-art {
    min-height: 360px;
  }

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

  .category-list-large,
  .full-rank,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

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

  .mobile-nav.open {
    display: flex;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero-section {
    padding: 34px 18px 26px;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    gap: 24px;
  }

  .hero-art {
    min-height: 310px;
    border-radius: 26px;
  }

  .hero-dots {
    bottom: -4px;
  }

  .section-wrap,
  .page-hero,
  .detail-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .category-card-large {
    grid-template-columns: 1fr;
  }

  .category-cover,
  .detail-poster {
    min-height: 340px;
  }

  .rank-item {
    grid-template-columns: 44px 64px 1fr 18px;
    gap: 10px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 780px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .feature-actions,
  .inline-filter,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-filter input,
  .search-page-form input,
  .inline-filter button,
  .search-page-form button {
    width: 100%;
  }

  .player-start span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
