:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --bronze-800: #846358;
  --bronze-700: #977669;
  --bronze-600: #a18072;
  --bronze-500: #b49486;
  --bronze-400: #d2bab0;
  --bronze-100: #f2e8e5;
  --bronze-50: #fdf8f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(28, 25, 23, 0.16);
  --radius: 18px;
  --wrap: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.wrap {
  width: var(--wrap);
  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 16px 35px rgba(12, 10, 9, 0.25);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-600));
  font-weight: 900;
  box-shadow: 0 8px 26px rgba(161, 128, 114, 0.4);
}

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

.brand-text strong,
.footer-brand strong {
  font-size: 23px;
  letter-spacing: 0.04em;
}

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

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

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

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

.menu-toggle {
  display: none;
  border: 0;
  color: var(--stone-100);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--stone-800);
  padding: 14px 16px 18px;
  gap: 14px;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(210, 186, 176, 0.2), transparent 28%),
    linear-gradient(to top, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.58), rgba(12, 10, 9, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 740px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
}

.eyebrow.dark {
  color: var(--bronze-700);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p:not(.eyebrow) {
  color: var(--stone-200);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  max-width: 680px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(210, 186, 176, 0.45);
  border-radius: 999px;
  color: var(--bronze-100);
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

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

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

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

.primary-btn:hover,
.primary-btn.dark:hover {
  background: var(--bronze-700);
  transform: translateY(-2px);
}

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

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.light {
  color: var(--stone-100);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-arrow {
  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.58);
  font-size: 38px;
  line-height: 48px;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--bronze-400);
}

.intro-band {
  transform: translateY(-34px);
  margin-bottom: -8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-band h2,
.section-head h2,
.rank-title h2,
.side-panel h2,
.text-panel h2,
.movie-facts h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-band p:not(.eyebrow),
.page-hero p,
.rank-title p,
.text-panel p,
.movie-facts dd,
.category-overview-card p {
  color: var(--stone-600);
  line-height: 1.8;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

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

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

.category-card,
.category-overview-card a {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
  color: var(--stone-100);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.category-card::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -42px;
  bottom: -54px;
  border-radius: 50%;
  background: rgba(210, 186, 176, 0.18);
}

.category-card strong,
.category-overview-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-card span,
.category-overview-card p {
  position: relative;
  z-index: 1;
  color: var(--stone-300);
}

.category-overview-card span {
  position: relative;
  z-index: 1;
  color: var(--bronze-400);
  font-weight: 900;
}

.search-panel {
  margin: 0 0 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
}

.search-panel label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

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

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--stone-700);
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  border-color: var(--bronze-600);
  background: var(--bronze-600);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.movie-card:hover .poster img,
.h-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.68), transparent 55%);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  color: var(--white);
  background: var(--bronze-600);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: var(--bronze-400);
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.meta-line,
.genre-line,
.desc-line {
  margin: 0;
  line-height: 1.6;
}

.meta-line {
  color: var(--stone-500);
  font-size: 13px;
}

.genre-line {
  color: var(--bronze-700);
  font-size: 13px;
  font-weight: 800;
}

.desc-line {
  margin-top: 8px;
  color: var(--stone-600);
  font-size: 14px;
}

.movie-card.compact .desc-line {
  display: none;
}

.wide-rank {
  margin: 42px 0;
  padding: 56px 0;
  color: var(--stone-100);
  background: radial-gradient(circle at top left, rgba(210, 186, 176, 0.18), transparent 35%), var(--stone-900);
}

.rank-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.rank-title {
  position: sticky;
  top: 96px;
}

.rank-title p {
  color: var(--stone-300);
}

.rank-grid .movie-card {
  background: var(--stone-50);
}

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

.h-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.08);
}

.h-card img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.h-card strong,
.h-card em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-card strong {
  -webkit-line-clamp: 2;
  font-weight: 900;
  line-height: 1.4;
}

.h-card em {
  -webkit-line-clamp: 1;
  margin-top: 6px;
  color: var(--bronze-700);
  font-style: normal;
  font-size: 13px;
}

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

.page-hero {
  padding: 76px 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(210, 186, 176, 0.2), transparent 30%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero .wrap {
  max-width: 880px;
}

.page-hero p:not(.eyebrow) {
  color: var(--stone-200);
  font-size: 18px;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.compact-list {
  grid-template-columns: 1fr;
}

.compact-list .h-card {
  grid-template-columns: 88px 1fr;
}

.compact-list .h-card img {
  width: 88px;
  height: 68px;
}

.detail-hero {
  padding: 46px 0;
  color: var(--white);
  background: radial-gradient(circle at 30% 20%, rgba(210, 186, 176, 0.16), transparent 34%), var(--stone-950);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

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

.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-one-line {
  max-width: 760px;
  color: var(--stone-200);
  font-size: 19px;
  line-height: 1.8;
}

.player-section {
  padding: 44px 0 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--stone-950);
  box-shadow: 0 25px 65px rgba(12, 10, 9, 0.34);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(12, 10, 9, 0.82), rgba(12, 10, 9, 0.22));
  cursor: pointer;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(18px, 3vw, 30px);
  line-height: 1.3;
}

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

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

.player-error {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: #fecaca;
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.text-panel h2 + p {
  margin-top: 12px;
}

.movie-facts dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 16px;
  margin: 18px 0 0;
}

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

.movie-facts dd {
  margin: 0;
}

.pager-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pager-row a {
  flex: 1;
  padding: 18px;
  border-radius: 16px;
  color: var(--bronze-800);
  background: var(--bronze-50);
  font-weight: 800;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--stone-600);
  text-align: center;
  background: var(--white);
}

.empty-state.show {
  display: block;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 46px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--stone-100);
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: var(--stone-400);
  line-height: 1.8;
}

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

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

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

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

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

  .rank-inner,
  .two-col-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-title,
  .side-panel {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 500px;
    height: 70vh;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .section-head,
  .pager-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .h-list {
    grid-template-columns: 1fr;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card h2 {
    font-size: 15px;
  }

  .desc-line {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
