:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --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-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  box-shadow: 0 10px 30px rgba(5, 95, 70, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
}

.top-search input,
.mobile-search input {
  width: 220px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.top-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--white);
  padding: 10px 18px;
  font-weight: 750;
  cursor: pointer;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 14px;
  flex-direction: column;
}

.mobile-panel.is-open {
  display: flex;
}

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

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

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

.hero-slide > img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.detail-labels,
.hero-meta,
.detail-meta,
.card-meta,
.genre-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags a,
.hero-tags span,
.detail-labels a,
.detail-labels span,
.region-pill,
.genre-tags span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags a,
.hero-tags span,
.detail-labels a,
.detail-labels span {
  color: var(--white);
  background: var(--green-600);
  padding: 7px 14px;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.white-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--green-600);
  padding: 14px 26px;
  box-shadow: 0 16px 28px rgba(22, 163, 74, 0.34);
}

.primary-button:hover,
.white-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

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

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

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

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

.section-title-row.compact {
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-600);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title-row h2,
.ranking-panel h2,
.content-card h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-link {
  color: var(--green-700);
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .card-media::after {
  background: rgba(0, 0, 0, 0.32);
}

.region-pill {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  color: var(--white);
  background: var(--green-600);
  padding: 5px 10px;
}

.duration {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.play-badge {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(22, 163, 74, 0.88);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

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

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

.card-meta {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span:last-child {
  color: #ca8a04;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  padding: 48px max(16px, calc((100vw - 1180px) / 2));
}

.stats-strip div {
  text-align: center;
}

.stats-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.stats-strip span {
  color: rgba(255, 255, 255, 0.82);
}

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

.category-card,
.category-overview-card,
.content-card,
.ranking-panel {
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-card {
  min-height: 172px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #ffffff, var(--green-50));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  color: var(--green-700);
  font-weight: 900;
}

.category-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-card em,
.category-overview-card p {
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.6;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 44px 72px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: var(--gray-900);
  font-size: 15px;
}

.rank-info em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.wide-green-panel {
  margin: 34px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
}

.wide-green-panel > div {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  text-align: center;
}

.wide-green-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
}

.wide-green-panel p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.75;
}

.white-button {
  color: var(--green-700);
  background: var(--white);
  padding: 13px 26px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.movie-card-horizontal .card-link {
  display: grid;
  grid-template-columns: 45% 55%;
  height: 100%;
}

.movie-card-horizontal .card-media {
  height: 100%;
  aspect-ratio: auto;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(115deg, var(--green-800), var(--green-500));
}

.small-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.small-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
}

.small-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  overflow: hidden;
  color: var(--green-700);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  color: var(--white);
  background: var(--green-600);
  padding: 10px 18px;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 14px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  padding: 18px;
}

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

.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
  color: var(--gray-900);
  background: var(--gray-100);
  padding: 13px 16px;
}

.search-panel button {
  color: var(--white);
  background: var(--green-600);
}

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

.ranking-panel {
  padding: 24px;
}

.ranking-panel h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.large-rank {
  max-height: 980px;
  overflow: auto;
  padding-right: 4px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(3px);
  transform: scale(1.02);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.poster-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

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

.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

.detail-meta {
  color: rgba(255, 255, 255, 0.82);
  gap: 16px;
  line-height: 1.6;
}

.tag-cloud {
  margin-top: 24px;
}

.tag-cloud a,
.genre-tags span {
  color: var(--green-700);
  background: var(--green-100);
  padding: 7px 12px;
}

.detail-player-section {
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
  cursor: pointer;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-600);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.38);
  font-size: 38px;
  text-indent: 4px;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 30px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.85;
}

.genre-tags {
  gap: 12px;
}

.site-footer {
  margin-top: 40px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid,
  .overview-grid,
  .ranking-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-section,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-button {
    display: flex;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.78));
  }

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

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

  .movie-grid,
  .mini-grid,
  .category-grid,
  .overview-grid,
  .ranking-layout,
  .two-column-section,
  .footer-grid,
  .stats-strip,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-card {
    width: min(100%, 320px);
  }
}

@media (max-width: 560px) {
  .nav-shell {
    height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-actions,
  .hero-tags,
  .detail-labels {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .section-shell {
    padding: 44px 0;
  }

  .small-hero > div {
    padding: 52px 0;
  }

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