:root {
  --archive-50: #f5f7fa;
  --archive-100: #eaeff5;
  --archive-200: #d9e3ee;
  --archive-300: #a8bdd4;
  --archive-400: #7a9cbc;
  --archive-500: #5a7fa5;
  --archive-600: #46678a;
  --archive-700: #395370;
  --archive-800: #2f445d;
  --archive-900: #2a3b4e;
  --text: #1f2d3d;
  --muted: #64748b;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(42, 59, 78, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--archive-50);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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(42, 59, 78, 0.96);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.18);
}

.header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--archive-300), #fff);
  color: var(--archive-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

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

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

.nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--archive-100);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--archive-100);
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 20px;
}

.compact-section {
  padding-top: 34px;
  padding-bottom: 20px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--archive-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: max(20px, calc((100vw - 1180px) / 2 + 20px));
  top: 50%;
  transform: translateY(-50%);
  max-width: 640px;
  color: #fff;
}

.hero-pill,
.page-kicker,
.movie-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--archive-600);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.hero p {
  max-width: 580px;
  margin: 0 0 30px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.btn-light {
  background: #fff;
  color: var(--archive-900);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--archive-900);
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease;
}

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

.category-card span,
.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  padding: 18px 18px 0;
}

.category-card span {
  font-size: 20px;
  font-weight: 800;
}

.category-card strong {
  padding-top: 8px;
  color: var(--archive-100);
  font-size: 13px;
  line-height: 1.6;
}

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

.section-header h2 {
  margin: 0;
  color: var(--archive-900);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-header a {
  color: var(--archive-600);
  font-weight: 800;
}

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

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

.all-grid {
  align-items: stretch;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 59, 78, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(42, 59, 78, 0.18);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--archive-100);
}

.movie-cover img,
.horizontal-cover img,
.sidebar-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-cover img,
.horizontal-cover img {
  transition: transform 0.35s ease;
}

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

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--archive-700);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 12px 0 9px;
  color: var(--archive-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0;
  color: var(--archive-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--archive-500);
  font-size: 13px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 178px;
}

.horizontal-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--archive-100);
}

.horizontal-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-info h3 {
  margin: 12px 0 8px;
  color: var(--archive-900);
  font-size: 20px;
}

.horizontal-info p {
  margin: 0;
  color: var(--archive-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
}

.rank-panel,
.sidebar-card,
.filter-panel,
.player-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
  height: fit-content;
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rank-title span {
  color: var(--archive-900);
  font-size: 24px;
  font-weight: 900;
}

.rank-title a {
  color: var(--archive-600);
  font-weight: 800;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 34px 86px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--archive-900);
}

.rank-number {
  color: var(--archive-300);
  font-size: 24px;
  font-weight: 900;
  transition: color 0.2s ease;
}

.mini-card:hover .rank-number {
  color: var(--archive-600);
}

.mini-card img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--archive-100);
}

.mini-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}

.mini-card small {
  display: block;
  margin-top: 5px;
  color: var(--archive-500);
}

.page-hero {
  padding: 70px 0;
  background: radial-gradient(circle at 20% 20%, rgba(168, 189, 212, 0.38), transparent 38%), linear-gradient(135deg, var(--archive-900), var(--archive-700));
  color: #fff;
}

.page-hero h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--archive-100);
  font-size: 18px;
  line-height: 1.8;
}

.page-kicker {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(150px, 0.6fr)) auto;
  gap: 14px;
  align-items: end;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: var(--archive-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--archive-200);
  border-radius: 12px;
  background: var(--archive-50);
  color: var(--archive-900);
  padding: 0 12px;
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--archive-500);
  box-shadow: 0 0 0 4px rgba(70, 103, 138, 0.12);
}

.filter-row button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--archive-700);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 42px 0;
  color: var(--archive-600);
  text-align: center;
  font-weight: 700;
}

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

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

.category-overview-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, var(--archive-900), var(--archive-700));
}

.category-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.35;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2,
.category-overview-card p {
  position: relative;
  z-index: 1;
}

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

.category-overview-card p {
  margin: 0;
  color: var(--archive-100);
  line-height: 1.7;
}

.category-preview {
  padding-left: 0;
  padding-right: 0;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 112px 1fr auto 70px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 59, 78, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-num {
  color: var(--archive-300);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--archive-100);
}

.ranking-main strong {
  display: block;
  color: var(--archive-900);
  font-size: 18px;
}

.ranking-main small {
  display: -webkit-box;
  margin-top: 7px;
  color: var(--archive-600);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-meta {
  color: var(--archive-500);
  white-space: nowrap;
}

.ranking-score {
  color: var(--archive-700);
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.detail-page {
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--archive-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--archive-900);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.player-card {
  overflow: hidden;
}

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

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--archive-800);
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-circle:hover {
  transform: scale(1.06);
  background: #fff;
}

.detail-body {
  padding: 28px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-pills a,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--archive-100);
  color: var(--archive-700);
  font-size: 13px;
  font-weight: 800;
}

.detail-body h1 {
  margin: 0 0 14px;
  color: var(--archive-900);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 28px;
  color: var(--archive-700);
  font-size: 19px;
  line-height: 1.85;
}

.article-section {
  margin-top: 28px;
}

.article-section h2 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 16px;
  color: var(--archive-800);
  font-size: 22px;
}

.article-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: var(--archive-600);
}

.article-section p {
  margin: 0;
  color: var(--archive-700);
  line-height: 1.9;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.sticky-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.sidebar-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--archive-100);
}

.sidebar-card h2 {
  margin: 20px 0 16px;
  color: var(--archive-900);
  font-size: 20px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 4px;
}

.info-list dt {
  color: var(--archive-500);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--archive-900);
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--archive-50);
  color: var(--archive-700);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  background: var(--archive-900);
  color: #fff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 430px;
  color: var(--archive-300);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.footer-links a {
  color: var(--archive-300);
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  color: var(--archive-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

  .mobile-toggle {
    display: block;
  }

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

  .horizontal-grid,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

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

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

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

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

  .horizontal-cover {
    aspect-ratio: 16 / 10;
  }

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

  .ranking-row {
    grid-template-columns: 42px 88px 1fr;
  }

  .ranking-meta,
  .ranking-score {
    display: none;
  }

  .ranking-row img {
    width: 88px;
    height: 58px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 18px;
  }

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

  .detail-body {
    padding: 22px;
  }

  .play-circle {
    width: 66px;
    height: 66px;
    font-size: 30px;
  }
}
