:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: #0b1120;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --emerald-line: rgba(16, 185, 129, 0.44);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(20, 184, 166, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #34d399;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: #ecfdf5;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.10);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #34d399;
}

.nav-link-sub {
  color: #94a3b8;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-link {
  padding: 11px 12px;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(30, 41, 59, 0.7);
}

.hero-slider {
  position: relative;
  height: min(760px, 72vh);
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #030712 0%, rgba(3, 7, 18, 0.84) 24%, rgba(3, 7, 18, 0.42) 58%, rgba(3, 7, 18, 0.32) 100%),
    linear-gradient(to right, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.34), rgba(3, 7, 18, 0.08));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 96px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--emerald-line);
  border-radius: 999px;
  background: var(--emerald-soft);
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.rank-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.rank-hero p {
  width: min(720px, 100%);
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.primary-button {
  border: 1px solid rgba(16, 185, 129, 0.58);
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.18);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

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

.small-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 4;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: white;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 28px;
  background: #10b981;
}

.home-search-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.72);
}

.home-search-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-search-inner strong {
  display: block;
  font-size: 20px;
}

.home-search-inner span {
  color: var(--muted);
}

.jump-search {
  display: flex;
  gap: 10px;
  width: min(520px, 100%);
}

.jump-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(3, 7, 18, 0.72);
  color: var(--text);
  padding: 0 14px;
}

.jump-search button {
  border: 0;
  background: #059669;
  color: white;
  cursor: pointer;
}

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

.feature-band,
.ranking-band {
  background: rgba(15, 23, 42, 0.46);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

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

.section-more {
  color: #34d399;
  font-weight: 700;
}

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

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

.movie-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.movie-card-compact .movie-card-cover {
  border-radius: 14px;
}

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

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

.movie-card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1) 48%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(16, 185, 129, 0.92);
  color: white;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.rank-badge {
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: rgba(2, 6, 23, 0.78);
  color: #facc15;
}

.movie-card-body {
  padding-top: 12px;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card h3 a {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: #34d399;
}

.movie-card-meta,
.movie-card-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-desc {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #9ca3af;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-row span {
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  font-size: 12px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.feature-main {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-main img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-main:hover img,
.category-card:hover img {
  transform: scale(1.06);
}

.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.22));
}

.feature-main div {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
}

.feature-main h3 {
  margin: 0 0 10px;
  font-size: 32px;
}

.feature-main p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

.feature-side,
.ranking-grid {
  display: grid;
  gap: 16px;
}

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

.horizontal-card {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(30, 41, 59, 0.78);
}

.horizontal-card img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.horizontal-card h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: white;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-card p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-card span {
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
}

.ranking-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399 !important;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  isolation: isolate;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.36));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-card span {
  font-size: 20px;
  font-weight: 800;
}

.category-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 96px 0 72px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), transparent 44%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.78), rgba(3, 7, 18, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.slim-hero {
  padding-top: 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #34d399;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.category-overview-stack {
  display: grid;
  gap: 28px;
  padding: 56px 0;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.category-overview-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 18px;
}

.category-overview-visual img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.rank-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.rank-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.64), rgba(3, 7, 18, 0.84)),
    linear-gradient(to top, #030712, transparent);
}

.rank-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 32px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0;
}

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

.player-section {
  padding: 34px 0 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(3, 7, 18, 0.98));
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), rgba(2, 6, 23, 0.68));
  color: white;
  cursor: pointer;
  text-align: center;
}

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

.big-play {
  display: inline-grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.12);
  font-size: 30px;
}

.detail-content-section {
  padding: 48px 0 30px;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

.detail-copy {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.8);
}

.detail-lead {
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.detail-copy h2 {
  margin: 28px 0 12px;
  color: #f8fafc;
  font-size: 24px;
}

.detail-copy p {
  color: #cbd5e1;
  line-height: 1.92;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.86);
}

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

.footer-brand p,
.site-footer a,
.site-footer li {
  color: var(--muted);
}

.footer-brand p {
  max-width: 560px;
  line-height: 1.8;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #34d399;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

  .feature-layout,
  .rank-hero-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-overview-list,
  .wide-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .site-header-inner,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .hero-slider {
    height: 680px;
    min-height: 680px;
  }

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

  .hero-copy p,
  .page-hero p,
  .rank-hero p {
    font-size: 16px;
  }

  .home-search-inner,
  .jump-search,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

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

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

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

  .horizontal-card img {
    width: 104px;
  }

  .category-overview-visual img {
    min-height: 170px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }
}
