:root {
  --mist-50: #f8fafb;
  --mist-100: #eef3f5;
  --mist-500: #6b7785;
  --mist-600: #52606d;
  --mist-700: #3e4c59;
  --mist-900: #1f2933;
  --forest-500: #16a34a;
  --forest-600: #15803d;
  --stream-500: #0ea5e9;
  --stream-600: #0284c7;
  --sunset-500: #f97316;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.2);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

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

.narrow-container {
  width: min(920px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(18px);
}

.nav-container {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mist-900);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--forest-500), var(--stream-500));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--forest-600);
  background: rgba(22, 163, 74, 0.1);
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--mist-100);
  border-radius: 999px;
  padding: 4px;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.search-panel input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--mist-900);
  background: transparent;
}

.nav-search input {
  width: 210px;
  padding: 8px 10px 8px 16px;
}

.nav-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: var(--white);
  background: var(--forest-600);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--mist-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--mist-900);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-weight: 700;
  color: var(--mist-700);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 16px 0;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--mist-100);
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

.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, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.45) 46%, rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 13px;
  color: #dcfce7;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.22);
  backdrop-filter: blur(10px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

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

.primary-button,
.ghost-button,
.section-link,
.filter-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--mist-900);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.filter-bar a:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.content-section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: var(--mist-50);
}

.section-gradient {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(14, 165, 233, 0.12));
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--mist-900);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--mist-500);
  font-size: 1.05rem;
}

.section-link,
.filter-bar a {
  color: var(--forest-600);
  background: rgba(22, 163, 74, 0.1);
}

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

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

.movie-card,
.rank-card,
.category-panel,
.text-panel,
.detail-text-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.rank-card:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.movie-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--mist-100);
}

.movie-card-cover.wide-cover {
  aspect-ratio: 16 / 9;
}

.movie-card-cover img,
.feature-card img,
.rank-thumb img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.feature-card:hover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

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

.movie-card-body h2 {
  margin: 7px 0 8px;
  color: var(--mist-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card-body p,
.rank-content p,
.category-panel p,
.text-panel p,
.detail-text-card p {
  margin: 0;
  color: var(--mist-600);
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mist-500);
  font-size: 0.86rem;
}

.movie-meta-line span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mist-100);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  align-items: stretch;
}

.movie-card-wide .movie-card-body {
  padding: 26px;
}

.movie-card-wide h2 {
  font-size: 1.5rem;
}

.wide-list {
  display: grid;
  gap: 22px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--forest-600);
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
}

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

.category-tile,
.category-panel {
  display: block;
  min-height: 168px;
  padding: 22px;
  color: var(--mist-900);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.category-tile span,
.category-panel-title {
  display: block;
  margin-bottom: 10px;
  color: var(--mist-900);
  font-size: 1.22rem;
  font-weight: 900;
}

.category-tile p,
.category-panel p {
  font-size: 0.96rem;
}

.category-sample-links {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.category-sample-links a {
  color: var(--stream-600);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: 250px;
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 250px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: #0f172a;
  box-shadow: var(--shadow-sm);
}

.feature-big {
  grid-row: span 2;
}

.feature-card img {
  position: absolute;
  inset: 0;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.1));
}

.feature-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.feature-big strong {
  font-size: 2.2rem;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.masonry-grid {
  columns: 4 240px;
  column-gap: 22px;
}

.masonry-grid .movie-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 56px 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--forest-500), var(--stream-500));
  font-size: 1.15rem;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: var(--mist-100);
}

.rank-content h2 {
  margin: 0 0 6px;
  color: var(--mist-900);
  font-size: 1.08rem;
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.4), transparent 26%),
    radial-gradient(circle at 86% 20%, rgba(22, 163, 74, 0.34), transparent 25%),
    linear-gradient(135deg, #0f172a, #1f2937);
}

.small-hero {
  padding: 74px 0 82px;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.filter-bar,
.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--mist-50);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.filter-bar input,
.search-panel input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(8px);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 38px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background: var(--mist-100);
  box-shadow: var(--shadow-lg);
}

.detail-info h1 {
  color: var(--white);
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.detail-info .primary-button {
  margin-top: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow-lg);
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  z-index: 2;
}

.player-overlay.is-hidden {
  display: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mist-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  font-size: 2rem;
  text-indent: 4px;
}

.detail-text-card,
.text-panel {
  padding: 34px;
}

.detail-text-card h2 {
  margin: 0 0 12px;
  color: var(--mist-900);
  font-size: 1.45rem;
}

.detail-text-card p + h2 {
  margin-top: 30px;
}

.text-panel p + p {
  margin-top: 18px;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.site-footer a:not(.site-logo) {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: var(--white);
}

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

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

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-card-wide,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 280px;
  }

  .feature-grid,
  .compact-rank {
    grid-template-columns: 1fr;
  }

  .feature-big {
    grid-row: auto;
  }

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

@media (max-width: 620px) {
  .container,
  .narrow-container {
    width: min(100% - 24px, 1280px);
  }

  .content-section {
    padding: 48px 0;
  }

  .hero {
    height: 68vh;
    min-height: 560px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }

  .hero-actions,
  .section-head,
  .filter-bar,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .section-link,
  .filter-bar a,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .movie-grid,
  .dense-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body h2 {
    font-size: 0.98rem;
  }

  .movie-card-body p {
    font-size: 0.9rem;
  }

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

  .rank-card {
    grid-template-columns: 42px 72px 1fr;
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .detail-hero-inner {
    padding-bottom: 48px;
  }

  .detail-cover {
    max-width: 220px;
  }

  .detail-text-card,
  .text-panel {
    padding: 24px;
  }
}
