: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;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--stone-100);
  background: rgba(28, 25, 23, 0.95);
  border-bottom: 1px solid rgba(245, 245, 244, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--stone-300);
  font-size: 15px;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-500);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--stone-100);
  background: transparent;
  border: 1px solid rgba(245, 245, 244, 0.14);
  border-radius: 12px;
}

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

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(245, 245, 244, 0.08);
}

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

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

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

.hero-slide {
  display: flex;
  align-items: flex-end;
  padding: clamp(40px, 8vw, 100px);
  background-image: linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.62), rgba(12, 10, 9, 0.2)), var(--hero);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-layer {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, var(--stone-950), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-content h1 {
  max-width: 980px;
  font-size: clamp(34px, 5.5vw, 76px);
}

.hero-content h2 {
  margin-top: 14px;
  color: var(--amber-400);
  font-size: clamp(24px, 3.2vw, 44px);
}

.hero-content p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--stone-300);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

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

.hero-tags span,
.detail-meta span {
  color: var(--stone-200);
  background: rgba(245, 245, 244, 0.1);
  border: 1px solid rgba(245, 245, 244, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-button {
  color: var(--stone-950);
  background: var(--amber-500);
}

.primary-button:hover,
.panel-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  background: var(--amber-600);
}

.ghost-button {
  color: var(--stone-100);
  border: 1px solid rgba(245, 245, 244, 0.22);
}

.ghost-button:hover {
  color: var(--stone-950);
  background: var(--stone-100);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.55);
  border: 1px solid rgba(245, 245, 244, 0.16);
  border-radius: 999px;
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 44px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  background: var(--amber-500);
}

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

.content-section.tight {
  padding: 64px 0;
}

.content-section.slim {
  padding-top: 24px;
}

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

.section-heading h2,
.ranking-panel h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(41, 37, 36, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover,
.detail-poster,
.mini-cover {
  background-image: linear-gradient(135deg, rgba(28, 25, 23, 0.18), rgba(245, 158, 11, 0.3)), var(--poster);
  background-position: center;
  background-size: cover;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(12, 10, 9, 0.72));
}

.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(12, 10, 9, 0.78);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.year-pill {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: var(--amber-500);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.card-body.compact {
  padding: 15px;
}

.card-body h3 {
  margin: 0;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.meta-row {
  justify-content: space-between;
  color: var(--stone-500);
}

.meta-row span,
.tag-row span {
  background: var(--stone-100);
}

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

.category-band {
  background: linear-gradient(135deg, #fffbeb, var(--stone-100));
  border-block: 1px solid rgba(41, 37, 36, 0.06);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card-large {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(41, 37, 36, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.category-tile {
  min-height: 160px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(28, 25, 23, 0.16);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  color: var(--stone-900);
  font-size: 22px;
}

.category-tile span,
.category-card-large p {
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--stone-900);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
  color: var(--stone-100);
  margin-bottom: 20px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.ranking-list .mini-card {
  color: var(--stone-900);
  background: var(--white);
  border-color: rgba(41, 37, 36, 0.08);
  box-shadow: var(--shadow-card);
}

.mini-cover {
  width: 76px;
  height: 58px;
  border-radius: 12px;
}

.mini-copy {
  min-width: 0;
}

.mini-copy strong {
  display: block;
  overflow: hidden;
  color: var(--stone-100);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list .mini-copy strong {
  color: var(--stone-900);
}

.mini-copy em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--stone-400);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list .mini-copy em {
  color: var(--stone-600);
}

.mini-rank {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 999px;
  font-weight: 900;
}

.panel-more,
.text-link {
  margin-top: 18px;
  color: var(--stone-950);
  background: var(--amber-500);
}

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 80px max(24px, calc((100vw - 1180px) / 2)) 64px;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 64px);
}

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

.breadcrumb,
.breadcrumbs {
  color: var(--amber-400);
  font-weight: 700;
}

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

.category-card-large {
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sample-links a {
  padding: 7px 10px;
  color: var(--stone-700);
  background: var(--stone-100);
  border-radius: 999px;
  font-size: 13px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(41, 37, 36, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.search-box {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.search-box.wide {
  flex: 1 1 360px;
}

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

input:focus,
select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.detail-hero {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  min-height: 560px;
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: radial-gradient(circle at 12% 22%, rgba(245, 158, 11, 0.35), transparent 32%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.detail-poster {
  aspect-ratio: 2 / 3;
  width: min(100%, 420px);
  border: 1px solid rgba(245, 245, 244, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 68px);
}

.detail-copy .lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--stone-300);
  font-size: 20px;
  line-height: 1.75;
}

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

.tag-row.large {
  margin-top: 18px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(245, 245, 244, 0.16);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--white);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), rgba(12, 10, 9, 0.82));
  border: 0;
  cursor: pointer;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-ring {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.38);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.detail-article,
.detail-side {
  background: var(--white);
  border: 1px solid rgba(41, 37, 36, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 28px;
}

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

.detail-side {
  padding: 26px;
}

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

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

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

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

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

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

.footer-brand {
  color: var(--stone-100);
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  color: var(--stone-400);
  line-height: 1.8;
}

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

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

.site-footer a:hover {
  color: var(--amber-500);
}

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

.hidden-card {
  display: none;
}

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

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

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

  .ranking-panel {
    position: static;
  }

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

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

  .menu-button {
    display: block;
  }

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

  .hero-slide {
    padding: 88px 22px 76px;
  }

  .hero-control {
    display: none;
  }

  .hero-dots {
    right: 22px;
    bottom: 24px;
  }

  .section-heading {
    display: block;
  }

  .featured-grid,
  .compact-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    min-height: 300px;
    padding-top: 54px;
  }

  .detail-hero {
    padding-top: 48px;
    padding-bottom: 76px;
  }

  .player-section {
    margin-top: -38px;
  }

  .detail-article {
    padding: 24px;
  }
}
