:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --soft: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --navy: #0f172a;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5ff 0%, var(--bg) 360px, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

img.is-missing {
  display: none;
}

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

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

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--amber));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link,
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-pill:hover,
.nav-pill.active {
  color: var(--blue-dark);
  background: #dbeafe;
}

.nav-dropdown {
  position: relative;
}

.nav-more {
  cursor: default;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 210px;
  padding: 10px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.nav-dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #475569;
}

.nav-dropdown-panel a:hover {
  color: var(--blue-dark);
  background: #eff6ff;
}

.nav-dropdown:hover .nav-dropdown-panel {
  display: grid;
}

.nav-search {
  width: 260px;
}

.nav-search input,
.filter-input,
.filter-select {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 0 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 14px;
  background: #eff6ff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 650;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.55), transparent 34%), radial-gradient(circle at 85% 18%, rgba(245, 158, 11, 0.42), transparent 28%), linear-gradient(135deg, #020617, #0f172a 46%, #1e3a8a);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.22) 100%);
  pointer-events: none;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}

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

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.85s ease both;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero p {
  margin: 0;
  max-width: 660px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

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

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

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

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

.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.24);
}

.btn-light {
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hero-feature-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(245, 158, 11, 0.35));
}

.hero-feature-body {
  padding: 20px;
}

.hero-feature-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.hero-feature-body p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

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

.hero-dot.active {
  width: 28px;
  background: var(--amber);
}

main {
  min-height: 60vh;
}

.page-section {
  padding: 64px 0;
}

.page-section.tight {
  padding-top: 40px;
}

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

.section-heading h2,
.page-heading h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-heading p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-strip,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.nav-pill {
  background: #fff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 20% 18%, rgba(245, 158, 11, 0.32), transparent 32%), linear-gradient(135deg, #1e3a8a, #0f172a);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.78) 100%);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-year,
.poster-score {
  position: absolute;
  z-index: 2;
  top: 12px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 12px;
  background: rgba(37, 99, 235, 0.86);
}

.poster-score {
  right: 12px;
  background: rgba(245, 158, 11, 0.92);
}

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

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

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

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.movie-meta-line span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.category-card strong {
  color: var(--blue-dark);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 220px 220px;
  gap: 12px;
  margin-bottom: 24px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr 120px 120px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--amber));
  font-weight: 900;
}

.rank-main strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.rank-main span,
.rank-item em {
  color: var(--muted);
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.48), transparent 32%), linear-gradient(135deg, #020617, #0f172a 45%, #1e3a8a);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.74));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

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

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-copy p {
  max-width: 780px;
  color: #dbeafe;
  line-height: 1.9;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 700;
}

.player-section {
  padding: 48px 0 16px;
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--amber));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
  font-size: 30px;
}

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

.content-card,
.side-card {
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.content-card p {
  margin: 0;
  color: #334155;
  line-height: 2;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.side-list a:hover {
  color: var(--blue-dark);
  background: #eff6ff;
}

.side-list span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #fff;
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #111827 48%, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
  padding: 50px 0 34px;
}

.footer-grid p {
  max-width: 470px;
  color: #94a3b8;
  line-height: 1.85;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .nav-search {
    margin-left: auto;
  }

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

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

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

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

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

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

  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .brand-text {
    font-size: 18px;
  }

  .nav-search {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

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

  .hero h1 {
    font-size: 38px;
  }

  .section-heading,
  .page-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-item {
    grid-template-columns: 46px 1fr;
  }

  .rank-item em,
  .rank-item .rank-score {
    display: none;
  }

  .detail-hero-grid {
    padding: 34px 0;
  }

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