:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(41, 37, 36, 0.12);
  --soft-shadow: 0 10px 24px rgba(41, 37, 36, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--stone-800), var(--stone-700), var(--stone-800));
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.35);
}

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

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--stone-300);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--stone-200);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
}

.search-shell {
  padding-bottom: 14px;
}

.site-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 760px;
}

.site-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  outline: none;
  padding: 12px 14px;
}

.site-search input::placeholder {
  color: var(--stone-300);
}

.site-search button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-search button,
.primary-btn {
  color: var(--white);
  background: var(--amber-600);
  padding: 12px 20px;
}

.site-search button:hover,
.primary-btn:hover {
  background: var(--amber-500);
  transform: translateY(-1px);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--stone-800);
  z-index: 120;
}

.search-results.is-open {
  display: block;
}

.search-result-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--stone-200);
}

.search-result-link:last-child {
  border-bottom: 0;
}

.search-result-link img {
  width: 64px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--stone-200);
}

.search-result-link strong {
  display: block;
  margin-bottom: 4px;
}

.search-result-link span {
  display: block;
  color: var(--stone-600);
  font-size: 13px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

.hero {
  position: relative;
  min-height: 70vh;
  height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.58) 46%, rgba(28, 25, 23, 0.20));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.quick-categories {
  padding: 28px 0 10px;
}

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

.category-card,
.category-overview,
.movie-card,
.rank-item,
.detail-info,
.side-card,
.player-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 18px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.22));
}

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

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

.category-card span {
  font-size: 20px;
  font-weight: 800;
}

.category-card small {
  margin-top: 6px;
  color: var(--stone-200);
}

.content-section {
  padding: 56px 0;
}

.soft-bg {
  background: linear-gradient(90deg, #fff7ed, #eff6ff);
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: clamp(26px, 3vw, 36px);
}

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

.section-more {
  flex: 0 0 auto;
  color: var(--amber-700);
  padding: 9px 12px;
}

.section-more:hover {
  color: var(--amber-500);
  background: var(--amber-100);
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.badge {
  position: absolute;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.badge-category {
  left: 10px;
  top: 10px;
  background: var(--amber-600);
}

.badge-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-content h3 a:hover,
.category-overview h2 a:hover {
  color: var(--amber-600);
}

.card-body p,
.rank-content p {
  margin: 0 0 12px;
  color: var(--stone-600);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--stone-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

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

.rank-section {
  background: var(--stone-50);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 180px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-weight: 900;
}

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

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

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.30), transparent 34%), linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.compact-hero {
  padding: 72px 0;
}

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

.category-overview {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  min-height: 180px;
  background: var(--stone-200);
}

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

.category-overview div:last-child {
  padding: 24px;
}

.category-overview h2 {
  margin: 0 0 10px;
}

.category-overview p {
  margin: 0 0 14px;
  color: var(--stone-600);
  line-height: 1.7;
}

.category-overview span {
  color: var(--amber-700);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 24px;
}

.filter-bar button {
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--white);
  cursor: pointer;
  padding: 8px 13px;
}

.filter-bar button.active,
.filter-bar button:hover {
  border-color: var(--amber-600);
  color: var(--white);
  background: var(--amber-600);
}

.detail-layout {
  padding: 30px 0 12px;
}

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

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

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.player-card video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.play-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
  font-size: 26px;
}

.detail-info {
  margin-top: 22px;
  padding: 26px;
}

.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-labels span {
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
}

.detail-info .lead {
  color: var(--stone-700);
  font-size: 18px;
  line-height: 1.8;
}

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

.meta-grid div {
  border-radius: 14px;
  background: var(--stone-50);
  padding: 14px;
}

.meta-grid dt {
  color: var(--stone-500);
  font-size: 13px;
}

.meta-grid dd {
  margin: 6px 0 0;
  font-weight: 700;
}

.detail-tags span {
  background: var(--stone-100);
}

.detail-info h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-info p {
  color: var(--stone-700);
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.side-poster,
.side-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--stone-200);
}

.side-card {
  background: var(--white);
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 14px;
}

.side-card p {
  margin: 10px 0;
  color: var(--stone-700);
}

.side-card a {
  color: var(--amber-700);
  font-weight: 700;
}

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

.site-footer {
  color: var(--stone-300);
  background: var(--stone-950);
  padding: 36px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

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

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

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

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

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

  .brand {
    min-width: auto;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .site-search {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .category-strip,
  .movie-grid,
  .all-grid,
  .related-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-number {
    position: absolute;
    margin: 12px;
  }

  .rank-item {
    position: relative;
  }

  .rank-cover {
    width: 100%;
  }

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

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

  .footer-links {
    flex-wrap: wrap;
  }
}
