:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  height: 72px;
  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-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.28);
  font-size: 14px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ecfdf5;
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--emerald-dark);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 44%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-content {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: center;
  padding: 72px 0 84px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a7f3d0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.2);
  border: 1px solid rgba(167, 243, 208, 0.24);
}

.hero-copy h1 {
  margin: 24px 0 8px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.7vw, 48px);
  line-height: 1.1;
  color: #d1fae5;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
  max-width: 700px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.32);
}

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

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.intro-search {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

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

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.section-block,
.list-section {
  padding: 72px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-main-card h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-kicker {
  color: var(--emerald-dark);
  font-size: 13px;
}

.text-link {
  color: var(--emerald-dark);
  font-weight: 900;
}

.text-link.light,
.section-head.light h2 {
  color: #ffffff;
}

.section-head.light .section-kicker {
  color: #a7f3d0;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.76;
}

.category-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-card span,
.feature-overlay span {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.category-card h3,
.feature-overlay h3 {
  margin: 8px 0;
  font-size: 24px;
}

.category-card p,
.feature-overlay p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 150, 105, 0.26);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), #ef4444);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta,
.side-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span,
.side-info span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a {
  transition: color 0.2s ease;
}

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

.movie-card p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 900;
}

.card-foot span {
  color: var(--gold);
}

.card-foot a {
  color: var(--emerald-dark);
}

.feature-band {
  padding: 72px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.24), transparent 28%),
    linear-gradient(135deg, #020617, #0f172a 52%, #064e3b);
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
  opacity: 0.86;
}

.feature-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.94));
}

.page-shell {
  background:
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.14), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

.page-hero {
  padding: 86px 0 68px;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 10%, rgba(45, 212, 191, 0.35), transparent 30%),
    linear-gradient(135deg, #020617 0%, #064e3b 56%, #0f766e 100%);
}

.compact-hero {
  padding-bottom: 56px;
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

.page-hero .btn.ghost {
  color: #ffffff;
}

.category-overview-card {
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.category-overview-title span {
  font-size: 22px;
  font-weight: 900;
}

.category-overview-title a {
  color: var(--emerald-dark);
  font-weight: 900;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-poster-row a {
  display: grid;
  gap: 8px;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.mini-poster-row strong {
  font-size: 13px;
  line-height: 1.35;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.compact-card .poster-wrap img {
  height: 100%;
  min-height: 210px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.25);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.96));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: stretch;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.55));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  min-width: 132px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.42);
  font-weight: 900;
}

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

.detail-side {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-side img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.side-info {
  padding: 16px;
}

.side-info span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-content {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-main-card {
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.detail-title-row .btn.ghost,
.detail-title-row .btn.primary {
  flex-shrink: 0;
}

.detail-one-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.prose-block {
  margin-top: 28px;
}

.prose-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose-block p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-top: 54px;
}

.site-footer {
  color: #cbd5e1;
  background:
    radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(135deg, #020617, #111827 58%, #0f172a);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.site-footer a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

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

[data-card].hidden {
  display: none;
}

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .hero-poster,
  .detail-side {
    max-width: 360px;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 54px;
    gap: 30px;
  }

  .hero-poster {
    display: none;
  }

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

  .home-grid,
  .listing-grid,
  .category-grid,
  .category-overview-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .header-inner {
    height: 64px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 700px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .home-grid,
  .listing-grid,
  .category-grid,
  .category-overview-grid,
  .feature-grid,
  .footer-grid,
  .mini-poster-row {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

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

  .detail-hero {
    padding: 24px 0;
  }

  .detail-main-card {
    padding: 22px;
  }

  .detail-side {
    display: none;
  }

  .section-block,
  .list-section {
    padding: 48px 0;
  }
}
