:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #171717;
  --panel-soft: #1f1f1f;
  --line: #2a2a2a;
  --muted: #a3a3a3;
  --muted-dark: #737373;
  --text: #f5f5f5;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(23, 23, 23, 0.94);
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  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;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  color: #171717;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #d4d4d4;
  transition: 0.25s ease;
}

.nav-link {
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: var(--amber);
  color: #171717;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #262626;
  color: #fff;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 11px 12px;
  justify-content: flex-start;
}

.page-main {
  min-height: 70vh;
  padding-top: 72px;
}

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

.page-stack {
  display: grid;
  gap: 76px;
  padding: 64px 0;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

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

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

.hero-image,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(245, 158, 11, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: max(16px, calc((100vw - var(--max)) / 2));
  width: min(640px, calc(100% - 32px));
  transform: translateY(-50%);
}

.hero-badges,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #171717;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  color: #d4d4d4;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 720px;
}

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

.small-actions {
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--amber);
  color: #171717;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(38, 38, 38, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.hero-search {
  display: flex;
  width: min(520px, 100%);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  background: transparent;
  color: #fff;
}

.hero-search button {
  border: 0;
  padding: 0 18px;
  background: var(--amber);
  color: #171717;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: 0.25s ease;
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  color: var(--amber);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber);
}

.content-section {
  display: grid;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2,
.page-hero h1,
.content-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.7);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.76));
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
}

.rank-badge {
  left: 12px;
  background: var(--amber);
  color: #171717;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-dark);
  font-size: 12px;
}

.card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  transition: 0.25s ease;
}

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

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

.tag-row span {
  min-height: 24px;
  padding: 2px 9px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 12px;
}

.large-tags span {
  min-height: 30px;
  font-size: 13px;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.scroll-item {
  width: 286px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.category-tile,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 0, rgba(245, 158, 11, 0.16), transparent 38%),
    var(--panel);
  transition: 0.25s ease;
}

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 20px;
}

.category-tile:hover,
.category-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}

.category-tile strong,
.category-card h2 {
  color: #fff;
  font-size: 20px;
}

.category-tile span,
.category-card p {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(135deg, #111 0%, #050505 54%, #1f1604 100%);
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  padding: 74px 0 66px;
}

.ranking-hero {
  background:
    radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(135deg, #050505, #171717);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.78);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  flex: 1 1 320px;
}

.select-box {
  flex: 0 1 190px;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px;
  background: #0f0f0f;
  color: #fff;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--amber);
}

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

.category-card {
  padding: 24px;
}

.category-card h2 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0;
}

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

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
  font-size: 13px;
}

.category-samples a:hover {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #000;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.78));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 36px;
  padding-bottom: 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumbs strong {
  color: #fff;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lead-text {
  max-width: 820px;
  margin: 0 0 22px;
  color: #dedede;
  font-size: 19px;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.detail-copy .btn {
  margin-top: 28px;
}

.detail-stack {
  gap: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  transition: 0.25s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  color: #171717;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.34);
}

.content-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.content-panel h2 {
  margin-bottom: 18px;
}

.article-text {
  display: grid;
  gap: 16px;
  color: #d4d4d4;
  font-size: 17px;
}

.article-text p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080808;
}

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

.footer-logo {
  margin-bottom: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.footer-links strong {
  color: #fff;
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 13px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    top: 52%;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .detail-poster {
    width: min(250px, 70vw);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-copy em {
    display: none;
  }

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

  .page-stack {
    gap: 52px;
    padding: 42px 0;
  }

  .hero {
    height: auto;
    min-height: 650px;
  }

  .hero-content {
    top: 54%;
  }

  .hero-actions,
  .hero-search,
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .hero-search button {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .scroll-item {
    width: 78vw;
  }

  .detail-hero {
    min-height: auto;
  }

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

  .content-panel {
    padding: 22px;
  }
}
