:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-850: #24201d;
  --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: #7c5f55;
  --bronze-700: #8d6d61;
  --bronze-600: #a18072;
  --bronze-500: #b89587;
  --bronze-400: #d2bab0;
  --bronze-200: #eadbd7;
  --bronze-100: #f2e8e5;
  --bronze-50: #fdf8f6;
  --heritage-100: #e4e4e1;
  --heritage-50: #f7f7f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 12px 28px rgba(28, 25, 23, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--stone-50);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-600));
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(210, 186, 176, 0.12);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.03em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-nav-link {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--bronze-400);
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--stone-100);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--stone-800);
  padding: 12px 16px 20px;
}

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

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.9), rgba(12, 10, 9, 0.45), rgba(12, 10, 9, 0.15)),
    linear-gradient(0deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.1));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  color: var(--white);
}

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--stone-200);
  font-size: clamp(16px, 2.5vw, 21px);
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  width: fit-content;
  color: var(--bronze-400);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--bronze-600);
  box-shadow: 0 12px 28px rgba(161, 128, 114, 0.26);
}

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

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 10, 9, 0.36);
}

.btn-ghost:hover {
  background: rgba(12, 10, 9, 0.62);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(12, 10, 9, 0.5);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.page-section {
  padding: 56px 0;
}

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

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

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

.section-action {
  color: var(--bronze-700);
  font-weight: 800;
}

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

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

.rail {
  display: grid;
  grid-auto-columns: minmax(250px, 290px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x proximity;
}

.rail .movie-card {
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px rgba(28, 25, 23, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

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

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.04));
  transition: opacity 0.25s ease;
}

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

.region-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  top: 12px;
  right: 12px;
  background: var(--bronze-600);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: rgba(12, 10, 9, 0.72);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--bronze-700);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card-compact .movie-card-body h3 {
  min-height: 48px;
  font-size: 16px;
}

.movie-card-compact .movie-card-body p {
  min-height: 42px;
  font-size: 13px;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 22px;
  background: linear-gradient(135deg, var(--white), var(--bronze-50));
  border: 1px solid var(--bronze-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-tile span {
  color: var(--bronze-700);
  font-weight: 900;
}

.category-tile strong {
  font-size: 36px;
  line-height: 1;
}

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

.two-column-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.sub-page {
  min-height: 70vh;
}

.page-hero {
  margin-top: 36px;
  padding: 52px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(210, 186, 176, 0.22), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
  max-width: 880px;
  margin: 12px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 180px 160px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.08);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  color: var(--stone-900);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--bronze-600);
  box-shadow: 0 0 0 3px rgba(161, 128, 114, 0.14);
}

.filter-count {
  color: var(--stone-600);
  font-size: 13px;
  white-space: nowrap;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
  padding: 44px 0 68px;
}

.category-overview-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.09);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head span {
  color: var(--bronze-700);
  font-weight: 900;
}

.category-overview-head h2 {
  margin: 6px 0 0;
  font-size: 22px;
}

.category-overview-head strong {
  color: var(--bronze-700);
  white-space: nowrap;
}

.category-enter {
  margin-top: 18px;
}

.ranking-grid .movie-card:nth-child(-n + 3) .rank-badge {
  color: var(--stone-950);
  background: var(--bronze-400);
}

.movie-detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-950);
}

.movie-backdrop {
  position: absolute;
  inset: 0;
}

.movie-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.38;
}

.movie-backdrop div {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.74), rgba(12, 10, 9, 0.5));
}

.movie-detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

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

.detail-copy {
  align-self: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-300);
  font-size: 14px;
}

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

.detail-copy h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-copy p {
  max-width: 840px;
  color: var(--stone-200);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.tag-row span {
  padding: 7px 12px;
  color: var(--bronze-100);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: var(--stone-950);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  color: var(--white);
  background: radial-gradient(circle, rgba(12, 10, 9, 0.25), rgba(12, 10, 9, 0.72));
  border: 0;
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.play-symbol {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 5px;
  color: var(--stone-950);
  background: var(--bronze-400);
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 0 0 12px rgba(210, 186, 176, 0.16);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  color: var(--stone-300);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.content-panel {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0;
  color: var(--stone-700);
  font-size: 16px;
  line-height: 1.85;
}

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

.sitemap-list {
  columns: 3;
  column-gap: 32px;
}

.content-panel ul {
  margin: 0;
  padding-left: 18px;
}

.content-panel li {
  break-inside: avoid;
  margin: 0 0 8px;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0 36px;
}

.footer-brand p,
.site-footer p {
  color: var(--stone-400);
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 18px 16px;
  color: var(--stone-500);
  text-align: center;
  border-top: 1px solid var(--stone-800);
}

.footer-bottom p {
  margin: 0;
}

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
    font-size: 14px;
  }

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

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

  .filter-count {
    grid-column: 1 / -1;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    bottom: 68px;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .two-column-sections,
  .movie-detail-layout,
  .detail-text-grid,
  .footer-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-detail-layout {
    padding: 36px 0;
  }

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

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .sitemap-list {
    columns: 1;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-actions,
  .detail-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .page-section {
    padding: 40px 0;
  }

  .content-panel {
    padding: 22px;
  }
}
