:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --bronze-800: #846358;
  --bronze-700: #977669;
  --bronze-600: #a18072;
  --bronze-500: #b49385;
  --bronze-400: #d2bab0;
  --bronze-100: #f2e8e5;
  --heritage-100: #e4e4e1;
  --heritage-50: #f7f7f6;
  --shadow-soft: 0 18px 60px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--stone-50);
  font-family: Inter, ui-sans-serif, system-ui, -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%;
}

button,
input {
  font: inherit;
}

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-600));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(161, 128, 114, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

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

.brand-copy small {
  color: var(--stone-400);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--stone-300);
  font-size: 15px;
  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(--bronze-400);
}

.site-search {
  position: relative;
  width: min(280px, 30vw);
}

.site-search input,
.local-filter {
  width: 100%;
  border: 1px solid rgba(210, 186, 176, 0.28);
  border-radius: 999px;
  outline: none;
  color: var(--stone-100);
  background: rgba(12, 10, 9, 0.35);
  padding: 11px 16px;
}

.site-search input:focus,
.local-filter:focus {
  border-color: var(--bronze-400);
  box-shadow: 0 0 0 4px rgba(210, 186, 176, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(440px, 90vw);
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(210, 186, 176, 0.22);
  border-radius: var(--radius-md);
  background: rgba(28, 25, 23, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: none;
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  color: var(--stone-200);
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-item img {
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong {
  display: block;
  color: #fff;
  line-height: 1.3;
}

.search-result-item span {
  display: block;
  margin-top: 4px;
  color: var(--stone-400);
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--stone-200);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px 20px;
  background: var(--stone-900);
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--stone-950);
}

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

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

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

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.62) 45%, rgba(12, 10, 9, 0.15)), linear-gradient(0deg, rgba(12, 10, 9, 0.98), rgba(12, 10, 9, 0.08) 58%, rgba(12, 10, 9, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 84px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bronze-400);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--stone-200);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--bronze-600);
  padding: 0 26px;
  box-shadow: 0 18px 32px rgba(161, 128, 114, 0.28);
}

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

.primary-button:hover {
  background: var(--bronze-700);
}

.primary-button.dark {
  background: var(--stone-900);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 10, 9, 0.52);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(12, 10, 9, 0.78);
  transform: translateY(-2px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

.section-heading {
  margin-bottom: 34px;
}

.section-heading span {
  display: inline-flex;
  color: var(--bronze-700);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-600);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.08);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(161, 128, 114, 0.36);
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.15);
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.poster-link img,
.category-tile img,
.category-card-image img,
.ranking-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-card:hover .category-card-image img,
.ranking-row:hover .ranking-cover img {
  transform: scale(1.08);
}

.region-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--bronze-600);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--stone-950);
}

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

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

.movie-card-body h3 a:hover,
.ranking-copy h3 a:hover,
.category-card h2 a:hover {
  color: var(--bronze-700);
}

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

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

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

.heritage-band {
  background: var(--heritage-100);
}

.heritage-band .container {
  width: min(1180px, calc(100% - 32px));
}

.horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  min-width: 282px;
  scroll-snap-align: start;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.category-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.16));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-tile strong {
  bottom: 58px;
  font-size: 24px;
}

.category-tile em {
  bottom: 20px;
  color: var(--stone-300);
  font-size: 13px;
  font-style: normal;
}

.ranking-panel {
  padding-top: 30px;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 96px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(68, 64, 60, 0.08);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 12px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(161, 128, 114, 0.34);
}

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

.ranking-cover {
  display: block;
  height: 110px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-200);
}

.ranking-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--stone-600);
}

.center-actions {
  justify-content: center;
  margin-top: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(210, 186, 176, 0.32), transparent 28%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
  padding: 84px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-300);
  font-size: 18px;
}

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

.crumbs a:hover {
  color: var(--bronze-700);
}

.crumbs.light {
  margin-top: 0;
  color: var(--stone-300);
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.category-card-image {
  height: 160px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-200);
}

.category-card h2 {
  margin: 0 0 6px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--stone-600);
}

.category-sample {
  font-size: 14px;
}

.text-link {
  min-height: auto;
  color: var(--bronze-700);
  font-weight: 900;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.catalog-toolbar .local-filter {
  color: var(--stone-900);
  background: #fff;
  border-color: rgba(68, 64, 60, 0.12);
}

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

.filter-button {
  border: 1px solid rgba(68, 64, 60, 0.12);
  border-radius: 999px;
  color: var(--stone-600);
  background: #fff;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  border-color: var(--bronze-600);
  background: var(--bronze-600);
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  filter: blur(6px);
  transform: scale(1.04);
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: 72px 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.82), rgba(12, 10, 9, 0.22));
}

.player-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

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

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  background: rgba(161, 128, 114, 0.92);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
  font-size: 36px;
  padding-left: 6px;
}

.detail-intro h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 18px;
}

.detail-tags,
.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-tags span,
.info-tags span {
  border-radius: 999px;
  color: var(--bronze-100);
  background: rgba(161, 128, 114, 0.28);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta,
.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-meta div,
.info-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.detail-meta dt,
.info-card dt {
  color: var(--stone-400);
}

.detail-meta dd,
.info-card dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.content-card {
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.content-card h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 16px;
  font-size: 26px;
}

.content-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: var(--bronze-600);
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.info-card {
  position: sticky;
  top: 100px;
}

.info-card dd {
  color: var(--stone-900);
}

.info-card .info-tags {
  margin: 22px 0 0;
}

.info-card .info-tags span {
  color: var(--bronze-800);
  background: var(--bronze-100);
}

.review-card {
  grid-column: 1 / -1;
}

.compact-heading {
  margin-bottom: 24px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: var(--stone-400);
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--stone-100);
}

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

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

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

.footer-bottom {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stone-500);
  text-align: center;
  padding: 20px;
}

.is-filtered-out {
  display: none !important;
}

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

  .site-search {
    width: min(360px, 42vw);
    margin-left: auto;
  }

  .mobile-toggle {
    display: block;
  }

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

  .detail-layout,
  .detail-content-grid,
  .footer-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-wrap {
    gap: 12px;
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-search {
    order: 3;
    width: 100%;
    margin: 0 0 12px;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 92px 0 72px;
  }

  .hero-control {
    display: none;
  }

  .section-block {
    padding: 48px 0;
  }

  .movie-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 46px 78px 1fr;
    gap: 12px;
  }

  .ranking-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .ranking-cover {
    height: 90px;
  }

  .ranking-copy p {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    gap: 24px;
    padding: 42px 0;
  }

  .player-card {
    border-radius: 18px;
  }

  .play-button {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }
}
