:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 80px rgba(12, 10, 9, 0.16);
  --shadow-card: 0 18px 45px rgba(12, 10, 9, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

.image-missing {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.96);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(68, 64, 60, 0.8);
  backdrop-filter: blur(18px);
}

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

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(68, 64, 60, 0.55);
  padding: 9px;
}

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

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.22), transparent 30%), var(--stone-950);
  color: white;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.06);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.62) 48%, rgba(12, 10, 9, 0.16) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.95), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 90vh;
  margin: 0 auto;
  display: grid;
  align-content: end;
  padding: 110px 0 74px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h2 {
  font-size: clamp(36px, 6vw, 66px);
}

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

.hero-meta,
.detail-meta,
.card-meta {
  color: var(--stone-500);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--stone-300);
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.82);
  color: var(--stone-200);
  padding: 6px 11px;
  font-size: 13px;
}

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

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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;
}

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

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

.btn:hover {
  background: var(--amber-600);
}

.btn-secondary {
  background: rgba(250, 250, 249, 0.12);
  color: white;
  border: 1px solid rgba(250, 250, 249, 0.18);
}

.hero-rail {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 74px;
  z-index: 3;
  width: min(360px, 32vw);
  display: grid;
  gap: 12px;
}

.hero-rail a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(250, 250, 249, 0.12);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.68);
  backdrop-filter: blur(14px);
}

.hero-rail img,
.compact-item img {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.hero-rail strong,
.compact-item strong {
  display: block;
  color: white;
  line-height: 1.3;
}

.hero-rail small,
.compact-item small {
  display: block;
  margin-top: 5px;
  color: var(--stone-400);
}

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

.hero-dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.32);
}

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

.main-section,
.page-hero,
.detail-layout,
.player-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.main-section {
  padding: 64px 0;
}

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

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

.section-heading p,
.page-hero p,
.detail-summary,
.detail-review {
  color: var(--stone-500);
  line-height: 1.85;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.7);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 28px 70px rgba(12, 10, 9, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.32), transparent 28%), linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0) 52%);
}

.card-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  bottom: 12px;
  background: var(--amber-500);
  color: var(--stone-950);
  padding: 5px 10px;
  font-size: 12px;
}

.rank-no {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  justify-content: center;
  background: rgba(12, 10, 9, 0.78);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.36;
}

.movie-card h3 a:hover {
  color: var(--amber-600);
}

.card-meta {
  margin: 8px 0 0;
  font-size: 13px;
}

.card-line {
  min-height: 50px;
  margin: 12px 0 14px;
  color: var(--stone-700);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  background: var(--stone-100);
  color: var(--stone-700);
}

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

.category-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
  color: white;
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 126px;
  height: 126px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
}

.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--stone-300);
  line-height: 1.75;
}

.category-card span {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: var(--amber-400);
  font-weight: 800;
}

.page-hero {
  padding: 54px 0 30px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  margin: 24px 0 34px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-card);
}

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

.filter-panel button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--stone-900);
  color: white;
  padding: 0 20px;
  font-weight: 800;
}

.no-results {
  display: none;
  padding: 24px;
  border-radius: 18px;
  background: var(--stone-100);
  color: var(--stone-500);
}

.no-results.is-visible {
  display: block;
}

.detail-shell {
  background: linear-gradient(180deg, var(--stone-950), var(--stone-900));
  color: white;
}

.player-page {
  padding: 46px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--stone-400);
  font-size: 14px;
}

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

.player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: black;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), black);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.play-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 150px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.32);
}

.detail-panel {
  border: 1px solid rgba(250, 250, 249, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(28, 25, 23, 0.76);
  padding: 24px;
}

.detail-title {
  color: white;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-meta span {
  background: rgba(250, 250, 249, 0.1);
  color: var(--stone-200);
}

.detail-summary {
  color: var(--stone-300);
}

.content-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-card);
}

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

.content-card p {
  color: var(--stone-700);
  line-height: 1.95;
}

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

.compact-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--stone-900);
}

.compact-item strong {
  color: var(--stone-100);
}

.site-footer {
  margin-top: 40px;
  background: var(--stone-950);
  color: var(--stone-400);
}

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

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

.footer-inner p {
  max-width: 620px;
  line-height: 1.85;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(68, 64, 60, 0.72);
  text-align: center;
}

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

  .hero-rail {
    display: none;
  }

  .player-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    width: min(100% - 24px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 24px;
    background: rgba(12, 10, 9, 0.98);
    border-bottom: 1px solid var(--stone-800);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid rgba(68, 64, 60, 0.55);
  }

  .hero-content {
    padding: 90px 0 70px;
  }

  .hero h1,
  .hero h2 {
    letter-spacing: -0.035em;
  }

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

  .section-heading,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filter-panel button {
    width: 100%;
  }
}

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

  .movie-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .poster-link {
    aspect-ratio: auto;
    min-height: 176px;
  }

  .card-line {
    min-height: auto;
  }
}
