:root {
  --site-bg: #fff8f5;
  --site-bg-soft: #fff1eb;
  --card-bg: #ffffff;
  --text-main: #2d2724;
  --text-soft: #6f625c;
  --text-muted: #9a8c84;
  --rose: #e84a72;
  --rose-deep: #c72759;
  --purple: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --line: rgba(120, 85, 72, 0.14);
  --shadow-soft: 0 18px 45px rgba(93, 64, 55, 0.12);
  --shadow-card: 0 16px 35px rgba(93, 64, 55, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: linear-gradient(180deg, #fff8f5 0%, #ffffff 48%, #fff6f2 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 245, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(93, 64, 55, 0.05);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 12px 25px rgba(232, 74, 114, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--rose-deep), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: #5b504a;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-deep);
  background: rgba(232, 74, 114, 0.10);
  transform: translateY(-1px);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 245, 0.96);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  display: grid;
  gap: 8px;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.mobile-category-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.25), transparent 28%), linear-gradient(135deg, #e64b72 0%, #7c3aed 58%, #ec4899 100%);
}

.hero-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  padding: 72px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(232, 74, 114, 0.10);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
}

.eyebrow {
  padding: 7px 12px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 20px 0 20px;
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button-primary,
.button-ghost,
.section-link,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  padding: 13px 20px;
  color: var(--rose-deep);
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
}

.button-ghost {
  padding: 12px 19px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.button-primary:hover,
.button-ghost:hover,
.section-link:hover,
.play-button:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stat {
  min-width: 136px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.hero-stage {
  position: relative;
  z-index: 2;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 70px rgba(30, 20, 50, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.75));
}

.hero-slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-pills span,
.movie-tags span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-pills span {
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
}

.hero-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

.section,
.page-section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.alt,
.full-band {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 241, 235, 0.92), rgba(250, 245, 255, 0.92));
}

.section.alt > .section-inner,
.full-band > .section-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-soft);
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--rose-deep);
  background: rgba(232, 74, 114, 0.10);
}

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

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

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.movie-rail .movie-card {
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(93, 64, 55, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ede9fe);
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover img {
  transform: scale(1.06);
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.48));
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 9px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.movie-card-body {
  padding: 16px 16px 18px;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.34;
}

.movie-card h3 a:hover {
  color: var(--rose-deep);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.movie-tags span,
.detail-tags span {
  padding: 5px 8px;
  color: var(--rose-deep);
  background: rgba(232, 74, 114, 0.10);
  font-size: 0.73rem;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff1eb);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(93, 64, 55, 0.16);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.category-card p {
  margin: 0;
  color: var(--text-soft);
}

.category-card strong {
  display: block;
  margin-top: 18px;
  color: var(--rose-deep);
  font-size: 1.7rem;
}

.page-hero {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 30%), linear-gradient(135deg, #e84a72, #7c3aed 64%, #ec4899);
  color: #ffffff;
}

.page-hero-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 82px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.filter-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.search-label input,
.global-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf7;
  color: var(--text-main);
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-label input {
  padding: 13px 16px;
  font-size: 1rem;
}

.search-label input:focus,
.global-search input:focus {
  border-color: rgba(232, 74, 114, 0.45);
  box-shadow: 0 0 0 4px rgba(232, 74, 114, 0.10);
}

.filter-count {
  margin: 0;
  color: var(--text-soft);
}

.filter-count strong {
  color: var(--rose-deep);
}

.detail-layout {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-card,
.detail-card,
.side-card,
.text-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101012;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-cover.hidden {
  display: none;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 2.2rem;
  text-indent: 4px;
}

.player-info,
.detail-card,
.side-card,
.text-card {
  padding: 24px;
}

.player-info h2,
.detail-card h2,
.side-card h2,
.text-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-card {
  margin-top: 24px;
}

.detail-card p,
.text-card p {
  color: var(--text-soft);
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #fff8f5;
}

.detail-meta-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 72px;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff1eb;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.global-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 26px;
}

.global-search input {
  padding: 16px 18px;
  font-size: 1.05rem;
}

.global-search button,
.play-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  cursor: pointer;
}

.global-search button {
  padding: 0 28px;
}

.search-results-empty {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--text-soft);
  text-align: center;
  background: #ffffff;
}

.sitemap-columns {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-columns a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: var(--text-soft);
}

.sitemap-columns a:hover {
  color: var(--rose-deep);
}

.site-footer {
  color: #e7ded8;
  background: #181313;
}

.footer-grid {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 520px;
  color: #aa9f98;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bfb3ad;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(232, 74, 114, 0.32);
}

.footer-bottom {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #817772;
  font-size: 0.88rem;
}

@media (max-width: 1060px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

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

  .hero-carousel {
    min-height: 480px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 46px 0 62px;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-carousel {
    min-height: 420px;
    border-radius: 26px;
  }

  .section,
  .page-section,
  .section.alt > .section-inner,
  .full-band > .section-inner {
    padding: 48px 0;
  }

  .section-heading,
  .filter-toolbar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .global-search {
    grid-template-columns: 1fr;
  }

  .global-search button {
    min-height: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .movie-rail {
    grid-auto-columns: 82%;
  }
}
