:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --text: #111827;
  --muted: #6b7280;
  --light: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--text);
  background: #f3f6fb;
}

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: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #334155;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #334155;
  font-weight: 700;
}

.mobile-nav.is-open {
  display: block;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #07111f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.8s ease;
  transform: scale(1.04);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 40px;
  padding: 86px 0 72px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  max-width: 780px;
  margin: 24px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 900;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

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

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

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

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

.button-light {
  color: var(--primary);
  background: #fff;
}

.button:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.hero-panel {
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.hero-panel h2 {
  margin: 18px 0 8px;
  font-size: 26px;
}

.hero-panel p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  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.is-active {
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: #fff;
}

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

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.section-purple {
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

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

.section-head h2,
.page-hero h1,
.content-block h2,
.detail-title {
  margin: 0;
  font-weight: 900;
  color: #0f172a;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-link img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-grid.compact .poster-link img {
  height: 210px;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.score-badge,
.rank-badge,
.small-rank {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.score-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--primary);
  font-size: 13px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.small-card h3 a:hover {
  color: var(--primary);
}

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

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

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

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

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

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.1));
}

.category-tile div {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px;
}

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

.category-tile p {
  margin: 0 0 12px;
  color: #dbeafe;
  line-height: 1.65;
}

.category-tile strong {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.small-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.small-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #dbeafe;
}

.small-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.small-rank {
  top: 8px;
  left: 8px;
  border-radius: 999px;
  min-width: 28px;
  height: 28px;
  background: var(--red);
  font-size: 13px;
}

.small-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.small-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.small-card span {
  color: #64748b;
  font-size: 13px;
}

.stats-band {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

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

.stat-card {
  border-radius: 20px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 38px;
}

.page-hero {
  padding: 74px 0;
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.36), transparent 32%),
    linear-gradient(135deg, #1d4ed8, #0891b2 52%, #0f766e);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 860px;
  color: #dbeafe;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #64748b;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.filter-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  margin-bottom: 30px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: #334155;
  background: #fff;
  font-weight: 700;
}

.search-input {
  flex: 1;
  min-width: 240px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: #0f172a;
  font-size: 16px;
  outline: none;
}

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

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

.player-card,
.content-block,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

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

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

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.22));
  cursor: pointer;
}

.play-mask.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.player-info {
  padding: 22px;
}

.detail-title {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 48px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span,
.tag-list a,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.content-block {
  margin-top: 24px;
  padding: 26px;
}

.content-block h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.content-block p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.highlight-box {
  border-radius: 18px;
  margin: 18px 0;
  padding: 22px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.side-card .small-card {
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.side-card .small-thumb img {
  height: 74px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  color: #94a3b8;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

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

  .hero-slide {
    position: relative;
    display: none;
    min-height: auto;
  }

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

  .hero-panel {
    max-width: 360px;
  }

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

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

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

  .brand-name {
    font-size: 17px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

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

  .small-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .poster-link img,
  .movie-grid.compact .poster-link img {
    height: 245px;
  }

  .section {
    padding: 48px 0;
  }
}
