:root {
  --page-bg: #fff7fb;
  --text: #282233;
  --muted: #766878;
  --light: #ffffff;
  --soft: #fff1f7;
  --line: #f8cfe0;
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --deep: #7f1d3f;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.16);
  --soft-shadow: 0 10px 30px rgba(190, 24, 93, 0.10);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(236, 72, 153, 0.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(251, 146, 60, 0.20), transparent 32%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7fb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(248, 207, 224, 0.8);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(190, 24, 93, 0.08);
}

.header-inner {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 25px;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b3f4d;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--pink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-search {
  width: min(290px, 28vw);
  position: relative;
}

.header-search input,
.page-filter input,
.page-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.page-filter input:focus,
.page-filter select:focus {
  border-color: rgba(236, 72, 153, 0.72);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--deep);
  background: var(--soft);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 241, 247, 0.95);
  font-weight: 800;
  color: #5b3650;
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

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

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #310d25;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(49, 13, 37, 0.96) 0%, rgba(77, 18, 52, 0.80) 45%, rgba(77, 18, 52, 0.40) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(49, 13, 37, 0.92), transparent);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffe4ef;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 14px;
}

.hero h1,
.hero h2 {
  margin: 18px 0 14px;
  color: white;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 760px;
}

.hero-desc {
  color: #ffe4ef;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 720px;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin: 18px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #642041;
  background: #fff1f7;
  font-size: 13px;
  font-weight: 800;
}

.hero .pill {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.35);
}

.btn-soft {
  color: #642041;
  background: rgba(255, 255, 255, 0.88);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.35);
  border: 10px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7e8, #ffedd5);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 38px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  background: white;
}

.section {
  padding: 30px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title,
.page-title {
  margin: 0;
  color: #261827;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(248, 207, 224, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.44);
  box-shadow: var(--shadow);
}

.card-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7e8, #ffedd5);
}

.card-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.82;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.30);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.movie-title a:hover {
  color: var(--pink);
}

.movie-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.category-card {
  display: block;
  position: relative;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius);
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.30), transparent 28%),
    linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-count {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #642041;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(248, 207, 224, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

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

.rank-cover img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7e8, #ffedd5);
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero-card {
  border-radius: 30px;
  padding: 40px;
  color: white;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #831843, #be185d, #fb923c);
  box-shadow: var(--shadow);
}

.page-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  margin: 26px 0;
}

.movie-detail {
  padding: 36px 0 46px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.9;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7e8, #ffedd5);
}

.detail-panel,
.player-panel,
.copy-panel {
  border: 1px solid rgba(248, 207, 224, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.detail-panel {
  padding: 28px;
}

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

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-intro {
  color: #5c4d5e;
  font-size: 18px;
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.player-panel {
  overflow: hidden;
  margin-top: 28px;
}

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

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #180717;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background:
    linear-gradient(135deg, rgba(49, 13, 37, 0.62), rgba(190, 24, 93, 0.24)),
    var(--player-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  padding-left: 5px;
}

.player-title {
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 900;
}

.copy-panel {
  padding: 26px;
  margin-top: 24px;
}

.copy-panel h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.copy-panel p {
  color: #5c4d5e;
  line-height: 1.9;
}

.site-footer {
  margin-top: 36px;
  color: white;
  background: linear-gradient(135deg, #831843, #9f1239, #c2410c);
}

.footer-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 900;
  font-size: 22px;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.8;
}

.footer-inner h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.72);
  padding: 18px 0;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 20px;
  background: white;
  color: var(--muted);
  box-shadow: var(--soft-shadow);
}

@media (max-width: 1060px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero-shell {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 26px;
  }

  .hero-controls {
    right: 24px;
    bottom: 18px;
  }

  .section-head {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 44px 74px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / 4;
  }

  .rank-cover img {
    width: 74px;
    height: 102px;
  }

  .page-filter {
    grid-template-columns: 1fr;
  }

  .page-hero-card,
  .detail-panel,
  .copy-panel {
    padding: 24px;
    border-radius: 22px;
  }

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

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

  .logo {
    font-size: 21px;
  }
}
