* {
  box-sizing: border-box;
}

:root {
  --bg: #f0fdf4;
  --ink: #102018;
  --muted: #5b6b62;
  --brand: #16a34a;
  --brand-dark: #14532d;
  --brand-soft: #dcfce7;
  --card: #ffffff;
  --line: #d1fae5;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(34, 197, 94, 0.24), transparent 28rem),
    linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #14532d, #15803d, #16a34a);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 83, 45, 0.28);
}

.header-inner {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #dcfce7;
}

.header-search {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.72);
  border: 1px solid rgba(220, 252, 231, 0.4);
}

.header-search input,
.hero-search input,
.filter-bar input,
.filter-bar select,
.mobile-nav input {
  border: 0;
  outline: 0;
  font: inherit;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
  color: rgba(220, 252, 231, 0.82);
}

.header-search button {
  border: 0;
  padding: 0 16px;
  color: #14532d;
  background: #dcfce7;
  font-weight: 800;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.mobile-nav a,
.mobile-nav input {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(20, 83, 45, 0.52);
}

.mobile-nav input {
  width: 100%;
  color: #ffffff;
}

main {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: #052e16;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 46, 22, 0.98), rgba(5, 46, 22, 0.62) 44%, rgba(5, 46, 22, 0.08)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 42%);
}

.hero-copy {
  position: absolute;
  left: 56px;
  bottom: 58px;
  width: min(640px, calc(100% - 90px));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.16);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

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

.primary-btn {
  color: #052e16;
  background: #bbf7d0;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.32);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-dots {
  position: absolute;
  left: 76px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 44px;
  background: #bbf7d0;
}

.hero-panel {
  position: relative;
  z-index: 6;
  max-width: 1080px;
  margin: -42px auto 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search input {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  color: var(--ink);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #d1fae5;
}

.hero-search button {
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  font-weight: 900;
  cursor: pointer;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-cats a {
  padding: 8px 13px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.content-section {
  max-width: 1220px;
  margin: 42px auto;
  padding: 0 20px;
}

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

.section-head h2,
.content-section h2 {
  margin: 0;
  color: #102018;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #14532d;
  background: #dcfce7;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-strip a {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
  box-shadow: 0 10px 28px rgba(20, 83, 45, 0.08);
}

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

.category-strip strong {
  color: #14532d;
  font-size: 18px;
}

.category-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(187, 247, 208, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #14532d, #16a34a);
}

.poster-link img {
  transition: transform 0.28s ease;
}

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

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #052e16;
  background: rgba(220, 252, 231, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #16a34a);
  font-size: 14px;
}

.card-body {
  padding: 15px;
}

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

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

.meta-line {
  margin-bottom: 8px !important;
  color: #15803d !important;
  font-weight: 700;
}

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

.tag-row span,
.detail-tags a {
  padding: 4px 8px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 56px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(187, 247, 208, 0.3), transparent 18rem),
    linear-gradient(135deg, #052e16, #14532d 58%, #16a34a);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  max-width: 880px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-bar.wide {
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

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

.category-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #14532d;
}

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

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

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

.sample-links a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 13px;
  font-weight: 700;
}

.detail-layout {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #166534;
  font-weight: 700;
}

.player-card {
  border-radius: 30px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #052e16;
  background: radial-gradient(circle, rgba(187, 247, 208, 0.3), rgba(2, 6, 23, 0.6));
  cursor: pointer;
}

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

.play-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: #bbf7d0;
  font-size: 38px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.detail-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  background: #14532d;
}

.detail-info h1 {
  color: #102018;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-line,
.lead-text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.lead-text {
  color: #1f2937;
  font-size: 19px;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.score-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-weight: 800;
}

.detail-text {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
}

.detail-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 26px;
}

.detail-text p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 17px;
}

.related-grid .movie-card,
.small-card {
  border-radius: 18px;
}

.small-card .card-body h3 {
  font-size: 15px;
}

.site-footer {
  margin-top: 58px;
  color: #d1fae5;
  background: linear-gradient(180deg, #14532d, #052e16);
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer p {
  margin: 10px 0 0;
  color: rgba(220, 252, 231, 0.82);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links.compact {
  flex-flow: row wrap;
}

.footer-links a {
  color: rgba(220, 252, 231, 0.88);
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid rgba(220, 252, 231, 0.14);
  color: rgba(220, 252, 231, 0.7);
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .header-inner {
    height: 64px;
  }

  .hero-stage {
    min-height: 600px;
    border-radius: 24px;
  }

  .hero-copy {
    left: 24px;
    bottom: 74px;
    width: calc(100% - 48px);
  }

  .hero-panel {
    margin-top: -28px;
  }

  .hero-search,
  .filter-bar,
  .filter-bar.wide,
  .detail-main,
  .footer-grid,
  .category-card {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    margin-left: 20px;
    margin-right: 20px;
    padding: 34px 24px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 18px;
  }

  .movie-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-slider,
  .content-section,
  .detail-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .hero-actions {
    gap: 8px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
