:root {
  --primary-50: #e6f1ff;
  --primary-100: #b3d9ff;
  --primary-600: #0059c0;
  --primary-700: #00438d;
  --accent-50: #fff3e6;
  --accent-500: #ff6b00;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #adb5bd;
  --neutral-500: #6c757d;
  --neutral-600: #495057;
  --neutral-700: #343a40;
  --neutral-800: #212529;
  --neutral-900: #0d1117;
  --shadow-soft: 0 12px 28px rgba(13, 17, 23, 0.08);
  --shadow-strong: 0 20px 45px rgba(13, 17, 23, 0.18);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(222, 226, 230, 0.8);
  box-shadow: 0 6px 24px rgba(13, 17, 23, 0.07);
  backdrop-filter: blur(12px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-600);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 89, 192, 0.25);
  font-size: 14px;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--neutral-700);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-600);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.search-large input,
.filter-search input {
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--neutral-900);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 9px 12px;
}

.nav-search input:focus,
.search-large input:focus,
.filter-search input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(0, 89, 192, 0.12);
}

.nav-search button,
.search-large button,
.quick-search button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--primary-600);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 9px 14px;
}

.nav-search button:hover,
.search-large button:hover,
.quick-search button:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--neutral-700);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--neutral-700);
  font-weight: 700;
  border-top: 1px solid var(--neutral-200);
}

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

.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-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: #fff;
  background: var(--accent-500);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.25);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 12px 24px rgba(0, 89, 192, 0.28);
}

.primary-button:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 89, 192, 0.34);
}

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

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.quick-search,
.filter-panel,
.search-page {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 28px;
  align-items: center;
  margin-top: -46px;
  position: relative;
  z-index: 7;
  padding: 26px;
}

.quick-search h2,
.quick-search p {
  margin: 0;
}

.quick-search p {
  margin-top: 6px;
  color: var(--neutral-600);
}

.quick-search form,
.search-large {
  display: flex;
  gap: 10px;
}

.quick-search input,
.search-large input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 14px;
  outline: none;
}

.quick-search button,
.search-large button {
  padding: 0 22px;
}

.section-stack {
  display: grid;
  gap: 64px;
  padding: 64px 0;
}

.content-section,
.feature-panel,
.story-card,
.watch-panel,
.category-panel {
  border-radius: var(--radius-xl);
}

.feature-panel {
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading > span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-500);
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.section-heading a {
  margin-left: auto;
  color: var(--primary-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

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

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-500);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: var(--neutral-400);
}

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

.movie-card h2 a:hover,
.mini-title:hover,
.ranking-item h2 a:hover {
  color: var(--primary-600);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--neutral-600);
  font-size: 14px;
}

.tag-row span {
  color: var(--primary-700);
  background: var(--primary-50);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.ranking-list.full {
  padding-bottom: 70px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  border-radius: 14px;
  font-weight: 900;
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--neutral-200);
}

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

.rank-content h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content p {
  margin: 0 0 8px;
  color: var(--neutral-600);
  font-size: 14px;
}

.category-panel {
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-panel h2 {
  margin-top: 0;
}

.category-grid {
  display: grid;
  gap: 16px;
}

.category-card,
.category-overview-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.category-grid.compact .category-card {
  box-shadow: none;
  border: 1px solid var(--neutral-200);
}

.category-main {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-50), #fff);
}

.category-main span {
  color: var(--primary-600);
  font-weight: 900;
  font-size: 18px;
}

.category-main strong {
  color: var(--neutral-600);
  font-size: 14px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 18px;
}

.category-samples a {
  padding: 4px 9px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.category-samples a:hover {
  color: #fff;
  background: var(--primary-600);
}

.page-hero {
  color: #fff;
  padding: 62px 0;
  background: linear-gradient(120deg, var(--primary-600), var(--primary-700));
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--primary-100);
  font-weight: 800;
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4vw, 46px);
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-top: -26px;
  position: relative;
  z-index: 3;
  padding: 22px;
}

.filter-search input {
  width: 100%;
  padding: 14px 16px;
}

.filter-chips,
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.search-tags a {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-weight: 800;
  cursor: pointer;
}

.chip.active,
.chip:hover,
.search-tags a:hover {
  color: #fff;
  background: var(--primary-600);
}

[data-card-list] {
  margin-top: 32px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 56px 0 76px;
}

.category-cover-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

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

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0 0 8px;
}

.category-overview-body p {
  margin: 0;
  color: var(--neutral-600);
}

.search-page {
  margin-top: 36px;
  margin-bottom: 76px;
  padding: 30px;
}

.search-large input {
  padding: 15px 18px;
}

.search-large button {
  min-width: 110px;
}

.search-tags {
  margin: 18px 0 28px;
}

.search-summary {
  margin: 0 0 18px;
  color: var(--neutral-600);
  font-weight: 800;
}

.search-results .movie-grid {
  margin-top: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #fff;
  background: var(--neutral-900);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.66), rgba(13, 17, 23, 0.28));
}

.detail-layer {
  position: relative;
  z-index: 2;
  padding: 36px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 42px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  background: var(--neutral-800);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.detail-meta {
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.68);
}

.detail-copy .tag-row span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

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

.detail-main {
  display: grid;
  gap: 28px;
  padding: 54px 0 74px;
}

.watch-panel,
.story-card {
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.watch-panel h2,
.story-card h2 {
  margin-top: 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-strong);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 89, 192, 0.45));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 16px 36px rgba(255, 107, 0, 0.34);
  font-size: 32px;
}

.player-cover strong {
  font-size: 20px;
}

.story-card p {
  margin-bottom: 0;
  color: var(--neutral-700);
  font-size: 16px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--neutral-50);
}

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

.info-list dd {
  margin: 4px 0 0;
  color: var(--neutral-900);
  font-weight: 800;
}

.detail-neighbor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-neighbor a {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--neutral-700);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.detail-neighbor a:last-child {
  text-align: right;
}

.site-footer {
  color: var(--neutral-300);
  background: var(--neutral-800);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 38px;
  padding: 44px 0;
}

.footer-main p {
  max-width: 520px;
  color: var(--neutral-400);
}

.site-footer h2 {
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--neutral-400);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-500);
  text-align: center;
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1120px) {
  .desktop-links {
    gap: 12px;
    font-size: 14px;
  }

  .nav-search input {
    width: 170px;
  }

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

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

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .quick-search form,
  .search-large {
    flex-direction: column;
  }

  .quick-search button,
  .search-large button {
    min-height: 46px;
  }

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

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

  .detail-poster {
    width: min(260px, 100%);
  }

  .info-list,
  .detail-neighbor {
    grid-template-columns: 1fr;
  }

  .detail-neighbor a:last-child {
    text-align: left;
  }

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

@media (max-width: 560px) {
  .nav-inner {
    height: 58px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .container,
  .nav-inner,
  .mobile-menu,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

  .feature-panel,
  .watch-panel,
  .story-card,
  .search-page {
    padding: 20px;
  }

  .ranking-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}
