
:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--green-50), #ffffff 38%, var(--bg));
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--green-700), var(--green-500), var(--green-700));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(4, 120, 87, 0.28);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  font-weight: 900;
  font-size: 24px;
}

.brand-copy strong,
.footer-brand {
  display: block;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  display: block;
  color: #d1fae5;
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.nav-link {
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

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

.top-search input,
.inline-filter input,
.big-search input {
  border: 1px solid rgba(255, 255, 255, 0.45);
  outline: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  min-width: 210px;
  transition: background 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.top-search input::placeholder {
  color: #d1fae5;
}

.top-search input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.top-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--green-700);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--green-800), var(--green-500));
}

.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-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.94), rgba(6, 95, 70, 0.78) 48%, rgba(0, 0, 0, 0.42));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 72px 0 112px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #eafff7;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1,
.hero-title-sub {
  margin: 0 0 10px;
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.hero-text {
  margin: 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.85;
  color: #ecfdf5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: 92px;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-wave path {
  fill: var(--green-50);
}

.page-section {
  padding: 56px 0;
}

.page-top {
  padding-top: 34px;
}

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

.section-head h2,
.page-section h1,
.category-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  color: #111827;
  line-height: 1.15;
}

.section-link {
  color: var(--green-700);
  font-weight: 900;
}

.lead,
.category-hero p {
  max-width: 860px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.search-strip {
  background: var(--green-50);
}

.search-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
}

.search-panel h2 {
  margin: 0 0 6px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.big-search {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.big-search input {
  flex: 1;
  min-width: 0;
  color: var(--text);
  background: #f9fafb;
  border-color: var(--line);
}

.big-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: transform 0.45s ease;
}

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

.category-card span,
.category-card p,
.overview-card span,
.overview-card p {
  position: relative;
  z-index: 1;
}

.category-card span,
.overview-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.overview-card p {
  margin: 0;
  color: #ecfdf5;
  line-height: 1.65;
}

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

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

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

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

.movie-link,
.wide-link,
.rank-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-link:hover,
.wide-link:hover,
.rank-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #065f46, #10b981);
}

.poster img,
.wide-link figure img,
.rank-link img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-link:hover .poster img,
.wide-link:hover figure img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body,
.wide-copy,
.rank-copy {
  padding: 16px;
}

.card-body h3,
.wide-copy h3,
.rank-copy h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.32;
}

.card-body p,
.wide-copy p,
.rank-copy p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.soft-section,
.spotlight-section {
  background: linear-gradient(135deg, #f0fdf4, #ffffff, #ecfdf5);
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-row > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  font-weight: 950;
}

.rank-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: stretch;
}

.rank-link img {
  min-height: 120px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 12px;
}

.side-panel p {
  color: #ecfdf5;
  line-height: 1.8;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-links a {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

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

.wide-link figure {
  position: relative;
  margin: 0;
  height: 210px;
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}

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

.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: #a1a1aa;
}

.category-hero {
  margin-bottom: 28px;
  padding: 32px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.inline-filter {
  margin-top: 18px;
}

.inline-filter input {
  width: min(520px, 100%);
  color: var(--text);
  background: #f9fafb;
  border-color: var(--line);
}

.search-page-filter input {
  width: min(720px, 100%);
}

.empty-state {
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-overview {
  margin: 26px 0 40px;
}

.overview-card {
  min-height: 150px;
  color: var(--text);
  background: #ffffff;
}

.overview-card span {
  color: var(--green-700);
}

.overview-card p {
  color: var(--muted);
}

.category-block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.category-block-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.category-block h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

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

.detail-hero-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  min-height: 360px;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.detail-one {
  margin: 0 0 20px;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 18px;
}

.player-section,
.article-section,
.related-section {
  margin-top: 36px;
}

.player-section h2,
.article-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.play-overlay span:last-child {
  font-size: 20px;
  font-weight: 900;
}

.article-section {
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.article-section p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

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

.footer-brand {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-grid p {
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .top-search {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 16px;
  }

  .site-nav.is-open .nav-link {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
  }

  .top-search.is-open {
    display: flex;
    grid-column: 1 / -1;
    padding-bottom: 16px;
  }

  .top-search.is-open input {
    flex: 1;
  }

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

  .full-rank,
  .wide-grid,
  .home-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .detail-hero-card,
  .search-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-wrap,
  .hero-inner,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-copy small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 590px;
  }

  .hero-inner {
    padding: 56px 0 124px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 58px;
  }

  .page-section {
    padding: 40px 0;
  }

  .section-head,
  .category-block-head {
    align-items: start;
    flex-direction: column;
  }

  .all-grid,
  .movie-grid,
  .mini-grid,
  .compact-grid,
  .category-grid,
  .category-overview,
  .full-rank,
  .wide-grid,
  .home-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body,
  .wide-copy,
  .rank-copy {
    padding: 13px;
  }

  .card-body h3,
  .wide-copy h3,
  .rank-copy h3 {
    font-size: 16px;
  }

  .rank-link {
    grid-template-columns: 92px 1fr;
  }

  .rank-link img {
    min-height: 108px;
  }

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

  .rank-row > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 13px;
  }

  .detail-hero-card,
  .article-section,
  .category-hero {
    padding: 18px;
  }

  .detail-poster {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .big-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .big-search button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .all-grid,
  .movie-grid,
  .mini-grid,
  .compact-grid,
  .category-grid,
  .category-overview,
  .full-rank,
  .wide-grid,
  .home-rank {
    grid-template-columns: 1fr;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .top-search.is-open {
    flex-direction: column;
  }

  .top-search.is-open input,
  .top-search.is-open button {
    width: 100%;
  }

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

  .btn {
    width: 100%;
  }
}
