:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #152033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-400: #22d3ee;
  --white: #ffffff;
  --shadow-card: 0 18px 42px rgba(15, 23, 42, 0.13);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 28rem),
    linear-gradient(135deg, #f8fafc 0%, #f3f4f6 52%, #e2e8f0 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
}

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

.navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-400), var(--cyan-400));
  color: var(--slate-950);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.36);
}

.logo-text {
  display: inline-block;
  max-width: 380px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(90deg, var(--teal-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-search-button,
.mobile-toggle {
  border: 0;
  border-radius: 12px;
  color: var(--gray-300);
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-search-button:hover,
.mobile-toggle:hover {
  color: var(--white);
  background: rgba(51, 65, 85, 0.86);
}

.nav-link.is-active {
  background: var(--teal-600);
}

.mobile-toggle {
  display: none;
  padding: 9px 11px;
}

.nav-extra-search {
  display: none;
  padding: 0 0 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-extra-search.is-open {
  display: block;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-input,
.search-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.74);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus,
.search-select:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.search-select option {
  color: var(--gray-900);
}

.search-submit,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border 0.22s ease;
}

.search-submit,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.26);
}

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

.secondary-button {
  color: var(--teal-700, #0f766e);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 620px;
  background: var(--slate-950);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(45, 212, 191, 0.26), transparent 30rem),
    radial-gradient(circle at 76% 18%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.82));
  z-index: 1;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.06);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.20)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 84px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--teal-300);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.tag-list,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: #dffdf9;
  background: rgba(20, 184, 166, 0.20);
  border: 1px solid rgba(94, 234, 212, 0.22);
  font-size: 13px;
  font-weight: 650;
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.46);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-panel-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.hero-panel-title {
  margin: 8px 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-panel-text {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 46px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal-600);
  font-weight: 800;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 760px;
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-600));
}

.movie-poster.tall {
  aspect-ratio: 4 / 5;
}

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

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

.movie-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.play-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 18px 30px rgba(20, 184, 166, 0.28);
}

.card-label,
.card-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
}

.card-label {
  left: 12px;
  background: var(--teal-500);
}

.card-year {
  right: 12px;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--teal-600);
}

.movie-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
}

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(94, 234, 212, 0.25), transparent 9rem),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.20);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.8;
}

.category-card span {
  margin-top: 18px;
  color: var(--teal-300);
  font-weight: 800;
}

.rank-card {
  display: grid;
  grid-template-columns: 74px 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
}

.rank-card img {
  width: 160px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-600));
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.page-hero {
  color: var(--white);
  padding: 76px 0 62px;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.28), transparent 26rem),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.85;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--teal-300);
}

.filter-panel {
  margin-bottom: 30px;
  border-radius: var(--radius-xl);
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel .search-input,
.filter-panel .search-select {
  color: var(--gray-900);
  background: var(--gray-50);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
}

.detail-hero {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.24), transparent 28rem),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  padding: 42px 0 72px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 38px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  background: linear-gradient(135deg, var(--slate-800), var(--teal-600));
}

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

.detail-copy h1 {
  margin: 16px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.9;
}

.player-section {
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-950);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.30);
}

.player-frame {
  position: relative;
  background: #000;
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72)),
    var(--poster-bg, transparent);
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-action {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
  box-shadow: 0 20px 46px rgba(20, 184, 166, 0.34);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.play-action:hover {
  transform: scale(1.08);
}

.player-info {
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
}

.player-info h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.player-info p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.8;
}

.article-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.article-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
  line-height: 2;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 48px 0;
}

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

.footer-grid p,
.footer-grid li {
  color: var(--gray-300);
  line-height: 1.8;
  font-size: 14px;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--teal-300);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px 0;
  text-align: center;
  color: var(--gray-300);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

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

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

  .hero-panel {
    max-width: 440px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 24px 52px rgba(2, 6, 23, 0.36);
  }

  .nav-link,
  .nav-search-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .logo-text {
    max-width: 240px;
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 52px 0 78px;
    gap: 28px;
  }

  .hero-panel {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-grid,
  .category-grid,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 46px 112px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card img {
    width: 112px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

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

  .search-row {
    flex-direction: column;
  }

  .detail-hero {
    padding-bottom: 52px;
  }

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

  .article-card {
    padding: 24px;
  }
}

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

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .rank-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-card img {
    display: none;
  }
}
