
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --cyan-400: #22d3ee;
  --white: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.24);
}

.site-nav {
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-400);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 650;
}

.nav-link {
  transition: color 0.22s ease, transform 0.22s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 12px;
  font-size: 24px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 10px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 44px);
  color: var(--emerald-400);
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.primary-btn {
  background: var(--emerald-500);
  color: var(--white);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.28);
}

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

.primary-btn:hover {
  background: var(--emerald-600);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

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

.section-wrap,
.page-shell,
.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 0;
}

.no-top-space {
  padding-top: 28px;
}

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

.section-title h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-title a {
  color: var(--emerald-600);
  font-weight: 800;
}

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

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

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

.rank-grid {
  counter-reset: rank;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: auto;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.82);
  color: var(--white);
  font-size: 24px;
  transform: scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-400));
  color: var(--white);
  font-size: 14px;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--emerald-600);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.tag-row,
.genre-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span,
.tag-row span,
.genre-row span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 750;
}

.tag-row {
  margin-top: 12px;
}

.strong-tags span {
  padding: 8px 12px;
}

.soft-panel {
  margin-top: 76px;
  border-radius: 32px;
  padding: 46px 36px;
  background: linear-gradient(135deg, #ecfdf5, #ecfeff);
}

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

.category-tile,
.category-card-large a {
  display: block;
  min-height: 142px;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-card-large h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 850;
  color: #0f172a;
}

.category-tile p,
.category-card-large p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.site-search,
.year-filter {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--white);
  color: #0f172a;
  font-size: 15px;
  outline: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.site-search:focus,
.year-filter:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 58px;
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.3), transparent 30%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.85;
}

.category-list-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--emerald-600);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.24), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.36);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.player-section,
.detail-content {
  margin-top: 34px;
  border-radius: 28px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.player-section h2,
.detail-content h2 {
  margin: 0 0 20px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24), rgba(2, 6, 23, 0.68));
  color: var(--white);
}

.player-mask span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald-500);
  font-size: 34px;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.28);
}

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

.detail-content p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.related-wrap {
  padding-top: 42px;
}

.site-footer {
  margin-top: 84px;
  padding: 46px 24px 26px;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

.footer-inner p {
  max-width: 650px;
  margin: 0;
  line-height: 1.9;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

.footer-copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .featured-grid,
  .movie-grid,
  .category-grid,
  .category-list-large,
  .footer-inner,
  .detail-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav {
    min-height: 64px;
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 0 18px;
  }

  .hero p {
    font-size: 17px;
  }

  .section-wrap,
  .page-shell,
  .detail-shell {
    padding: 46px 16px 0;
  }

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

  .featured-grid,
  .movie-grid,
  .category-grid,
  .category-list-large,
  .footer-inner,
  .detail-hero,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .soft-panel,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-content {
    padding: 24px;
    border-radius: 26px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
