:root {
  --rose-50: #fff1f5;
  --rose-100: #ffe4ec;
  --rose-200: #fecdd8;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --slate-900: #1f2937;
  --slate-700: #374151;
  --slate-500: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 80px rgba(244, 63, 94, 0.14);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--rose-50), #ffffff 45%, #fdf2f8);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(244, 63, 94, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.24);
}

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

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

.nav-link,
.mobile-link {
  color: var(--slate-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-500);
}

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

.top-search input,
.mobile-search input,
.catalog-tools input,
.catalog-tools select {
  border: 1px solid var(--rose-200);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--slate-700);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 230px;
  padding: 10px 14px;
}

.top-search button,
.mobile-search button,
.catalog-tools button,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.catalog-tools button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  padding: 10px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--rose-500);
  border-radius: 3px;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 241, 245, 0.86);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 38px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-one {
  left: -130px;
  top: -150px;
  background: var(--rose-400);
}

.hero-glow-two {
  right: -150px;
  bottom: -180px;
  background: var(--pink-400);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.hero-stage {
  position: relative;
  min-height: 548px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 245, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(244, 114, 182, 0.24), transparent 34%), radial-gradient(circle at bottom left, rgba(251, 113, 133, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.76fr);
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: translateX(32px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-500);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.8vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 20px 0 12px;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-desc {
  margin: 0;
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.8;
  max-width: 640px;
}

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

.hero-tags {
  margin: 22px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.feature-meta span {
  padding: 7px 12px;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.btn:hover,
.top-search button:hover,
.mobile-search button:hover,
.catalog-tools button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(244, 63, 94, 0.20);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.26);
}

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

.btn-soft {
  background: var(--rose-50);
}

.hero-poster {
  position: relative;
  height: 430px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(31, 41, 55, 0.22);
  transform: rotate(1deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(31, 41, 55, 0.72));
}

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  color: var(--rose-500);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.12);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--rose-400), var(--pink-500));
}

.hero-category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 2px 4px;
}

.hero-category-strip a {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 999px;
  font-weight: 700;
}

.section-block {
  margin-top: 54px;
  margin-bottom: 54px;
}

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

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

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.more-link {
  color: var(--rose-500);
  font-weight: 800;
}

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

.category-card,
.overview-card,
.story-card,
.feature-card,
.movie-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.08);
}

.category-card {
  position: relative;
  min-height: 188px;
  border-radius: 24px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: saturate(1.1);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 241, 245, 0.94));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--slate-500);
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-card {
  border-radius: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

.feature-poster {
  height: 300px;
  overflow: hidden;
  border-radius: 22px;
}

.feature-info h3,
.movie-card h3 {
  margin: 0;
  line-height: 1.35;
}

.feature-info h3 {
  font-size: 28px;
}

.feature-info p:not(.eyebrow) {
  color: var(--slate-700);
  line-height: 1.8;
}

.feature-meta {
  margin: 18px 0 20px;
}

.ranking-band {
  padding: 52px 0;
  background: linear-gradient(90deg, rgba(255, 241, 245, 0.86), rgba(253, 242, 248, 0.92));
}

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.overview-card:hover,
.category-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.26);
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.poster-link img,
.feature-poster img,
.hero-poster img,
.play-cover img,
.category-card img {
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-link img,
.feature-card:hover .feature-poster img,
.hero-poster:hover img,
.category-card:hover img {
  transform: scale(1.05);
}

.card-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.88);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.9);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.24);
}

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

.card-meta {
  margin: 0 0 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-card h3 {
  font-size: 18px;
}

.card-desc {
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--slate-700);
  line-height: 1.62;
  font-size: 14px;
}

.compact-card .card-desc {
  min-height: 0;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
}

.catalog-tools input {
  flex: 1 1 260px;
  padding: 12px 16px;
}

.catalog-tools select {
  min-width: 150px;
  padding: 12px 16px;
}

.catalog-tools button {
  padding: 12px 18px;
}

.empty-state {
  text-align: center;
  padding: 50px 0;
  color: var(--slate-500);
  font-weight: 700;
}

.page-hero {
  padding: 54px 0;
  background: linear-gradient(135deg, rgba(255, 228, 236, 0.82), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  padding: 42px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--slate-700);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-500);
  font-weight: 700;
}

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

.overview-card {
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.overview-title {
  color: var(--slate-900);
  font-size: 24px;
  font-weight: 900;
}

.overview-card p {
  color: var(--slate-700);
  line-height: 1.75;
}

.overview-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.overview-samples a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-500);
  background: var(--rose-50);
  font-weight: 700;
  font-size: 13px;
}

.detail-wrap {
  padding-top: 34px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  min-height: 470px;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 470px;
  display: block;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111827;
  overflow: hidden;
  z-index: 3;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.68));
}

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

.play-circle {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 22px 44px rgba(244, 63, 94, 0.32);
  font-size: 28px;
  text-indent: 4px;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.detail-one-line {
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.8;
}

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

.content-section {
  margin-top: 34px;
}

.story-card {
  border-radius: 26px;
  padding: 30px;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.story-card h2:not(:first-child) {
  margin-top: 28px;
}

.story-card p {
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

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

.site-footer {
  margin-top: 68px;
  padding: 42px 0 26px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.footer-inner p,
.copyright {
  color: var(--slate-500);
}

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

.footer-links a {
  color: var(--slate-700);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--rose-500);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  font-size: 14px;
}

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

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

  .top-search input {
    width: 180px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .hero-poster {
    height: 330px;
  }

  .feature-card,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-poster {
    height: 260px;
  }

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

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

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

  .brand-name {
    font-size: 17px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 735px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-poster {
    height: 300px;
    border-radius: 22px;
  }

  .hero-desc,
  .detail-one-line {
    font-size: 16px;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 12px;
  }

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

  .category-card {
    min-height: 156px;
    padding: 18px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .player-shell,
  .movie-video {
    min-height: 260px;
  }

  .detail-info,
  .story-card {
    padding: 22px;
    border-radius: 22px;
  }

  .catalog-tools {
    border-radius: 20px;
  }
}

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