:root {
  --earth-950: #1c120b;
  --earth-900: #2a1a10;
  --earth-800: #3b2416;
  --earth-700: #5a341d;
  --earth-600: #8b4e25;
  --earth-500: #b56a35;
  --earth-300: #e7b27e;
  --stone-950: #171717;
  --stone-900: #26221f;
  --stone-800: #3b3631;
  --stone-700: #57524c;
  --stone-600: #726c64;
  --stone-500: #8d867d;
  --stone-200: #e7e2dc;
  --stone-100: #f5f2ee;
  --stone-50: #fbfaf8;
  --canyon: #7c2d12;
  --gold: #f3c77a;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(34, 22, 12, 0.14);
  --shadow-strong: 0 28px 80px rgba(20, 12, 6, 0.28);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fffaf2 0%, var(--stone-50) 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(120, 101, 83, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle at 30% 20%, var(--gold), var(--earth-600) 58%, var(--earth-900));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(139, 78, 37, 0.28);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stone-700);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--earth-700);
  background: rgba(181, 106, 53, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(120, 101, 83, 0.2);
  background: var(--white);
  border-radius: 999px;
}

.header-search input {
  width: 210px;
  padding: 8px 10px 8px 14px;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button,
.btn,
.search-console button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  padding: 8px 14px;
  color: var(--white);
  background: var(--earth-700);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-200);
  background: var(--white);
  border-radius: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-950), var(--stone-900) 55%, var(--canyon));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.15) contrast(1.08);
}

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(243, 199, 122, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(28, 18, 11, 0.96) 0%, rgba(42, 26, 16, 0.84) 45%, rgba(28, 18, 11, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  color: #ffe0b3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffe3bd;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-500), var(--earth-700));
  box-shadow: 0 16px 40px rgba(181, 106, 53, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(181, 106, 53, 0.38);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(243, 199, 122, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow-strong);
}

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

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

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

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

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

.quick-panel {
  position: relative;
  z-index: 8;
  margin-top: -34px;
  padding: 0 16px;
}

.quick-inner {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(120, 101, 83, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-inner a {
  display: grid;
  place-items: center;
  min-height: 56px;
  color: var(--earth-700);
  background: rgba(181, 106, 53, 0.1);
  border-radius: 16px;
  font-weight: 900;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

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

.section-head h2,
.rank-head h2,
.player-title h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.rank-head p,
.player-title p,
.category-info p,
.search-stats {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-more {
  color: var(--earth-700);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(120, 101, 83, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(34, 22, 12, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap,
.category-cover,
.detail-poster {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(243, 199, 122, 0.7), transparent 28%),
    linear-gradient(135deg, var(--earth-800), var(--stone-900));
}

.poster-wrap {
  display: block;
  aspect-ratio: 3 / 4;
}

.poster-wrap img,
.category-card img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.category-overview:hover img {
  transform: scale(1.08);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.04em;
  z-index: 0;
}

.poster-wrap img,
.category-card img,
.category-cover img,
.detail-poster img,
.hero-poster img {
  position: relative;
  z-index: 1;
}

img.image-missing {
  opacity: 0;
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

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

.movie-meta,
.movie-line,
.detail-meta,
.detail-one {
  color: var(--stone-600);
}

.movie-meta {
  margin: 8px 0 0;
  font-size: 13px;
}

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

.tag-row span {
  color: var(--earth-700);
  background: rgba(181, 106, 53, 0.1);
}

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

.rank-panel {
  padding: 22px;
  background: var(--stone-900);
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.rank-head {
  margin-bottom: 18px;
}

.rank-head p {
  color: rgba(255, 255, 255, 0.66);
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--earth-900);
  background: var(--gold);
  border-radius: 12px;
  font-weight: 900;
}

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

.rank-year {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-lg);
  background: var(--stone-900);
  box-shadow: 0 14px 38px rgba(34, 22, 12, 0.12);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.86) 100%);
}

.category-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: var(--white);
}

.category-card strong {
  display: block;
  font-size: 20px;
}

.category-card small {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-950), var(--stone-900) 60%, var(--canyon));
}

.page-hero {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 70px 16px;
  text-align: center;
}

.page-hero > div {
  max-width: 820px;
}

.page-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.small-hero {
  min-height: 280px;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
  background: var(--white);
  border: 1px solid rgba(120, 101, 83, 0.14);
}

.category-cover {
  height: 190px;
}

.category-info {
  padding: 24px;
}

.category-info h2 {
  margin: 0;
  font-size: 26px;
}

.category-info span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--earth-700);
  font-weight: 900;
}

.filter-bar,
.search-console {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select,
.search-console input {
  min-height: 50px;
  border: 1px solid rgba(120, 101, 83, 0.18);
  border-radius: 16px;
  background: var(--white);
  outline: 0;
}

.filter-bar input,
.search-console input {
  flex: 1;
  padding: 0 16px;
}

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

.search-console button {
  padding: 0 24px;
  color: var(--white);
  background: var(--earth-700);
  border-radius: 16px;
}

.detail-hero {
  min-height: 560px;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy h1 {
  max-width: 820px;
}

.detail-one {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.detail-meta {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.detail-tags {
  margin: 22px 0;
}

.player-card,
.text-panel {
  overflow: hidden;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(120, 101, 83, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.player-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

video {
  width: 100%;
  min-height: 520px;
  background: #000000;
  border-radius: 20px;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.source-label {
  color: var(--stone-600);
}

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 0;
}

.text-panel p {
  margin: 14px 0 0;
  color: var(--stone-700);
  font-size: 17px;
}

.sticky-rank {
  position: sticky;
  top: 92px;
}

.site-footer {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--stone-950);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

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

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

  .hero-content,
  .split-section,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-search {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    border-radius: 14px;
  }

  .header-search input {
    width: 100%;
  }

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

  .quick-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section-head,
  .player-title,
  .footer-inner,
  .filter-bar,
  .search-console {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .article-section {
    grid-template-columns: 1fr;
  }

  video {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .content-section {
    width: min(100% - 22px, 1240px);
    padding: 42px 0;
  }

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

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

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

  .category-cover {
    height: 230px;
  }
}
