:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #162033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-100), #ffffff 24rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-700), var(--slate-900));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
}

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

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--slate-200);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-300);
  background: rgba(255, 255, 255, 0.08);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.search-board input,
.filter-bar input,
.search-board select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  outline: none;
  border-radius: 999px;
  color: var(--slate-800);
  background: var(--white);
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
}

.nav-search button,
.btn,
.rank-more {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.btn-primary,
.rank-more {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn:hover,
.nav-search button:hover,
.rank-more:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

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

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-300);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--slate-200);
  font-size: 19px;
}

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

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.46);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(14px);
}

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

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

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

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

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.quick-links a,
.category-chip,
.category-overview-card,
.rank-panel,
.detail-text article,
.search-board,
.filter-bar {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.quick-links a {
  padding: 20px;
  text-align: center;
  color: var(--slate-800);
  font-weight: 800;
}

.section-title {
  margin-bottom: 28px;
}

.section-title p {
  margin: 0 0 8px;
  color: var(--amber-500);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-title h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
}

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

.category-chip {
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-chip span,
.category-overview-card h2 {
  color: var(--slate-900);
  font-size: 21px;
  font-weight: 800;
}

.category-chip small,
.category-overview-card p {
  color: var(--slate-600);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link {
  display: grid;
  min-height: 100%;
}

.movie-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--slate-800);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-poster figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.7);
}

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

.movie-card h2,
.movie-card h3,
.rank-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 700;
  background: var(--amber-100);
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--slate-100);
  transition: background 0.2s ease;
}

.rank-list a:hover {
  background: var(--amber-100);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--slate-950);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
}

.rank-title {
  overflow: hidden;
  color: var(--slate-900);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list small {
  grid-column: 2;
  color: var(--slate-500);
}

.rank-more {
  display: inline-flex;
  margin-top: 18px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 28px;
}

.page-hero h1 {
  color: var(--slate-900);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--slate-600);
  font-size: 18px;
}

.category-overview-card {
  padding: 24px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  overflow: hidden;
  color: var(--slate-600);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--amber-600);
}

.filter-bar,
.search-board {
  margin-bottom: 24px;
  padding: 16px;
}

.filter-bar input,
.search-board input,
.search-board select {
  width: 100%;
  padding: 13px 16px;
}

.search-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px;
  gap: 12px;
}

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

.rank-card a {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  min-height: 170px;
  padding: 14px;
}

.rank-card img {
  width: 130px;
  height: 142px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--slate-950);
  font-weight: 900;
  background: var(--amber-400);
}

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

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.46));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--slate-300);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

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

.detail-meta {
  margin: 22px 0;
}

.detail-one-line {
  max-width: 760px;
  color: var(--slate-200);
  font-size: 19px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.74));
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--slate-950);
  font-size: 30px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.36);
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-text article {
  padding: 28px;
}

.detail-text h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
}

.detail-text p {
  margin: 0;
  color: var(--slate-700);
}

.empty-state {
  margin: 24px 0 0;
  color: var(--slate-500);
  text-align: center;
}

.site-footer {
  margin-top: 38px;
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
}

.footer-inner strong {
  color: var(--white);
  font-size: 20px;
}

.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
}

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

.footer-links a {
  color: var(--slate-200);
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--slate-500);
  text-align: center;
}

@media (max-width: 1080px) {
  .hero-content,
  .two-columns,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .rank-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--slate-900);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav-panel {
    display: grid;
  }

  .nav-links,
  .nav-search,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-search input {
    width: 100%;
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .quick-links,
  .search-board,
  .detail-text,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-card a {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .rank-card img {
    width: 108px;
    height: 128px;
  }
}

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

  .section-shell,
  .page-hero,
  .detail-inner,
  .nav-shell,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding: 58px 0;
  }

  .hero-summary,
  .detail-one-line {
    font-size: 16px;
  }

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