* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --card: rgba(30, 41, 59, 0.72);
  --line: rgba(251, 191, 36, 0.14);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(249, 115, 22, 0.12), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

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

.nav-search input,
.big-search input {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.big-search input {
  width: min(520px, 100%);
  padding: 15px 18px;
}

.nav-search input:focus,
.big-search input:focus {
  border-color: rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.nav-search button {
  border: 0;
  color: #111827;
  background: #fbbf24;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #f8fafc;
  border-radius: 99px;
}

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

.hero {
  position: relative;
  height: min(760px, calc(100vh - 72px));
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 38%);
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(660px, calc(100% - 32px));
  transform: translateY(-48%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 10px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: clamp(24px, 3vw, 42px);
}

.hero p,
.page-hero p,
.feature-copy p {
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: #fde68a;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.hero-tags,
.rank-tags,
.tag-cloud,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.rank-tags span,
.rank-tags a,
.tag-cloud a,
.category-samples a {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #fbbf24;
}

.section {
  padding: 64px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.feature-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #fbbf24;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.36);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.08) 66%);
  opacity: 0.68;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(251, 191, 36, 0.95);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: #fbbf24;
}

.movie-info h3 {
  margin: 10px 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p {
  min-height: 4.8em;
  margin: 0;
  color: #aeb9c9;
  line-height: 1.6;
  font-size: 14px;
}

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

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

.category-card {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.72)),
    rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-card-link {
  display: grid;
  gap: 12px;
}

.category-card-link span {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 950;
}

.category-card-link strong {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.category-samples {
  margin-top: 20px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: stretch;
  padding: 36px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(2, 6, 23, 0.88));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-copy {
  align-self: center;
}

.feature-copy p {
  margin-bottom: 24px;
}

.feature-poster {
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(251, 191, 36, 0.18);
}

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

.page-hero,
.detail-hero {
  padding: 70px 0 32px;
}

.page-hero p {
  max-width: 780px;
}

.category-page-hero .tag-cloud {
  margin-top: 22px;
}

.tag-cloud.slim a {
  font-size: 11px;
  padding: 6px 10px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
}

.rank-number {
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-radius: 18px;
  min-height: 70px;
  font-weight: 950;
  font-size: 22px;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fbbf24;
  font-weight: 900;
}

.rank-title {
  color: #f8fafc;
  font-size: 18px;
}

.rank-body p {
  margin: 8px 0 10px;
  color: #aeb9c9;
  line-height: 1.55;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 38px;
  align-items: end;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-copy .lead {
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.8;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
}

.detail-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-facts strong {
  color: #f8fafc;
  line-height: 1.4;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  box-shadow: var(--shadow);
}

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

.player-section {
  padding: 26px 0 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #f8fafc;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.16));
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-radius: 50%;
  box-shadow: 0 20px 55px rgba(245, 158, 11, 0.32);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0 44px;
}

.detail-panel {
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 24px;
}

.detail-panel h2 {
  margin: 0 0 14px;
  color: #fde68a;
}

.detail-panel p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.95;
}

.big-search {
  margin-top: 28px;
  align-items: stretch;
}

.search-hero {
  padding-bottom: 20px;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(251, 191, 36, 0.12);
  background: rgba(2, 6, 23, 0.76);
}

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

.footer-logo {
  color: #fbbf24;
  font-size: 22px;
}

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

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

.footer-links a {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 13px;
}

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

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

  .rank-list.compact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(251, 191, 36, 0.16);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-search {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero {
    min-height: 640px;
  }

  .hero-content {
    top: 54%;
  }

  .movie-grid.four,
  .movie-grid.three,
  .category-grid,
  .category-grid.wide,
  .feature-layout,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 620px;
  }

  .section {
    padding: 44px 0;
  }

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

  .movie-grid.four,
  .movie-grid.three {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 52px 98px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-body p,
  .rank-tags {
    display: none;
  }

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

  .big-search {
    flex-direction: column;
  }
}
