* {
  box-sizing: border-box;
}

:root {
  --color-sand-50: #faf8f3;
  --color-sand-100: #f5f0e6;
  --color-sand-200: #ebe2cd;
  --color-sand-300: #ddc9a3;
  --color-sand-400: #d4b683;
  --color-sand-500: #c49a5c;
  --color-sand-600: #b07d44;
  --color-sand-700: #8f6235;
  --color-sand-800: #6d4a29;
  --color-sand-900: #4a3218;
  --color-dune-50: #fdf6ed;
  --color-dune-100: #fae9d1;
  --color-dune-200: #f5d4a3;
  --color-dune-300: #ebb76a;
  --color-dune-400: #e19838;
  --color-dune-500: #d97c1e;
  --color-dune-600: #c05f14;
  --color-dune-700: #9c4613;
  --color-dune-800: #7d3714;
  --color-dune-900: #642d13;
  --shadow-sm: 0 4px 14px rgba(74, 50, 24, 0.08);
  --shadow-md: 0 14px 35px rgba(74, 50, 24, 0.12);
  --shadow-lg: 0 24px 60px rgba(74, 50, 24, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-sand-50);
  color: var(--color-sand-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(221, 201, 163, 0.6);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-dune-500), var(--color-dune-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(217, 124, 30, 0.28);
}

.logo-mark span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
  margin-left: 3px;
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--color-dune-600), var(--color-sand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: var(--color-sand-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--color-sand-100);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-sand-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--color-sand-200);
}

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

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.hero-slider {
  position: relative;
  height: 700px;
  min-height: 520px;
  overflow: hidden;
  background: var(--color-sand-900);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

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

.hero-overlay,
.card-shade,
.category-tile span,
.category-cover span,
.page-hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: min(1280px, 100%);
  transform: translateX(-50%);
  padding: 0 24px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 780px;
  margin: 16px 0;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.meta-line span {
  color: inherit;
}

.hero-meta span:not(:last-child)::after,
.meta-line span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  opacity: 0.5;
}

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

.btn-primary,
.btn-ghost,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  padding: 0 24px;
  background: var(--color-dune-500);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(217, 124, 30, 0.3);
}

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: var(--color-dune-600);
  box-shadow: 0 16px 36px rgba(192, 95, 20, 0.36);
}

.btn-ghost {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.section-heading div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dune-500), var(--color-dune-700));
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-panel h2 {
  margin: 0;
  color: var(--color-sand-900);
  line-height: 1.16;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--color-sand-700);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.compact-card,
.category-overview-card,
.content-panel {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.movie-card,
.compact-card,
.category-tile,
.category-overview-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.compact-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.poster-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--color-sand-200);
}

.poster-wrap img,
.featured-link img,
.category-tile img,
.category-cover img,
.detail-poster img,
.compact-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img,
.compact-card:hover img {
  transform: scale(1.06);
}

.view-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.view-badge {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dune-500), var(--color-dune-700));
  box-shadow: 0 10px 24px rgba(217, 124, 30, 0.28);
}

.card-body {
  padding: 18px;
}

.card-body h3,
.featured-content h3,
.compact-card h3 {
  margin: 0 0 8px;
  color: var(--color-sand-900);
  line-height: 1.35;
}

.card-body h3,
.compact-card h3 {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p,
.compact-card p,
.category-overview-body p,
.content-panel p {
  color: var(--color-sand-700);
  line-height: 1.7;
}

.card-body p,
.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  margin: 12px 0;
  color: var(--color-sand-600);
  font-size: 13px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-sand-100);
  color: var(--color-sand-700);
  font-size: 12px;
  font-weight: 650;
}

.tag-light {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.featured-card {
  position: relative;
  min-height: 430px;
  background: var(--color-sand-900);
}

.featured-link {
  position: absolute;
  inset: 0;
  display: block;
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #ffffff;
}

.featured-content h3 {
  color: #ffffff;
  font-size: 24px;
}

.featured-content p {
  color: rgba(255, 255, 255, 0.88);
}

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

.category-tile {
  position: relative;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-sand-200);
  box-shadow: var(--shadow-sm);
}

.category-tile div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

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

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

.compact-card a {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
}

.compact-card img {
  width: 132px;
  height: 96px;
  flex: 0 0 132px;
  border-radius: 12px;
  background: var(--color-sand-200);
}

.compact-card div {
  min-width: 0;
}

.compact-card span {
  color: var(--color-sand-600);
  font-size: 12px;
}

.year-section {
  margin-top: 56px;
  padding-bottom: 56px;
  background: linear-gradient(180deg, #ffffff, var(--color-sand-50));
}

.year-block + .year-block {
  margin-top: 44px;
}

.year-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.year-title strong {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-dune-500), var(--color-dune-700));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.year-title h3 {
  margin: 0;
  font-size: 26px;
}

.year-title span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--color-sand-300), transparent);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
}

.filter-input,
.filter-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-sand-200);
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-sand-800);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.filter-input {
  padding: 0 18px;
}

.filter-select {
  padding: 0 14px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--color-dune-400);
  box-shadow: 0 0 0 4px rgba(217, 124, 30, 0.12);
}

.page-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: radial-gradient(circle at top left, var(--color-dune-300), var(--color-sand-900));
}

.small-hero {
  min-height: 310px;
  padding: 80px 24px 56px;
}

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

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow,
.breadcrumb {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.category-cover {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: var(--color-sand-200);
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--color-sand-100);
  color: var(--color-sand-700);
  font-size: 12px;
}

.text-link {
  min-height: 38px;
  padding: 0 16px;
  color: var(--color-dune-700);
  background: var(--color-dune-50);
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--color-sand-900);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 58px;
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-sand-200);
}

.detail-info h1 {
  margin: 18px 0;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 62px);
}

.lead-text {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
}

.detail-breadcrumb em {
  font-style: normal;
  color: #ffffff;
}

.detail-meta {
  margin-top: 24px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.detail-meta strong {
  color: rgba(255, 255, 255, 0.68);
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-ready .video-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dune-500);
  box-shadow: 0 18px 38px rgba(217, 124, 30, 0.34);
  font-size: 30px;
  padding-left: 4px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 24px;
}

.content-panel {
  padding: 26px;
}

.content-panel h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.detail-side dl {
  margin: 0 0 18px;
}

.detail-side div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-sand-100);
}

.detail-side dt {
  color: var(--color-sand-600);
}

.detail-side dd {
  margin: 0;
  color: var(--color-sand-900);
  font-weight: 700;
  text-align: right;
}

.js-movie-card.is-hidden {
  display: none;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.4fr));
  gap: 34px;
}

.footer-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-brand p,
.footer-block a,
.footer-bottom {
  color: var(--color-sand-700);
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-block h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-block a {
  display: block;
  margin-top: 10px;
  transition: color 0.2s ease;
}

.footer-block a:hover {
  color: var(--color-dune-600);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--color-sand-300);
  text-align: center;
  font-size: 14px;
}

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

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

  .detail-side {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .two-grid,
  .three-grid,
  .four-grid,
  .category-grid,
  .full-rank,
  .split-section,
  .category-overview-grid,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 360px;
    height: 520px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero-slider {
    height: 560px;
    min-height: 500px;
  }

  .hero-content {
    bottom: 62px;
  }

  .section-container {
    padding: 42px 16px 0;
  }

  .poster-wrap {
    height: 230px;
  }

  .featured-card {
    min-height: 380px;
  }

  .compact-card a {
    gap: 12px;
  }

  .compact-card img {
    width: 112px;
    height: 84px;
    flex-basis: 112px;
  }

  .small-hero {
    padding: 70px 16px 46px;
  }

  .detail-poster {
    height: 460px;
  }
}
