:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --cyan-50: #ecfeff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-400), #67e8f9);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--slate-200);
}

.nav-link {
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link-soft {
  color: #cbd5e1;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 92px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-300, #5eead4);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-700);
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h2 {
  max-width: 820px;
  margin: 18px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero p,
.page-hero p,
.detail-line {
  max-width: 760px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(20, 184, 166, 0.78);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-link,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.quick-search button {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-400), #67e8f9);
  box-shadow: 0 14px 28px rgba(45, 212, 191, 0.26);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.quick-search button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
}

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

.search-hero-panel {
  margin-top: -46px;
  position: relative;
  z-index: 20;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  color: var(--slate-800);
  background: var(--white);
  border-radius: 14px;
  font: inherit;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.category-strip a,
.category-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--teal-700));
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.category-strip strong,
.category-card h2 {
  font-size: 20px;
}

.category-strip span,
.category-card p {
  color: #dbeafe;
  font-size: 14px;
}

.content-section {
  padding: 70px 0 0;
}

.soft-section {
  margin-top: 70px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(236, 254, 255, 0.96));
  border: 1px solid rgba(203, 213, 225, 0.64);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--slate-600);
}

.section-link {
  color: var(--teal-700);
  background: rgba(20, 184, 166, 0.1);
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

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

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

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

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

.movie-card-meta {
  display: flex;
  gap: 8px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--slate-900);
  font-size: 20px;
  line-height: 1.25;
}

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

.movie-card .tag-row span,
.meta-tags span {
  color: var(--teal-700);
  background: rgba(20, 184, 166, 0.1);
}

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

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

.rank-card a {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-num {
  color: var(--teal-600);
  font-size: 24px;
  font-weight: 900;
}

.rank-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.rank-card h3 {
  margin: 0 0 4px;
  color: var(--slate-900);
  font-size: 18px;
}

.rank-card p {
  margin: 0 0 8px;
  color: var(--slate-600);
  font-size: 13px;
}

.rank-meta {
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 900;
}

.page-shell {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--teal-700));
}

.slim-hero {
  padding: 78px 0 72px;
}

.small-actions {
  margin-top: 20px;
}

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

.category-card {
  min-height: 230px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.category-card a {
  min-height: 230px;
  justify-content: flex-end;
  background: transparent;
  box-shadow: none;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 900;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  color: var(--slate-600);
  text-align: center;
  background: var(--white);
  border-radius: 20px;
}

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

.detail-hero {
  padding: 70px 0;
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.player-section {
  padding: 66px 0 0;
}

.player-heading {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-400), #67e8f9);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(20, 184, 166, 0.26);
}

.play-overlay strong {
  font-size: 18px;
}

.player-shell.is-playing .play-overlay,
.player-shell.is-ready .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 26px;
}

.detail-card h2:not(:first-child) {
  margin-top: 28px;
}

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

.meta-card dl {
  display: grid;
  gap: 13px;
  margin: 0 0 22px;
}

.meta-card div {
  display: grid;
  gap: 3px;
}

.meta-card dt {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: var(--slate-900);
}

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

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

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

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

  .category-strip,
  .movie-grid,
  .compact-grid,
  .large-rank-grid,
  .footer-grid,
  .detail-content-grid,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .hero {
    height: 620px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-control {
    display: none;
  }

  .quick-search,
  .category-strip,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .large-rank-grid,
  .category-grid,
  .detail-layout,
  .detail-content-grid,
  .footer-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

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

  .soft-section {
    padding: 22px;
  }

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

  .site-logo {
    font-size: 20px;
  }
}
