:root {
  --ancient-50: #f9f7f4;
  --ancient-100: #f0ebe3;
  --ancient-200: #e2d7c2;
  --ancient-300: #d4c3a4;
  --ancient-600: #a67f4d;
  --ancient-700: #8f693d;
  --sage-50: #f6f7f6;
  --sage-100: #e3e7e3;
  --sage-600: #505c50;
  --earth-50: #f7f5f2;
  --earth-100: #eee9e2;
  --earth-200: #d9d3c9;
  --earth-500: #8d8074;
  --earth-600: #79685a;
  --earth-800: #5c4e45;
  --earth-900: #4a3f38;
  --white: #ffffff;
  --black: #111111;
  --shadow: 0 18px 40px rgba(74, 63, 56, 0.13);
  --shadow-soft: 0 12px 30px rgba(74, 63, 56, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--earth-900);
  background: linear-gradient(180deg, var(--ancient-50), #ffffff 42%, var(--ancient-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ancient-200);
  background: rgba(249, 247, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(74, 63, 56, 0.08);
}

.header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ancient-600), var(--earth-800));
  box-shadow: 0 12px 22px rgba(166, 127, 77, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--earth-900);
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ancient-700);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 26px 0 24px;
  color: var(--earth-800);
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--ancient-600);
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid var(--ancient-200);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--earth-900);
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  padding: 10px 15px;
  cursor: pointer;
  background: var(--ancient-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--ancient-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--earth-900);
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--earth-800);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-current {
  color: var(--ancient-700);
  background: var(--ancient-100);
}

.mobile-search {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--ancient-200);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.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 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--earth-900), var(--ancient-700));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(166, 127, 77, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.57) 48%, rgba(17, 17, 17, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 80px 22px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ancient-200);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-weight: 900;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--ancient-100);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(166, 127, 77, 0.82);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.section-more,
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  padding: 14px 24px;
  color: #ffffff;
  background: var(--ancient-600);
  box-shadow: 0 14px 28px rgba(166, 127, 77, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--ancient-700);
}

.btn-secondary {
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(135deg, var(--sage-50), var(--ancient-50));
}

.section-inner,
.page-hero-inner,
.content-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 8px 0 10px;
  color: var(--earth-900);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--earth-600);
  line-height: 1.7;
}

.section-more {
  flex: none;
  padding: 10px 16px;
  color: var(--ancient-700);
  background: var(--ancient-100);
}

.section-more:hover {
  transform: translateY(-2px);
  background: var(--ancient-200);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 195, 164, 0.6);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-900), var(--ancient-700));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.62));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.movie-title {
  color: var(--earth-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--ancient-700);
}

.movie-year {
  flex: none;
  color: var(--ancient-700);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ancient-100);
}

.movie-line {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--earth-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--ancient-300);
}

.movie-tags {
  margin-top: 13px;
}

.movie-tags span {
  color: var(--ancient-700);
  background: var(--ancient-100);
}

.category-chip {
  margin-top: 14px;
  padding: 8px 11px;
  color: var(--sage-600);
  background: var(--sage-100);
  font-size: 13px;
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--ancient-200);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, var(--ancient-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.page-hero {
  padding: 58px 0 36px;
  background:
    radial-gradient(circle at 80% 20%, rgba(166, 127, 77, 0.20), transparent 34%),
    linear-gradient(135deg, var(--ancient-50), #ffffff);
}

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

.filters input,
.filters select {
  width: 100%;
  border: 1px solid var(--ancient-200);
  border-radius: 12px;
  outline: 0;
  padding: 12px 14px;
  color: var(--earth-900);
  background: #ffffff;
}

.no-results {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  color: var(--earth-600);
  border-radius: 14px;
  background: var(--ancient-100);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--ancient-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ancient-600), var(--earth-800));
  font-weight: 900;
}

.rank-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--earth-900), var(--ancient-700));
}

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 12px;
}

.compact-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--earth-900), var(--ancient-700));
}

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

.compact-poster span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.28);
}

.compact-body p {
  margin: 8px 0 10px;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.55;
}

.detail-hero {
  padding: 46px 0 34px;
  background:
    radial-gradient(circle at 82% 20%, rgba(166, 127, 77, 0.24), transparent 32%),
    linear-gradient(135deg, var(--earth-900), var(--earth-800));
}

.detail-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 32px;
  align-items: center;
}

.detail-title {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ancient-200);
  font-size: 14px;
}

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

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

.detail-title p {
  max-width: 760px;
  color: var(--ancient-100);
  font-size: 18px;
  line-height: 1.75;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, var(--earth-900), var(--ancient-700));
}

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

.player-section {
  padding: 50px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(166, 127, 77, 0.22), rgba(0, 0, 0, 0.40) 48%, rgba(0, 0, 0, 0.62)),
    transparent;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(166, 127, 77, 0.94);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
  font-size: 34px;
}

.player-message {
  display: none;
  padding: 14px 16px;
  color: var(--ancient-100);
  background: rgba(166, 127, 77, 0.22);
}

.player-message.is-visible {
  display: block;
}

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

.article-panel,
.side-panel {
  border: 1px solid var(--ancient-200);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-panel {
  padding: 30px;
}

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

.article-panel p {
  margin: 0 0 22px;
  color: var(--earth-800);
  font-size: 16px;
  line-height: 1.9;
}

.side-panel {
  padding: 20px;
}

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

.site-footer {
  margin-top: 70px;
  color: var(--earth-100);
  background: var(--earth-900);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 34px;
}

.brand-footer .brand-copy strong {
  color: #ffffff;
}

.brand-footer .brand-copy small {
  color: var(--ancient-300);
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: #cfc7bb;
}

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

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--ancient-300);
  font-size: 16px;
}

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

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  background: var(--ancient-600);
  box-shadow: 0 16px 28px rgba(74, 63, 56, 0.24);
}

.back-top.is-visible {
  display: block;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .rank-list,
  .detail-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero-content {
    padding: 64px 18px 86px;
    align-items: end;
  }

  .hero-control {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 40px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 16px;
  }

  .card-grid,
  .category-grid,
  .rank-list,
  .filters,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 110px 1fr;
    gap: 12px;
  }

  .movie-card-compact {
    grid-template-columns: 108px 1fr;
  }

  .article-panel {
    padding: 22px;
  }

  .footer-bottom {
    display: grid;
  }
}
