:root {
  --green-950: #052e1b;
  --green-900: #064e2c;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--green-50), #ffffff 360px);
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, var(--green-900), var(--green-500));
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(6, 78, 44, 0.96), rgba(22, 163, 74, 0.94));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(5, 46, 27, 0.2);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-name {
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease;
}

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

.global-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.global-search-form input,
.page-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
}

.global-search-form input::placeholder,
.page-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.global-search-form button,
.page-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: var(--green-800);
  background: #ffffff;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.65s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.2));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 50px;
  align-items: center;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 86px 24px 80px;
  color: #ffffff;
}

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

.hero-copy p,
.detail-copy .lead,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.pill-row,
.tag-row,
.hero-meta,
.hero-actions,
.card-meta,
.card-foot,
.rank-tabs,
.text-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pill-row {
  margin-bottom: 18px;
}

.pill-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-600);
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-meta {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta strong {
  color: #facc15;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--green-600);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.ghost-btn.dark {
  color: var(--green-800);
  border-color: var(--green-100);
  background: var(--green-50);
}

.hero-side {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-side img {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

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

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

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 34px;
  align-items: center;
}

.intro-panel h2,
.section-head h2,
.content-panel h2,
.info-panel h2,
.category-overview-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

.intro-panel p,
.category-overview-card p,
.content-panel p,
.info-panel dd,
.text-page p {
  color: var(--muted);
}

.hero-search,
.page-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  box-shadow: var(--soft-shadow);
}

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

.section-head a,
.text-link {
  color: var(--green-700);
  font-weight: 800;
}

.section-head.light,
.section-head.light a {
  color: #ffffff;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.light .section-kicker,
.page-hero .section-kicker,
.detail-hero .section-kicker {
  color: var(--green-100);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(22, 163, 74, 0.92);
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.card-content {
  padding: 16px;
}

.card-meta,
.card-foot {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  margin-bottom: 10px;
}

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

.card-content h3 a:hover {
  color: var(--green-700);
}

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

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
}

.rating {
  color: #ca8a04;
  font-weight: 800;
}

.movie-card.wide {
  width: 330px;
  flex: 0 0 330px;
}

.movie-card.wide .poster-link img {
  aspect-ratio: 16 / 10;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  padding: 54px max(24px, calc((100vw - 1280px) / 2));
}

.stats-band div {
  text-align: center;
}

.stats-band strong {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.stats-band span {
  color: var(--green-100);
}

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

.category-tile,
.category-overview-card,
.content-panel,
.info-panel,
.filter-panel,
.ranking-panel,
.player-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-tile {
  display: grid;
  gap: 12px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile strong {
  font-size: 19px;
}

.category-tile span,
.category-overview-top span {
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.ranking-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.ranking-panel ol {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-panel a,
.rank-card a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--green-50);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--green-600);
  font-weight: 900;
}

.ranking-panel em,
.rank-body em,
.rank-body small {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.green-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
}

.green-section .movie-card {
  color: var(--ink);
}

.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-900), var(--green-500));
}

.page-hero {
  padding: 82px 24px;
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero.small {
  padding: 70px 24px;
}

.category-hero .hero-mini-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin-top: 28px;
}

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.compact-card img {
  width: 58px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.category-overview-card {
  padding: 24px;
}

.category-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.category-overview-top strong {
  color: var(--green-700);
  font-size: 24px;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 240px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.ranking-layout {
  display: grid;
  gap: 34px;
}

.rank-tabs a {
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  font-weight: 800;
}

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

.rank-card a {
  grid-template-columns: auto 78px 1fr;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-card img {
  width: 78px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-body strong,
.rank-body em,
.rank-body small {
  display: block;
}

.detail-hero {
  min-height: 660px;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.detail-meta-grid span {
  padding: 14px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.detail-meta-grid strong {
  display: block;
  color: var(--green-100);
  font-size: 12px;
}

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

.player-panel {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  background: #020617;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.18), rgba(0, 0, 0, 0.46));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-start strong {
  display: block;
  font-size: 20px;
}

.video-player.is-playing .player-start {
  display: none;
}

.player-state {
  position: absolute;
  left: 20px;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.content-panel,
.info-panel {
  padding: 26px;
}

.content-panel h2 + p {
  margin-top: 12px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.info-panel dt {
  color: var(--green-700);
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
}

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

.page-search {
  max-width: 720px;
  margin-top: 26px;
}

.text-page {
  max-width: 900px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
}

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

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

  .global-search-form {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .hero-inner,
  .intro-panel,
  .split-layout,
  .detail-layout,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

  .detail-meta-grid,
  .stats-band,
  .rank-list,
  .category-hero .hero-mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
  }

  .global-search-form,
  .hero-search,
  .page-search {
    width: 100%;
    flex-direction: column;
    border-radius: 22px;
  }

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

  .hero-inner,
  .section-wrap,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .four-col,
  .three-col,
  .two-col,
  .category-grid,
  .category-overview-grid,
  .compact-list,
  .filter-panel,
  .rank-list,
  .detail-meta-grid,
  .stats-band,
  .category-hero .hero-mini-list {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    padding: 14px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .rank-card a {
    grid-template-columns: auto 64px 1fr;
  }

  .rank-card img {
    width: 64px;
    height: 86px;
  }
}
