: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;
  --ink: #102014;
  --muted: #5d6f61;
  --line: rgba(20, 83, 45, 0.14);
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(5, 46, 22, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fff9 0%, #eef9f1 48%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-900);
  background: linear-gradient(135deg, #ffffff, var(--green-100));
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.brand-text {
  font-size: 21px;
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.header-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: none;
  font: inherit;
}

.header-search input {
  width: 230px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(5, 46, 22, 0.35);
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-panel button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  color: var(--green-950);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 9px 15px;
}

.header-search button:hover,
.mobile-panel button:hover,
.filter-panel button:hover,
.btn:hover {
  transform: translateY(-2px);
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel input {
  padding: 11px 14px;
  color: #ffffff;
  background: rgba(5, 46, 22, 0.35);
}

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

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

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

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--green-950);
}

.hero-slide {
  display: none;
  min-height: 640px;
  padding: 72px 0 78px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-inner,
.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-summary,
.detail-hero p,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.btn.primary {
  color: var(--green-950);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn.subtle {
  color: var(--green-100);
  background: rgba(20, 83, 45, 0.72);
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--green-700);
}

.hero-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hero-poster img,
.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(5, 46, 22, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;
}

.intro-section,
.content-section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--green-700);
  font-weight: 800;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-tags a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-800);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 46, 22, 0.06);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(5, 46, 22, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-shell {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
}

.poster-shell img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(5, 46, 22, 0.24);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  min-width: 44px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(5, 46, 22, 0.82);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: var(--green-950);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 68px;
  margin: 0 0 12px;
  color: #435346;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card.compact p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.green-band {
  padding: 70px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.35), transparent 34%), linear-gradient(135deg, var(--green-950), var(--green-800));
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.band-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.band-inner p {
  color: rgba(255, 255, 255, 0.78);
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.rank-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.rank-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  color: var(--green-100);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

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

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

.category-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 46, 22, 0.08);
}

.category-card h2 {
  margin: 0;
  color: var(--green-950);
  font-size: 24px;
}

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

.mini-links {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.mini-links a {
  overflow: hidden;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.26), transparent 35%), linear-gradient(135deg, var(--green-950), var(--green-800));
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb strong {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.8fr auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(5, 46, 22, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  border-radius: 14px;
}

.filter-panel button {
  align-self: end;
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--green-700);
}

.empty-state {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.detail-hero {
  padding: 76px 0;
  background-position: center;
  background-size: cover;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  margin-top: -42px;
  padding-bottom: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(5, 46, 22, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(5, 46, 22, 0.28), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 28px 0 32px;
}

.detail-content,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 46, 22, 0.08);
}

.detail-content {
  padding: 28px;
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--green-950);
}

.detail-content p {
  margin: 0 0 24px;
  color: #334438;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
}

.side-panel {
  align-self: start;
  padding: 22px;
}

.side-links {
  display: grid;
  gap: 14px;
}

.side-links a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.side-links img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--green-900);
}

.side-links span {
  display: grid;
  gap: 5px;
  color: var(--green-950);
  font-weight: 900;
}

.side-links small {
  color: var(--muted);
  font-weight: 700;
}

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

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #111827, var(--green-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--green-100);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner,
  .detail-hero-inner,
  .band-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 340px;
  }

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

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

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

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

  .hero-carousel,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 48px 0 68px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 38px;
  }

  .hero-summary,
  .detail-hero p,
  .page-hero p {
    font-size: 16px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .feature-grid,
  .related-grid,
  .category-grid,
  .category-grid.large,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel button {
    width: 100%;
  }

  .detail-content {
    padding: 22px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-grid {
    padding: 34px 0;
  }
}
