:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --pink: #db2777;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f9fafb;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
  font-size: 14px;
}

.brand-name {
  font-size: 25px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: rgba(37, 99, 235, 0.09);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand);
  border-radius: 999px;
}

.home-hero {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 48%, #14b8a6 100%);
  color: #fff;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.25), transparent 26%),
    radial-gradient(circle at 76% 30%, rgba(219, 39, 119, 0.22), transparent 24%),
    linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.22));
}

.hero-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 650px;
  padding: 64px 22px 100px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.hero-intro h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-intro p,
.page-hero p,
.detail-copy .lead {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero .eyebrow,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.primary-btn {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #f8fafc;
}

.ghost-btn {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.ghost-btn:hover {
  background: #fff;
  color: var(--brand);
}

.hero-stage {
  min-height: 430px;
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 220px;
  gap: 24px;
  padding: 34px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

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

.hero-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.hero-tags span,
.tag,
.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-poster {
  align-self: center;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.3);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.25s ease;
}

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

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  color: #f9fafb;
}

.wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave path {
  fill: currentColor;
}

.stat-strip,
.section-shell,
.footer-shell,
.detail-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.stat-strip {
  transform: translateY(-44px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-strip article {
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-strip strong {
  display: block;
  font-size: 30px;
  color: var(--brand);
}

.stat-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section-shell {
  padding-top: 42px;
  padding-bottom: 42px;
}

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

.section-heading.left-only {
  justify-content: flex-start;
}

.section-heading h2,
.prose-section h2,
.footer-col h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--brand);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 14px;
  padding: 16px;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 0 14px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.15);
}

.movie-card.is-hidden,
.ranking-card.is-hidden {
  display: none;
}

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

.compact-grid .poster-wrap {
  height: 220px;
}

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

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

.poster-badge,
.poster-year,
.rank-badge {
  position: absolute;
  padding: 6px 9px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  right: 12px;
  background: rgba(37, 99, 235, 0.92);
}

.poster-year {
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--pink), var(--brand));
}

.movie-info {
  padding: 17px;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #eff6ff);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.category-tile span {
  color: var(--brand);
  font-weight: 900;
}

.category-tile h2 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.hot-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.22);
}

.hot-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hot-panel h2 {
  margin: 0;
  font-size: 40px;
}

.hot-panel p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.rank-list {
  display: grid;
  gap: 9px;
  margin: 24px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.rank-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
}

.rank-row em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

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

.mini-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.mini-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.78;
  transition: 0.35s ease;
}

.mini-card:hover img {
  transform: scale(1.08);
  opacity: 0.95;
}

.mini-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4 58%, #14b8a6);
}

.compact-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 74px max(22px, calc((100vw - 1180px) / 2 + 22px));
}

.compact-hero div {
  max-width: 850px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.chip {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--brand);
  background: #eff6ff;
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 64px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13);
}

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

.ranking-card img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.ranking-card em {
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}

.detail-hero {
  padding-top: 38px;
  padding-bottom: 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  padding: 30px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #0e7490);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

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

.detail-copy h1 {
  color: #fff;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.tag-cloud .tag {
  background: rgba(255, 255, 255, 0.13);
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.3), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font: inherit;
}

.movie-player.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  font-size: 31px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.prose-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.prose-section article {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.prose-section p {
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  margin-top: 54px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1f2937);
}

.footer-shell {
  padding-top: 44px;
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo .brand-name {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.8;
  color: #94a3b8;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  font-size: 18px;
  color: #fff;
}

.footer-col a {
  color: #94a3b8;
  transition: 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1050px) {
  .hero-shell,
  .split-section,
  .detail-grid,
  .prose-section {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 500px;
  }

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

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

@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero-shell {
    padding-top: 44px;
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

  .stat-strip,
  .filter-panel,
  .footer-shell,
  .detail-meta {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    grid-template-columns: 46px 78px 1fr;
    gap: 12px;
  }

  .ranking-card img {
    width: 78px;
    height: 104px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 20px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-intro h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .compact-grid .poster-wrap {
    height: 330px;
  }

  .detail-grid {
    padding: 20px;
  }

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