:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --orange-900: #7c2d12;
  --orange-700: #c2410c;
  --rose-600: #e11d48;
  --shadow-soft: 0 14px 35px rgba(41, 37, 36, 0.12);
  --shadow-heavy: 0 24px 70px rgba(28, 25, 23, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: var(--stone-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-900));
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-name {
  font-size: 20px;
}

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

.nav-link {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-200);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image,
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.5), rgba(28, 25, 23, 0.22)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.95), rgba(28, 25, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 92px max(24px, calc((100vw - 1240px) / 2 + 24px)) 92px;
  color: #fff;
}

.hero-tags,
.tag-list,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-facts span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-700);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-review {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.ranking-watch,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-700));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover,
.ranking-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(217, 119, 6, 0.32);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.content-section,
.featured-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px;
}

.is-tight {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.section-kicker {
  display: inline-block;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.spotlight-content h2,
.page-hero h1,
.detail-main h1 {
  margin: 8px 0 0;
  color: var(--stone-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.section-heading p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

.spotlight-card,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  box-shadow: var(--shadow-soft);
}

.spotlight-image,
.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-heavy);
}

.spotlight-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.spotlight-content p,
.detail-main p,
.text-panel p,
.category-overview-card p,
.category-card p,
.cta-section p {
  color: var(--stone-600);
  line-height: 1.85;
}

.detail-facts {
  margin: 22px 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(41, 37, 36, 0.18);
}

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

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

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

.movie-cover-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover-mask {
  opacity: 1;
}

.play-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.35);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: block;
  min-height: 46px;
  color: var(--stone-800);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-title:hover,
.ranking-info a:hover,
.category-overview-card a:hover {
  color: var(--amber-700);
}

.movie-desc {
  min-height: 48px;
  margin: 8px 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  color: var(--stone-600);
  font-size: 12px;
  line-height: 1.6;
}

.tag-list {
  margin-top: 14px;
}

.category-band {
  background: linear-gradient(180deg, var(--stone-100), var(--stone-50));
}

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

.category-card {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(41, 37, 36, 0.16);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-700));
}

.category-card strong {
  color: var(--stone-800);
  font-size: 20px;
}

.category-card em {
  margin-top: auto;
  color: var(--amber-700);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.dark-section {
  color: #fff;
  background: var(--stone-800);
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: #fff;
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.95);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

.rank-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 900;
}

.rank-heading a {
  color: var(--amber-700);
  font-size: 13px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rank-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--amber-600);
  font-weight: 900;
}

.rank-list small {
  grid-column: 2;
  color: var(--stone-600);
}

.cta-section {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 54px 30px;
  border-radius: 30px;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-700));
  box-shadow: var(--shadow-heavy);
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-section .primary-btn {
  margin-top: 18px;
  color: var(--amber-800);
  background: #fff;
}

.page-hero,
.detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.38), transparent 34%),
    linear-gradient(135deg, var(--stone-950), var(--amber-900));
}

.compact-hero {
  padding: 84px max(24px, calc((100vw - 1240px) / 2 + 24px));
}

.compact-hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
}

.compact-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.listing-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--stone-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-pill {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.is-active {
  color: #fff;
  background: var(--amber-600);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-poster-stack img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.ranking-board {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 160px minmax(0, 1fr) 94px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--rose-600));
  font-size: 18px;
  font-weight: 900;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
}

.ranking-cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--stone-600);
  line-height: 1.7;
}

.ranking-watch {
  height: 42px;
  color: #fff;
  background: var(--amber-600);
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 24px 70px;
  background: transparent;
  box-shadow: none;
}

.detail-poster img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-main h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-main p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-main .detail-facts span,
.detail-main .tag-list span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-content {
  padding-top: 46px;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-heavy);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)),
    rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-700));
  font-size: 36px;
  box-shadow: 0 20px 55px rgba(217, 119, 6, 0.45);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.text-panel {
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.text-panel h2 {
  margin: 0 0 12px;
  color: var(--stone-800);
  font-size: 24px;
  font-weight: 900;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--stone-900);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-copy {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

  .two-column-section,
  .spotlight-card,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .brand-name {
    font-size: 17px;
  }

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

  .hero-content {
    padding: 88px 20px 86px;
  }

  .hero-control {
    display: none;
  }

  .content-section,
  .featured-section {
    padding: 48px 16px;
  }

  .movie-grid,
  .movie-grid-small,
  .category-grid,
  .category-overview-grid,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .listing-tools {
    grid-template-columns: 1fr;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .ranking-row {
    grid-template-columns: 44px 96px minmax(0, 1fr);
  }

  .ranking-watch {
    grid-column: 3;
    width: 86px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
