:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --emerald-700: #047857;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow-soft: 0 18px 40px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.1);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), #ffffff 38%, var(--green-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.92);
  box-shadow: 0 8px 26px rgba(28, 25, 23, 0.06);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--emerald-700));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--stone-700);
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--green-600);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.2);
  transition: 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.nav-search input,
.mobile-search input,
.search-band input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--stone-200);
  outline: none;
  background: #ffffff;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-band input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.nav-search button,
.mobile-search button,
.search-band button,
.filter-panel button {
  border: 0;
  color: #ffffff;
  background: var(--green-600);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 10px 16px;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-band button:hover,
.filter-panel button:hover,
.primary-btn:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--stone-700);
  background: var(--stone-100);
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: var(--stone-700);
  font-weight: 700;
  border-top: 1px solid var(--stone-200);
}

.mobile-link.active {
  color: var(--green-700);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.mobile-search button {
  padding: 11px 16px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  margin: 24px auto 44px;
}

.hero-stage {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--stone-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(32px, 6vw, 72px);
  color: #ffffff;
}

.hero-labels,
.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-labels span,
.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
}

.hero-labels span {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-labels span:first-child {
  background: var(--green-600);
}

.hero h1 {
  max-width: 780px;
  margin: 20px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  color: #ffffff;
  background: var(--green-600);
  box-shadow: 0 16px 24px rgba(22, 163, 74, 0.22);
}

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

.ghost-btn.dark {
  color: var(--green-700);
  background: var(--green-50);
  border-color: var(--green-100);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-quick span,
.hero-quick a {
  padding: 9px 15px;
  color: var(--stone-700);
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(28, 25, 23, 0.05);
}

.hero-quick span {
  color: var(--green-700);
  font-weight: 800;
  background: var(--green-50);
}

.search-band,
.page-hero,
.detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 36px 0;
  padding: clamp(24px, 4vw, 44px);
  background: #ffffff;
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.search-band h2,
.page-hero h1,
.detail-copy h1 {
  margin: 4px 0 10px;
  color: var(--stone-900);
  line-height: 1.16;
}

.search-band h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.search-band p,
.page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--stone-600);
}

.search-band form {
  display: flex;
  min-width: min(420px, 100%);
  gap: 10px;
}

.search-band input {
  min-width: 0;
  flex: 1;
  padding: 14px 18px;
}

.search-band button {
  padding: 14px 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-block {
  margin: 50px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--stone-600);
}

.section-more,
.text-link {
  color: var(--green-700);
  background: var(--green-50);
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(231, 229, 228, 0.92);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 18px 34px rgba(28, 25, 23, 0.14);
  transform: translateY(-4px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-200), var(--green-100));
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(22, 163, 74, 0.92);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  font-weight: 900;
}

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

.movie-kicker {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 7px 0 8px;
  color: var(--stone-900);
  font-size: 19px;
  line-height: 1.3;
}

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

.movie-meta span {
  padding: 4px 9px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  padding: 7px 12px;
  font-size: 14px;
}

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

.category-card,
.collection-card {
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 26px rgba(28, 25, 23, 0.08);
}

.category-card {
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  box-shadow: 0 18px 32px rgba(28, 25, 23, 0.12);
  transform: translateY(-4px);
}

.category-posters,
.collection-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-posters img,
.collection-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--stone-100);
  border-radius: 12px;
}

.category-card h2,
.collection-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
}

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

.collection-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 18px;
}

.collection-posters {
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(28, 25, 23, 0.06);
}

.rank-row span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--green-600);
  border-radius: 999px;
  font-weight: 900;
}

.rank-row strong {
  color: var(--stone-900);
}

.rank-row em {
  color: var(--stone-500);
  font-style: normal;
}

.rank-row b {
  color: var(--green-700);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px rgba(28, 25, 23, 0.06);
}

.filter-search input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 15px;
}

.filter-panel button {
  height: 46px;
  padding: 0 20px;
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--stone-600);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
  color: var(--stone-500);
}

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

.detail-hero {
  align-items: stretch;
}

.detail-cover {
  width: min(330px, 38vw);
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--stone-100);
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(28, 25, 23, 0.14);
}

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

.detail-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--stone-600);
  font-size: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 800;
}

.detail-actions {
  margin-top: 26px;
}

.player-section,
.detail-content article,
.next-prev {
  margin: 34px 0;
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px rgba(28, 25, 23, 0.08);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.38), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  color: var(--green-700);
  background: #ffffff;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.play-overlay strong {
  font-size: 20px;
}

.play-overlay.is-hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-content article {
  margin: 0;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: var(--stone-900);
}

.detail-content p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
}

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

.movie-card.compact .movie-card-body {
  padding: 14px;
}

.movie-card.compact h2 {
  font-size: 17px;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.site-footer {
  margin-top: 80px;
  color: var(--stone-300);
  background: var(--stone-900);
}

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

.footer-brand p {
  max-width: 520px;
  color: var(--stone-300);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.footer-column a {
  color: var(--stone-300);
}

.footer-column a:hover {
  color: var(--green-500);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--stone-500);
  border-top: 1px solid rgba(214, 211, 209, 0.16);
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

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

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

  .search-band,
  .page-hero,
  .detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-cover {
    width: min(360px, 100%);
  }

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

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

@media (max-width: 720px) {
  .nav-container,
  main,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-subtitle {
    display: none;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 22px;
  }

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

  .hero-content {
    align-self: end;
    padding: 28px;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-band form,
  .next-prev {
    width: 100%;
    flex-direction: column;
  }

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

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

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

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-row em,
  .rank-row b {
    grid-column: 2;
  }

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