:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --yellow-400: #facc15;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --text: #1f2937;
  --muted: #64748b;
  --card: #ffffff;
  --ring: rgba(249, 115, 22, 0.28);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-xl: 1.4rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
  font-weight: 900;
  color: #fff;
}

.logo-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: #cbd5e1;
  white-space: nowrap;
}

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

.nav-links a {
  padding: 10px 18px;
  border-radius: 12px;
  color: #e5e7eb;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--orange-500);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.26);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 10px;
  color: #e5e7eb;
  font-weight: 700;
}

.mobile-panel a:hover,
.mobile-panel a.active {
  background: var(--orange-500);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(249, 115, 22, 0.32), transparent 28%),
    radial-gradient(circle at 86% 70%, rgba(59, 130, 246, 0.24), transparent 30%),
    linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 52%, #7c2d12 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.24;
  pointer-events: none;
}

.hero::before {
  top: 58px;
  left: 8%;
  background: var(--orange-500);
}

.hero::after {
  right: 7%;
  bottom: 40px;
  background: var(--blue-500);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 72px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.4);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  gap: 12px;
  width: min(640px, 100%);
  margin-top: 28px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
}

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

.hero-search input::placeholder {
  color: #cbd5e1;
}

.hero-showcase {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: 0.55s ease;
  pointer-events: none;
}

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

.hero-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(16px);
}

.hero-card-media {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #111827;
}

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

.hero-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-card-body {
  padding: 24px;
  background: #fff;
  color: var(--text);
}

.hero-card-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.hero-card-desc {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 34px;
  background: var(--orange-400);
}

.section {
  padding: 76px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.section-dark {
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--text);
}

.section-dark .section-title {
  color: #fff;
}

.section-desc {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-desc {
  color: #cbd5e1;
}

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

.stat-card,
.category-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.stat-card:hover,
.category-card:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.18);
}

.stat-icon,
.category-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  font-size: 1.35rem;
  font-weight: 900;
}

.stat-card h3,
.category-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.stat-card p,
.category-card p {
  margin: 0;
  color: var(--muted);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.movie-poster {
  position: relative;
  height: 278px;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.72) 100%);
}

.movie-year,
.movie-kind {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-year {
  right: 12px;
  background: var(--orange-500);
}

.movie-kind {
  left: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.movie-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.25s ease;
}

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

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.06rem;
  line-height: 1.32;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-hot {
  color: #9a3412;
  background: #ffedd5;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  min-height: 142px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.rank-index {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.rank-body {
  padding: 16px 16px 16px 0;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.rank-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.filter-panel {
  padding: 24px;
  margin-bottom: 34px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: #111827;
  background: #f8fafc;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px var(--ring);
  background: #fff;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  padding: 54px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.16;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.05rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.64)),
    var(--detail-bg);
  background-position: center;
  background-size: cover;
  padding: 64px 0;
}

.detail-hero h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.12;
}

.detail-lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 1.1rem;
}

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

.detail-poster-card,
.content-card,
.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.detail-poster-info {
  padding: 20px;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.player-card {
  margin-bottom: 24px;
}

.player-head {
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700));
}

.player-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.player-wrap {
  position: relative;
  background: #000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.45);
  font-size: 2rem;
  transform: scale(1);
  transition: 0.25s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.content-card {
  padding: 26px;
  margin-bottom: 24px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 1.02rem;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0 34px;
}

.footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
}

.footer-grid p,
.footer-grid li {
  color: #94a3b8;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--orange-400);
}

.copyright {
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  text-align: center;
}

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

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

  .hero-showcase {
    min-height: 520px;
  }

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

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

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

  .detail-poster-card {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .navbar {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.open .mobile-panel {
    display: block;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 0 58px;
  }

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

  .hero-showcase {
    min-height: 485px;
  }

  .hero-card-media {
    height: 290px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

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

  .movie-poster {
    height: 320px;
  }

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

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

  .play-button {
    width: 72px;
    height: 72px;
  }
}
