:root {
  --page-bg: #f8fafc;
  --ink: #1c1917;
  --muted: #667085;
  --line: rgba(37, 99, 235, 0.16);
  --blue: #2563eb;
  --indigo: #4f46e5;
  --purple: #7c3aed;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 32rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #eef5ff 48%, #fff7ed 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.92), rgba(238, 242, 255, 0.92), rgba(250, 245, 255, 0.92));
  border-bottom: 2px solid var(--line);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.38);
}

.brand-text strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(90deg, #1e40af, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #1e3a8a;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: #1e3a8a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 6px 0 12px;
}

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

.mobile-link {
  display: block;
  padding: 13px 16px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  isolation: isolate;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.93), rgba(30, 64, 175, 0.64), rgba(88, 28, 135, 0.54)),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.22), transparent 20rem);
}

.hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, var(--page-bg), transparent);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.62fr);
  gap: 58px;
  align-items: center;
  padding: 86px 0 126px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #dbeafe, #f5d0fe, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-movie-name {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  color: #fff;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(219, 234, 254, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.9;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, #3b82f6, #4f46e5);
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.32);
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn.ghost {
  color: #1d4ed8;
  background: #fff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  min-height: 500px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.section,
.page-hero,
.detail-layout,
.player-section {
  padding: 56px 0;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.46), transparent 24rem),
    linear-gradient(120deg, #172554, #312e81 55%, #581c87);
}

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

.page-hero p {
  max-width: 780px;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #2563eb;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2,
.section-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.section-head p,
.section-lead {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #f5d0fe);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
  filter: saturate(1.06) contrast(1.02);
}

.poster-mask {
  position: absolute;
  inset: auto 14px 14px;
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.92));
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #111827;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: #2563eb;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 0.82rem;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eff6ff;
}

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

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #6d28d9;
  background: #f5f3ff;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: #172554;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.2);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.28));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 1.28rem;
  font-weight: 900;
}

.category-tile p {
  margin: 9px 0 0;
  color: #dbeafe;
  font-size: 0.9rem;
  line-height: 1.6;
}

.filter-panel {
  margin: 36px 0;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
  font-size: 0.9rem;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.no-results {
  display: none;
  margin: 36px 0;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  color: #475569;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.no-results.show {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 72px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-weight: 900;
}

.ranking-item img {
  width: 110px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ranking-info .movie-meta {
  margin-top: 10px;
}

.detail-top {
  padding: 42px 0;
  color: #fff;
  background: linear-gradient(120deg, #0f172a, #1e3a8a, #581c87);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  background: linear-gradient(135deg, #dbeafe, #f5d0fe);
}

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

.detail-title h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.detail-title p {
  max-width: 820px;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-size: 2.1rem;
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.42);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.5);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.article-card,
.side-card {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.article-card p {
  color: #475569;
  line-height: 1.9;
  font-size: 1.02rem;
}

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

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

.info-list dt {
  color: #64748b;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  text-align: right;
}

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

.site-footer {
  margin-top: 56px;
  padding: 48px 0 0;
  color: #bfdbfe;
  background: linear-gradient(135deg, #0f172a, #172554 55%, #2e1065);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  font-size: 1.45rem;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #dbeafe;
  font-size: 1.08rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin-bottom: 10px;
  color: #bfdbfe;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px;
  text-align: center;
  color: #93c5fd;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

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

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

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

  .hero-poster {
    max-width: 420px;
    min-height: auto;
  }

  .hero-poster img {
    min-height: auto;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand-text strong {
    font-size: 1.14rem;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    padding: 58px 0 110px;
    gap: 28px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .hero-poster {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 24px;
  }

  .section-head {
    display: block;
  }

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

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

  .ranking-item {
    grid-template-columns: 42px 82px 1fr;
    gap: 12px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .ranking-item img {
    width: 82px;
  }

  .ranking-item .btn {
    grid-column: 1 / -1;
  }

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

  .detail-cover {
    max-width: 240px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
