:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --orange: #f97316;
  --rose: #f43f5e;
  --pink: #ec4899;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.14), transparent 30rem),
    #f8fafc;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.32);
}

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

.nav-links a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.42) 100%),
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.35), transparent 28rem),
    radial-gradient(circle at 65% 80%, rgba(236, 72, 153, 0.24), transparent 24rem);
  z-index: 1;
}

.hero-stage {
  position: relative;
  z-index: 3;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 42px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.45s ease both;
}

.hero-slide.active {
  display: block;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, #fb923c, #fb7185, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.28);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.hero .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  height: 520px;
  object-fit: cover;
}

.hero-card-stack {
  position: absolute;
  left: -36px;
  bottom: 32px;
  width: 230px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

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

.hero-dot.active {
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.section {
  padding: 58px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.05em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  margin: 26px 0 4px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 15px;
  outline: none;
}

.search-input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.84));
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.card-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-tile {
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.14);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -55px;
  top: -55px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.45), rgba(236, 72, 153, 0.3));
}

.category-tile h3,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile h3 {
  margin: 0;
  font-size: 20px;
}

.category-tile p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 70px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.rank-thumb {
  width: 62px;
  height: 82px;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f5f9;
}

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

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 62px 0 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.82)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.4), transparent 30rem);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  padding-top: 38px;
}

.player-shell {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.detail-panel {
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.detail-panel p {
  color: #475569;
  line-height: 1.9;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  background: #f1f5f9;
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.info-item strong {
  color: #0f172a;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer {
  margin-top: 72px;
  padding: 44px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 30px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-top: 0;
}

.footer p,
.footer a {
  color: #cbd5e1;
  line-height: 1.9;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 67px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
  }

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

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-poster img {
    height: 420px;
  }

  .hero-card-stack {
    position: static;
    width: auto;
    margin-top: 16px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 46px 58px 1fr;
  }

  .rank-row .button {
    grid-column: 1 / -1;
  }
}
