:root {
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-teal: #0d9488;
  --color-amber: #f59e0b;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #d1fae5;
  --shadow-soft: 0 18px 45px rgba(15, 118, 110, 0.12);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, rgba(236, 253, 245, 0.5) 42%, #ffffff 100%);
}

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

img {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(167, 243, 208, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(16, 185, 129, 0.08);
}

.nav-wrap {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--color-emerald-dark);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.32);
}

.logo-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-emerald-dark), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--color-emerald);
}

.header-search {
  display: flex;
  align-items: center;
  width: 220px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 15px;
  color: #374151;
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--color-emerald);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--color-emerald-dark);
  background: #ecfdf5;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

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

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

.mobile-nav a:hover {
  background: #ecfdf5;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background:
    linear-gradient(135deg, rgba(209, 250, 229, 0.95), rgba(240, 253, 250, 0.92), rgba(255, 251, 235, 0.92)),
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.22), transparent 38%),
    radial-gradient(circle at right center, rgba(245, 158, 11, 0.18), transparent 36%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 52px;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-emerald-dark);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #047857, #0d9488, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: #374151;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  border: 2px solid transparent;
  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: var(--color-emerald);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.32);
}

.btn-primary:hover {
  background: var(--color-emerald-dark);
}

.btn-secondary {
  color: var(--color-emerald-dark);
  border-color: var(--color-emerald);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hero-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #047857;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  border-radius: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 24px;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-slide-content {
  position: absolute;
  inset: auto 0 0;
  padding: 32px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18), transparent);
}

.hero-slide-content h2 {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.slider-dots {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.slider-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.92), rgba(240, 253, 250, 0.92), rgba(236, 253, 245, 0.92));
}

.section-warm {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(236, 253, 245, 0.88), rgba(240, 253, 250, 0.9));
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 900;
  color: #111827;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.75;
  font-size: 17px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

.poster.wide {
  aspect-ratio: 4 / 3;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--color-emerald);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.28);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(90deg, var(--color-amber), #f97316);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin: 0 0 14px;
  min-height: 44px;
  color: var(--color-muted);
  line-height: 1.55;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}

.scroll-row .movie-card {
  flex: 0 0 270px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 28px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-card);
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card .poster {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.25), transparent);
}

.feature-overlay h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.feature-overlay p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

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

.category-card {
  min-height: 160px;
  border: 1px solid rgba(167, 243, 208, 0.85);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-card);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 84px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #f3f4f6;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 14px;
  margin: 0 0 34px;
  padding: 18px;
  border: 1px solid rgba(167, 243, 208, 0.82);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #d1fae5;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: #374151;
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: 24px;
  color: var(--color-muted);
  text-align: center;
  background: #ffffff;
}

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

.detail-hero {
  padding: 46px 0 24px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(240, 253, 250, 0.94), rgba(255, 251, 235, 0.88));
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 22px;
  color: #047857;
  font-weight: 700;
}

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

.panel {
  border-radius: 26px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.player-shell {
  padding: 14px;
  background: #ffffff;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.22));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-emerald);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.36);
  font-size: 34px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  color: #111827;
}

.detail-desc {
  margin: 0 0 22px;
  color: #374151;
  line-height: 1.78;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-block h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 900;
}

.content-block p {
  margin: 0;
  color: #374151;
  line-height: 1.85;
  font-size: 16px;
}

.sidebar-card {
  display: grid;
  gap: 16px;
}

.sidebar-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

.sidebar-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.related-grid .card-title {
  font-size: 15px;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid rgba(167, 243, 208, 0.82);
  color: #4b5563;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #047857;
}

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

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

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

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

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

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 64px;
    padding: 0 16px;
  }

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

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

  .hero-panel {
    padding: 10px;
    border-radius: 22px;
  }

  .hero-slider,
  .hero-slide img {
    min-height: 430px;
  }

  .hero-slide-content {
    padding: 22px;
  }

  .hero-slide-content h2 {
    font-size: 22px;
  }

  .section {
    padding: 54px 0;
  }

  .movie-grid,
  .category-grid,
  .related-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 20px;
  }
}
