:root {
  --ancient-50: #f9f7f4;
  --ancient-100: #f0ebe3;
  --ancient-200: #e4dac8;
  --ancient-300: #d4c3a4;
  --ancient-400: #c4aa7e;
  --ancient-500: #b58f61;
  --ancient-600: #a67f4d;
  --ancient-700: #8b6a40;
  --ancient-800: #725739;
  --ancient-900: #5f4930;
  --earth-50: #f7f6f4;
  --earth-100: #edeae5;
  --earth-200: #d9d3c9;
  --earth-400: #a39684;
  --earth-500: #8d7c6b;
  --earth-600: #79685a;
  --earth-700: #64544a;
  --earth-800: #554840;
  --earth-900: #4a3f38;
  --sage-50: #f6f7f6;
  --sage-100: #e3e7e3;
  --sage-200: #c7cec7;
  --sage-600: #505c50;
  --sage-700: #424a42;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 8px 22px rgba(74, 63, 56, 0.08);
  --shadow-md: 0 16px 38px rgba(74, 63, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(74, 63, 56, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--earth-900);
  background: linear-gradient(180deg, var(--ancient-50), var(--white) 42%, var(--ancient-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(228, 218, 200, 0.95);
  background: rgba(249, 247, 244, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--white);
  background: var(--ancient-600);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(166, 127, 77, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.site-logo:hover .site-logo__mark {
  transform: translateY(-1px) scale(1.03);
  background: var(--ancient-700);
}

.site-logo__text {
  display: grid;
  line-height: 1.15;
}

.site-logo__text strong {
  color: var(--ancient-900);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-logo__text small {
  color: var(--ancient-600);
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link {
  position: relative;
  color: var(--ancient-700);
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ancient-600);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ancient-900);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--ancient-700);
  background: var(--ancient-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ancient-200);
  padding: 10px 16px 16px;
  background: var(--ancient-50);
}

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

.mobile-nav__link {
  display: block;
  padding: 12px 14px;
  color: var(--ancient-700);
  border-radius: 12px;
  font-weight: 650;
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  color: var(--ancient-900);
  background: var(--ancient-100);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--earth-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide__image {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--earth-900), var(--ancient-700));
}

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

.hero-slide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(212, 195, 164, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
  padding: 78px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ancient-200);
  font-weight: 700;
}

.eyebrow::before {
  content: "★";
  color: var(--ancient-300);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--ancient-100);
  font-size: clamp(16px, 1.6vw, 21px);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(166, 127, 77, 0.82);
  backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: var(--ancient-600);
  box-shadow: 0 14px 28px rgba(166, 127, 77, 0.28);
}

.btn-primary:hover {
  background: var(--ancient-700);
  box-shadow: 0 18px 34px rgba(139, 106, 64, 0.32);
}

.btn-secondary {
  color: var(--ancient-900);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--white);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.04);
}

.hero-control--prev {
  left: max(18px, calc((100vw - var(--container)) / 2 - 64px));
}

.hero-control--next {
  right: max(18px, calc((100vw - var(--container)) / 2 - 64px));
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--ancient-300);
}

.search-panel {
  position: relative;
  z-index: 9;
  margin-top: -34px;
  margin-bottom: 52px;
}

.search-panel__inner,
.filter-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(228, 218, 200, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.search-panel__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ancient-200);
  border-radius: 14px;
  color: var(--earth-900);
  background: var(--white);
  outline: none;
}

.search-input,
.filter-input {
  padding: 0 16px;
}

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

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--ancient-500);
  box-shadow: 0 0 0 4px rgba(166, 127, 77, 0.12);
}

.section {
  padding: 54px 0;
}

.section--tight {
  padding: 32px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--ancient-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--earth-900);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--earth-600);
}

.link-more {
  flex: 0 0 auto;
  color: var(--ancient-700);
  font-weight: 800;
}

.link-more:hover {
  color: var(--ancient-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-grid--large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid rgba(228, 218, 200, 0.72);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ancient-300);
}

.movie-card__link {
  display: grid;
  height: 100%;
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-800), var(--ancient-700));
}

.movie-card--large .movie-card__poster {
  aspect-ratio: 16 / 9;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, opacity 0.25s ease;
}

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.movie-card__type,
.movie-rank {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card__type {
  right: 12px;
  background: rgba(166, 127, 77, 0.84);
}

.movie-rank {
  left: 12px;
  background: rgba(80, 92, 80, 0.88);
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(166, 127, 77, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card__body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--earth-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  color: var(--earth-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.tag-list span {
  color: var(--ancient-700);
  background: var(--ancient-100);
}

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

.category-card {
  position: relative;
  min-height: 182px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(228, 218, 200, 0.85);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--white), var(--ancient-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.1);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  color: var(--earth-900);
  font-size: 20px;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--earth-600);
  font-size: 14px;
}

.category-card strong {
  position: relative;
  color: var(--ancient-700);
  font-size: 28px;
}

.page-hero {
  padding: 58px 0 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(212, 195, 164, 0.28), transparent 32%),
    linear-gradient(135deg, var(--earth-900), var(--ancient-800));
}

.page-hero__content {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--ancient-200);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  margin: 16px 0 0;
  color: var(--ancient-100);
  font-size: 18px;
}

.filter-panel {
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  margin-bottom: 26px;
}

.result-count {
  color: var(--earth-600);
  font-weight: 700;
  margin: 0 0 18px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 78px 118px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(228, 218, 200, 0.8);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-index {
  color: var(--ancient-700);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-800), var(--ancient-700));
}

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

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0;
  color: var(--earth-600);
}

.ranking-score {
  min-width: 92px;
  color: var(--sage-700);
  font-weight: 900;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.content-card {
  border: 1px solid rgba(228, 218, 200, 0.84);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111111;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.56));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(166, 127, 77, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 34px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-start:hover {
  transform: scale(1.06);
  background: var(--ancient-700);
}

.player-note {
  padding: 14px 18px;
  color: var(--earth-600);
  background: var(--ancient-50);
  font-size: 14px;
}

.detail-card {
  padding: 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--earth-800), var(--ancient-700));
  box-shadow: var(--shadow-sm);
}

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

.detail-meta-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ancient-100);
}

.detail-meta-list span:first-child {
  color: var(--earth-500);
}

.detail-meta-list span:last-child {
  color: var(--earth-900);
  font-weight: 800;
  text-align: right;
}

.content-card {
  padding: 26px;
  margin-top: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ancient-200);
  color: var(--earth-900);
  font-size: 24px;
}

.content-card p {
  margin: 0 0 22px;
  color: var(--earth-700);
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.detail-title-block {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-title-block h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.detail-title-block p {
  margin: 0;
  color: var(--earth-600);
  font-size: 18px;
}

.related-section {
  margin-top: 34px;
}

.empty-state {
  padding: 36px;
  border-radius: 20px;
  color: var(--earth-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.image-fallback {
  opacity: 0;
}

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

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

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

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

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

  .desktop-nav {
    display: none;
  }

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

  .site-logo__text small {
    display: none;
  }

  .hero,
  .hero-slide__content {
    min-height: 640px;
  }

  .hero-copy {
    padding: 68px 0 90px;
  }

  .hero-control {
    display: none;
  }

  .search-panel {
    margin-top: 18px;
    margin-bottom: 28px;
  }

  .search-panel__inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 38px 0;
  }

  .section-header {
    display: block;
  }

  .link-more {
    display: inline-flex;
    margin-top: 14px;
  }

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

  .movie-card__body {
    padding: 13px;
  }

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

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

  .ranking-item {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 2 / -1;
    text-align: left;
  }

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

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

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

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

  .ranking-cover {
    display: none;
  }

  .ranking-score {
    grid-column: 2 / -1;
  }
}
