:root {
  --cream-50: #fffef9;
  --cream-100: #fff9f0;
  --cream-200: #f5f1e8;
  --cream-300: #e8dcc8;
  --warm-100: #ffe4e1;
  --warm-300: #ffc4b8;
  --warm-400: #f4a460;
  --warm-500: #e89452;
  --soft-500: #b7aaa4;
  --soft-600: #a89f9a;
  --soft-700: #8f8580;
  --soft-800: #766d69;
  --soft-900: #5f5651;
  --black: #17120f;
  --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.10), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-50);
  color: var(--soft-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(255, 249, 240, 0.56), rgba(255, 249, 240, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.site-nav {
  min-height: 72px;
  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;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cream-300), var(--warm-300), var(--warm-400));
  box-shadow: 0 12px 28px rgba(232, 148, 82, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

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

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

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

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

.menu-button {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--soft-800);
  background: rgba(245, 241, 232, 0.92);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid rgba(232, 220, 200, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
  animation: fadeIn 0.25s ease both;
}

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--cream-200);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 120px 0 70px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 196, 184, 0.55), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(244, 164, 96, 0.30), transparent 25%),
    linear-gradient(135deg, var(--cream-50), var(--cream-100) 47%, var(--cream-200));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0), rgba(255, 254, 249, 0.80));
  pointer-events: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.74fr);
  gap: 34px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -20px;
  z-index: 0;
  overflow: hidden;
  border-radius: 36px;
  opacity: 0.26;
  filter: blur(12px);
}

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

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--warm-500);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: var(--soft-900);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h2 {
  font-size: clamp(32px, 5vw, 62px);
}

.hero-summary {
  width: min(690px, 100%);
  margin: 0 0 24px;
  color: var(--soft-700);
  font-size: 18px;
}

.hero-movie-title {
  display: block;
  margin: 0 0 12px;
  color: var(--warm-500);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--warm-400);
  box-shadow: 0 16px 30px rgba(232, 148, 82, 0.26);
}

.btn-primary:hover {
  background: var(--warm-500);
}

.btn-ghost {
  color: var(--soft-800);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  color: var(--warm-500);
  background: var(--white);
}

.hero-poster {
  display: block;
  overflow: hidden;
  min-height: 430px;
  border: 10px solid rgba(255, 255, 255, 0.65);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--cream-200), var(--warm-100));
  box-shadow: var(--shadow-soft-lg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-info-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  padding: 18px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(23, 18, 15, 0.18), rgba(23, 18, 15, 0.76));
  backdrop-filter: blur(10px);
}

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

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(168, 159, 154, 0.32);
  transition: background 0.25s ease, width 0.25s ease;
}

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

.hero-search {
  position: relative;
  z-index: 3;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid rgba(232, 220, 200, 0.82);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-search input,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(232, 220, 200, 0.9);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--soft-800);
  background: var(--white);
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

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

.section {
  padding: 64px 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--cream-100), var(--cream-50));
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--warm-500);
  font-weight: 900;
}

.section-title {
  margin: 0;
  color: var(--soft-900);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}

.section-desc {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--soft-700);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(232, 220, 200, 0.84);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 240, 0.88));
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(244, 164, 96, 0.16);
}

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

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--soft-700);
  font-size: 14px;
}

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

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

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cream-200), var(--warm-100));
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.52));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.movie-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.movie-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--warm-500);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
  padding: 17px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--warm-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--soft-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-body h3 a {
  transition: color 0.25s ease;
}

.movie-body h3 a:hover {
  color: var(--warm-500);
}

.movie-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--soft-700);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span,
.info-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--soft-700);
  background: var(--cream-200);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  padding: 5px 9px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.rank-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft-lg);
}

.rank-feature img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border-radius: 22px;
  object-fit: cover;
}

.rank-feature h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.rank-feature p {
  color: var(--soft-700);
}

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

.rank-mini {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-mini:hover {
  transform: translateX(4px);
  background: var(--white);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--warm-400);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-views {
  color: var(--soft-600);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 120px 0 54px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 196, 184, 0.42), transparent 30%),
    linear-gradient(135deg, var(--cream-50), var(--cream-100), var(--cream-200));
}

.page-hero h1 {
  margin: 0 0 14px;
  color: var(--soft-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--soft-700);
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--soft-600);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--warm-500);
  font-weight: 800;
}

.breadcrumbs em {
  font-style: normal;
  opacity: 0.52;
}

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

.filter-search {
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-chip {
  border: 0;
  padding: 8px 13px;
  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);
}

.detail-page {
  padding-top: 94px;
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
}

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

.player-panel,
.detail-info,
.related-panel {
  border: 1px solid rgba(232, 220, 200, 0.82);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-panel {
  overflow: hidden;
  background: var(--black);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-cover span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--warm-500);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  font-size: 36px;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.play-cover:hover span {
  transform: scale(1.08);
}

.detail-info {
  margin-top: 22px;
  padding: 26px;
}

.detail-info h1 {
  margin: 0 0 12px;
  color: var(--soft-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.detail-lead {
  margin: 0 0 18px;
  color: var(--warm-500);
  font-size: 18px;
  font-weight: 800;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.info-pill {
  padding: 7px 11px;
}

.detail-info h2,
.related-panel h2 {
  margin: 24px 0 12px;
  color: var(--soft-900);
  font-size: 24px;
}

.detail-info p {
  color: var(--soft-700);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 0;
}

.detail-tags span {
  padding: 7px 12px;
}

.related-panel {
  position: sticky;
  top: 94px;
  padding: 18px;
}

.related-panel h2 {
  margin-top: 0;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: var(--cream-100);
  transition: transform 0.25s ease, background 0.25s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.related-card img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream-200);
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--soft-900);
  line-height: 1.35;
}

.related-card span {
  display: block;
  margin-top: 5px;
  color: var(--soft-600);
  font-size: 12px;
}

.search-panel {
  display: grid;
  gap: 14px;
}

.search-results {
  min-height: 260px;
}

.empty-state {
  padding: 42px;
  border-radius: 24px;
  color: var(--soft-700);
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide,
  .detail-layout,
  .rank-layout,
  .rank-feature {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-slide {
    gap: 24px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

  .search-form {
    flex-direction: column;
  }

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

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

  .movie-body {
    padding: 14px;
  }

  .rank-mini {
    grid-template-columns: 38px 1fr;
  }

  .rank-views {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 22px, 1200px);
  }

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

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .hero-movie-title {
    font-size: 28px;
  }

  .detail-info {
    padding: 20px;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }

  .related-card img {
    width: 96px;
  }
}
