:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --emerald-500: #10b981;
  --yellow-300: #fde68a;
  --red-500: #ef4444;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: linear-gradient(180deg, #f8fafc 0%, #eefcf6 42%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.28);
}

.nav-wrap {
  max-width: 1240px;
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--green-800);
  background: linear-gradient(135deg, #fef3c7, #ffffff);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  opacity: 0.96;
}

.main-nav a:hover {
  color: var(--yellow-300);
  border-color: var(--yellow-300);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.7), transparent 30%),
    radial-gradient(circle at bottom right, rgba(253, 224, 71, 0.35), transparent 24%),
    linear-gradient(135deg, #052e2b 0%, #064e3b 46%, #111827 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: saturate(1.1) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.2) 54%, rgba(2, 6, 23, 0.78));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 24px 0 16px;
  max-width: 720px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #073b2d;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  box-shadow: 0 18px 42px rgba(251, 191, 36, 0.28);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-search {
  max-width: 640px;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
}

.hero-search button,
.search-panel button {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  font-weight: 900;
  cursor: pointer;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-feature {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-feature .cover {
  height: 275px;
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.8), rgba(15, 23, 42, 0.15)),
    var(--card-image) center / cover;
}

.hero-feature-body {
  padding: 22px;
}

.hero-feature h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-feature p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #ecfdf5;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-mini {
  padding: 14px;
  border-radius: 20px;
  color: #e7fff5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 106px;
}

.hero-mini strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
  color: #fef3c7;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 20px;
}

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

.section-head h2,
.page-title h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.section-head p,
.page-title p {
  max-width: 760px;
  color: #475569;
  line-height: 1.8;
}

.section-kicker {
  color: var(--green-800);
  border-color: rgba(5, 150, 105, 0.22);
  background: rgba(16, 185, 129, 0.12);
}

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

.movie-card,
.category-card,
.rank-item,
.detail-panel,
.search-panel {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  display: block;
  min-height: 225px;
  background: linear-gradient(135deg, #064e3b, #111827);
}

.poster img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fef3c7;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf5;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  padding: 24px;
  min-height: 180px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(253, 224, 71, 0.35), transparent 34%),
    linear-gradient(135deg, var(--green-800), var(--slate-900));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: #d1fae5;
  line-height: 1.7;
}

.category-card strong {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--yellow-300);
  font-size: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), #f97316);
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #111827);
}

.rank-thumb img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.rank-views {
  color: var(--green-700);
  font-weight: 900;
  white-space: nowrap;
}

.page-title {
  padding: 54px 20px 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.2), transparent 28%),
    linear-gradient(180deg, #ffffff, #f0fdf4);
}

.page-title-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #047857;
  font-weight: 800;
}

.detail-hero {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.35), transparent 26%),
    linear-gradient(135deg, var(--slate-950), var(--green-900));
}

.detail-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  min-height: 468px;
  background: linear-gradient(135deg, #064e3b, #111827);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 468px;
  object-fit: cover;
}

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

.detail-copy p {
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

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

.video-box {
  position: relative;
  background: #020617;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(6, 78, 59, 0.22), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #064e3b;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  font-size: 38px;
  box-shadow: 0 22px 50px rgba(251, 191, 36, 0.28);
}

.player-start.is-hidden {
  display: none;
}

.detail-panel {
  padding: 28px;
  margin-bottom: 24px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-panel p {
  color: #475569;
  line-height: 1.9;
}

.search-panel {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 190px 160px;
  gap: 12px;
  margin-bottom: 28px;
}

.result-note {
  color: #475569;
  font-weight: 800;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 620px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  color: #fef3c7;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.backtop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 14px 34px rgba(4, 120, 87, 0.28);
}

@media (max-width: 1060px) {
  .hero-inner,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--green-800);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-search,
  .search-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .rank-item {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-views {
    grid-column: 3;
  }

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

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

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .detail-cover,
  .detail-cover img {
    min-height: auto;
    height: auto;
  }
}
