* {
  box-sizing: border-box;
}

:root {
  --green-950: #052e1a;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 38%, #f9fafb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-900));
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.28);
}

.navbar {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

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

.nav-link {
  font-size: 15px;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #bbf7d0;
  opacity: 1;
}

.nav-search {
  position: relative;
  width: 260px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.inline-filter input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 999px;
  font-size: 15px;
}

.nav-search input {
  padding: 10px 42px 10px 16px;
  color: #ffffff;
  background: rgba(6, 95, 70, 0.95);
}

.nav-search input::placeholder {
  color: #a7f3d0;
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  color: #bbf7d0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(6, 95, 70, 0.85);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 24px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 11px 15px;
  color: #ffffff;
  background: rgba(6, 95, 70, 0.95);
}

.mobile-search button,
.inline-filter button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: var(--green-900);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-link.active,
.mobile-link:hover {
  color: #bbf7d0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(110deg, var(--green-900) 0%, var(--green-700) 52%, var(--green-950) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 78px 24px 112px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 14px;
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 26px;
  color: #d1fae5;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.primary-btn,
.secondary-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 13px 26px;
  border-radius: 999px;
  color: var(--green-900);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.hero-card-info a:hover,
.cta-band a:hover {
  transform: translateY(-2px) scale(1.02);
}

.secondary-btn {
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn.full {
  width: 100%;
  margin-top: 16px;
  background: var(--green-600);
  color: #ffffff;
}

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  color: #ffffff;
  background: transparent;
}

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

.hero-search button {
  padding: 0 24px;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-category-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-carousel {
  position: relative;
  min-height: 455px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #064e3b;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

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

.hero-card-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.72), rgba(5, 46, 26, 0.94));
  backdrop-filter: blur(10px);
}

.hero-card-info h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.hero-card-info p {
  margin: 0 0 18px;
  color: #d1fae5;
  line-height: 1.6;
}

.hero-card-info a {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--green-950);
  background: #ffffff;
  font-weight: 800;
  transition: transform 0.2s ease;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.25);
}

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

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

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

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

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.22;
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.hero-glow-one {
  top: 52px;
  left: 48px;
  width: 210px;
  height: 210px;
  background: #ffffff;
}

.hero-glow-two {
  right: 80px;
  bottom: 70px;
  width: 300px;
  height: 300px;
  background: var(--yellow);
  animation-delay: 1.2s;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  color: var(--green-50);
}

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

.hero-wave path {
  fill: currentColor;
}

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

.category-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-strip-inner a {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-strip-inner a:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-strip-inner strong,
.category-strip-inner span {
  display: block;
}

.category-strip-inner strong {
  color: var(--green-900);
}

.category-strip-inner span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.content-section,
.page-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 24px;
}

.content-section.no-top {
  padding-top: 20px;
}

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

.section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--green-600);
  font-size: 14px;
  font-weight: 900;
}

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

.section-more:hover,
.text-link:hover {
  color: var(--green-800);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--green-900);
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.09);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.card-category {
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  color: #ffffff;
  background: var(--green-600);
}

.rank-badge {
  right: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  color: var(--green-950);
  background: #ffffff;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--green-600);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 7px;
  border-radius: 8px;
  background: #f3f4f6;
}

.page-hero {
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 32px;
  padding: 46px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.22), transparent 24%), linear-gradient(110deg, var(--green-800), var(--green-950));
  box-shadow: var(--shadow);
}

.page-hero.small-hero {
  padding: 42px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p:not(.eyebrow) {
  max-width: 850px;
  margin: 0;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

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

.breadcrumbs a:hover {
  color: var(--green-600);
}

.inline-filter {
  display: flex;
  max-width: 680px;
  margin-top: 24px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.inline-filter input {
  flex: 1;
  padding: 14px 18px;
  color: #ffffff;
  background: transparent;
}

.inline-filter input::placeholder {
  color: #d1fae5;
}

.inline-filter button {
  padding: 0 24px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-card-large h2 {
  margin: 4px 0 10px;
  color: var(--green-900);
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-band {
  max-width: 1280px;
  margin: 18px auto 74px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(100deg, var(--green-700), var(--green-950));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.cta-band p {
  margin: 0;
  color: #d1fae5;
}

.cta-band a {
  flex: 0 0 auto;
  padding: 13px 24px;
  border-radius: 999px;
  color: var(--green-900);
  background: #ffffff;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.rank-table-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-table-card h2 {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.rank-table th,
.rank-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rank-table th {
  color: var(--green-900);
  background: var(--green-50);
}

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

.detail-shell {
  padding-top: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  margin-top: 22px;
}

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

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

.player-layer {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: var(--green-900);
  background: #ffffff;
  font-size: 34px;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.detail-content-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-content-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-content-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.detail-content-card h2 {
  margin: 30px 0 12px;
  color: var(--green-900);
  font-size: 22px;
}

.detail-content-card p,
.detail-content-card blockquote {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-content-card blockquote {
  margin: 0;
  padding: 20px 22px;
  border-left: 4px solid var(--green-600);
  border-radius: 16px;
  background: var(--green-50);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 8px;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  padding: 22px;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.side-card h2 {
  margin-top: 0;
  color: var(--green-900);
}

.info-list {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0;
}

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

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

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

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

.is-filter-hidden {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

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

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

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

@media (max-width: 760px) {
  .navbar {
    height: 62px;
    padding: 0 16px;
  }

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 18px 88px;
    gap: 34px;
  }

  .hero-search,
  .inline-filter {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button,
  .inline-filter button {
    padding: 12px 18px;
  }

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

  .hero-card-info {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
  }

  .hero-card-info h2 {
    font-size: 22px;
  }

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

  .content-section,
  .page-shell,
  .detail-shell {
    padding: 42px 16px;
  }

  .section-heading,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

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

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

  .detail-content-card {
    padding: 22px;
  }

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

@media (max-width: 520px) {
  .category-strip-inner,
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

  .play-button {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
