:root {
  --paper-100: #fcfcfc;
  --paper-200: #fafafa;
  --mist-50: #f8f9fa;
  --mist-100: #f1f3f5;
  --mist-200: #e9ecef;
  --mist-300: #dee2e6;
  --mist-500: #adb5bd;
  --mist-600: #868e96;
  --mist-700: #495057;
  --ink-600: #5d5d5d;
  --ink-700: #4f4f4f;
  --ink-900: #3d3d3d;
  --mountain-50: #e8f4f8;
  --mountain-100: #d1e9f1;
  --mountain-400: #47a7c7;
  --mountain-500: #2c8aa8;
  --mountain-600: #236e86;
  --mountain-700: #1a5264;
  --mountain-800: #123642;
  --shadow-soft: 0 16px 40px rgba(18, 54, 66, 0.12);
  --shadow-card: 0 10px 28px rgba(18, 54, 66, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--paper-100) 0%, var(--mist-50) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222, 226, 230, 0.78);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  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 {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mountain-500), var(--mountain-800));
  box-shadow: 0 12px 30px rgba(35, 110, 134, 0.28);
}

.brand-text {
  font-size: 1.12rem;
}

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

.nav-link {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink-700);
  font-weight: 650;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--mountain-700);
  background: var(--mountain-50);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--mist-100);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink-900);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-slider {
  position: relative;
  min-height: 72vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 24%, rgba(71, 167, 199, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 88px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--mist-200);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--mist-200);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mountain-500), var(--mountain-800));
  box-shadow: 0 14px 32px rgba(35, 110, 134, 0.3);
}

.btn-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.hero-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots button.is-active {
  background: #ffffff;
}

.page-shell {
  padding: 52px 0 68px;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--mountain-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ink-600);
  line-height: 1.8;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 50px;
}

.category-pill {
  min-height: 86px;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-pill strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-900);
  font-size: 1.05rem;
}

.category-pill span {
  display: block;
  color: var(--mist-700);
  font-size: 0.9rem;
  line-height: 1.55;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 28px;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-xl);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.search-box {
  position: relative;
  flex: 1 1 360px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: var(--mist-600);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mist-200);
  border-radius: 999px;
  padding: 0 18px 0 46px;
  outline: none;
  color: var(--ink-900);
  background: #ffffff;
}

.search-box input:focus {
  border-color: var(--mountain-400);
  box-shadow: 0 0 0 4px rgba(71, 167, 199, 0.14);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink-700);
  background: var(--mist-100);
  cursor: pointer;
  font-weight: 700;
}

.filter-tabs button.is-active {
  color: #ffffff;
  background: var(--mountain-600);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card.is-filtered {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-100), var(--mountain-50));
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-grid;
  min-width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(18, 54, 66, 0.86);
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--mist-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-body h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.08rem;
  line-height: 1.32;
}

.card-body h3 a:hover {
  color: var(--mountain-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.card-tags span {
  display: inline-flex;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--mountain-700);
  background: var(--mountain-50);
  font-size: 0.78rem;
  font-weight: 750;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  min-height: 110px;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
}

.mini-card img {
  width: 84px;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.mini-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mini-rank {
  color: var(--mountain-600);
  font-weight: 900;
}

.mini-info strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-900);
}

.mini-info em,
.mini-info small {
  overflow: hidden;
  color: var(--ink-600);
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-info small {
  font-size: 0.82rem;
}

.page-hero {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 58px);
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 8%, rgba(71, 167, 199, 0.5), transparent 34%),
    linear-gradient(135deg, var(--mountain-600), var(--mountain-800));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--mist-200);
  font-size: 1.05rem;
  line-height: 1.85;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.category-card {
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h2 {
  margin: 0 0 10px;
  color: var(--ink-900);
}

.category-card p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.75;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--mist-700);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--mountain-700);
  font-weight: 700;
}

.player-section {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  object-fit: cover;
}

.player-overlay::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at center, rgba(71, 167, 199, 0.28), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}

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

.player-start {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--mountain-800);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.player-start svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  fill: currentColor;
}

.player-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--mist-100);
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info {
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-info h1 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.meta-badges span,
.tag-cloud span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--mountain-700);
  background: var(--mountain-50);
  font-size: 0.9rem;
  font-weight: 760;
}

.detail-info h2 {
  margin: 28px 0 10px;
  color: var(--ink-900);
  font-size: 1.35rem;
}

.detail-info p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.related-section {
  margin-top: 42px;
}

.site-footer {
  border-top: 1px solid var(--mist-200);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  color: var(--ink-600);
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.empty-hint {
  display: none;
  margin: 26px 0 0;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--ink-600);
  background: #ffffff;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

  .detail-poster {
    max-width: 380px;
  }
}

@media (max-width: 720px) {
  .hero-slider {
    min-height: 78vh;
  }

  .hero-content {
    padding: 112px 0 96px;
  }

  .hero-controls {
    right: 16px;
    left: 16px;
    justify-content: center;
    bottom: 22px;
  }

  .section-head {
    display: block;
  }

  .search-panel {
    display: grid;
  }

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

  .movie-grid {
    gap: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0;
  }

  .player-start {
    width: 68px;
    height: 68px;
  }

  .detail-main {
    padding-top: 18px;
  }
}
