:root {
  --brown-950: #3f2f20;
  --brown-900: #5a442c;
  --brown-800: #6d5336;
  --brown-700: #88663f;
  --brown-600: #a37d4d;
  --beige-50: #fdfbf7;
  --beige-100: #f9f5ed;
  --beige-200: #f1e8d4;
  --beige-300: #e7d9ba;
  --green-700: #4a6e3b;
  --green-600: #5d8a49;
  --ink: #2d251d;
  --muted: #746553;
  --card: #ffffff;
  --line: #eadfce;
  --shadow: 0 18px 45px rgba(90, 68, 44, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(90, 68, 44, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(48, 32, 18, 0.22);
  backdrop-filter: blur(14px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--beige-300), var(--brown-600));
  color: var(--brown-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--beige-100);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link.subtle {
  color: var(--beige-300);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #ffffff;
}

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

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--brown-900);
  color: #ffffff;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.hero-slide.is-active {
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.05);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(231, 217, 186, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(63, 47, 32, 0.94), rgba(90, 68, 44, 0.66) 55%, rgba(90, 68, 44, 0.38));
}

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

.hero-copy {
  max-width: 690px;
  padding: 96px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--beige-300);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 620px;
  color: var(--beige-100);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-meta span,
.detail-meta span,
.meta-line span,
.card-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  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: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--green-600);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(93, 138, 73, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button,
.dots button {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 22px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.dots button.is-active {
  width: 28px;
  background: var(--beige-300);
}

main {
  display: block;
}

.page-section {
  padding: 58px 0;
}

.page-hero {
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 85% 10%, rgba(208, 183, 132, 0.22), transparent 32%),
    linear-gradient(180deg, var(--beige-100), #ffffff);
}

.page-hero h1,
.detail-title h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  color: var(--brown-900);
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-title p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--brown-900);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a {
  color: var(--green-700);
  font-weight: 900;
}

.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));
  gap: 18px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(90, 68, 44, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(163, 125, 77, 0.55);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(231, 217, 186, 0.5), transparent 28%),
    linear-gradient(135deg, var(--brown-800), var(--brown-950));
}

.card-large .poster-frame {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.68));
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(90, 68, 44, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brown-900);
  font-size: 17px;
  line-height: 1.35;
}

.card-body em {
  display: block;
  margin-bottom: 8px;
  color: var(--green-700);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span,
.tag-list span {
  background: var(--beige-100);
  color: var(--brown-700);
}

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, var(--brown-800), var(--brown-900));
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card strong {
  font-size: 22px;
}

.category-card span {
  color: var(--beige-200);
  font-size: 14px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.rank-panel,
.text-panel,
.detail-panel,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(90, 68, 44, 0.08);
}

.rank-panel,
.text-panel,
.detail-panel {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--beige-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: var(--beige-100);
  transform: translateX(4px);
}

.rank-row img {
  width: 70px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brown-800), var(--brown-950));
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row strong {
  color: var(--brown-900);
  line-height: 1.35;
}

.rank-row em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brown-900);
  color: #ffffff;
  font-weight: 900;
}

.filter-panel {
  padding: 18px;
  margin-bottom: 24px;
}

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

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(93, 138, 73, 0.1);
}

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

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--beige-100);
  color: var(--brown-700);
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button.is-active {
  background: var(--green-600);
  color: #ffffff;
}

.detail-hero {
  padding: 42px 0 28px;
  background:
    radial-gradient(circle at 75% 20%, rgba(231, 217, 186, 0.24), transparent 34%),
    linear-gradient(180deg, var(--brown-900), var(--brown-800));
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--beige-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-title h1 {
  color: #ffffff;
}

.detail-title p {
  color: var(--beige-100);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 22px 60px rgba(40, 24, 12, 0.26);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown-900);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

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

.detail-panel p,
.text-panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.prose-text {
  display: grid;
  gap: 18px;
}

.prose-text p {
  margin: 0;
  color: #4a3f34;
  font-size: 16px;
}

.site-footer {
  margin-top: 64px;
  background: var(--brown-900);
  color: var(--beige-100);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: var(--beige-200);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--beige-200);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: var(--beige-300);
}

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

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 16px;
    border-radius: 22px;
    background: var(--brown-900);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .hero-carousel {
    min-height: 540px;
  }

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

  .rank-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container,
  .hero-content,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy {
    padding: 64px 0 96px;
  }

  .hero-controls {
    right: 16px;
    bottom: 24px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

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

  .section-heading {
    display: block;
  }

  .rank-row {
    grid-template-columns: 36px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 78px;
  }
}
