:root {
  --cream-50: #fffef9;
  --cream-100: #fff9f0;
  --cream-200: #f5f1e8;
  --cream-300: #e8dcc8;
  --warm-100: #ffe4e1;
  --warm-300: #f4bd85;
  --warm-400: #f4a460;
  --warm-500: #e89452;
  --soft-500: #c8bfb4;
  --soft-600: #b8ada0;
  --soft-700: #8f837c;
  --soft-800: #6f625c;
  --soft-900: #4d413d;
  --ink: #2a211e;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-soft-lg: 0 10px 40px -5px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--soft-900);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 164, 96, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 42%, var(--cream-200) 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--soft-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cream-300), var(--warm-400));
  box-shadow: 0 10px 24px rgba(244, 164, 96, 0.28);
}

.brand-text {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

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

.nav-link {
  color: var(--soft-700);
  font-weight: 650;
  transition: color 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 249, 240, 0.9);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--soft-900);
}

.home-hero {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  padding: 112px 0 48px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: center;
}

.hero-title-block {
  padding: 42px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warm-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title-block h1,
.page-hero h1,
.detail-intro h1 {
  margin: 16px 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-title-block h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-title-block p,
.page-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--soft-800);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-entry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-entry-row a,
.primary-button,
.ghost-button,
.text-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-entry-row a,
.ghost-button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--soft-900);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--warm-400), var(--warm-500));
  box-shadow: 0 16px 30px rgba(244, 164, 96, 0.32);
}

.hero-entry-row a:hover,
.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: var(--shadow-soft-lg);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.04)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.hero-content {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 38px;
  color: var(--white);
}

.hero-content h2 {
  max-width: 680px;
  margin: 14px 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
}

.hero-tags span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dots {
  position: absolute;
  right: 30px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section-shell,
.subpage-main,
.detail-main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.footer-links h2,
.detail-text-card h2 {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.16;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.with-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--warm-500);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(232, 220, 200, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--soft-700);
  font-weight: 700;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--cream-300);
  border-radius: 16px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.92);
  outline: none;
}

.search-box input:focus {
  border-color: var(--warm-400);
  box-shadow: 0 0 0 4px rgba(244, 164, 96, 0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--soft-800);
  background: var(--cream-200);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--warm-400);
  transform: translateY(-1px);
}

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

.small-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(232, 220, 200, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-200), var(--cream-300));
}

.movie-poster img,
.rank-cover img,
.detail-poster img,
.category-visual img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.rank-item:hover .rank-cover img,
.category-card:hover .category-visual img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(244, 164, 96, 0.92);
  backdrop-filter: blur(8px);
}

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

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft-600);
  font-size: 0.85rem;
  font-weight: 700;
}

.movie-meta span,
.rank-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cream-100);
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--soft-800);
  font-size: 0.94rem;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--warm-500);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(244, 164, 96, 0.12);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.split-side {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid rgba(232, 220, 200, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
}

.mini-category-list {
  display: grid;
  gap: 10px;
}

.mini-category-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  color: var(--soft-800);
  background: var(--cream-100);
  transition: background 0.25s ease, transform 0.25s ease;
}

.mini-category-list a:hover {
  background: var(--warm-100);
  transform: translateX(4px);
}

.mini-category-list span {
  color: var(--ink);
  font-weight: 800;
}

.mini-category-list small {
  color: var(--soft-700);
  line-height: 1.45;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 86px 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(232, 220, 200, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-lg);
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream-300);
}

.rank-number {
  color: var(--warm-500);
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--soft-800);
  line-height: 1.7;
}

.rank-action {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: var(--warm-400);
}

.subpage-main {
  padding-top: 108px;
}

.page-hero {
  margin-bottom: 34px;
  padding: 46px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(244, 164, 96, 0.26), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 240, 0.7));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(232, 220, 200, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft-lg);
}

.category-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 170px;
  overflow: hidden;
  background: var(--cream-300);
}

.category-body {
  padding: 18px;
}

.category-body h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.28rem;
}

.category-body p {
  margin: 0 0 14px;
  color: var(--soft-800);
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--soft-700);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--warm-500);
}

.detail-main {
  padding-top: 108px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 28px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft-lg);
}

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

.detail-intro h1 {
  max-width: 860px;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--soft-800);
  font-size: 1.1rem;
  line-height: 1.9;
}

.detail-tags {
  margin: 18px 0 24px;
}

.player-section {
  margin: 34px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #111111;
  box-shadow: var(--shadow-soft-lg);
}

.movie-player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.56));
  cursor: pointer;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--warm-500);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-text-card {
  padding: 26px;
  border: 1px solid rgba(232, 220, 200, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.detail-text-card p {
  margin: 14px 0 0;
  color: var(--soft-800);
  line-height: 2;
}

.related-section {
  padding-bottom: 58px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--cream-300);
  background: linear-gradient(180deg, var(--cream-100), var(--cream-200));
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-brand p {
  max-width: 420px;
  color: var(--soft-800);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  font-size: 1.08rem;
}

.footer-links a {
  color: var(--soft-700);
}

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

.footer-bottom {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--soft-700);
  border-top: 1px solid var(--cream-300);
}

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

@media (max-width: 1100px) {
  .home-hero,
  .detail-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .split-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 16px;
    border: 1px solid var(--cream-300);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft-lg);
    backdrop-filter: blur(14px);
  }

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

  .home-hero {
    width: min(100% - 24px, var(--max-width));
    padding-top: 92px;
  }

  .hero-stage {
    min-height: 520px;
    border-radius: 26px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 66px;
  }

  .hero-dots {
    left: 22px;
    right: auto;
  }

  .section-shell,
  .subpage-main,
  .detail-main {
    width: min(100% - 24px, var(--max-width));
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .content-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .rank-number,
  .rank-action {
    grid-column: span 2;
  }

  .rank-action {
    width: 100%;
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

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

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

  .with-link {
    align-items: flex-start;
    flex-direction: column;
  }
}
