:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --green-600: #16a34a;
  --blue-600: #2563eb;
  --amber-500: #f59e0b;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-md: 0 10px 18px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--emerald-50), #ffffff 45%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--emerald-700), var(--green-600));
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.26);
}

.nav-wrap {
  width: min(100%, var(--max-width));
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, transform 0.25s ease;
}

.logo:hover .logo-icon,
.footer-logo:hover .logo-icon {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

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

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

.page {
  min-height: 60vh;
}

.main-wrap,
.detail-wrap {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 64px 20px;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(16, 185, 129, 0.35), transparent 36%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.93), rgba(6, 95, 70, 0.75) 52%, rgba(3, 7, 18, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  height: 100%;
  margin: 0 auto;
  padding: 72px 20px 116px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  align-items: center;
  gap: 44px;
  color: var(--white);
}

.hero-kicker,
.section-heading span,
.sub-hero-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #86efac;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d1fae5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

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

.hero-tags span,
.pill-row span,
.side-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

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

.primary-btn,
.ghost-btn,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.filter-panel button {
  color: var(--emerald-700);
  background: var(--white);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  width: min(680px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xl);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: var(--gray-900);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 800;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 64px;
}

.stat-card,
.category-tile,
.category-panel,
.article-card,
.support-grid article,
.side-card,
.detail-info-card,
.player-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.stat-card {
  padding: 30px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--emerald-100);
  font-weight: 900;
}

.stat-blue .stat-icon {
  color: var(--blue-600);
  background: #dbeafe;
}

.stat-amber .stat-icon {
  color: #b45309;
  background: #fef3c7;
}

.stat-card h2,
.category-tile span,
.category-panel h2,
.article-card h2,
.support-grid h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.stat-card p,
.category-tile p,
.category-panel p,
.article-card p,
.support-grid p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.content-section {
  padding: 14px 0 58px;
}

.soft-section {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - min(50vw, var(--max-width) / 2));
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.badge-year,
.badge-region,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.badge-year {
  right: 12px;
  background: var(--emerald-600);
}

.badge-region {
  left: 12px;
  background: rgba(3, 7, 18, 0.74);
}

.rank-badge {
  top: auto;
  left: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

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

.tag-row {
  min-height: 26px;
  margin-bottom: 12px;
}

.tag-row span {
  padding: 4px 8px;
  color: var(--emerald-700);
  background: var(--emerald-50);
  font-size: 12px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.category-tile {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.sub-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 197, 94, 0.35), transparent 32%),
    linear-gradient(90deg, var(--emerald-700), var(--green-600));
}

.sub-hero-copy {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 74px 20px;
}

.sub-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1fae5;
  font-size: 20px;
  line-height: 1.7;
}

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

.category-panel {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 18px;
  min-height: 210px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--emerald-600);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-panel-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
}

.category-panel-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 160px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 36px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: var(--gray-900);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.filter-panel button {
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: none;
}

.empty-state {
  margin: 0 0 32px;
  padding: 20px;
  border-radius: 16px;
  color: var(--gray-700);
  background: #fff7ed;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--gray-600);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 30px;
}

.detail-main-card {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000000;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--emerald-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.player-start span {
  margin-left: 5px;
  font-size: 34px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-info-card {
  padding: 30px;
}

.pill-row {
  margin-bottom: 16px;
}

.pill-row span,
.side-tags span {
  padding: 8px 13px;
  color: var(--emerald-700);
  background: var(--emerald-100);
  font-size: 14px;
}

.detail-info-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--gray-600);
  font-weight: 700;
}

.prose-block,
.genre-block,
.review-block {
  margin-top: 30px;
}

.prose-block h2,
.genre-block h2,
.review-block h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.prose-block p,
.genre-block p,
.review-box p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.85;
}

.prose-block .lead-text {
  font-size: 19px;
  color: var(--gray-800);
}

.genre-block {
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--emerald-50), #f0fdf4);
}

.review-block {
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.review-box {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: #f9fafb;
}

.review-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 900;
}

.star-row {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.side-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}

.side-card dt {
  color: var(--gray-500);
  font-size: 14px;
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.side-card dd a {
  color: var(--emerald-700);
}

.poster-side {
  overflow: hidden;
  padding: 0;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.article-card {
  padding: 36px;
}

.article-card p {
  margin-bottom: 16px;
}

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

.support-grid article {
  padding: 28px;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--emerald-900), var(--emerald-950));
}

.footer-wrap {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 48px 20px 28px;
}

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

.footer-brand p {
  margin: 16px 0 0;
  color: #a7f3d0;
  line-height: 1.8;
}

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

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

.site-footer a {
  color: #d1fae5;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(209, 250, 229, 0.18);
  color: #a7f3d0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: var(--emerald-800);
    box-shadow: var(--shadow-xl);
  }

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

  .nav-link {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    padding-top: 58px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
    gap: 8px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .hero-controls {
    bottom: 126px;
  }

  .feature-stats,
  .three-cols,
  .four-cols,
  .category-grid,
  .category-panel-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-info-card,
  .article-card {
    padding: 24px;
  }

  .review-box {
    flex-direction: column;
  }

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