:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --indigo-100: #e0e7ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 70px rgba(88, 28, 135, 0.24);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--purple-50), var(--white) 28%, var(--rose-50));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.96), rgba(255, 241, 242, 0.96));
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-800);
}

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

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--gray-600);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link {
  padding: 25px 0 22px;
  border-bottom: 3px solid transparent;
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--rose-700);
  background: var(--rose-100);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(244, 63, 94, 0.16);
  padding: 12px 16px 18px;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  padding: 10px 8px;
  border-radius: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-700), var(--pink-500));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 58%, rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 58px;
  color: var(--white);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: var(--rose-700);
  background: var(--rose-100);
}

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

.hero-summary,
.sub-hero p,
.detail-intro p {
  margin: 0 0 28px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span,
.pill-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-actions.slim {
  margin-top: 22px;
}

.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--rose-600);
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.32);
}

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

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.outline-button {
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
}

.primary-button.full {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  border: 10px solid rgba(255, 255, 255, 0.22);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.45);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.quick-search,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: end;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.quick-search h2,
.section-heading h2,
.sub-hero h1,
.content-card h2,
.side-card h2 {
  margin: 8px 0 0;
  color: var(--gray-800);
}

.quick-search label,
.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-weight: 800;
  font-size: 13px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  padding: 0 16px;
  background: var(--white);
  color: var(--gray-800);
  outline: 0;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.page-section {
  padding: 64px 0;
}

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

.section-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-link {
  color: var(--rose-600);
  font-weight: 900;
}

.feature-band {
  background: linear-gradient(90deg, var(--rose-100), var(--purple-100));
  border-block: 1px solid rgba(244, 63, 94, 0.12);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.poster-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-cover:hover img,
.related-item:hover img,
.ranking-item:hover img {
  transform: scale(1.06);
}

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.card-year {
  left: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  right: 10px;
  background: var(--rose-600);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

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

.card-body h2 a:hover,
.ranking-copy h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--rose-600);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
}

.card-small .card-body h2 {
  font-size: 15px;
}

.card-small .card-body p {
  display: none;
}

.tag-row span,
.pill-row span {
  color: var(--rose-700);
  background: var(--rose-50);
}

.large-tags span {
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(225, 29, 72, 0.28));
}

.category-tile span {
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.sub-hero {
  position: relative;
  padding: 82px 0 92px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-700), var(--pink-500));
  overflow: hidden;
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.sub-hero .container {
  position: relative;
  z-index: 1;
}

.category-hero,
.ranking-hero {
  background: linear-gradient(135deg, var(--purple-600), var(--rose-600));
}

.filter-panel {
  grid-template-columns: 2fr 1fr 1fr;
  margin: 0 0 32px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  border-radius: 24px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  background: var(--rose-100);
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-overview-card h2 {
  margin: 14px 0 10px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 62px 112px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-number {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  font-weight: 900;
}

.ranking-poster {
  overflow: hidden;
  border-radius: 14px;
}

.ranking-poster img {
  width: 112px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-copy p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
  margin-top: 44px;
}

.detail-cover {
  width: 260px;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 8px solid rgba(255, 255, 255, 0.2);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.content-card,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-card {
  overflow: hidden;
  background: var(--gray-900);
}

.video-shell {
  position: relative;
  background: #000000;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
}

.player-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.player-button span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-600);
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.34);
  font-size: 28px;
}

.player-button strong {
  font-size: 18px;
}

.player-button.is-hidden {
  display: none;
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.86);
}

.content-card,
.side-card {
  margin-top: 24px;
  padding: 28px;
}

.pill-row {
  margin-bottom: 22px;
}

.content-card h2 {
  margin: 28px 0 14px;
  font-size: 24px;
}

.content-card p {
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  color: var(--rose-700) !important;
  font-size: 18px !important;
  font-weight: 800;
}

blockquote {
  margin: 0;
  border-left: 5px solid var(--rose-600);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  color: var(--gray-700);
  background: var(--rose-50);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 96px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}

.related-item:hover strong {
  color: var(--rose-600);
}

.related-item small {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
}

.empty-state {
  width: min(100% - 32px, var(--container));
  margin: 30px auto;
  border-radius: 18px;
  padding: 28px;
  color: var(--gray-600);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-grid p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-grid a {
  display: block;
  margin: 10px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 280px;
    gap: 34px;
  }

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 70px 0 90px;
  }

  .hero-poster {
    width: min(62vw, 260px);
    justify-self: start;
    transform: none;
  }

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

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-overview-card,
  .detail-intro {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(72vw, 260px);
  }

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

  .ranking-item {
    grid-template-columns: 46px 92px 1fr;
  }

  .ranking-item .outline-button {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .ranking-poster img {
    width: 92px;
    height: 128px;
  }
}

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

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-intro h1 {
    font-size: 34px;
  }

  .hero-summary,
  .sub-hero p,
  .detail-intro p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

  .compact-grid,
  .medium-grid,
  .list-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .card-small .card-body p {
    display: block;
  }

  .ranking-item {
    grid-template-columns: 42px 1fr;
  }

  .ranking-poster {
    display: none;
  }

  .ranking-copy h2 {
    font-size: 18px;
  }

  .related-item {
    grid-template-columns: 82px 1fr;
  }

  .related-item img {
    width: 82px;
    height: 60px;
  }
}
