:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --bronze-50: #fdf8f6;
  --bronze-100: #f6ebe6;
  --bronze-200: #eadbd7;
  --bronze-400: #d2bab0;
  --bronze-600: #a18072;
  --bronze-700: #8f6f63;
  --bronze-800: #846358;
  --shadow-sm: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 18px 48px rgba(28, 25, 23, 0.14);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(28, 25, 23, 0.96);
  color: #fff;
  box-shadow: 0 18px 40px rgba(12, 10, 9, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-700));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(161, 128, 114, 0.35);
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  position: relative;
  color: var(--stone-300);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--bronze-400);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-link {
  padding: 12px 4px;
  color: var(--stone-200);
  font-weight: 700;
}

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

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

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

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

.hero-slide.active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.01);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.65) 42%, rgba(12, 10, 9, 0.2) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(210, 186, 176, 0.18);
  color: var(--bronze-200);
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.hero-actions,
.hero-meta,
.card-meta,
.detail-tags,
.breadcrumb,
.category-samples,
.filter-selects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 22px;
}

.hero-meta span,
.detail-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--stone-100);
  font-size: 13px;
  font-weight: 700;
}

.hero-btn,
.section-more,
.primary-link,
.filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--bronze-600);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(161, 128, 114, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn.secondary,
.primary-link.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.hero-btn:hover,
.section-more:hover,
.primary-link:hover,
.filter-submit:hover {
  transform: translateY(-2px);
  background: var(--bronze-700);
  box-shadow: 0 18px 36px rgba(161, 128, 114, 0.34);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.48);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(12, 10, 9, 0.74);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  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.active {
  width: 34px;
  background: var(--bronze-400);
}

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

.main-wrap {
  padding: 56px 0 72px;
}

.page-wrap {
  padding: 42px 0 72px;
}

.content-section {
  margin-top: 62px;
}

.content-section:first-child {
  margin-top: 0;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--bronze-700);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--stone-600);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.74), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-region,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 30px;
  background: rgba(12, 10, 9, 0.76);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.card-meta {
  justify-content: space-between;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-visual {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  background: var(--stone-200);
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover .category-visual img {
  transform: scale(1.08);
}

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

.category-visual span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.category-content {
  padding: 20px;
}

.category-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

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

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bronze-50);
  color: var(--bronze-800);
  font-size: 12px;
  font-weight: 750;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.compact-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compact-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bronze-100);
  color: var(--bronze-800);
  font-weight: 900;
}

.compact-link strong {
  color: var(--stone-900);
}

.compact-link small {
  color: var(--stone-500);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 24px 0 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--stone-50);
  color: var(--stone-800);
  font: inherit;
  outline: none;
}

.filter-input {
  padding: 0 16px;
}

.filter-select {
  min-width: 132px;
  padding: 0 12px;
}

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

.empty-state {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  color: var(--stone-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.detail-hero {
  align-items: center;
}

.detail-title {
  max-width: 820px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-md);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.25));
  color: #fff;
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bronze-600);
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(18px, 2vw, 26px);
  text-align: center;
}

.detail-panel,
.detail-side,
.text-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.detail-panel {
  margin-top: 24px;
}

.detail-panel h2,
.detail-side h2,
.text-panel h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 24px;
  font-weight: 900;
}

.detail-panel p,
.text-panel p {
  margin: 0 0 16px;
  color: var(--stone-700);
}

.detail-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--stone-100);
}

.detail-row span:first-child {
  color: var(--stone-500);
  font-weight: 800;
}

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

.side-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--stone-50);
}

.side-card img {
  width: 86px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--stone-200);
}

.side-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-900);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-card small {
  color: var(--stone-500);
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr;
  gap: 34px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  color: var(--stone-400);
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stone-500);
  font-size: 14px;
  text-align: center;
}

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

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

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

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

  .site-header-inner {
    min-height: 66px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-control {
    display: none;
  }

  .section-heading,
  .page-hero,
  .detail-hero {
    display: block;
  }

  .section-more {
    margin-top: 16px;
  }

  .movie-grid,
  .category-grid,
  .rank-layout,
  .detail-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .compact-link {
    grid-template-columns: 40px 1fr;
  }

  .compact-link small {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 16px;
  }

  .card-body {
    padding: 14px;
  }

  .detail-panel,
  .detail-side,
  .text-panel {
    padding: 18px;
  }
}
