:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(28, 25, 23, .13);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, .92);
  backdrop-filter: blur(18px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.site-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 10px 24px rgba(245, 158, 11, .32);
}

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

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stone-100);
  transition: background .2s ease, color .2s ease;
}

.site-nav a:hover {
  color: var(--amber-400);
  background: rgba(255, 255, 255, .08);
}

.top-search {
  width: 280px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  overflow: hidden;
}

.top-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 10px 14px;
  color: var(--white);
  background: transparent;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, .62);
}

.top-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--stone-900);
  background: var(--amber-400);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  display: block;
  margin: 4px auto;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, .95), rgba(28, 25, 23, .66) 44%, rgba(28, 25, 23, .16)), linear-gradient(0deg, rgba(12, 10, 9, .94), transparent 36%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .52fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0 92px;
  color: var(--white);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(245, 158, 11, .28);
  font-size: 14px;
  font-weight: 700;
}

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

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

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

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

.hero-tag,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tag {
  padding: 7px 12px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.tag {
  padding: 5px 10px;
  color: var(--amber-700);
  background: var(--amber-100);
}

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

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

.btn-primary {
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 14px 28px rgba(245, 158, 11, .34);
}

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

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

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  transform: rotate(1.5deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.section-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-title,
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title span,
.panel-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 800;
}

.section-title h2,
.panel-title strong {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.section-title a,
.panel-title a {
  color: var(--amber-700);
  font-weight: 800;
}

.slim-title h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(12, 10, 9, .9), rgba(12, 10, 9, .22));
}

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

.category-card strong,
.category-overview-card strong {
  font-size: 22px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  margin-top: 8px;
  color: var(--stone-200);
  font-style: normal;
  line-height: 1.6;
}

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

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

.movie-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 25, 23, .08);
  border: 1px solid rgba(120, 113, 108, .14);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, .72), transparent 44%);
  opacity: .85;
}

.play-chip,
.card-rank {
  position: absolute;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: var(--stone-900);
  background: var(--amber-400);
}

.card-rank {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(28, 25, 23, .72);
  backdrop-filter: blur(8px);
}

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

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

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
  color: var(--stone-500);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.compact-card .movie-card-body {
  padding: 14px;
}

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

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.article-card,
.filter-panel,
.category-overview-card {
  background: var(--white);
  border: 1px solid rgba(120, 113, 108, .14);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(28, 25, 23, .08);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 36px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
  transition: background .2s ease, transform .2s ease;
}

.rank-row:hover {
  background: var(--amber-100);
  transform: translateX(3px);
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--stone-900);
  font-size: 13px;
  font-weight: 900;
}

.rank-row img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy strong {
  color: var(--stone-900);
  font-weight: 900;
}

.rank-copy em {
  color: var(--stone-500);
  font-style: normal;
  font-size: 13px;
}

.rank-year {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.page-main {
  min-height: 70vh;
}

.page-hero,
.detail-hero {
  background-color: var(--stone-900);
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  min-height: 320px;
  border-radius: 34px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.small-hero {
  background-image: linear-gradient(135deg, var(--stone-900), var(--stone-700) 55%, var(--amber-700));
}

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

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.75;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--stone-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.empty-result {
  margin: 28px 0 0;
  text-align: center;
  color: var(--stone-500);
  font-weight: 700;
}

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

.category-overview-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

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

.category-stack img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

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

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

.full-rank-list .rank-row {
  background: var(--white);
  border: 1px solid rgba(120, 113, 108, .12);
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

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

.detail-copy {
  max-width: 840px;
}

.lead-text {
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: var(--stone-900);
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--stone-900);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, .16), rgba(12, 10, 9, .76) 50%, rgba(12, 10, 9, .88));
  z-index: 5;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 14px 34px rgba(245, 158, 11, .36);
  font-size: 34px;
}

.video-overlay strong {
  font-size: 20px;
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.article-card h2:not(:first-child) {
  margin-top: 28px;
}

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

.site-footer {
  margin-top: 42px;
  background: var(--stone-900);
  color: var(--stone-200);
}

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

.footer-inner strong {
  color: var(--white);
  font-size: 18px;
}

.footer-inner p {
  max-width: 760px;
  margin: 8px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

[hidden] {
  display: none !important;
}

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .site-header-inner {
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
  }

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

  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
  }

  .top-search {
    order: 3;
    width: 100%;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

  .full-rank-list {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .hero-carousel {
    min-height: 590px;
  }

  .hero-content {
    padding: 46px 0 84px;
  }

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

  .section-wrap {
    padding: 38px 0;
  }

  .section-title,
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .movie-desc {
    min-height: 0;
  }

  .page-hero {
    min-height: 260px;
    padding: 28px;
    border-radius: 24px;
  }

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

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

  .category-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .rank-row {
    grid-template-columns: 34px 48px minmax(0, 1fr);
  }

  .rank-year {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

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

  .detail-cover {
    width: min(220px, 70vw);
  }

  .lead-text {
    font-size: 17px;
  }

  .article-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .dense-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
