:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(28, 25, 23, 0.18);
  --soft-shadow: 0 14px 36px rgba(28, 25, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--stone-100);
  background: rgba(41, 37, 36, 0.96);
  box-shadow: 0 12px 34px rgba(28, 25, 23, 0.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

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

.main-nav a,
.mobile-panel a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--amber-400);
}

.top-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(120, 113, 108, 0.35);
  border: 1px solid rgba(231, 229, 228, 0.12);
  overflow: hidden;
}

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

.top-search input::placeholder {
  color: var(--stone-500);
}

.top-search button,
.search-large button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--amber-700);
  padding: 10px 18px;
  font-weight: 700;
}

.menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(231, 229, 228, 0.12);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700), var(--amber-800));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(2px);
}

.hero-bg img,
.sub-hero-bg img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after,
.sub-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.28), transparent 32%), linear-gradient(90deg, rgba(28, 25, 23, 0.93), rgba(28, 25, 23, 0.66), rgba(28, 25, 23, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 550px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 60px;
  color: var(--white);
}

.hero-copy h1,
.sub-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 720px;
  color: var(--stone-200);
  font-size: 21px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tags,
.detail-meta,
.tag-row,
.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.ghost-button {
  min-height: 46px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.rank-card:hover,
.category-strip a:hover {
  transform: translateY(-3px);
}

.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

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

.category-strip {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: -42px;
}

.category-strip a {
  display: grid;
  gap: 3px;
  min-height: 96px;
  padding: 18px;
  color: var(--stone-100);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(68, 64, 60, 0.96), rgba(120, 53, 15, 0.95));
  box-shadow: var(--soft-shadow);
}

.category-strip span {
  font-weight: 900;
  font-size: 18px;
}

.category-strip em {
  font-style: normal;
  color: var(--stone-200);
  font-size: 13px;
}

.page-section,
.category-preview {
  padding: 64px 0;
}

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

.tone-section {
  background: var(--stone-200);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.text-link {
  color: var(--amber-700);
}

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

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

.movie-card,
.rank-card,
.story-card,
.side-card,
.player-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-800));
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--stone-600);
  font-size: 12px;
}

.card-meta a,
.card-meta span {
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--stone-100);
}

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

.movie-card p,
.rank-card p {
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
}

.compact-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px;
  transition: transform 0.2s ease;
}

.rank-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--amber-700);
  font-weight: 900;
}

.sub-hero,
.detail-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.sub-hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
}

.sub-hero-content p {
  max-width: 720px;
  color: var(--stone-200);
  font-size: 18px;
}

.detail-layout {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.detail-line {
  color: var(--stone-200);
  font-size: 21px;
  max-width: 820px;
}

.large-tags span,
.detail-meta span {
  color: var(--stone-100);
}

.player-card {
  padding: 20px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--stone-950);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone-950);
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--stone-950);
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.play-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-700);
  box-shadow: 0 0 0 18px rgba(217, 119, 6, 0.18);
  font-size: 34px;
}

.player-caption {
  padding: 20px 6px 2px;
}

.player-caption h2 {
  margin: 0 0 8px;
}

.player-caption p {
  margin: 0;
  color: var(--stone-600);
}

.article-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding-bottom: 38px;
}

.story-card,
.side-card {
  padding: 28px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 12px;
}

.story-card p {
  margin: 0 0 24px;
  color: var(--stone-700);
  font-size: 17px;
}

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

.side-card {
  align-self: start;
  display: grid;
  gap: 12px;
}

.side-card a {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--stone-100);
  color: var(--stone-800);
  font-weight: 700;
}

.search-hero {
  min-height: 300px;
}

.search-large {
  display: flex;
  width: min(620px, 100%);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-large input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 20px;
  font-size: 16px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-grid p {
  color: var(--stone-500);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

  .menu-button {
    display: block;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero-content,
  .detail-layout,
  .article-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

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

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

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

  .hero-content {
    gap: 24px;
    padding: 42px 0 80px;
  }

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

  .hero-text,
  .detail-line {
    font-size: 17px;
  }

  .category-strip,
  .movie-grid,
  .small-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 96px 1fr;
  }

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

  .detail-layout {
    padding: 34px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
