:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 18px 44px rgb(15 23 42 / 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-900), var(--green-800));
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--green-900);
  background: var(--green-100);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25);
}

.brand-copy,
.footer-brand span:last-child {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-copy small,
.footer-brand small {
  color: #bbf7d0;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.nav-link,
.mobile-nav-link {
  color: #dcfce7;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search,
.mobile-search,
.hero-search,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input {
  min-width: 210px;
  color: var(--white);
  background: rgb(20 83 45 / 0.72);
  border: 1px solid rgb(134 239 172 / 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder {
  color: #86efac;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button {
  border: 0;
  color: var(--white);
  background: var(--green-600);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgb(22 163 74 / 0.28);
}

.menu-toggle {
  display: none;
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
}

.hero {
  position: relative;
  min-height: 70vh;
  background: var(--gray-900);
  overflow: hidden;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgb(34 197 94 / 0.28), transparent 34%),
    linear-gradient(90deg, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.42) 48%, rgb(0 0 0 / 0.22)),
    linear-gradient(0deg, rgb(0 0 0 / 0.8), transparent 40%, rgb(0 0 0 / 0.44));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 110px 140px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #86efac;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-meta,
.movie-meta-line,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.movie-meta-line span {
  color: #e5e7eb;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

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

.ghost-button {
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.12);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgb(0 0 0 / 0.35);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgb(22 163 74 / 0.74);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
}

.hero-dot.active {
  width: 28px;
  background: var(--green-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(720px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 18px;
  background: rgb(3 7 18 / 0.72);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  background: rgb(255 255 255 / 0.1);
}

.stats-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--green-900), var(--green-700));
}

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

.stats-grid div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.stats-grid strong {
  font-size: 28px;
  line-height: 1;
}

.stats-grid span {
  color: #bbf7d0;
  font-size: 13px;
}

.content-section {
  padding-block: 64px;
}

.white-section {
  background: var(--white);
}

.gradient-section {
  background: linear-gradient(180deg, var(--gray-100), var(--white));
}

.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);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.section-link,
.strip-title a,
.pill-link {
  color: var(--green-700);
  font-weight: 900;
}

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

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  border-color: rgb(34 197 94 / 0.42);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-800), var(--green-900));
}

.movie-card:not(.compact-card) .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.category-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
}

.category-badge,
.rank-badge {
  top: 12px;
  left: 12px;
  color: var(--white);
  background: rgb(22 163 74 / 0.9);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgb(234 88 12 / 0.92);
}

.play-chip {
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--green-900);
  background: rgb(255 255 255 / 0.92);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 1.35em;
  margin: 0;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta-line span {
  color: var(--green-800);
  background: var(--green-50);
  border-color: var(--green-100);
}

.tag-row span,
.detail-tags span {
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.compact-card .movie-card-link {
  display: grid;
  grid-template-columns: 160px 1fr;
}

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

.compact-card .movie-card-body h3 {
  font-size: 18px;
}

.category-stack {
  display: grid;
  gap: 42px;
}

.category-strip {
  display: grid;
  gap: 18px;
}

.strip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 12px;
}

.strip-title h3 {
  margin: 0;
  font-size: 24px;
}

.page-hero,
.detail-top {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 30%, rgb(34 197 94 / 0.32), transparent 34%),
    linear-gradient(120deg, var(--green-950), var(--green-800));
}

.page-hero .container,
.detail-top .container {
  padding-block: 58px;
}

.page-hero h1,
.detail-top h1 {
  margin: 12px 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
}

.page-hero p,
.detail-top p {
  max-width: 860px;
  margin: 0;
  color: #d1fae5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #bbf7d0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--white);
  font-weight: 800;
}

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

.category-card a {
  display: grid;
  min-height: 220px;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-card-top strong {
  flex: 1;
  font-size: 22px;
}

.category-card-top em {
  color: var(--green-700);
  font-style: normal;
  font-weight: 900;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--green-600);
  border-radius: 999px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

.category-card small {
  color: var(--gray-500);
}

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 8;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
}

.filter-panel input {
  flex: 1 1 280px;
}

.filter-panel select {
  flex: 0 0 160px;
}

.filter-count {
  color: var(--green-800);
  font-weight: 900;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 28px;
  padding-block: 36px 20px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-card,
.info-card,
.side-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.1));
  border: 0;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--green-900);
  background: rgb(255 255 255 / 0.94);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: var(--shadow-lg);
}

.video-player.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.info-card {
  padding: 24px;
}

.title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.title-row h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.16;
}

.pill-link {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green-600);
  border-radius: 999px;
  padding: 8px 12px;
}

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

.movie-facts div {
  padding: 12px;
  background: var(--gray-50);
  border-radius: 14px;
}

.movie-facts dt {
  color: var(--gray-500);
  font-size: 12px;
}

.movie-facts dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 22px;
}

.text-block {
  border-top: 1px solid var(--gray-200);
  padding-top: 22px;
  margin-top: 22px;
}

.text-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0 0 12px;
  color: var(--gray-700);
  font-size: 16px;
}

.lead-text {
  color: var(--gray-900) !important;
  font-weight: 800;
}

.review-block {
  padding: 20px;
  background: linear-gradient(135deg, var(--green-50), #eff6ff);
  border: 0;
  border-radius: 16px;
}

.poster-card {
  padding: 16px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gray-800), var(--green-900));
}

.primary-button.full {
  display: block;
  margin-top: 14px;
  text-align: center;
}

.side-card {
  padding: 18px;
}

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

.side-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.side-list a:hover {
  background: var(--green-50);
}

.side-list span {
  font-weight: 900;
}

.side-list small {
  color: var(--gray-500);
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.prev-next a {
  color: var(--green-700);
  font-weight: 900;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-900), #000000);
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-block: 46px 30px;
}

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

.footer-grid p {
  max-width: 360px;
  color: #9ca3af;
}

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

.footer-grid a:hover {
  color: var(--green-400, #4ade80);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 18px;
  color: #6b7280;
  font-size: 14px;
}

.narrow-content {
  max-width: 880px;
}

.static-page p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

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

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 820px) {
  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-block: 96px 170px;
  }

  .hero-arrow {
    display: none;
  }

  .stats-grid,
  .movie-grid.two-col,
  .movie-grid.three-col,
  .movie-grid.four-col,
  .category-grid,
  .detail-layout,
  .movie-facts {
    grid-template-columns: 1fr;
  }

  .compact-card .movie-card-link {
    grid-template-columns: 132px 1fr;
  }

  .section-heading,
  .title-row,
  .prev-next,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .detail-layout {
    padding-top: 22px;
  }
}

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

  .brand-copy strong {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .filter-panel {
    position: static;
  }

  .filter-panel select {
    flex: 1 1 140px;
  }

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