:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --cream: #fff7ed;
  --paper: #fffbeb;
  --shadow: 0 24px 70px rgba(68, 64, 60, 0.16);
  --soft-shadow: 0 16px 32px rgba(120, 53, 15, 0.14);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, #fef3c7 42%, #fafaf9 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.96), rgba(69, 26, 3, 0.95));
  border-bottom: 1px solid rgba(253, 230, 138, 0.18);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-200);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.36);
}

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

.brand-copy strong {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: #fcd34d;
  font-size: 12px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fde68a;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.86;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: white;
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  background: rgba(245, 158, 11, 0.18);
}

.hero {
  padding: 34px 0 24px;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.1), transparent),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.22), transparent 28rem);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  color: white;
  box-shadow: var(--shadow);
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 36px;
  padding: 70px 68px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.96) 0%, rgba(28, 25, 23, 0.72) 44%, rgba(28, 25, 23, 0.38) 100%),
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.22), transparent 24rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber-200);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 660px;
  margin: 24px 0 0;
  color: #fed7aa;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  background: rgba(253, 230, 138, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

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

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.3);
}

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

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

.hero-poster {
  align-self: center;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(253, 230, 138, 0.34);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

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

.hero-poster span,
.score,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.hero-poster span {
  right: 14px;
  bottom: 14px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 68px;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: white;
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 251, 235, 0.74);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.article-content h2 {
  margin: 0;
  color: var(--stone-900);
  letter-spacing: -0.04em;
}

.intro-panel h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-panel p:last-child,
.page-hero p,
.detail-line,
.article-content p {
  color: var(--stone-700);
  line-height: 1.9;
}

.category-cloud,
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 52px;
}

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(254, 243, 199, 0.86));
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(217, 119, 6, 0.16);
}

.category-tile {
  min-height: 138px;
  padding: 24px;
}

.category-tile span,
.category-card-main span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-900);
  font-size: 22px;
  font-weight: 900;
}

.category-tile em,
.category-card-main p {
  color: var(--stone-700);
  font-style: normal;
  line-height: 1.7;
}

.category-tile::before,
.category-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  bottom: -52px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
}

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

.section-heading > a {
  color: var(--orange-700);
  font-weight: 900;
}

.section-heading.light h2,
.section-heading.light a {
  color: white;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin: 0 0 24px;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 12px 18px;
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 14px 28px rgba(120, 53, 15, 0.08);
}

.search-box span,
.select-box span {
  color: var(--amber-800);
  font-weight: 900;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--stone-900);
  background: transparent;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(217, 119, 6, 0.13);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(120, 53, 15, 0.2);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.score {
  right: 10px;
  bottom: 10px;
  min-width: 44px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: rgba(194, 65, 12, 0.92);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--amber-950);
  background: var(--amber-200);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 16px;
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 800;
}

.card-body p {
  display: -webkit-box;
  min-height: 66px;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--stone-700);
  line-height: 1.7;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.chip-row span {
  color: var(--amber-900);
  background: #ffedd5;
}

.ranking-strip {
  margin-top: 64px;
  padding: 36px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.3), transparent 28rem),
    linear-gradient(135deg, var(--stone-950), var(--amber-950));
  box-shadow: var(--shadow);
}

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

.movie-card.compact {
  border-radius: 22px;
}

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

.movie-card.compact .card-title {
  min-height: 40px;
  font-size: 15px;
}

.movie-card.compact .card-body p,
.movie-card.compact .chip-row {
  display: none;
}

.page-hero {
  padding: 70px 0 38px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 28rem);
}

.page-hero.dark {
  color: white;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 32rem),
    linear-gradient(135deg, var(--stone-950), var(--amber-950));
}

.page-hero.dark h1,
.page-hero.dark p {
  color: white;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.page-hero p {
  max-width: 800px;
  font-size: 18px;
}

.category-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.category-chip {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--amber-900);
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.16);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.08);
}

.category-chip.active {
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.category-card {
  padding: 24px;
}

.category-card-main,
.category-samples {
  position: relative;
  z-index: 1;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: var(--stone-700);
  font-weight: 700;
}

.ranking-list {
  margin-bottom: 58px;
}

.detail-hero {
  padding: 54px 0;
  color: white;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.28), transparent 28rem),
    linear-gradient(135deg, var(--stone-950), var(--amber-950));
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(253, 230, 138, 0.28);
}

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

.detail-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--amber-200);
  font-weight: 800;
  margin-bottom: 18px;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 10px;
  opacity: 0.5;
}

.detail-copy h1 {
  color: white;
  font-size: clamp(38px, 6vw, 74px);
}

.detail-line {
  max-width: 820px;
  color: #fed7aa;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 9px 14px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-section {
  margin-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050505;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 24px 54px rgba(234, 88, 12, 0.4);
  position: relative;
}

.play-overlay span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 27px solid white;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.article-content {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.article-content h2 {
  margin-top: 0;
  font-size: 30px;
}

.article-content h2 + p {
  margin-bottom: 30px;
}

.related-grid {
  margin-bottom: 42px;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 240px;
    padding: 52px 42px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand-copy strong {
    font-size: 20px;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 4px;
  }

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

  .hero-shell {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 34px 24px 70px;
  }

  .hero-poster {
    width: min(220px, 70vw);
    transform: none;
  }

  .hero-desc,
  .detail-line {
    font-size: 16px;
  }

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

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

  .category-cloud,
  .category-card-grid,
  .movie-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    width: min(260px, 72vw);
  }

  .ranking-strip,
  .article-content {
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .hero-shell {
    width: min(100% - 22px, 1180px);
  }

  .category-cloud,
  .category-card-grid,
  .movie-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact .poster-wrap img {
    aspect-ratio: 16 / 10;
  }
}
