:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: #292524;
  --line: #44403c;
  --text: #fafaf9;
  --muted: #a8a29e;
  --faint: #78716c;
  --amber: #d97706;
  --amber-soft: #f59e0b;
  --red: #991b1b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.16), transparent 28rem), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 9, 0.88);
  border-bottom: 1px solid rgba(68, 64, 60, 0.85);
  backdrop-filter: blur(18px);
}

.site-nav {
  max-width: 80rem;
  margin: 0 auto;
  height: 4.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  font-size: 1.25rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--red));
  color: #fff;
  box-shadow: 0 0 30px rgba(217, 119, 6, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #d6d3d1;
  font-weight: 600;
}

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

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
}

.menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  margin: 0.25rem auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(68, 64, 60, 0.8);
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav.open {
  display: grid;
  gap: 0.5rem;
}

.mobile-nav-link {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(41, 37, 36, 0.72);
  color: #e7e5e4;
}

.hero {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(68, 64, 60, 0.7);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.7s ease, transform 5s ease;
  filter: blur(7px) saturate(0.72);
}

.hero-bg.active {
  opacity: 0.32;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.78) 48%, rgba(12, 10, 9, 0.92)), radial-gradient(circle at 78% 15%, rgba(217, 119, 6, 0.24), transparent 20rem);
}

.hero-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 42rem;
  padding: 5.5rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #fbbf24;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-main-copy h1 {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(2.45rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-main-copy p {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #d6d3d1;
  font-size: 1.12rem;
  line-height: 1.85;
}

.hero-actions,
.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.filter-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #d97706, #991b1b);
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(153, 27, 27, 0.26);
}

.ghost-button {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(41, 37, 36, 0.74);
  color: #fde68a;
}

.primary-button:hover,
.ghost-button:hover,
.filter-controls button:hover {
  transform: translateY(-2px);
}

.hero-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-category-row a,
.chip,
.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.64);
  color: #d6d3d1;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
}

.hero-carousel {
  position: relative;
  min-height: 34rem;
  border: 1px solid rgba(68, 64, 60, 0.85);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.82), rgba(28, 25, 23, 0.95));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  display: grid;
  grid-template-rows: 21rem 1fr;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.98));
}

.hero-slide-copy {
  padding: 1.35rem;
}

.hero-slide-copy h2 {
  margin: 0 0 0.7rem;
  font-size: 1.65rem;
}

.hero-slide-copy p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.5);
  cursor: pointer;
}

.hero-dot.active {
  width: 2rem;
  background: #f59e0b;
}

.page-wrap,
.detail-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.content-section {
  margin-bottom: 4rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.section-heading > span {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
}

.section-heading h2,
.detail-article h1,
.side-card h2,
.category-overview-card h2 {
  margin: 0;
}

.section-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

.category-card,
.category-overview-card,
.filter-panel,
.side-card,
.detail-article section {
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.88), rgba(28, 25, 23, 0.95));
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.category-card {
  padding: 1.25rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card span {
  font-size: 1.25rem;
  font-weight: 800;
}

.category-card p {
  color: var(--muted);
  line-height: 1.65;
}

.category-card em,
.text-link {
  color: #fbbf24;
  font-style: normal;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 1rem;
  background: rgba(28, 25, 23, 0.92);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: #1c1917;
  overflow: hidden;
}

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

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

.play-float,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.play-float {
  left: 50%;
  top: 50%;
  min-width: 4rem;
  min-height: 2.25rem;
  padding: 0 1rem;
  transform: translate(-50%, -40%);
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.rank-badge {
  top: 0.65rem;
  left: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: #b91c1c;
  color: #fff;
}

.movie-card-body {
  padding: 0.85rem;
}

.movie-title {
  display: -webkit-box;
  min-height: 2.75rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: #fbbf24;
}

.movie-meta,
.movie-desc {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.movie-desc {
  display: -webkit-box;
  min-height: 2.65rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.chip {
  padding: 0.25rem 0.55rem;
  font-size: 0.76rem;
}

.chip.muted {
  color: #a8a29e;
}

.filter-panel {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.compact-heading {
  margin-bottom: 1rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 11rem 12rem auto;
  gap: 0.8rem;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(68, 64, 60, 0.95);
  border-radius: 0.85rem;
  background: #0c0a09;
  color: var(--text);
  padding: 0 0.9rem;
  outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(245, 158, 11, 0.8);
}

.filter-controls button {
  min-height: 3rem;
  border: 0;
  background: var(--amber);
  color: #fff;
}

.empty-state {
  display: none;
  margin: 1rem 0 0;
  color: var(--muted);
}

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

.hidden-by-filter {
  display: none !important;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.95), rgba(12, 10, 9, 0.96)), radial-gradient(circle at top right, rgba(217, 119, 6, 0.22), transparent 24rem);
  border-bottom: 1px solid rgba(68, 64, 60, 0.7);
}

.sub-hero > div {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.sub-hero h1 {
  margin: 0;
  max-width: 50rem;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 44rem;
  color: #d6d3d1;
  line-height: 1.8;
  font-size: 1.08rem;
}

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

.category-overview-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: center;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.65rem;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.5rem;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.85);
  border-radius: 1.3rem;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-box video,
.player-layer,
.player-layer img {
  width: 100%;
  height: 100%;
}

.player-box video {
  display: block;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

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

.player-layer img {
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.82);
}

.player-layer:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent, rgba(0, 0, 0, 0.58));
}

.player-layer button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 5rem;
  height: 5rem;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #991b1b);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.detail-article {
  padding-top: 1.5rem;
}

.detail-article h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.detail-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: #fde68a;
}

.detail-article section {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.detail-article h2,
.side-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.detail-article p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.9;
}

.detail-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.side-card {
  padding: 1rem;
}

.poster-side img {
  width: 100%;
  border-radius: 0.85rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mini-list {
  display: grid;
  gap: 0.75rem;
}

.related-mini {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.7rem;
  align-items: center;
}

.related-mini img {
  width: 5rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.55rem;
}

.related-mini strong,
.related-mini em {
  display: block;
}

.related-mini strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.related-mini em {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.site-footer {
  border-top: 1px solid rgba(68, 64, 60, 0.8);
  background: rgba(12, 10, 9, 0.9);
}

.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer a {
  display: block;
}

.site-footer a:hover {
  color: #fbbf24;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
}

.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  border-top: 1px solid rgba(68, 64, 60, 0.65);
  color: var(--faint);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 32rem;
  }

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 3.5rem;
    gap: 2rem;
  }

  .hero-carousel {
    min-height: 31rem;
  }

  .hero-slide {
    grid-template-rows: 18rem 1fr;
  }

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

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

  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-poster-stack {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 460px) {
  .site-nav {
    height: 4rem;
  }

  .brand {
    font-size: 1rem;
  }

  .hero-main-copy h1,
  .sub-hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-actions,
  .hero-slide-actions {
    display: grid;
  }

  .movie-grid {
    gap: 0.7rem;
  }

  .movie-card-body {
    padding: 0.7rem;
  }
}
