:root {
  --slate-950: #020617;
  --slate-925: #08111f;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --purple-soft: rgba(168, 85, 247, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
}

.nav-shell {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-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: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.28);
  font-size: 14px;
}

.brand-text {
  color: var(--white);
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--slate-300);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-400);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--slate-100);
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--slate-800);
  background: var(--slate-900);
  padding: 12px 20px 18px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.page {
  min-height: 100vh;
}

.inner-page {
  padding-top: 64px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 42%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  transform: translate(-50%, -42%);
  max-width: 760px;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-400);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--slate-300);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  color: var(--teal-300);
  background: rgba(20, 184, 166, 0.12);
  font-size: 14px;
}

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

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

.primary-btn {
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.2);
}

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

.primary-btn:hover {
  background: #0d9488;
}

.ghost-btn {
  color: var(--slate-100);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.ghost-btn:hover {
  border-color: rgba(20, 184, 166, 0.45);
  color: var(--teal-300);
}

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

.hero-dot {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--teal-400);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 0;
}

.quick-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34%),
    rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.content-card h2 {
  margin: 0;
  color: var(--white);
}

.quick-search p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--slate-400);
  line-height: 1.7;
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--teal-400);
  font-weight: 750;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 22px;
  background: var(--slate-800);
  box-shadow: var(--shadow);
}

.category-card img,
.category-overview-card img,
.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-mask,
.mosaic-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.14));
}

.category-card strong,
.category-card em,
.category-overview-card span,
.mosaic-info {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-card strong {
  bottom: 66px;
  color: var(--white);
  font-size: 22px;
}

.category-card em {
  bottom: 22px;
  color: var(--slate-300);
  font-style: normal;
  line-height: 1.45;
  font-size: 14px;
}

.category-overview-card {
  min-height: 280px;
}

.category-overview-card span {
  bottom: 22px;
}

.category-overview-card strong {
  display: block;
  color: var(--white);
  font-size: 26px;
  margin-bottom: 10px;
}

.category-overview-card em {
  color: var(--slate-300);
  font-style: normal;
  line-height: 1.6;
}

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

.list-grid {
  margin-top: 28px;
}

.movie-card {
  display: block;
  min-width: 0;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 18px;
  background: var(--slate-800);
  box-shadow: var(--shadow);
}

.wide-card .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.1);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08) 55%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.poster-action {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(20, 184, 166, 0.86);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-action {
  opacity: 1;
  transform: translateY(0);
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.movie-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  margin-top: 13px;
  overflow: hidden;
  color: var(--white);
  font-size: 17px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--teal-400);
}

.movie-card em,
.rank-text em,
.compact-card em {
  display: block;
  color: var(--slate-400);
  font-style: normal;
  font-size: 13px;
}

.movie-card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 8px;
  overflow: hidden;
  color: var(--slate-400);
  line-height: 1.6;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.two-column-layout,
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.review-list {
  display: grid;
  gap: 18px;
}

.review-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.56);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateY(-2px);
}

.review-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

.review-card strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 8px;
}

.review-card em {
  display: block;
  color: var(--teal-400);
  font-style: normal;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: var(--slate-300);
  line-height: 1.75;
}

.rank-panel {
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: rgba(51, 65, 85, 0.46);
}

.rank-no {
  color: var(--teal-400);
  font-weight: 850;
  font-size: 20px;
}

.rank-item img {
  width: 66px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-text strong,
.compact-card strong {
  display: block;
  color: var(--white);
  line-height: 1.45;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mosaic-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--slate-800);
}

.mosaic-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 460px;
}

.mosaic-info {
  bottom: 22px;
}

.mosaic-info em {
  color: var(--teal-400);
  font-style: normal;
  font-size: 13px;
}

.mosaic-info strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 24px;
}

.mosaic-info small {
  display: block;
  max-width: 580px;
  margin-top: 8px;
  color: var(--slate-300);
  line-height: 1.6;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 0;
  padding: 58px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, var(--blue-soft), transparent 30%),
    radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.16), transparent 34%),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.slim-hero h1,
.category-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-300);
  font-weight: 750;
}

.search-box input,
.filter-selects select {
  min-height: 46px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 12px;
  color: var(--slate-100);
  background: var(--slate-900);
  outline: none;
}

.search-box input {
  width: 100%;
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-selects select {
  padding: 0 12px;
}

.detail-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.03);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.42)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.2));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--slate-400);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.detail-one-line {
  max-width: 760px;
  color: var(--slate-300);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding-top: 26px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: 0 0 45px rgba(20, 184, 166, 0.36);
  font-size: 34px;
  text-indent: 4px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.52);
}

.content-card h2 {
  font-size: 24px;
}

.content-card p {
  color: var(--slate-300);
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 78px;
  border-top: 1px solid var(--slate-800);
  background: var(--slate-900);
}

.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer p,
.footer-links a,
.footer-bottom {
  color: var(--slate-400);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  font-size: 14px;
}

[data-card].is-filtered {
  display: none;
}

@media (max-width: 1024px) {
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-column-layout,
  .ranking-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    width: 100%;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 78vh;
    min-height: 620px;
  }

  .hero-content {
    transform: translate(-50%, -38%);
  }

  .hero h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .quick-search,
  .section-head,
  .filter-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-shell,
  .page-hero,
  .detail-hero-content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .page-hero {
    padding: 34px 24px;
  }

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

  .review-card,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .mosaic-card.large {
    grid-column: span 2;
    min-height: 320px;
  }

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

@media (max-width: 520px) {
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .mosaic-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-card.large {
    grid-column: span 1;
  }

  .hero-actions {
    display: grid;
  }
}
