:root {
  --primary-900: #5a3629;
  --primary-800: #6f412f;
  --primary-700: #854c34;
  --primary-600: #a05f3d;
  --primary-100: #f4e8d9;
  --primary-50: #faf5f0;
  --secondary-900: #223426;
  --secondary-800: #263e2c;
  --secondary-700: #2f4d35;
  --secondary-100: #dbe8db;
  --secondary-50: #f0f5f0;
  --accent-500: #ea7e20;
  --accent-50: #fef8ee;
  --text-900: #111827;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-400: #9ca3af;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(90, 54, 41, 0.12);
  --shadow-lg: 0 18px 48px rgba(90, 54, 41, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-700);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
  box-shadow: var(--shadow-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong,
.footer-logo {
  font-size: 20px;
  font-weight: 800;
}

.logo-text small {
  color: var(--text-400);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-700);
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
}

.nav-links a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-600);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-900));
}

.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 {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.55;
}

.hero-overlay,
.detail-cover-shadow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 52, 38, 0.92), rgba(90, 54, 41, 0.64), rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 72% 22%, rgba(234, 126, 32, 0.36), transparent 30%);
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 60px;
  padding: 88px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.sub-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-desc,
.detail-line {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  margin: 22px 0;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--primary-700);
  background: var(--primary-50);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-500), var(--primary-600));
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn-link {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2 / 3;
  transform: rotate(2deg);
}

.hero-poster img,
.poster img,
.category-card img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 36px;
  background: var(--white);
}

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

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

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

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

.more-link {
  color: var(--primary-700);
  font-weight: 800;
  white-space: nowrap;
}

.light .more-link,
.hot-band .more-link {
  color: var(--white);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card.compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.compact .poster {
  aspect-ratio: auto;
  min-height: 170px;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
}

.poster-year {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  color: var(--text-900);
  font-weight: 850;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--text-400);
  font-size: 12px;
  margin: 8px 0 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
}

.hot-band,
.cta-band {
  background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
  padding: 72px 0;
}

.hot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

.rank-panel,
.side-card,
.content-card,
.player-card {
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.82);
}

.rank-panel h3,
.side-card h2,
.content-card h2 {
  margin-top: 0;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.rank-no {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: var(--accent-500);
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-views {
  color: var(--text-400);
  font-size: 12px;
}

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

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

.cta-inner {
  text-align: center;
  color: var(--white);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-inner p {
  max-width: 720px;
  margin: 14px auto 26px;
  color: rgba(255, 255, 255, 0.84);
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-900));
}

.sub-hero .container {
  position: relative;
  padding: 84px 0;
}

.sub-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.stats-grid div {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.stats-grid strong {
  display: block;
  font-size: 30px;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.78);
}

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

.category-card a {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  background: var(--primary-100);
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.78;
}

.category-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: var(--white);
}

.category-card p {
  margin: 0 0 8px;
  color: var(--accent-500);
  font-weight: 900;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.year-nav a {
  color: var(--white);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-top: 34px;
  padding: 18px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.filter-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-700);
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 12px;
  background: var(--gray-50);
  color: var(--text-900);
}

.filter-toolbar .wide {
  grid-column: span 1;
}

.result-count {
  color: var(--text-600);
  margin-bottom: 18px;
  font-weight: 800;
}

.year-block {
  padding: 20px 0 36px;
  border-top: 1px solid var(--gray-100);
}

.year-block h2 {
  color: var(--primary-700);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
}

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: var(--accent-500);
}

.rank-card h2 {
  margin: 0;
}

.rank-card p {
  color: var(--text-600);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--primary-100);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  border: 0;
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: rgba(234, 126, 32, 0.92);
  box-shadow: var(--shadow-lg);
}

.player-tip {
  color: var(--text-600);
  margin-bottom: 0;
}

.content-card p {
  white-space: pre-line;
  color: var(--text-700);
  font-size: 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.side-card dt {
  color: var(--text-400);
}

.side-card dd {
  margin: 0;
  color: var(--text-700);
}

.side-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--primary-700);
  font-weight: 800;
}

.image-missing {
  opacity: 0.2;
}

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

.site-footer {
  margin-top: 60px;
  color: var(--text-600);
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

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

.site-footer h3 {
  color: var(--text-900);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid var(--gray-100);
  color: var(--text-400);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 16px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 280px;
  }

  .movie-grid,
  .small-grid,
  .hot-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-list-grid,
  .category-grid,
  .stats-grid,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 58px 0 80px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .movie-list-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact,
  .rank-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .compact .poster {
    min-height: 150px;
  }

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

  .section-head {
    display: block;
  }
}
