:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --shadow-soft: 0 24px 70px rgba(28, 25, 23, 0.14);
  --shadow-card: 0 18px 42px rgba(28, 25, 23, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fff 0%, var(--stone-50) 42%, #f3f0eb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(12, 10, 9, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand.compact {
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(245, 158, 11, 0.28);
}

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

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--stone-400);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--stone-200);
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--amber-400);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: var(--stone-200);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.hero-slide {
  display: none;
  min-height: 90vh;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.78) 42%, rgba(12, 10, 9, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.18), transparent 34%), linear-gradient(180deg, transparent 0%, rgba(12, 10, 9, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 90vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 56px;
  padding: 76px 0 110px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-600);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions,
.detail-copy .primary-button {
  margin-top: 32px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--stone-950);
  background: var(--amber-500);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
}

.ghost-button {
  margin-left: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-button:hover {
  background: var(--amber-400);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: var(--stone-950);
  background: var(--amber-400);
  border-radius: 999px;
  font-weight: 900;
}

.hero-toolbar {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateX(-50%);
}

.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-search {
  width: min(520px, 100%);
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.hero-search input {
  color: #fff;
  background: transparent;
  border: 0;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hero-search button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--stone-950);
  background: var(--amber-500);
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  border-radius: 999px;
}

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

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

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

.compact-section {
  width: auto;
  padding: 0;
}

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

.section-heading.slim {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--amber-600);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 229, 228, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-900);
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-grid .movie-cover img {
  aspect-ratio: 16 / 10;
}

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

.cover-type,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cover-type {
  right: 12px;
  color: #fff;
  background: rgba(12, 10, 9, 0.76);
}

.rank-badge {
  left: 12px;
  color: var(--stone-950);
  background: var(--amber-400);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.22;
}

.movie-card h3 a:hover {
  color: var(--amber-600);
}

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

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 72px 0;
}

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

.category-tile {
  display: block;
  min-height: 146px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-900), #3f3429 70%, #6b3f09);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.ranking-panel,
.detail-side,
.category-overview-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-list.small {
  gap: 10px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.mini-card:hover {
  background: var(--stone-100);
}

.mini-card img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--stone-900);
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: var(--stone-900);
  line-height: 1.3;
}

.mini-card em {
  margin-top: 5px;
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

.mini-rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  color: var(--stone-950);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.small-hero > div,
.category-hero > div,
.search-hero > div,
.ranking-hero > div {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--stone-500);
  font-size: 14px;
}

.crumbs.light {
  color: rgba(255, 255, 255, 0.68);
}

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

.filter-bar {
  margin-bottom: 26px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stone-200);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.filter-bar.wide {
  grid-template-columns: minmax(0, 1fr) 180px 160px;
}

.filter-bar select {
  max-width: 190px;
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 28px;
  color: var(--stone-500);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--stone-200);
  border-radius: 20px;
}

.empty-state.is-visible {
  display: block;
}

.overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 28px;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.category-overview-card p {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--stone-600);
  line-height: 1.8;
}

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

.top-rank-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 380px;
  color: #fff;
  background: var(--stone-950);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.top-rank-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.3s ease;
}

.top-rank-card:hover img {
  transform: scale(1.06);
}

.top-rank-card span,
.top-rank-card h2,
.top-rank-card p {
  position: absolute;
  left: 24px;
  right: 24px;
}

.top-rank-card span {
  top: 24px;
  color: var(--stone-950);
  background: var(--amber-400);
  border-radius: 999px;
  width: max-content;
  padding: 6px 11px;
  font-weight: 900;
}

.top-rank-card h2 {
  bottom: 82px;
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.top-rank-card p {
  bottom: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: var(--stone-950);
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 36px 76px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  font-size: clamp(40px, 6vw, 78px);
}

.detail-tags {
  margin-top: 22px;
}

.watch-section {
  background: var(--stone-950);
  padding: 0 0 74px;
}

.watch-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.watch-main {
  min-width: 0;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  border: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: var(--stone-950);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 22px 44px rgba(245, 158, 11, 0.32);
}

.detail-article {
  margin-top: 28px;
  padding: 34px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 28px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  color: var(--stone-600);
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  align-self: start;
  padding: 26px;
  position: sticky;
  top: 96px;
}

.detail-side h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0 0 20px;
}

.detail-side dt {
  color: var(--stone-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--stone-900);
}

.site-footer {
  color: var(--stone-400);
  background: var(--stone-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 40px;
  padding: 56px 0;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.is-filter-hidden {
  display: none !important;
}

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

  .hero-content,
  .detail-shell,
  .watch-shell,
  .split-section,
  .category-overview-card,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
  }

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

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

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

  .hero-content {
    padding: 56px 0 170px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search,
  .filter-bar,
  .filter-bar.wide {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    max-width: none;
  }

  .movie-grid,
  .featured-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-body {
    padding: 14px;
  }

  .movie-card h3 {
    font-size: 17px;
  }

  .movie-card p {
    min-height: auto;
  }

  .content-section,
  .split-section {
    padding: 48px 0;
  }

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

  .detail-poster {
    max-width: 260px;
  }

  .detail-article,
  .detail-side,
  .ranking-panel,
  .category-overview-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .page-hero > div,
  .detail-shell {
    padding: 56px 0;
  }

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

  .mini-card img {
    width: 56px;
    height: 72px;
  }
}
