html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2933;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.14);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #065f46;
  letter-spacing: -0.02em;
}

.site-logo {
  font-size: 22px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #facc15);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #40515f;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(360px, 32vw);
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-search input,
.big-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
  color: #1f2933;
}

.header-search button,
.big-search button {
  border: 0;
  padding: 12px 18px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #10b981);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #064e3b;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.08);
}

.hero-shade,
.detail-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(250, 204, 21, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.94), rgba(6, 95, 70, 0.72) 48%, rgba(6, 78, 59, 0.28)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 112px 20px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #064e3b;
  background: rgba(209, 250, 229, 0.92);
  font-weight: 900;
  font-size: 14px;
}

.hero-text h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-text p,
.page-hero p,
.detail-one {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.72;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: #047857;
  background: #d1fae5;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  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: #064e3b;
  background: #facc15;
  box-shadow: 0 16px 38px rgba(250, 204, 21, 0.26);
}

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

.btn.soft {
  color: #065f46;
  background: #ecfdf5;
}

.hero-poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.34);
  border: 10px solid rgba(255, 255, 255, 0.2);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

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

.feature-strip,
.section-block,
.footer-inner {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 20px 4px;
}

.feature-strip a {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

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

.feature-strip strong {
  color: #065f46;
  font-size: 19px;
}

.feature-strip span {
  margin-top: 4px;
  color: #64748b;
}

.section-block {
  padding: 56px 20px;
}

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

.section-head h2,
.article-block h2 {
  margin: 0;
  color: #1f2933;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-more {
  color: #047857;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #064e3b;
  background: #facc15;
  font-weight: 900;
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  color: #1f2933;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover,
.rank-title:hover {
  color: #059669;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 14px;
  color: #64748b;
  line-height: 1.58;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta a,
.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

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

.category-card,
.category-panel {
  display: block;
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488 56%, #facc15 140%);
  box-shadow: 0 20px 52px rgba(5, 150, 105, 0.18);
  transition: transform 0.2s ease;
}

.category-card:hover,
.category-panel:hover {
  transform: translateY(-6px);
}

.category-card span {
  display: block;
  font-size: 38px;
}

.category-card strong,
.category-panel-title strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}

.category-card em,
.category-panel p {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

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

.category-panel {
  min-height: auto;
}

.category-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.category-panel-title span {
  font-size: 34px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #065f46, #059669 58%, #facc15 140%);
}

.page-hero {
  padding: 92px 20px;
}

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

.page-hero.compact h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.big-search {
  display: flex;
  width: min(720px, 100%);
  margin-top: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.rank-num {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #064e3b;
  background: #facc15;
  font-weight: 900;
}

.rank-cover img {
  width: 120px;
  height: 86px;
  object-fit: cover;
  border-radius: 18px;
}

.rank-title {
  display: block;
  color: #1f2933;
  font-size: 18px;
  font-weight: 900;
}

.rank-card p {
  display: -webkit-box;
  margin: 8px 0 12px;
  color: #64748b;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.32);
  border: 8px solid rgba(255, 255, 255, 0.18);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-meta a,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

.player-section {
  padding-top: 46px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(6, 95, 70, 0.38), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #064e3b;
  background: #facc15;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.25);
}

.play-layer strong {
  font-size: 22px;
}

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

.article-block {
  max-width: 960px;
  color: #334155;
  font-size: 18px;
  line-height: 1.95;
}

.article-block h2 {
  margin-top: 12px;
  margin-bottom: 14px;
}

.article-block p {
  margin: 0 0 28px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.prev-next a {
  padding: 20px;
  border-radius: 22px;
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  background: #064e3b;
  color: #d1fae5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 42px 20px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: rgba(209, 250, 229, 0.78);
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

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

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

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

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

  .rank-list,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 740px;
  }

  .hero-content {
    padding-top: 76px;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .prev-next,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 44px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    width: 88px;
    height: 72px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
