:root {
  --sand-50: #faf8f3;
  --sand-100: #f0e6d8;
  --sand-200: #dcc7ac;
  --sand-400: #bd8f62;
  --sand-600: #a3744c;
  --sand-700: #7f5838;
  --sand-800: #5b3f2b;
  --sand-900: #2b2018;
  --desert-400: #f1b070;
  --desert-500: #ec944f;
  --desert-600: #d97935;
  --desert-700: #b5602a;
  --text: #2d2219;
  --muted: #79675a;
  --white: #ffffff;
  --shadow-warm: 0 16px 50px rgba(139, 88, 44, 0.18);
  --shadow-card: 0 14px 30px rgba(79, 54, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(43, 32, 24, 0.92);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(32, 20, 10, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--desert-500), #ffd39d);
  color: #2b1709;
  box-shadow: 0 10px 24px rgba(236, 148, 79, 0.32);
}

.logo-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.desktop-nav a {
  position: relative;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--white);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--desert-500);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: var(--white);
  background: var(--sand-900);
}

.hero-slider {
  position: relative;
  min-height: 72vh;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #332015, #82562e);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(236, 148, 79, 0.38), transparent 26%),
    linear-gradient(90deg, rgba(20, 12, 8, 0.92), rgba(29, 18, 12, 0.62) 48%, rgba(20, 12, 8, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 80px 0 120px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe6c6;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--desert-500), #ffcc8c);
  color: #2d180b;
  box-shadow: 0 14px 34px rgba(236, 148, 79, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.btn-light {
  border-color: rgba(127, 88, 56, 0.18);
  background: #ffffff;
  color: var(--sand-800);
  box-shadow: var(--shadow-card);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 36px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  opacity: 0.55;
}

.hero-dot.is-active {
  background: var(--desert-500);
  opacity: 1;
}

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

.main-content {
  padding: 56px 0 72px;
}

.section {
  margin: 0 0 64px;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--sand-900);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-title p,
.page-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--sand-800);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(43, 32, 24, 0.72);
  color: #ffe5bd;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--desert-700);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
  min-height: 54px;
  margin: 0 0 10px;
  color: var(--sand-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sand-50);
}

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

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(236, 148, 79, 0.12);
  color: var(--desert-700);
  font-size: 12px;
  font-weight: 800;
}

.feature-panel {
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(236, 148, 79, 0.22), transparent 24%),
    linear-gradient(135deg, #fffaf3, #ffffff);
  box-shadow: var(--shadow-warm);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.feature-large {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--sand-900);
  color: var(--white);
}

.feature-large img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-large div {
  padding: 30px 30px 30px 8px;
  align-self: center;
}

.feature-large h3 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 950;
}

.feature-large p {
  color: rgba(255, 255, 255, 0.82);
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
}

.horizontal-card img {
  width: 98px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--sand-100);
}

.horizontal-card strong {
  display: block;
  color: var(--sand-900);
  font-size: 16px;
  line-height: 1.35;
}

.horizontal-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 166px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.38), transparent 26%),
    linear-gradient(135deg, var(--sand-800), var(--desert-700));
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

.category-card span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.page-hero {
  padding: 64px 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(236, 148, 79, 0.34), transparent 26%),
    linear-gradient(135deg, var(--sand-900), var(--sand-700));
  color: var(--white);
}

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

.page-title h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 64px);
}

.page-title p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--desert-700);
  font-weight: 800;
}

.filter-bar {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(127, 88, 56, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.filter-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(127, 88, 56, 0.18);
  border-radius: 16px;
  outline: none;
  background: var(--white);
  color: var(--sand-900);
}

.filter-input:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(236, 148, 79, 0.16);
}

.filter-hint {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 66px 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--sand-100);
  color: var(--desert-700);
  font-size: 20px;
  font-weight: 950;
}

.rank-item img {
  width: 116px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--sand-100);
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  color: var(--sand-900);
  font-size: 20px;
  font-weight: 950;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
}

.detail-hero {
  padding: 44px 0 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 148, 79, 0.28), transparent 26%),
    linear-gradient(135deg, var(--sand-900), var(--sand-700));
  color: var(--white);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
  background: var(--sand-100);
}

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

.detail-title h1 {
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

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

.detail-title .detail-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow-warm);
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--desert-700);
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

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

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

.content-card {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--sand-900);
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 18px;
  color: #49372b;
  font-size: 17px;
}

.side-panel {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.site-footer {
  background: var(--sand-900);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

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

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

  .split-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

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

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

  .hero-controls {
    bottom: 24px;
    align-items: flex-end;
  }

  .hero-dot {
    width: 28px;
  }

  .section-title,
  .filter-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .movie-card h3 {
    min-height: auto;
    font-size: 16px;
  }

  .feature-panel {
    padding: 18px;
    border-radius: 24px;
  }

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

  .feature-large img {
    min-height: 260px;
  }

  .feature-large div {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 46px 84px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

  .rank-item img {
    width: 84px;
    height: 64px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero-actions,
  .card-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
