:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-400: #fb923c;
  --slate-950: #0f172a;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(225, 29, 72, 0.14);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.09);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 42%, #fff1f2 100%);
}

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;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(251, 113, 133, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-600);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-400));
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.top-search {
  margin-left: auto;
  display: flex;
  width: min(360px, 34vw);
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.24);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.08);
}

.top-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  outline: 0;
  color: var(--gray-700);
  background: transparent;
}

.top-search button,
.primary-button,
.secondary-button,
.section-more,
.detail-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.top-search button {
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
}

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

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 14px;
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 12px 14px;
  color: var(--gray-700);
  background: var(--white);
  border-radius: 14px;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  margin: 0 auto 56px;
  padding: 56px 20px 40px;
  background: radial-gradient(circle at 15% 15%, rgba(251, 113, 133, 0.24), transparent 32%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 54%, #fff7ed 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(rgba(244, 63, 94, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  min-height: 520px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.08);
}

.hero-copy h1 {
  margin: 18px 0;
  color: var(--gray-950);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--gray-600);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.9;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.primary-button,
.secondary-button,
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.primary-button,
.detail-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.24);
}

.secondary-button {
  color: var(--rose-600);
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.detail-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(225, 29, 72, 0.22);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 440px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  height: 440px;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 36px;
  box-shadow: 0 34px 80px rgba(225, 29, 72, 0.22);
  transform: rotate(2deg);
}

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

.hero-poster::after,
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.72));
}

.hero-floating-card {
  position: absolute;
  left: -22px;
  bottom: 30px;
  width: min(320px, 90%);
  padding: 18px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.hero-floating-card span {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: -18px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.content-section,
.category-section,
.detail-section,
.player-section,
.catalog-section {
  margin-bottom: 56px;
}

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

.section-heading h1,
.section-heading h2,
.page-title h1 {
  margin: 0 0 8px;
  color: var(--gray-950);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  color: var(--rose-600);
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 999px;
}

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow: 0 28px 55px rgba(225, 29, 72, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fff1f2;
}

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

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

.year-badge,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.74);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-400));
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(225, 29, 72, 0.3);
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(225, 29, 72, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta,
.card-stats,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta a,
.breadcrumb a {
  color: var(--rose-600);
  font-weight: 800;
}

.card-body h2 {
  margin: 10px 0 9px;
  color: var(--gray-950);
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--rose-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.75;
}

.card-stats {
  justify-content: space-between;
  margin-top: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(135deg, var(--white), #fff1f2);
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.2), transparent 68%);
}

.category-card h2 {
  margin: 0 0 12px;
  color: var(--gray-950);
}

.category-card p {
  color: var(--gray-600);
  line-height: 1.8;
}

.category-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 12px;
  color: var(--rose-600);
  font-weight: 900;
}

.page-title {
  padding: 48px 0 32px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(140px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 16px;
  outline: 0;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 34px;
  align-items: center;
  padding: 42px 0;
}

.detail-copy h1 {
  margin: 16px 0;
  color: var(--gray-950);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.9;
}

.detail-cover {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  box-shadow: 0 32px 72px rgba(225, 29, 72, 0.18);
}

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

.player-section {
  background: var(--slate-950);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
  border: 0;
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  border-radius: 999px;
  box-shadow: 0 24px 45px rgba(225, 29, 72, 0.36);
  font-size: 30px;
}

.play-layer strong {
  font-size: 20px;
}

.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--white);
}

.player-caption span {
  color: rgba(255, 255, 255, 0.72);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.detail-article,
.side-panel {
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.detail-article h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-950);
}

.detail-article p {
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 2;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rose-100);
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

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

.related-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.related-card span {
  display: block;
  padding: 12px;
  color: var(--gray-900);
  font-weight: 800;
  line-height: 1.35;
}

.site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, #fff1f2, #ffffff);
  border-top: 1px solid rgba(244, 63, 94, 0.14);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-links a {
  display: inline-flex;
  margin: 0 14px 10px 0;
  color: var(--gray-600);
}

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

.footer-bottom {
  padding: 18px 20px;
  color: var(--gray-500);
  text-align: center;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.hidden-card {
  display: none !important;
}

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

  .ranking-list,
  .related-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

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

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-poster {
    height: 340px;
  }

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

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

@media (max-width: 620px) {
  .header-inner,
  .page-main,
  .hero-section {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

  .hero-section {
    padding-top: 34px;
  }

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

  .hero-actions,
  .detail-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .ranking-list,
  .category-grid,
  .related-strip {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

  .player-caption {
    align-items: flex-start;
    flex-direction: column;
  }
}
