:root {
  --page: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --line: rgba(59, 130, 246, 0.28);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --hot: #f97316;
  --gold: #facc15;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(8, 13, 30, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.17), transparent 28rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

.navbar {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand span:last-child,
.footer-brand span:last-child {
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a,
.nav-dropdown button {
  color: #cbd5e1;
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.22s ease;
}

.nav-links a:hover,
.nav-dropdown button:hover {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  background: rgba(30, 64, 175, 0.42);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.nav-search input,
.mobile-search input {
  width: 230px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 10px;
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.section-link,
.filter-btn {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  border-radius: 12px;
  padding: 9px 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.filter-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid var(--line-soft);
}

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

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

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 72px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 560px;
  position: relative;
  isolation: isolate;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 28px;
  padding: 64px;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.58) saturate(1.25);
  transform: scale(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(2, 6, 23, 0.48) 100%),
    radial-gradient(circle at 24% 26%, rgba(34, 211, 238, 0.26), transparent 23rem);
}

.hero-content {
  max-width: 680px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #eff6ff, #67e8f9, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 660px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
}

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

.ghost-btn {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-art {
  position: relative;
  max-width: 420px;
  justify-self: end;
}

.hero-art img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  box-shadow: 0 28px 76px rgba(2, 6, 23, 0.55);
}

.hero-card-glow {
  position: absolute;
  inset: auto 18px -18px 18px;
  height: 34px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.28);
  filter: blur(22px);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
}

.content-section {
  margin-top: 56px;
}

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

.section-heading h2,
.page-heading h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.page-heading p {
  max-width: 820px;
  color: var(--muted);
  margin: 10px 0 0;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.56));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 70px rgba(8, 47, 73, 0.24);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

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

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

.play-pill,
.year-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.play-pill {
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.movie-title {
  display: block;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--accent);
}

.movie-line {
  min-height: 3.8em;
  color: var(--muted);
  margin: 10px 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags a,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.24);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1);
}

.category-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.92));
}

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

.category-card p {
  color: #cbd5e1;
  margin: 0 0 16px;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-no {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: rgba(51, 65, 85, 0.88);
}

.rank-item:nth-child(1) .rank-no {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-item:nth-child(2) .rank-no {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.rank-item:nth-child(3) .rank-no {
  background: linear-gradient(135deg, #fb923c, #b45309);
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.rank-score {
  color: #fef3c7;
  font-weight: 900;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin: 0 0 24px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filters input,
.filters select,
.search-panel input {
  min-height: 44px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 14px;
  padding: 0 14px;
}

.filters input {
  min-width: min(330px, 100%);
  flex: 1;
}

.filters select {
  min-width: 160px;
}

.search-panel {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.search-panel input {
  flex: 1;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 26px;
  align-items: stretch;
}

.player-card,
.detail-card,
.text-card {
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.52));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-core {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: white;
  font-size: 38px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.32);
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.text-card {
  padding: 26px;
  margin-top: 26px;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-card p {
  color: #cbd5e1;
  margin: 0 0 14px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #020617);
  padding: 38px 22px 26px;
}

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

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-copy {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 18px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1120px) {
  .nav-links,
  .nav-search {
    display: none;
  }

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

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

  .hero-slide.is-active,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: start;
    max-width: 320px;
  }
}

@media (max-width: 780px) {
  .page-main {
    padding: 24px 16px 52px;
  }

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

  .hero-slide.is-active {
    padding: 36px 22px 68px;
  }

  .hero-dots {
    left: 22px;
  }

  .hero-actions,
  .section-heading,
  .page-heading,
  .footer-inner,
  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

  .rank-item {
    grid-template-columns: 44px 86px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

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

@media (max-width: 520px) {
  .navbar {
    height: 62px;
    padding: 0 14px;
  }

  .brand span:last-child {
    font-size: 15px;
  }

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

  .mobile-links {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .text-card {
    padding: 20px;
  }
}
