:root {
  --earth-900: #573729;
  --earth-800: #6a4130;
  --earth-700: #814e34;
  --earth-600: #9b5f3c;
  --bronze-700: #7e5d41;
  --bronze-600: #98724c;
  --bronze-500: #a68558;
  --bronze-300: #d0bd9f;
  --stone-50: #f8f7f4;
  --stone-100: #efede6;
  --stone-200: #ddd9cc;
  --stone-500: #998d73;
  --stone-600: #8b7d67;
  --stone-700: #746957;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(87, 55, 41, 0.16);
  --shadow-strong: 0 28px 80px rgba(56, 34, 26, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--earth-900);
  background: var(--stone-50);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(106, 65, 48, 0.96);
  color: var(--stone-50);
  box-shadow: 0 8px 30px rgba(31, 20, 15, 0.18);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--earth-900);
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  position: relative;
  color: var(--stone-200);
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bronze-300);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--bronze-300);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--stone-50);
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid;
  gap: 12px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--bronze-300);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-800), var(--earth-700), var(--bronze-700));
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(208, 189, 159, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(87, 55, 41, 0.96), rgba(87, 55, 41, 0.74) 50%, rgba(87, 55, 41, 0.5)),
    linear-gradient(0deg, rgba(26, 18, 15, 0.52), rgba(26, 18, 15, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--bronze-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0;
  color: var(--stone-200);
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-meta,
.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--stone-50);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 0;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: var(--bronze-500);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.primary-button:hover,
.pill-link:hover {
  transform: translateY(-2px);
  background: var(--bronze-600);
  box-shadow: var(--shadow-strong);
}

.primary-button.small {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--bronze-300);
}

.section-block {
  padding: 70px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--earth-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--stone-600);
}

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

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-800), var(--bronze-700));
}

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

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--white);
  background: rgba(87, 55, 41, 0.8);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
  color: var(--bronze-700);
}

.meta-line {
  margin: 0 0 10px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
}

.one-line {
  margin: 0 0 14px;
  color: var(--stone-700);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--earth-700);
  background: var(--stone-100);
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 10;
}

.movie-card.wide {
  width: 300px;
  flex: 0 0 300px;
}

.soft-section {
  background: var(--stone-100);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
}

.category-tile strong {
  margin-top: 112px;
  font-size: 22px;
  line-height: 1.2;
}

.category-tile em {
  margin-top: 8px;
  color: var(--stone-200);
  font-size: 13px;
  font-style: normal;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 26px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.feature-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--earth-900);
}

.feature-bg {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.feature-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(87, 55, 41, 0.96), rgba(87, 55, 41, 0.78));
}

.feature-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.feature-content .section-head h2,
.feature-content .section-head p {
  color: var(--white);
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.compact-card img {
  width: 72px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

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

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  line-height: 1.35;
}

.compact-card em {
  margin-top: 5px;
  color: var(--stone-200);
  font-style: normal;
  font-size: 13px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--earth-800);
  font-weight: 900;
}

.rank-thumb img {
  width: 82px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0 0 6px;
  color: var(--stone-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-copy div {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.pill-link {
  color: var(--white);
  background: var(--bronze-500);
  padding: 10px 16px;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 72% 28%, rgba(208, 189, 159, 0.32), transparent 28%),
    linear-gradient(135deg, var(--earth-800), var(--earth-700), var(--bronze-700));
}

.small-hero .container {
  padding: 82px 0;
}

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

.category-overview-card {
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-overview-head p {
  margin: 0 0 18px;
  color: var(--stone-600);
}

.category-overview-card .compact-card {
  background: var(--stone-100);
  color: var(--earth-900);
  border-color: rgba(129, 78, 52, 0.08);
}

.category-overview-card .compact-card em {
  color: var(--stone-600);
}

.category-overview-card .primary-button {
  margin-top: 18px;
}

.search-panel {
  padding-top: 40px;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--earth-900);
  background: var(--stone-50);
  font: inherit;
  outline: none;
}

.filter-bar input {
  flex: 1 1 320px;
}

.filter-bar select {
  flex: 0 1 180px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--earth-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(87, 55, 41, 0.98), rgba(87, 55, 41, 0.72));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 42px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--stone-200);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--bronze-300);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  margin-bottom: 18px;
}

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

.detail-tags {
  margin-top: 16px;
}

.detail-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.player-card,
.story-card {
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.78)),
    rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.video-cover.hidden {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 5px;
  color: var(--earth-900);
  background: var(--bronze-300);
  font-size: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.video-cover strong {
  font-size: 24px;
}

.video-cover em {
  color: var(--stone-200);
  font-style: normal;
}

.story-card {
  padding: 30px;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0 0 24px;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 2;
}

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

.related-section .section-head {
  margin-top: 12px;
}

.site-footer {
  color: var(--stone-200);
  background: var(--earth-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding: 54px 0;
}

.site-footer p {
  max-width: 430px;
  margin: 16px 0 0;
  color: var(--stone-200);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--bronze-300);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--bronze-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  text-align: center;
  color: var(--stone-200);
}

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

  .home-rank,
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 74vw);
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-row .pill-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-num {
    width: 40px;
    height: 40px;
  }

  .rank-thumb img {
    width: 72px;
    height: 92px;
  }

  .story-card {
    padding: 22px;
  }
}
