:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(239, 68, 68, 0.11), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: var(--container);
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand {
  font-size: 22px;
}

.brand span:last-child,
.footer-brand span:last-child {
  background: linear-gradient(135deg, #fbbf24, #fb923c 48%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.42);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 15px;
  color: var(--soft);
  overflow: hidden;
}

.main-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #fbbf24;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.95);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--soft);
}

.container,
.hero-inner,
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.hero-slide img.hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 40%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.05) 45%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  max-width: 720px;
  padding: 72px 0 94px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #fed7aa;
  font-weight: 800;
  font-size: 13px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff, #fef3c7 48%, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-actions,
.section-actions,
.filter-bar,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.55);
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.34);
}

.hero-side {
  align-self: end;
  margin-bottom: 92px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.hero-side-body {
  padding: 18px;
}

.hero-side-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-dots {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-card input,
.filter-search,
.filter-select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: 0;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
}

.search-card input::placeholder,
.filter-search::placeholder {
  color: #64748b;
}

.section {
  padding: 58px 0;
}

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

.section-kicker {
  color: #fbbf24;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.section-header p,
.page-hero p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72));
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 15px;
}

.movie-meta-line {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.movie-card h3,
.rank-info h3,
.category-card h2 {
  margin: 8px 0 8px;
  color: #fff;
  line-height: 1.25;
}

.movie-card h3 {
  font-size: 18px;
}

.movie-card p,
.rank-info p,
.category-card p,
.detail-panel p {
  color: var(--muted);
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.info-chip {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-card h2 {
  font-size: 22px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  overflow: hidden;
}

.rank-num {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.rank-poster img {
  width: 112px;
  height: 156px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h3 {
  font-size: 20px;
}

.page-hero {
  padding: 62px 0 26px;
}

.page-hero-card {
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 20rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.filter-shell {
  position: sticky;
  top: 82px;
  z-index: 20;
  padding: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(16px);
}

.filter-bar {
  align-items: stretch;
}

.filter-search {
  flex: 1 1 260px;
}

.filter-select {
  flex: 0 0 160px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.44);
  font-size: 34px;
  transform: translateX(3px);
}

.play-overlay.is-hidden {
  display: none;
}

.detail-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.76);
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-title {
  margin-bottom: 20px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

.detail-cover-card {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

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

.detail-cover-info {
  padding: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.info-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.58);
}

.info-item strong {
  display: block;
  color: #fbbf24;
  font-size: 12px;
}

.info-item span {
  color: #e2e8f0;
  font-size: 14px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 32px;
}

.site-footer p {
  max-width: 420px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.copyright {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

  .menu-toggle {
    display: flex;
  }

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

  .hero-side {
    display: none;
  }

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

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

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

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

  .hero-copy {
    padding: 64px 0 96px;
  }

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

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

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

  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 90px 1fr;
  }

  .rank-poster img {
    width: 90px;
    height: 126px;
  }

  .page-hero-card {
    padding: 24px;
  }

  .filter-shell {
    top: 78px;
  }

  .filter-select {
    flex: 1 1 140px;
  }
}

@media (max-width: 420px) {
  .nav-wrap,
  .container,
  .hero-inner,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 19px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }
}
