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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--stone-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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: 100;
  color: var(--stone-100);
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-950);
  background: var(--amber-500);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.brand-icon svg path:last-child {
  fill: currentColor;
  stroke: none;
}

.brand-text,
.footer-logo div {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-logo strong {
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-text span,
.footer-logo span {
  color: var(--stone-400);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav-link {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-500);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--stone-100);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.section {
  padding: 76px 0;
}

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

.section-heading h2,
.page-hero h1,
.content-card h2,
.rank-copy h2 {
  margin: 0;
  color: var(--stone-900);
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.rank-copy p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-link,
.text-link {
  color: var(--amber-600);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 6s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.94) 0%, rgba(28, 25, 23, 0.62) 45%, rgba(12, 10, 9, 0.14) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: 32px;
  bottom: 116px;
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero-kicker-title {
  margin: 18px 0 6px;
  color: var(--stone-100);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--stone-300);
  font-size: clamp(16px, 1.8vw, 20px);
}

.hero-meta,
.detail-meta,
.movie-card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--stone-200);
  background: rgba(41, 37, 36, 0.82);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: var(--stone-950);
  background: var(--amber-500);
}

.btn-primary:hover {
  background: var(--amber-600);
}

.btn-ghost {
  color: var(--stone-100);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.7);
  color: var(--amber-400);
}

.hero-dots {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 58px;
  background: var(--amber-500);
}

.hero-search {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 5;
  width: min(390px, calc(100% - 64px));
  display: flex;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--stone-900);
  background: var(--white);
}

.hero-search input {
  flex: 1;
  padding: 0 14px;
  border-radius: 12px 0 0 12px;
}

.hero-search button {
  border: 0;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(28, 25, 23, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.poster-year {
  right: 12px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.78);
}

.rank-badge {
  left: 12px;
  color: var(--stone-950);
  background: var(--amber-500);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--amber-600);
}

.movie-card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-meta em {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
  font-style: normal;
}

.movie-card-wide {
  grid-template-columns: 210px 1fr;
}

.movie-card-wide .poster-wrap {
  aspect-ratio: auto;
  min-height: 150px;
}

.category-band {
  background: linear-gradient(135deg, #fffbeb 0%, #f5f5f4 100%);
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--stone-900);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.category-tile span {
  position: absolute;
  inset: auto 18px 18px;
  color: var(--white);
}

.category-tile strong {
  display: block;
  font-size: 22px;
}

.category-tile em {
  display: block;
  margin-top: 6px;
  color: var(--stone-300);
  font-size: 13px;
  font-style: normal;
}

.rank-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--stone-900);
  box-shadow: var(--shadow-soft);
}

.rank-copy h2,
.rank-copy p {
  color: var(--stone-100);
}

.rank-copy p {
  color: var(--stone-300);
}

.rank-copy .btn {
  margin-top: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(245, 158, 11, 0.14);
}

.rank-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-950);
  background: var(--amber-500);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-row strong {
  display: block;
  color: var(--stone-100);
  line-height: 1.3;
}

.rank-row em {
  display: block;
  color: var(--stone-400);
  font-size: 13px;
  font-style: normal;
}

.page-shell {
  padding: 42px 0 82px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto 34px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin-top: 18px;
  max-width: 760px;
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: var(--stone-300);
  font-size: 18px;
}

.rank-hero {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--stone-300);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--stone-200);
}

.empty-state {
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--stone-600);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card-list {
  display: grid;
  gap: 22px;
}

.category-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-cover {
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.category-card h2 {
  margin: 4px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

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

.category-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.category-card li a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
}

.detail-page {
  background: var(--stone-50);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  padding: 72px 0;
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(28, 25, 23, 0.78) 48%, rgba(12, 10, 9, 0.28) 100%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.detail-info p {
  max-width: 780px;
  color: var(--stone-300);
  font-size: 18px;
}

.detail-meta,
.tag-row {
  margin: 18px 0;
}

.player-section {
  padding: 56px 0;
  background: var(--stone-950);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.movie-video,
.player-start,
.player-start img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.movie-video {
  display: block;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--stone-950);
}

.player-start img {
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-start.hidden {
  display: none;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-950);
  background: var(--amber-500);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.38);
}

.play-ring span {
  margin-left: 5px;
  font-size: 32px;
}

.player-copy {
  margin-top: 22px;
  color: var(--stone-300);
}

.player-copy h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 30px;
}

.player-copy p {
  margin: 0;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 60px 0 0;
}

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

.content-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone-100);
}

.info-list dt {
  color: var(--stone-500);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--stone-800);
}

.side-card .rank-row {
  grid-template-columns: 34px 62px 1fr;
  background: var(--stone-100);
}

.side-card .rank-row strong {
  color: var(--stone-900);
}

.side-card .rank-row em {
  color: var(--stone-600);
}

.side-card .rank-number {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.side-card .rank-row img {
  width: 62px;
  height: 48px;
}

.site-footer {
  margin-top: 60px;
  color: var(--stone-400);
  background: var(--stone-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--stone-100);
  font-size: 17px;
}

.footer-column ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-column a {
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .rank-panel,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 4px;
  }

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

  .nav-link {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 148px;
  }

  .hero-search {
    left: 24px;
    right: 24px;
    bottom: 28px;
    width: auto;
  }

  .hero-dots {
    left: 24px;
    bottom: 96px;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-wide,
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-card,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 320px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    min-height: 86vh;
  }

  .hero h2 {
    font-size: 38px;
  }

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

  .btn {
    width: 100%;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-wide,
  .category-tiles {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .rank-panel,
  .content-card {
    padding: 24px;
  }

  .rank-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .detail-hero {
    padding: 36px 0;
  }

  .detail-info h1 {
    font-size: 38px;
  }
}
