:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-600));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

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

.nav-link,
.mobile-link {
  color: var(--slate-600);
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--slate-900);
  background: var(--slate-100);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.home-hero {
  min-height: 540px;
  height: 64vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-glow {
  position: absolute;
  inset: auto -10% -35% auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
  filter: blur(22px);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--slate-700);
  background: var(--slate-100);
  border-color: var(--slate-200);
}

.hero-copy h1,
.category-hero h1,
.page-title-block h1 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 82px);
}

.hero-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--slate-200);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags a,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-tags a {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
  color: var(--slate-900);
  background: var(--white);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button.compact {
  color: var(--white);
  background: var(--slate-900);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.ghost-button.compact {
  color: var(--slate-900);
  background: var(--white);
  border-color: var(--slate-200);
}

.hero-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.hero-search {
  max-width: 620px;
}

.hero-search input,
.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
}

.hero-search button,
.search-panel button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--slate-900);
  font-weight: 800;
}

.hero-card-section {
  position: relative;
  z-index: 2;
  margin-top: -82px;
  margin-bottom: 72px;
}

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

.content-section {
  margin: 74px auto;
}

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

.section-head h2,
.detail-main h2,
.related-panel h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--slate-500);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-600);
  font-weight: 800;
}

.section-link:hover {
  color: var(--slate-900);
}

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

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

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

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

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

.movie-card {
  display: block;
  min-width: 0;
  color: var(--slate-900);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
  box-shadow: var(--shadow-card);
}

.poster-frame img,
.mini-card img,
.rank-row img,
.category-cover img,
.spotlight-panel img,
.detail-poster,
.player-cover img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame img,
.category-cover img,
.category-tile img,
.spotlight-panel img {
  transition: transform 0.55s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img,
.category-card:hover .category-cover img,
.category-tile:hover img,
.spotlight-panel:hover img {
  transform: scale(1.07);
}

.movie-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
}

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

.movie-card-body {
  display: block;
  padding-top: 13px;
}

.movie-card strong,
.mini-card strong,
.rank-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card:hover strong,
.category-card a:hover,
.mini-card:hover strong,
.rank-row:hover strong {
  color: var(--slate-600);
}

.movie-meta,
.movie-genre,
.movie-line {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-genre,
.movie-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meta {
  margin-top: 5px;
}

.movie-line {
  margin-top: 7px;
  color: var(--slate-600);
}

.category-band {
  padding: 70px 0;
  background: var(--white);
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.84));
}

.category-tile span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  color: var(--white);
}

.category-tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.category-tile em,
.rank-row em,
.mini-card em {
  display: block;
  color: var(--slate-300);
  font-style: normal;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.rank-panel,
.spotlight-panel,
.category-card,
.detail-main,
.related-panel,
.search-results-section {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-panel,
.detail-main,
.related-panel,
.search-results-section {
  padding: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  background: var(--slate-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: var(--white);
  transform: translateX(3px);
}

.rank-num {
  color: var(--slate-400);
  font-size: 22px;
  font-weight: 850;
}

.rank-row img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: var(--slate-200);
}

.rank-info {
  min-width: 0;
}

.rank-info em {
  color: var(--slate-500);
}

.rank-arrow {
  color: var(--slate-400);
  font-size: 28px;
}

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

.spotlight-panel {
  overflow: hidden;
}

.spotlight-panel img {
  aspect-ratio: 16 / 11;
}

.spotlight-panel div {
  padding: 28px;
}

.spotlight-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.spotlight-panel p {
  color: var(--slate-600);
}

.page-main {
  padding: 64px 0 80px;
}

.page-title-block {
  max-width: 780px;
  margin-bottom: 42px;
}

.page-title-block h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.page-title-block p {
  color: var(--slate-600);
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
}

.category-cover {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: var(--slate-800);
}

.category-cover span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

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

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-card p {
  color: var(--slate-600);
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: var(--slate-700);
  font-weight: 700;
}

.category-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.category-hero-inner {
  padding: 54px 0;
}

.category-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 72px);
}

.category-hero p {
  max-width: 700px;
  color: var(--slate-200);
  font-size: 18px;
}

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

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  font-weight: 800;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--slate-900);
  border-color: var(--slate-900);
}

.search-panel {
  max-width: 720px;
  border: 1px solid var(--slate-200);
}

.search-results-section {
  margin: 0 0 70px;
}

.detail-hero {
  padding: 34px 0 44px;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000000;
}

.player-cover {
  padding: 0;
  border: 0;
  color: var(--white);
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  background: var(--slate-700);
  box-shadow: var(--shadow-soft);
}

.detail-side-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-side-card strong {
  font-size: 28px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 44px;
  margin-bottom: 86px;
  align-items: start;
}

.detail-main h1 {
  margin: 4px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  color: var(--slate-600);
  font-size: 19px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.tag-list span {
  padding: 7px 11px;
  color: var(--slate-700);
  background: var(--slate-100);
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 700;
}

.info-line span {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.detail-main h2,
.related-panel h2 {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 28px;
}

.detail-main p {
  margin: 0 0 16px;
  color: var(--slate-700);
}

.related-panel {
  position: sticky;
  top: 96px;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.mini-card img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: var(--slate-200);
}

.mini-card em {
  color: var(--slate-500);
}

.site-footer {
  padding: 44px 0;
  color: var(--slate-400);
  background: var(--slate-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-logo {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.is-missing {
  opacity: 0;
}

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

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

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

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

  .related-panel {
    position: static;
  }

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

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

  .menu-button {
    display: flex;
  }

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

  .home-hero {
    height: auto;
    min-height: 620px;
    padding: 72px 0 120px;
  }

  .hero-card-section {
    margin-top: -70px;
  }

  .hero-card-grid,
  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .category-movie-grid,
  .large-rank-list,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-side {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .category-hero {
    min-height: 450px;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .header-inner {
    width: min(100% - 22px, 1280px);
  }

  .header-inner {
    height: 64px;
  }

  .hero-search,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button,
  .search-panel button {
    width: 100%;
  }

  .featured-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .category-movie-grid,
  .related-grid {
    gap: 14px;
  }

  .movie-card-body {
    padding-top: 10px;
  }

  .movie-line,
  .movie-genre {
    display: none;
  }

  .rank-row {
    grid-template-columns: 34px 52px minmax(0, 1fr) 16px;
    gap: 10px;
  }

  .rank-num {
    font-size: 18px;
  }

  .rank-row strong,
  .movie-card strong {
    font-size: 14px;
  }

  .detail-main,
  .related-panel,
  .rank-panel,
  .search-results-section {
    padding: 20px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
