:root {
  --sand-50: #fff8f0;
  --sand-100: #f7eadb;
  --sand-200: #ecd6c2;
  --desert-500: #c98546;
  --desert-600: #a96931;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --purple-600: #9333ea;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-sand: 0 18px 45px rgba(120, 83, 47, 0.14);
  --shadow-rose: 0 22px 55px rgba(225, 29, 72, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: var(--sand-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 214, 194, 0.78);
  box-shadow: 0 10px 30px rgba(68, 64, 60, 0.06);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
  box-shadow: var(--shadow-rose);
  flex: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose-600), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--stone-600);
}

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

.nav-link {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--stone-700);
  transition: color 0.24s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--desert-500);
  transition: width 0.24s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--sand-100);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--stone-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 248, 240, 0.98);
}

.mobile-nav .nav-link {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
}

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

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.72), transparent 35%), linear-gradient(135deg, #3b0764, #881337 45%, #111827);
}

.hero-stage {
  position: relative;
  min-height: 640px;
}

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

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

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.62) 48%, rgba(28, 25, 23, 0.18) 100%), linear-gradient(0deg, rgba(28, 25, 23, 0.9), transparent 40%);
}

.hero-content {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 96px 0 120px;
}

.hero-copy {
  width: min(710px, 100%);
}

.hero-eyebrow,
.inner-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: var(--white);
  background: rgba(244, 63, 94, 0.86);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
  box-shadow: var(--shadow-rose);
}

.btn-soft {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: var(--white);
}

.floating-search {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

.search-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 24px 0 60px;
  border: 1px solid rgba(236, 214, 194, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sand);
  backdrop-filter: blur(16px);
}

.search-icon {
  position: absolute;
  left: 26px;
  top: 50%;
  color: var(--rose-600);
  transform: translateY(-50%);
  font-size: 22px;
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--stone-800);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

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

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

.section-heading span {
  margin-bottom: 12px;
  color: var(--rose-600);
  background: #ffe4e6;
  border-color: #fecdd3;
}

.section-heading h2,
.inner-hero h1 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.section-heading p,
.inner-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

.section-link {
  flex: none;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--desert-600);
  background: var(--sand-100);
  font-weight: 900;
}

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

.movie-card-featured:nth-child(1),
.movie-card-featured:nth-child(2) {
  grid-column: span 2;
}

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

.movie-card,
.rank-card,
.category-overview,
.story-card,
.player-shell {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sand);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(120, 83, 47, 0.22);
}

.movie-card a,
.rank-card a,
.category-overview a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-card-featured .poster-wrap {
  aspect-ratio: 21 / 9;
}

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

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.category-overview:hover img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.64), transparent 52%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-600);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

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

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

.rank-badge {
  left: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
}

.type-badge {
  right: 12px;
  padding: 6px 10px;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  display: block;
  padding: 18px;
}

.tag-row span {
  color: var(--rose-700);
  background: #ffe4e6;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-top: 12px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 18px;
  font-weight: 950;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.75;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.category-band {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(247, 234, 219, 0.7));
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-sand);
  background: var(--stone-200);
}

.category-card img,
.category-overview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.9), rgba(28, 25, 23, 0.15));
}

.category-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.category-content strong,
.overview-copy strong {
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.category-content em,
.overview-copy em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  line-height: 1.65;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: auto 104px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
  font-weight: 950;
}

.rank-card img {
  width: 104px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: var(--stone-900);
  font-size: 17px;
  font-weight: 950;
}

.rank-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 6px 0 10px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  font-style: normal;
}

.inner-hero {
  padding: 78px 0 0;
}

.inner-hero .search-panel {
  margin-top: 28px;
}

.category-overview a {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 190px;
}

.overview-copy {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.overview-links a,
.overview-links span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--desert-600);
  background: var(--sand-100);
  font-size: 12px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.detail-bg {
  opacity: 0.35;
  filter: blur(3px);
  transform: scale(1.02);
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.58)), linear-gradient(0deg, rgba(28, 25, 23, 0.95), transparent 60%);
}

.detail-head {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 74px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-rose);
  aspect-ratio: 3 / 4;
  background: var(--stone-800);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-one-line {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-meta span {
  display: inline-flex;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta b {
  color: var(--white);
}

.detail-tags {
  margin-top: 22px;
}

.detail-copy .btn {
  margin-top: 32px;
}

.player-section {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

.player-shell {
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.32), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-rose);
}

.play-overlay strong {
  font-size: 18px;
}

.player-info {
  padding: 24px;
}

.player-info h2,
.story-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: 26px;
  font-weight: 950;
}

.player-info p,
.story-card p {
  margin: 12px 0 0;
  color: var(--stone-600);
  line-height: 1.9;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.story-card {
  padding: 30px;
}

.accent-card {
  background: linear-gradient(135deg, #fff1f2, #faf5ff);
}

.related-grid {
  padding-bottom: 20px;
}

.site-footer {
  margin-top: 88px;
  padding: 56px 0 28px;
  color: #d6d3d1;
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
  font-weight: 950;
}

.footer-brand p {
  max-width: 520px;
  color: #a8a29e;
  line-height: 1.9;
}

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

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #a8a29e;
  transition: color 0.24s ease;
}

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

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #78716c;
  font-size: 13px;
}

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

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

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

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

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-slider,
  .hero-stage,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 80px 0 110px;
  }

  .feature-grid,
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid,
  .content-grid,
  .footer-grid,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .movie-card-featured:nth-child(1),
  .movie-card-featured:nth-child(2) {
    grid-column: span 1;
  }

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

  .category-overview img {
    aspect-ratio: 16 / 9;
  }

  .detail-head {
    padding: 48px 0;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-title {
    font-size: 19px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .btn,
  .section-link {
    width: 100%;
  }

  .search-panel {
    min-height: 64px;
    border-radius: 20px;
  }

  .page-section {
    padding-top: 54px;
  }

  .feature-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: auto 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card img {
    width: 78px;
    height: 56px;
  }
}
