:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --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: 0 24px 70px rgba(28, 25, 23, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-900);
  background: var(--stone-50);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--stone-100);
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid rgba(231, 229, 228, 0.08);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--stone-200);
}

.nav-link {
  padding: 22px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.text-link:hover,
.footer-links a:hover,
.inline-cats a:hover {
  color: var(--amber-500);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(231, 229, 228, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--stone-100);
}

.mobile-menu {
  display: none;
  padding: 10px 24px 20px;
  border-top: 1px solid rgba(231, 229, 228, 0.08);
}

.mobile-link {
  display: block;
  padding: 14px 0;
  color: var(--stone-200);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.26), transparent 34%),
    linear-gradient(to top, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.55), rgba(12, 10, 9, 0.16));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 96px);
  right: 24px;
  bottom: clamp(48px, 12vh, 130px);
  z-index: 2;
  max-width: 760px;
  color: var(--white);
}

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

.eyebrow {
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.12);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(245, 245, 244, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(245, 245, 244, 0.72);
  font-size: 14px;
}

.hero-meta span,
.card-meta span,
.tag-row span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-meta span,
.card-meta span {
  padding: 6px 10px;
  background: rgba(41, 37, 36, 0.72);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  color: var(--stone-200);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  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(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
}

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

.hero-dots {
  position: absolute;
  left: clamp(24px, 7vw, 96px);
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--amber-500);
}

.quick-search,
.section-block,
.split-block,
.detail-content,
.player-section,
.rank-page-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.quick-search {
  margin-top: -70px;
  position: relative;
  z-index: 8;
}

.search-card,
.panel,
.content-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-card {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  gap: 16px;
}

.search-card h2,
.section-head h2,
.panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.filter-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  font-size: 16px;
  color: var(--stone-900);
  outline: none;
  background: var(--stone-50);
}

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

.first-list {
  padding-top: 64px;
}

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

.section-head h2 {
  margin-top: 10px;
}

.text-link {
  color: var(--stone-700);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(28, 25, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: var(--stone-200);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body .card-meta {
  color: var(--stone-600);
}

.card-body .card-meta span {
  background: var(--stone-100);
}

.card-body h2 {
  margin: 12px 0 9px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.panel {
  padding: clamp(24px, 4vw, 36px);
}

.panel-dark {
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 32%),
    var(--stone-950);
}

.panel-dark .eyebrow {
  color: var(--stone-950);
  background: var(--amber-500);
}

.panel-dark h2 {
  margin: 12px 0 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.06);
}

.rank-index,
.rank-score,
.rank-hot {
  color: var(--amber-400);
  font-weight: 900;
}

.panel-light h2 {
  margin: 12px 0 22px;
}

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

.category-tile {
  min-height: 118px;
  padding: 18px;
  border-radius: 18px;
  background: var(--stone-100);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  background: #fff7ed;
}

.category-tile span {
  display: block;
  color: var(--amber-600);
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile strong {
  color: var(--stone-700);
  line-height: 1.5;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 72px clamp(24px, 7vw, 96px);
}

.small-hero h1,
.rank-hero h1 {
  max-width: 820px;
}

.page-search {
  margin-top: -42px;
}

.inline-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 700;
  font-size: 13px;
}

.rank-page-list {
  display: grid;
  gap: 16px;
  padding-bottom: 64px;
}

.rank-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 82px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(28, 25, 23, 0.08);
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--stone-200);
}

.rank-main h2 {
  margin: 9px 0 8px;
  font-size: 22px;
}

.rank-main p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.rank-hot {
  justify-self: end;
  font-size: 24px;
}

.detail-hero {
  min-height: 650px;
  background-size: cover;
  background-position: center;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  background: var(--stone-200);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(245, 245, 244, 0.72);
  font-size: 14px;
}

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

.player-section {
  margin-top: -76px;
  position: relative;
  z-index: 8;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  font-size: 18px;
  cursor: pointer;
}

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

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

.content-card {
  padding: clamp(24px, 4vw, 38px);
}

.content-card h2 {
  margin-top: 12px;
}

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

.related-block {
  padding-bottom: 64px;
}

.site-footer {
  margin-top: 64px;
  color: var(--stone-300);
  background: var(--stone-950);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  color: var(--stone-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filtered-out {
  display: none !important;
}

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

  .split-block,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .menu-button {
    display: block;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    left: 20px;
    bottom: 84px;
  }

  .quick-search {
    margin-top: -38px;
  }

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

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

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

  .page-hero {
    min-height: 390px;
    padding: 54px 20px;
  }

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

  .rank-hot {
    grid-column: 2;
    justify-self: start;
  }

  .detail-wrap {
    min-height: 720px;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .detail-poster {
    width: 190px;
  }

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

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .quick-search,
  .section-block,
  .split-block,
  .detail-content,
  .player-section,
  .rank-page-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-start {
    min-height: 50px;
    font-size: 15px;
  }
}
