:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #172018;
  --muted: #5f6f64;
  --line: #e5eee7;
  --page: #f7faf7;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(9, 55, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-950));
  box-shadow: 0 12px 30px rgba(5, 46, 22, 0.2);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  font-size: 28px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-100);
  transform: translateY(-1px);
}

.top-search {
  position: relative;
  width: 250px;
}

.top-search input,
.mobile-panel input,
.search-panel input,
.tool-row input,
.search-panel select,
.tool-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 44px 12px 18px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input {
  border: 0;
  color: #ffffff;
  background: rgba(5, 46, 22, 0.45);
}

.top-search input::placeholder {
  color: rgba(220, 252, 231, 0.85);
}

.top-search input:focus,
.mobile-panel input:focus,
.search-panel input:focus,
.tool-row input:focus,
.search-panel select:focus,
.tool-row select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.top-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}

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

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

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--green-900);
  background: #ffffff;
  font-weight: 800;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 22%, rgba(74, 222, 128, 0.34), transparent 26%), linear-gradient(135deg, #052e16 0%, #166534 48%, #022c22 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: center;
  min-height: 430px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.04em;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green-100);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-kicker {
  color: var(--green-600);
}

.hero-line {
  max-width: 680px;
  margin: 24px 0;
  color: rgba(240, 253, 244, 0.92);
  font-size: clamp(18px, 2.3vw, 25px);
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: var(--green-800);
  background: var(--green-50);
}

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

.small-actions {
  margin-top: 22px;
}

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

.primary-button {
  color: var(--green-900);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-button.light {
  color: var(--green-900);
  background: #ffffff;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.11);
}

.hero-cover,
.detail-poster,
.poster,
.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(5, 46, 22, 0.88));
}

.hero-cover {
  min-height: 420px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.33);
  transform: rotate(1.2deg);
}

.hero-cover img,
.detail-poster img,
.poster img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.cover-img.is-missing {
  opacity: 0;
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(5, 46, 22, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-panel p {
  margin: 0 0 20px;
  color: rgba(220, 252, 231, 0.82);
}

.hero-hot-list {
  display: grid;
  gap: 12px;
}

.hot-row {
  display: grid;
  grid-template-columns: 28px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hot-row:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.16);
}

.hot-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--green-900);
  background: #ffffff;
  font-weight: 900;
}

.hot-row img {
  width: 58px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.hot-row strong,
.hot-row em {
  grid-column: 3;
}

.hot-row strong {
  align-self: end;
}

.hot-row em {
  align-self: start;
  color: rgba(220, 252, 231, 0.78);
  font-size: 13px;
  font-style: normal;
}

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

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

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.54;
  animation: pulse 4s ease-in-out infinite;
}

.hero-glow.one {
  top: 110px;
  right: 14%;
  width: 190px;
  height: 190px;
  background: rgba(187, 247, 208, 0.45);
}

.hero-glow.two {
  left: 8%;
  bottom: 150px;
  width: 150px;
  height: 150px;
  background: rgba(34, 197, 94, 0.35);
  animation-delay: 1.2s;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
}

.section-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.soft-section {
  background: linear-gradient(90deg, var(--green-100), #f7fff9);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--green-700);
  font-weight: 850;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

.movie-card.is-hidden {
  display: none;
}

.poster {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.compact .poster {
  aspect-ratio: 3 / 4;
}

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

.category-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  color: #ffffff;
  background: var(--green-600);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(5, 46, 22, 0.85);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.card-body h2 a:hover {
  color: var(--green-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #738176;
  font-size: 12px;
}

.category-grid,
.category-list-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  min-height: 156px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.4);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-tile span {
  color: var(--muted);
}

.green-band {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-950));
}

.band-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  text-align: center;
}

.band-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.band-inner p {
  margin: 0 auto 28px;
  max-width: 760px;
  color: rgba(240, 253, 244, 0.9);
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 18%, rgba(134, 239, 172, 0.28), transparent 28%), linear-gradient(135deg, var(--green-950), var(--green-700));
}

.compact-hero {
  padding: 76px 0;
}

.compact-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.compact-hero p:not(.section-kicker) {
  max-width: 760px;
  color: rgba(240, 253, 244, 0.88);
  font-size: 18px;
}

.tool-row,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.tool-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.tool-row select,
.search-panel select {
  width: auto;
  min-width: 150px;
  padding-right: 34px;
}

.tool-row input,
.search-panel input {
  flex: 1 1 260px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-cover {
  aspect-ratio: 4 / 3;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--green-800);
  background: var(--green-50);
  font-size: 13px;
}

.detail-hero {
  padding: 72px 0;
}

.detail-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.26);
}

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(220, 252, 231, 0.86);
  font-weight: 750;
}

.lead {
  max-width: 850px;
  color: rgba(240, 253, 244, 0.9);
  font-size: 20px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: rgba(220, 252, 231, 0.78);
  font-size: 13px;
}

.detail-meta dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: var(--green-800);
  background: #ffffff;
  font-size: 38px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.prose-card,
.side-card {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #405144;
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.side-card a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--green-800);
  background: var(--green-50);
  font-weight: 750;
}

.site-footer {
  color: #d3ded7;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 38px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

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

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 9px;
  color: #cbd5d1;
}

.footer-grid a:hover {
  color: #86efac;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.48;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.72;
  }
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-inner,
  .hero-slide,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 720px;
  }

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

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

@media (max-width: 720px) {
  .nav-wrap {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 108px;
  }

  .hero-slide {
    min-height: 0;
  }

  .hero-cover {
    min-height: 320px;
  }

  .hero-panel {
    padding: 18px;
  }

  .section-head,
  .tool-row,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .three-col,
  .four-col,
  .category-grid,
  .category-list-grid,
  .footer-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }

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

  .section-wrap {
    padding: 42px 0;
  }

  .detail-hero,
  .compact-hero {
    padding: 50px 0;
  }
}
