:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --accent: #06b6d4;
  --orange: #f97316;
  --yellow: #eab308;
  --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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.32);
  font-size: 14px;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  color: #334155;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 9px;
  background: #0f172a;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 54%, #06b6d4 100%);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(6, 182, 212, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 132, 199, 0.38) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 84px 0;
}

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

.hero-title {
  max-width: 850px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-title span {
  display: block;
  color: #bae6fd;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(17px, 1.7vw, 23px);
  color: #dbeafe;
}

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

.tag,
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.hero-tag {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn-primary {
  color: var(--primary-dark);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.18);
}

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

.btn-secondary {
  color: #ffffff;
  background: rgba(3, 105, 161, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(2, 132, 199, 0.82);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel-info {
  padding: 16px 4px 4px;
}

.hero-panel-info h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-panel-info p {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
}

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

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

.quick-panel {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.quick-card,
.category-card,
.info-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: all 0.22s ease;
}

.quick-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-card:hover,
.category-card:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.quick-icon,
.category-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 24px;
}

.quick-card strong {
  display: block;
  font-size: 17px;
}

.quick-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

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

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: all 0.22s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.9);
}

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

.movie-body {
  padding: 15px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.15em;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.movie-title:hover,
.movie-card:hover .movie-title {
  color: var(--primary-dark);
}

.movie-body p,
.compact-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  color: #64748b;
  font-size: 13px;
}

.movie-card.compact {
  display: flex;
  min-height: 132px;
}

.compact-poster {
  flex: 0 0 112px;
  overflow: hidden;
  background: var(--primary-soft);
}

.compact-poster img {
  width: 112px;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.compact-body {
  padding: 14px;
}

.compact-body .movie-title {
  min-height: auto;
}

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

.category-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-links a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 750;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 0%, rgba(6, 182, 212, 0.34), transparent 26%),
    linear-gradient(135deg, #0284c7 0%, #2563eb 58%, #0f172a 100%);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

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

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

.breadcrumb a {
  color: #ffffff;
  font-weight: 750;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.filter-bar input,
.filter-bar select,
.search-hero input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-hero input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: all 0.22s ease;
}

.rank-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  font-weight: 900;
}

.rank-row img {
  width: 90px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--primary-soft);
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.rank-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 800;
  white-space: nowrap;
}

.search-hero {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 10px;
  text-align: center;
}

.search-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.search-hero p {
  margin: 0 auto 24px;
  max-width: 620px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background: #0f172a;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.48;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 56%, rgba(2, 132, 199, 0.38) 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  padding: 58px 0;
}

.detail-poster img {
  width: 270px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: var(--primary-soft);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.detail-title {
  color: #ffffff;
}

.detail-desc {
  max-width: 780px;
  color: #dbeafe;
  font-size: 18px;
}

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

.meta-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eff6ff;
  font-size: 14px;
  font-weight: 750;
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 76px;
}

.player-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

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

.player-box video {
  display: block;
  width: 100%;
  max-height: 70vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020617;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.34), rgba(2, 6, 23, 0.52));
}

.play-trigger span {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: 28px;
  transition: all 0.2s ease;
}

.play-trigger:hover span {
  transform: scale(1.08);
}

.player-box.is-playing .play-trigger {
  display: none;
}

.player-caption {
  padding: 18px 22px;
  color: #dbeafe;
  background: linear-gradient(90deg, #0f172a, #082f49);
}

.article-block {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.site-footer {
  margin-top: 78px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 42px;
  padding: 44px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 980px) {
  .hero-inner,
  .detail-inner {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .site-nav {
    height: 62px;
  }

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

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

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

  .nav-link {
    padding: 12px 14px;
  }

  .hero-slider,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    gap: 28px;
    padding: 58px 0 90px;
  }

  .quick-panel,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .rank-link {
    grid-column: 2 / -1;
    text-align: center;
  }

  .rank-row img {
    width: 74px;
    height: 96px;
  }

  .detail-poster img {
    width: 220px;
  }

  .article-block {
    padding: 22px;
  }
}
