:root {
  --bg: #f7f9ff;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --purple: #9333ea;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  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(37, 99, 235, .12), transparent 34rem),
    linear-gradient(180deg, #f9fbff 0%, #eef5ff 38%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, .26);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475467;
  font-weight: 650;
  transition: .2s ease;
}

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

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  opacity: .6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, .95), rgba(15, 23, 42, .72) 46%, rgba(15, 23, 42, .25)),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .42), transparent 25rem),
    radial-gradient(circle at 80% 10%, rgba(147, 51, 234, .34), transparent 20rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .52fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

.hero-label,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, .28);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 40px rgba(37, 99, 235, .35);
}

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

.soft-btn {
  color: var(--blue);
  background: rgba(37, 99, 235, .1);
}

.primary-btn:hover,
.ghost-btn:hover,
.soft-btn:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .22);
}

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

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

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

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

.main-section,
.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 20px;
}

.tint-section {
  background: linear-gradient(90deg, rgba(239, 246, 255, .86), rgba(236, 254, 255, .82));
}

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

.section-head h2,
.page-head h1,
.detail-title h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.035em;
}

.section-head p,
.page-head p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 232, 240, .88);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  transition: .22s ease;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 38% 1fr;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card.horizontal .poster img {
  height: 100%;
  aspect-ratio: auto;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, .72));
}

.play-dot {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, .9);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .36);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 900;
}

.card-body {
  padding: 17px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--blue);
}

.card-body p {
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 750;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
  transition: .22s ease;
}

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

.category-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, .08), rgba(2, 6, 23, .82));
}

.category-tile div {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
}

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
}

.tool-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 232, 240, .94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 0 16px;
  font: inherit;
  outline: 0;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.filter-group button {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  color: #475467;
  background: #f1f5f9;
  font-weight: 750;
  cursor: pointer;
}

.filter-group button.active,
.filter-group button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 0;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

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

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

.detail-panel {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475467;
}

.info-list strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
}

.copy-block {
  margin-top: 24px;
  color: #344054;
  line-height: 1.9;
}

.copy-block h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.player-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .25);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, .2);
  z-index: 4;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
}

.player-cover button {
  position: relative;
  z-index: 2;
  border: 0;
  min-width: 118px;
  min-height: 56px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(37, 99, 235, .36);
}

.player-cover.hidden {
  display: none;
}

.hidden-card {
  display: none !important;
}

.site-footer {
  padding: 42px 20px;
  color: #64748b;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--blue);
}

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 820px;
  }

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

  .hero-poster {
    max-width: 300px;
  }

  .section-head,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-wrap,
  .main-section,
  .page-section,
  .breadcrumb,
  .detail-hero,
  .player-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: 760px;
  }

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

  .detail-panel {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
