:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --slate: #0f172a;
  --slate-light: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 48%, #0f172a 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.24);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

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

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

.nav-link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #bfdbfe;
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.top-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 12px 10px 16px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.top-search button,
.mobile-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  padding: 10px 16px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 11px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-search {
  margin: 14px 0;
}

.mobile-search input {
  width: 100%;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-link.is-active {
  color: #bfdbfe;
}

.hero {
  position: relative;
  color: #ffffff;
  background: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.28), transparent 28%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px), linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-slider {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  padding: 72px 0 70px;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #93c5fd;
}

.hero p {
  margin: 0 0 26px;
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
}

.hero-stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat strong {
  display: block;
  color: #60a5fa;
  font-size: 28px;
  line-height: 1.1;
}

.hero-stat span {
  color: #bfdbfe;
  font-size: 13px;
}

.hero-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.hero-card-body {
  padding: 18px 6px 4px;
}

.hero-card-body h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.25;
}

.hero-card-body p {
  margin: 0;
  font-size: 15px;
  color: #dbeafe;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
  background: #60a5fa;
}

.section {
  padding: 56px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: #f1f5f9;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

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

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-year,
.movie-play {
  position: absolute;
  z-index: 1;
  color: #ffffff;
}

.movie-year {
  left: 12px;
  top: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
}

.movie-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.34);
}

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

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

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

.movie-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 3px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
}

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

.category-panel {
  min-height: 170px;
  padding: 22px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}

.category-panel span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #bfdbfe;
  font-size: 14px;
}

.category-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.rank-box {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background: #f8fafc;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  font-weight: 800;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.rank-kind {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  padding: 52px 0;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

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

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

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

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

.filter-panel {
  margin: -28px auto 30px;
  position: relative;
  z-index: 2;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 12px;
  color: var(--text);
  background: #f8fafc;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  padding: 34px 0 58px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

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

.movie-player-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
}

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

.play-button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
  font-size: 30px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
  background: #1d4ed8;
}

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

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span,
.detail-meta a {
  padding: 6px 12px;
  border-radius: 999px;
  color: #1e40af;
  background: #eff6ff;
  font-size: 14px;
}

.quote-line {
  margin: 0 0 24px;
  padding: 18px 20px;
  color: #1e293b;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 19px;
  font-weight: 700;
}

.article-block {
  margin: 0 0 24px;
}

.article-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.article-block p {
  margin: 0;
  color: #334155;
}

.side-card {
  padding: 20px;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 112px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.related-item strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.index-list {
  columns: 4 230px;
  column-gap: 24px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: #1e293b;
  border-bottom: 1px dashed #cbd5e1;
}

.index-list a:hover {
  color: var(--blue);
}

.empty-state {
  display: none;
  padding: 46px 16px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.search-output {
  min-height: 280px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

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

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-layout,
  .rank-layout,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-slide {
    padding: 48px 0 58px;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-stats,
  .filter-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-item img {
    width: 96px;
  }
}
