:root {
  --primary-50: #e6f2ff;
  --primary-500: #0073e6;
  --primary-600: #005bb3;
  --primary-700: #004380;
  --accent-50: #fff3e6;
  --accent-500: #e67300;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #dee2e6;
  --neutral-500: #6c757d;
  --neutral-600: #495057;
  --neutral-800: #212529;
  --neutral-900: #0d0f12;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  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(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100%, 1536px);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(14px);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.site-header.is-scrolled {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-500);
  color: #fff;
  font-size: 0.8rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--neutral-700, #343a40);
  font-weight: 600;
}

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

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--primary-500);
}

.mobile-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--neutral-100);
  padding: 0.65rem;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--neutral-800);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--neutral-200);
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  font-weight: 600;
}

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

main {
  padding-top: 5rem;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--neutral-900);
}

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

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

.hero-slide > img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgb(0 0 0 / 0.96),
    rgb(0 0 0 / 0.58) 45%,
    rgb(0 0 0 / 0.2)
  );
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4.8rem;
}

.hero-copy {
  max-width: 820px;
  color: #fff;
}

.hero-kicker,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-kicker span,
.detail-meta span,
.year-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-kicker span:first-child {
  background: var(--accent-500);
}

.hero h1,
.hero h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 + p,
.hero h1 + h2 + p {
  margin-top: 1rem;
}

.hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn-primary,
.btn-ghost,
.search-form button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 0.65rem;
  padding: 0.75rem 1.35rem;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-primary,
.search-form button {
  border: 0;
  background: var(--primary-500);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.search-form button:hover,
.more-link:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
}

.btn-ghost {
  color: #fff;
  background: rgb(255 255 255 / 0.13);
  border: 1px solid rgb(255 255 255 / 0.22);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / 0.5);
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

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

.hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.5);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero-dots button.is-active {
  width: 2.2rem;
  background: #fff;
}

.search-band {
  margin-top: -2rem;
  position: relative;
  z-index: 5;
}

.search-panel {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  padding: 1rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.search-form input,
.toolbar input {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: 0.65rem;
  background: var(--neutral-50);
  padding: 0.8rem 1rem;
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.search-form input:focus,
.toolbar input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgb(0 115 230 / 0.12);
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.quick-cats a,
.tag-row span,
.toolbar a,
.text-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.section-block {
  padding-top: 4rem;
  padding-bottom: 1rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2,
.prose-card h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  max-width: 820px;
  margin: 0.55rem 0 0;
  color: var(--neutral-600);
}

.card {
  overflow: hidden;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.35rem;
}

.large-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.poster-link,
.large-cover,
.wide-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.large-cover {
  aspect-ratio: 16 / 9;
}

.poster-link img,
.large-cover img,
.wide-cover img,
.category-images img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.year-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgb(0 0 0 / 0.72);
}

.card-body,
.large-content,
.wide-content,
.category-content {
  padding: 0.95rem;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.card-meta {
  gap: 0.5rem;
  margin-top: 0.65rem;
  color: var(--neutral-500);
  font-size: 0.82rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.tag-row span {
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
}

.large-card .movie-title {
  font-size: 1.25rem;
}

.large-content p,
.wide-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.55rem 0 0;
  color: var(--neutral-600);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.warm-block {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
}

.rank-list,
.rank-page-list,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-list a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.rank-list span,
.rank-no {
  color: var(--accent-500);
  font-weight: 900;
}

.rank-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em,
.rank-info {
  color: var(--neutral-500);
  font-style: normal;
  font-size: 0.9rem;
}

.more-link {
  margin-top: 1rem;
  background: var(--primary-500);
  color: #fff;
}

.wide-list {
  display: grid;
  gap: 1rem;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 9rem 1fr;
}

.wide-cover {
  min-height: 8rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top left, var(--primary-500), transparent 34%),
    linear-gradient(135deg, #07111f, #111827 50%, #341b04);
}

.compact-hero {
  padding: 4.5rem 0 4rem;
}

.page-hero span {
  display: inline-flex;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  padding: 0.35rem 0.8rem;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 900px;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  color: rgb(255 255 255 / 0.78);
  font-size: 1.05rem;
}

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

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

.category-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 12rem;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.category-content h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.category-content p {
  margin: 0;
  color: var(--neutral-600);
  line-height: 1.7;
}

.text-link {
  margin-top: 1rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.searchable-grid .is-hidden {
  display: none;
}

.rank-page-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row a {
  display: grid;
  grid-template-columns: 4rem 4.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.rank-row img {
  width: 4.2rem;
  height: 5.6rem;
  object-fit: cover;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.rank-title {
  font-weight: 900;
}

.detail-hero {
  padding: 2rem 0 4rem;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  filter: blur(2px);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.95), rgb(0 0 0 / 0.55));
}

.detail-head {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.detail-info h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 900px;
  margin: 1rem 0 1.2rem;
  color: rgb(255 255 255 / 0.86);
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-meta span {
  background: rgb(255 255 255 / 0.14);
}

.detail-tags span {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

.detail-info .btn-primary {
  margin-top: 1.4rem;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.18));
  font-weight: 900;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}

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

.play-symbol {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-500);
  box-shadow: var(--shadow-xl);
  font-size: 2rem;
  text-indent: 0.25rem;
}

.prose-card {
  padding: 1.5rem;
}

.prose-card h2 + p,
.prose-card p + h2 {
  margin-top: 1rem;
}

.prose-card p {
  color: var(--neutral-600);
  line-height: 1.9;
}

.site-footer {
  margin-top: 5rem;
  background: var(--neutral-900);
  color: #ced4da;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  color: #adb5bd;
  line-height: 1.8;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding: 1.2rem 1rem;
  text-align: center;
  color: #adb5bd;
}

@media (max-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    height: 4rem;
  }

  main {
    padding-top: 4rem;
  }

  .hero {
    height: 62vh;
    min-height: 470px;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-arrow {
    display: none;
  }

  .search-form,
  .toolbar,
  .movie-card-wide,
  .category-card,
  .detail-layout,
  .rank-list a,
  .rank-row a {
    grid-template-columns: 1fr;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .large-grid {
    grid-template-columns: 1fr;
  }

  .wide-cover,
  .category-images {
    min-height: 14rem;
  }

  .detail-poster {
    width: min(72vw, 18rem);
  }

  .rank-row img {
    width: 5rem;
    height: 6.6rem;
  }
}
