:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111c31;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--slate-950);
  color: var(--slate-300);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(51, 65, 85, 0.78);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

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

.brand-text {
  font-size: 1.12rem;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--slate-300);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-300);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 1.1s ease;
  pointer-events: none;
}

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

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
}

.hero-shade {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.25), transparent 32%),
    linear-gradient(to top, #020617 4%, rgba(2, 6, 23, 0.76) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.52) 48%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-content {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 120px;
}

.hero-copy {
  width: min(760px, 100%);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-400);
  font-size: 0.86rem;
  font-weight: 650;
}

.hero h1,
.page-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.category-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 0;
  color: var(--slate-300);
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  color: var(--slate-400);
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before,
.detail-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber-500);
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
  background: var(--amber-500);
  color: var(--slate-900);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.22);
}

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

.btn-ghost {
  color: var(--white);
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.7);
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.38);
}

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

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

.hero-category-strip a {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.hero-category-strip strong,
.hero-category-strip span {
  display: block;
}

.hero-category-strip strong {
  color: var(--white);
}

.hero-category-strip span {
  overflow: hidden;
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-section {
  padding: 72px 0;
}

.section-slate {
  background: var(--slate-900);
}

.section-deep {
  background: var(--slate-950);
}

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

.section-heading h2,
.prose-block h2,
.player-card h2,
.detail-side h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.16;
}

.section-heading p,
.prose-block p {
  margin: 0;
  color: var(--slate-400);
}

.text-link {
  color: var(--amber-400);
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-link,
.category-card a,
.rank-link {
  display: block;
  height: 100%;
}

.poster-link {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 18px;
  background: var(--slate-800);
  transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.poster-link:hover {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1220;
}

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

.poster-link:hover img {
  transform: scale(1.08);
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--amber-400);
  background: rgba(15, 23, 42, 0.82);
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 10px;
  left: 10px;
}

.poster-year {
  right: 10px;
  bottom: 10px;
  color: var(--slate-300);
}

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

.movie-title {
  overflow: hidden;
  color: var(--white);
  font-size: 1.06rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.poster-link:hover .movie-title,
.rank-link:hover strong {
  color: var(--amber-400);
}

.movie-meta {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-300);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rail {
  display: grid;
  grid-auto-columns: minmax(280px, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.rail .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.75));
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-3px);
}

.category-tile span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.category-tile em {
  overflow: hidden;
  color: var(--slate-400);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.72);
  transition: border 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateX(4px);
}

.rank-num {
  color: var(--amber-400);
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-link img {
  width: 76px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  color: var(--white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 0.86rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 24px;
  background: var(--slate-800);
  box-shadow: var(--shadow);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.12));
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card div {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.spotlight-card span {
  color: var(--amber-400);
  font-weight: 800;
}

.spotlight-card h2 {
  margin: 10px 0;
  color: var(--white);
  font-size: 2rem;
}

.spotlight-card p {
  color: var(--slate-300);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.76);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--slate-400);
  font-size: 0.84rem;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px;
  background: rgba(2, 6, 23, 0.55);
  color: var(--white);
}

.search-box input:focus,
.select-box select:focus {
  border-color: rgba(245, 158, 11, 0.62);
}

.quick-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(30, 41, 59, 0.6);
  color: var(--slate-300);
}

.chip.active,
.chip:hover {
  border-color: rgba(245, 158, 11, 0.62);
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
}

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

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--slate-950);
}

.page-hero::before,
.category-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    radial-gradient(circle at 24% 20%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 1));
}

.category-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image), var(--detail-image);
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: blur(1px);
}

.page-hero .container,
.category-hero-inner,
.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-400);
  font-size: 0.92rem;
}

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

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

.category-card a {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 22px;
  background: var(--slate-800);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.24));
}

.category-card span,
.category-card div {
  position: absolute;
  z-index: 2;
}

.category-card span {
  top: 18px;
  left: 18px;
  color: var(--amber-400);
  font-weight: 900;
}

.category-card div {
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.category-card h2 {
  margin: 0 0 8px;
  color: var(--white);
}

.category-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--slate-300);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-hero {
  padding-bottom: 70px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-side,
.prose-block {
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.player-card,
.detail-side {
  padding: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.18));
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--slate-900);
  font-size: 2rem;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.3);
}

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

.detail-side dt {
  color: var(--slate-400);
}

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

.prose-block {
  padding: 28px;
}

.prose-block p {
  margin-bottom: 22px;
  color: var(--slate-300);
  font-size: 1.02rem;
}

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

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.78);
  background: var(--slate-900);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
}

.footer-inner strong {
  color: var(--white);
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--slate-400);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--slate-400);
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    align-items: center;
    padding-bottom: 150px;
  }

  .hero-category-strip {
    bottom: 18px;
  }

  .movie-grid,
  .movie-grid-featured,
  .category-page-grid,
  .rank-list-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-cover {
    max-width: 420px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero,
  .hero-content {
    min-height: 660px;
  }

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

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

  .hero-category-strip a:nth-child(n + 3) {
    display: none;
  }

  .hero-controls {
    bottom: 142px;
  }

  .page-section {
    padding: 54px 0;
  }

  .section-heading,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-featured,
  .category-page-grid,
  .rank-list-full,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 42px 66px minmax(0, 1fr);
  }

  .rank-link img {
    width: 66px;
    height: 44px;
  }
}
