:root {
  --sand-50: #fdfbf7;
  --sand-100: #f8f4ea;
  --sand-200: #eee4d1;
  --sand-600: #b98947;
  --sand-700: #9a7540;
  --desert-50: #fef9f3;
  --desert-100: #fdf2e5;
  --desert-500: #e88c45;
  --desert-600: #d66f2e;
  --desert-700: #b35a26;
  --earth-50: #f7f6f4;
  --earth-100: #ede9e4;
  --earth-200: #ded6ce;
  --earth-500: #927b6c;
  --earth-600: #745b4b;
  --earth-700: #5f4b3e;
  --earth-800: #554236;
  --earth-900: #504035;
  --white: #ffffff;
  --ink: #2c241f;
  --shadow-card: 0 14px 36px rgba(80, 64, 53, 0.12);
  --shadow-soft: 0 20px 50px rgba(214, 111, 46, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--earth-900);
  background: linear-gradient(180deg, var(--sand-50) 0%, #ffffff 42%, var(--earth-50) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(238, 228, 209, 0.9);
  background: linear-gradient(90deg, rgba(253, 251, 247, 0.96), rgba(254, 249, 243, 0.96));
  box-shadow: 0 8px 28px rgba(80, 64, 53, 0.08);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--desert-500), var(--sand-600));
  box-shadow: 0 12px 24px rgba(214, 111, 46, 0.25);
  font-weight: 800;
}

.brand-title {
  display: block;
  color: var(--earth-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--desert-700), var(--sand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--earth-700);
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
  transition: color 0.2s ease;
}

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: var(--earth-700);
  background: var(--sand-100);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: radial-gradient(circle at 12% 20%, rgba(232, 140, 69, 0.28), transparent 28%), radial-gradient(circle at 82% 10%, rgba(154, 117, 64, 0.22), transparent 30%), linear-gradient(135deg, #fff9f1 0%, #fdf2e5 47%, #f7f6f4 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253, 251, 247, 0.98) 0%, rgba(253, 251, 247, 0.78) 46%, rgba(80, 64, 53, 0.16) 100%);
  content: "";
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: 650px;
  gap: 44px;
  padding: 60px 0 72px;
}

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

.hero-eyebrow,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(214, 111, 46, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--desert-700);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(214, 111, 46, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  color: var(--earth-900);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 span,
.page-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--desert-700), var(--desert-500), var(--sand-700));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead,
.page-lead {
  margin: 0;
  color: var(--earth-600);
  font-size: 18px;
  line-height: 1.9;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--desert-600), var(--sand-600));
  box-shadow: 0 16px 34px rgba(214, 111, 46, 0.28);
}

.btn-soft {
  color: var(--earth-800);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(80, 64, 53, 0.1);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(100%, 560px);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(238, 228, 209, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--earth-800);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  background: var(--desert-600);
  font-weight: 800;
}

.hero-panel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 34px;
  opacity: 0;
  transform: scale(0.98) translateY(12px);
  box-shadow: 0 30px 70px rgba(80, 64, 53, 0.22);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.08) 100%);
  content: "";
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
}

.hero-slide-content h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.hero-slide-content p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
}

.badge {
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.tag {
  color: var(--desert-700);
  background: var(--desert-100);
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 10px 0 0;
  color: var(--earth-900);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-text {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--earth-600);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(238, 228, 209, 0.82);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(214, 111, 46, 0.34);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand-100);
}

.card-cover.wide {
  aspect-ratio: 16 / 10;
}

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

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

.card-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, transparent 48%);
  content: "";
  opacity: 0.85;
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  color: #fff;
  background: rgba(214, 111, 46, 0.94);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--earth-900);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.meta-pill {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--earth-600);
  background: var(--sand-100);
  font-size: 12px;
  font-weight: 700;
}

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

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

.category-card {
  display: block;
  min-height: 180px;
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #fff, var(--desert-50));
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--earth-900);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--earth-600);
  line-height: 1.7;
}

.page-hero {
  padding: 58px 0 38px;
  border-bottom: 1px solid rgba(238, 228, 209, 0.78);
  background: radial-gradient(circle at 12% 20%, rgba(232, 140, 69, 0.18), transparent 28%), linear-gradient(135deg, var(--sand-50), #fff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--earth-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--desert-700);
  font-weight: 750;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 0.2fr));
  gap: 12px;
  margin: 28px 0 26px;
  padding: 14px;
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--sand-200);
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  color: var(--earth-800);
  background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(232, 140, 69, 0.12);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(80, 64, 53, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--desert-600), var(--sand-600));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 72px;
  height: 94px;
  border-radius: 12px;
  background: var(--sand-100);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  display: block;
  color: var(--earth-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.rank-meta {
  display: block;
  margin-top: 6px;
  color: var(--earth-500);
  font-size: 13px;
}

.side-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, var(--desert-50));
  box-shadow: var(--shadow-card);
}

.side-panel h2 {
  margin: 0 0 16px;
  color: var(--earth-900);
  font-size: 22px;
}

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

.player-card {
  overflow: hidden;
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 28px;
  background: #14100e;
  box-shadow: 0 28px 70px rgba(80, 64, 53, 0.22);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
}

.player-overlay.hidden {
  display: none;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-overlay::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  content: "";
}

.play-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--desert-600), var(--sand-600));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  font-size: 30px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-button {
  transform: scale(1.08);
}

.player-caption {
  padding: 18px 20px 20px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #1b1512, #120e0c);
}

.player-caption strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
}

.content-card {
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 14px;
  color: var(--earth-900);
}

.content-card p {
  margin: 0;
  color: var(--earth-700);
  line-height: 1.9;
}

.content-card p + p {
  margin-top: 14px;
}

.poster-card {
  overflow: hidden;
  border: 1px solid rgba(238, 228, 209, 0.86);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--sand-100);
}

.poster-info {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--sand-100);
  padding-bottom: 10px;
  color: var(--earth-600);
}

.info-row strong {
  color: var(--earth-900);
}

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

.empty-state {
  display: none;
  border: 1px dashed var(--sand-200);
  border-radius: 20px;
  padding: 26px;
  color: var(--earth-600);
  background: #fff;
  text-align: center;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(222, 214, 206, 0.86);
  background: linear-gradient(180deg, var(--earth-50), var(--earth-100));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 28px;
  padding: 44px 0;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--earth-900);
  font-size: 24px;
  font-weight: 900;
}

.footer-text {
  margin: 0;
  color: var(--earth-600);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--earth-600);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--desert-600);
}

.footer-bottom {
  border-top: 1px solid rgba(222, 214, 206, 0.86);
  padding: 18px 0;
  color: var(--earth-500);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-shell,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 480px;
  }

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .navbar {
    min-height: 68px;
  }

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

  .brand-subtitle {
    display: none;
  }

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

  .nav-links {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--sand-200);
    border-radius: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero,
  .hero-shell {
    min-height: unset;
  }

  .hero-shell {
    padding: 38px 0 50px;
    gap: 28px;
  }

  .hero-panel {
    min-height: 430px;
  }

  .hero-search,
  .filter-bar {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 44px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

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

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.compact,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-thumb {
    width: 62px;
    height: 82px;
  }
}
