:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 75px rgba(2, 6, 23, 0.38);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f1f5f9 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  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));
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

.site-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.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-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.brand-name {
  font-size: 21px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  transition: right 0.22s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 1.1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.34), transparent 28%),
    radial-gradient(circle at 78% 35%, rgba(34, 211, 238, 0.20), transparent 30%),
    linear-gradient(180deg, transparent 70%, rgba(2, 6, 23, 0.88));
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 84px 0 92px;
}

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

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.hero h2 {
  margin: 18px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags {
  margin: 28px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.30);
}

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

.btn.ghost.light {
  color: var(--white);
}

.btn.wide {
  width: 100%;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.32);
}

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

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.home-search {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search input,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
}

.quick-search input {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--slate-100);
}

.quick-search button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  color: var(--slate-950);
  font-weight: 800;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  cursor: pointer;
}

.section-block {
  margin-top: 72px;
}

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

.section-head h2,
.feature-panel h2,
.rank-panel h2,
.detail-content h2 {
  margin: 7px 0 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.72));
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.card-body {
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 700;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--emerald-dark);
}

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

.tag-row span,
.detail-tags span {
  color: #047857;
  background: #d1fae5;
}

.split-area {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
}

.feature-panel,
.rank-panel {
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.feature-panel {
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.35), transparent 36%),
    linear-gradient(135deg, var(--slate-900), #064e3b);
}

.feature-panel h2,
.feature-panel p {
  color: var(--white);
}

.feature-panel p {
  margin: 18px 0 26px;
  line-height: 1.8;
}

.rank-panel {
  background: var(--white);
}

.row-list,
.rank-list {
  display: grid;
  gap: 14px;
}

.movie-row {
  display: grid;
  grid-template-columns: auto 116px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.movie-row img {
  width: 116px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.list-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.row-content {
  min-width: 0;
}

.row-content strong,
.row-content em,
.row-content small {
  display: block;
}

.row-content strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.row-content em {
  margin-bottom: 5px;
  color: var(--emerald-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.row-content small {
  color: var(--slate-600);
  line-height: 1.55;
}

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

.category-tile {
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  line-height: 1.55;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background-color: var(--slate-900);
  background-position: center;
  background-size: cover;
}

.compact-hero,
.category-hero {
  padding: 96px 0 76px;
  background:
    radial-gradient(circle at 25% 20%, rgba(16, 185, 129, 0.28), transparent 34%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1,
.detail-hero h1 {
  max-width: 860px;
  margin: 14px 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.category-wide-grid {
  display: grid;
  gap: 22px;
  margin-top: 56px;
}

.category-card-wide {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-strong);
}

.category-card-wide h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
}

.category-card-wide p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sample-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-box {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--slate-100);
}

.search-box span {
  color: var(--emerald-dark);
  font-size: 22px;
  font-weight: 900;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-700);
  background: #e2e8f0;
  cursor: pointer;
  font-weight: 750;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.movie-card.is-hidden,
.movie-row.is-hidden {
  display: none;
}

.detail-hero {
  padding: 76px 0 84px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.player-card,
.detail-side,
.detail-content {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--slate-950);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.52));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 58px rgba(2, 6, 23, 0.35);
  font-size: 34px;
}

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

.detail-side {
  padding: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

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

.side-meta span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.detail-content-wrap {
  margin-top: 28px;
}

.detail-content {
  padding: clamp(24px, 4vw, 44px);
}

.detail-content h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 25px;
}

.detail-content p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.quote-text {
  padding: 18px 20px;
  border-left: 5px solid var(--emerald);
  border-radius: 0 18px 18px 0;
  background: #ecfdf5;
  font-weight: 650;
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 10;
}

.movie-card.compact p {
  min-height: 42px;
}

.site-footer {
  margin-top: 90px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

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

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

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

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  font-size: 13px;
}

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

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

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

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

  .nav-link:hover,
  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    display: none;
  }

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

  .split-area,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    margin-top: -32px;
  }

  .category-card-wide {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    min-height: 62px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero,
  .hero-layout {
    min-height: 580px;
  }

  .hero-layout {
    padding: 64px 0 84px;
  }

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

  .quick-search {
    grid-template-columns: 1fr;
  }

  .section-block {
    margin-top: 52px;
  }

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

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

  .movie-row {
    grid-template-columns: auto 88px 1fr;
    gap: 10px;
  }

  .movie-row img {
    width: 88px;
  }

  .row-content small {
    display: none;
  }

  .feature-panel,
  .rank-panel,
  .category-card-wide,
  .detail-content {
    padding: 24px;
    border-radius: 24px;
  }

  .page-hero,
  .compact-hero,
  .category-hero,
  .detail-hero {
    padding: 70px 0 60px;
  }

  .side-meta {
    grid-template-columns: 1fr;
  }
}
