:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --soft: #fff1f6;
  --line: #f9c9dc;
  --line-soft: #fde5ee;
  --text: #2d2430;
  --muted: #766675;
  --primary: #db2777;
  --primary-dark: #be185d;
  --accent: #f43f5e;
  --rose: #ffe4ef;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
  --shadow-strong: 0 28px 65px rgba(190, 24, 93, 0.18);
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #201820;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.28);
  font-size: 16px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #5f5360;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: #ffe8f1;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(120deg, #ffe9f2 0%, #fff2f7 48%, #ffe1ec 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.42;
  pointer-events: none;
}

.hero::before {
  left: 5%;
  top: 8%;
  background: #f9a8d4;
}

.hero::after {
  right: 7%;
  bottom: 4%;
  background: #fda4af;
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slide {
  display: none;
  min-height: 630px;
  align-items: center;
  padding: 70px 0;
}

.hero-slide.active {
  display: flex;
  animation: fadeIn 0.5s ease both;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 54px;
  align-items: center;
}

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

.hero-kicker,
.section-heading span,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #ffe1ec;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h1 a {
  color: #251d27;
}

.hero h1 a:hover {
  color: var(--primary-dark);
}

.hero-lead {
  max-width: 720px;
  color: #5d4c5b;
  font-size: 20px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 34px rgba(219, 39, 119, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 45px rgba(219, 39, 119, 0.32);
}

.btn-soft {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.78);
  border-color: #f7b9cf;
}

.btn-soft:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-strong);
  transform: rotate(1.4deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe4ef, #fff7fb);
}

.hero-card-info {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(10px);
}

.hero-card-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-card-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #f9a8d4;
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--primary);
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 100%);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2,
.page-title h1 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  display: block;
  padding: 26px 22px;
  min-height: 142px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff6fa, #ffe8f1);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 26px rgba(190, 24, 93, 0.07);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: #f7a9c7;
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.22);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f7d7e4;
  box-shadow: 0 10px 24px rgba(39, 28, 35, 0.06);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #f7a9c7;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff1f6;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.5s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.56));
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.25s ease;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.25);
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge,
.card-year {
  position: absolute;
  z-index: 4;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 10px;
  background: var(--primary);
}

.card-year {
  right: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body a:hover {
  color: var(--primary-dark);
}

.card-meta {
  margin: 0 0 8px;
  color: #9a697c;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .card-desc {
  -webkit-line-clamp: 1;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.feature-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.feature-panel a {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  min-height: 360px;
}

.feature-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff1f6;
}

.feature-content {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

.feature-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  transition: 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 26px rgba(190, 24, 93, 0.11);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.rank-item img {
  width: 66px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff1f6;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  padding: 66px 0 40px;
  background: linear-gradient(135deg, #fff7fb, #ffe8f1);
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  max-width: 850px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #8f6a7b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin: 24px 0 34px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #f5bfd2;
  outline: 0;
  color: var(--text);
  background: #fffafe;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.12);
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

.empty-state.visible {
  display: block;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #100c12;
  box-shadow: var(--shadow-strong);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #100c12;
  cursor: pointer;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(16, 12, 18, 0.28);
  transition: 0.25s ease;
}

.player-poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.player-start {
  position: relative;
  z-index: 7;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 30px;
  transition: 0.25s ease;
}

.player-start:hover {
  transform: scale(1.08);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.07);
}

.detail-card h1,
.detail-card h2 {
  margin: 0 0 14px;
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-card h2 {
  font-size: 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #ffe8f1;
  font-size: 13px;
  font-weight: 800;
}

.detail-text {
  color: #514654;
  line-height: 1.9;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.side-card {
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.07);
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

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

.related-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff1f6;
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.pagination-links a {
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
}

.pagination-links a:hover {
  background: #ffe8f1;
}

.site-footer {
  margin-top: 56px;
  padding: 46px 0 0;
  color: #695b68;
  background: #fff7fb;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.85;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text);
}

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

.footer-links a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  color: #8a7887;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-layout,
  .feature-row,
  .feature-panel a,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 48px 0 76px;
  }

  .hero-card {
    max-width: 360px;
    margin: 0 auto;
    transform: none;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16px;
  }

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

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

  .category-tile {
    padding: 20px 16px;
  }

  .feature-content {
    padding: 24px;
  }

  .feature-content h2 {
    font-size: 26px;
  }

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

  .rank-item img {
    width: 58px;
    height: 78px;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }
}
