:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --pink: #db2777;
  --amber: #d97706;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(28, 25, 23, 0.12);
  --soft-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fff7f7 0%, var(--stone-50) 28%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.78);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.28s ease, background 0.28s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.1);
  background: rgba(255, 255, 255, 0.97);
}

.nav-shell {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, var(--red-dark), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--stone-700);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.22s ease;
}

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

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

.top-search input,
.mobile-search input,
.wide-search input,
.inline-filter input {
  border: 1px solid var(--stone-200);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 190px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.inline-filter input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid var(--stone-200);
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 800;
}

.mobile-link.active,
.mobile-link:hover {
  background: #fff1f2;
  color: var(--red);
}

.hero-carousel {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay,
.detail-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(219, 39, 119, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.62) 45%, rgba(153, 27, 27, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 76vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
}

.hero-kicker,
.page-hero span,
.section-head span,
.rank-entry span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(220, 38, 38, 0.9);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 18px 0 10px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-copy p,
.page-hero p,
.rank-entry p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-badges,
.detail-stats,
.tag-row,
.filter-pills,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-badges span,
.tag-row span,
.detail-stats span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 26px;
}

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
  border: 0;
  cursor: pointer;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span,
.detail-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.42);
  backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 24px;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.main-section,
.year-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head span {
  color: var(--red-dark);
  background: #ffe4e6;
}

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--stone-500);
  max-width: 760px;
}

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

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

.movie-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 229, 228, 0.84);
  border-radius: 24px;
  overflow: hidden;
  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(-5px);
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-image img {
  transform: scale(1.05);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(153, 27, 27, 0.92);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(153, 27, 27, 0.25);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--stone-900);
}

.card-title:hover {
  color: var(--red);
}

.card-meta {
  margin-top: 8px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.card-body p {
  color: var(--stone-700);
  min-height: 48px;
  margin: 12px 0;
  font-size: 14px;
}

.tag-row span {
  color: var(--red-dark);
  background: #fff1f2;
  backdrop-filter: none;
}

.horizontal-card,
.rank-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
}

.horizontal-card .card-image img,
.rank-card .card-image img {
  height: 100%;
  aspect-ratio: 16 / 10;
}

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

.category-section {
  max-width: none;
  background: #fff7f7;
}

.category-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.15), rgba(28, 25, 23, 0.86));
}

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

.category-card span {
  font-size: 22px;
  font-weight: 950;
}

.category-card strong {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.dark-feature {
  max-width: 1280px;
  margin-top: 64px;
  border-radius: 34px;
  background: linear-gradient(135deg, #1c1917, #3b1116 55%, #831843);
  color: #ffffff;
}

.dark-feature .section-head p,
.dark-feature .card-meta,
.dark-feature .card-body p {
  color: rgba(255, 255, 255, 0.7);
}

.dark-feature .section-head span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.dark-feature .section-head h2,
.dark-feature .card-title {
  color: #ffffff;
}

.dark-feature .movie-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
}

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

.rank-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  color: #ffffff;
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 24px 54px rgba(220, 38, 38, 0.25);
}

.rank-entry h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.rank-entry span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero {
  position: relative;
  max-width: 1280px;
  min-height: 330px;
  margin: 40px auto 0;
  padding: 56px;
  display: flex;
  align-items: center;
  gap: 42px;
  color: #ffffff;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(219, 39, 119, 0.46), transparent 32%),
    linear-gradient(135deg, #1c1917, #7f1d1d);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero img {
  width: 230px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.42);
}

.wide-search {
  margin-top: 24px;
  max-width: 680px;
}

.wide-search input {
  flex: 1;
  min-height: 50px;
  min-width: 0;
}

.filter-pills {
  margin-bottom: 28px;
}

.filter-pills button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--stone-700);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--stone-200);
  font-weight: 800;
  cursor: pointer;
}

.filter-pills button.active,
.filter-pills button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: none;
}

.inline-filter {
  margin-bottom: 24px;
}

.inline-filter input {
  width: min(100%, 520px);
}

.breadcrumb {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  position: relative;
  margin-top: 24px;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

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

.detail-copy h1 {
  margin: 16px 0;
  max-width: 860px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-stats {
  margin-top: 18px;
}

.player-section {
  padding-top: 44px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 38%, rgba(220, 38, 38, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 20px 48px rgba(220, 38, 38, 0.36);
  font-size: 34px;
}

.play-cover strong {
  font-size: clamp(22px, 3vw, 34px);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

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

.content-panel,
.side-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--stone-200);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.content-panel p {
  color: var(--stone-700);
  margin: 0 0 16px;
  font-size: 16px;
}

.side-panel dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-panel div {
  display: grid;
  gap: 4px;
}

.side-panel dt {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 900;
}

.side-panel a:hover {
  color: var(--red);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red-dark);
  background: #fff1f2;
  font-weight: 800;
  font-size: 13px;
}

.site-footer {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.74);
  background: #1c1917;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.brand-footer .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
}

.footer-links strong {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a:hover {
  color: #fb7185;
}

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

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

  .mobile-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: 66px;
    padding: 0 16px;
  }

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

  .brand-icon {
    width: 34px;
    height: 34px;
  }

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

  .hero-content {
    padding: 62px 18px 92px;
    gap: 28px;
  }

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .main-section,
  .year-section {
    padding: 42px 16px;
  }

  .movie-grid,
  .rank-grid,
  .compact-grid,
  .feature-side,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .horizontal-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .page-hero {
    margin: 24px 16px 0;
    padding: 34px 22px;
    border-radius: 26px;
  }

  .page-hero img {
    display: none;
  }

  .detail-wrap {
    padding: 48px 16px;
  }

  .detail-poster {
    max-width: 240px;
  }

  .content-panel,
  .side-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .rank-entry {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .rank-grid,
  .compact-grid,
  .feature-side,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .wide-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .wide-search input,
  .mobile-search input {
    width: 100%;
  }
}
