:root {
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #ecfdf5;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --teal: #0f766e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  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: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 42%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #34d399, #0f766e);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, #059669, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #334155;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #334155;
  background: #f1f5f9;
  font-size: 20px;
}

.hero-shell {
  position: relative;
  max-width: 1180px;
  margin: 26px auto 0;
  min-height: 560px;
  padding: 36px;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.34), transparent 32%), linear-gradient(135deg, #071a18, #064e3b 48%, #0f766e);
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.24), transparent 55%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  z-index: 1;
  height: 100%;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 42px;
  align-items: center;
  min-height: 438px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #34d399;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

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

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.32);
}

.secondary-button {
  color: #064e3b;
  background: rgba(255, 255, 255, 0.92);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  height: 460px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
}

.hero-poster::after,
.poster-link::after,
.rank-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

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

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

.hero-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.hero-search input,
.search-panel input {
  width: min(420px, 58vw);
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--text);
  font-size: 15px;
}

.hero-search button,
.search-panel button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.section-wrap {
  max-width: 1180px;
  margin: 44px auto;
  padding: 0 20px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.category-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.92));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  transition: all 0.24s ease;
}

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

.category-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 13px;
  font-weight: 800;
}

.category-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  transition: all 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #10b981);
}

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

.poster-link img,
.rank-poster img,
.hero-poster img {
  transition: transform 0.45s ease;
}

.year-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #064e3b;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.movie-card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta a {
  color: var(--brand-dark);
}

.movie-card h3,
.rank-item h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p,
.rank-item p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card .poster-link {
  height: 260px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.rank-poster {
  position: relative;
  display: block;
  height: 124px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #064e3b, #10b981);
}

.rank-index {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  font-weight: 900;
  font-size: 18px;
}

.rank-score {
  color: #047857;
  font-weight: 900;
}

.page-hero {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 58px 36px;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.36), transparent 32%), linear-gradient(135deg, #071a18, #064e3b 58%, #0f766e);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.search-panel {
  width: min(720px, 100%);
  margin: 0 0 24px;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

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

.detail-hero {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 36px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 38px;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.34), transparent 32%), linear-gradient(135deg, #071a18, #064e3b 52%, #0f766e);
  box-shadow: var(--shadow);
}

.detail-poster {
  min-height: 500px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #064e3b, #10b981);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-info {
  align-self: center;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.large-tags {
  margin-top: 24px;
}

.player-section {
  margin-top: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.36);
  font-weight: 900;
  cursor: pointer;
}

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

.detail-grid article,
.detail-meta-box {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.detail-grid h2,
.detail-meta-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-grid p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.detail-meta-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.detail-meta-box dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-meta-box dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #064e3b;
}

.footer-inner p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--brand-dark);
  font-weight: 800;
}

[data-movie-card].is-hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .category-grid,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-link {
    border-radius: 14px;
  }

  .hero-shell,
  .page-hero,
  .detail-hero {
    margin-left: 14px;
    margin-right: 14px;
    padding: 24px;
    border-radius: 26px;
  }

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

  .hero-poster {
    height: 360px;
    transform: none;
  }

  .hero-bottom,
  .footer-inner,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search,
  .search-panel {
    width: 100%;
  }

  .hero-search input,
  .search-panel input {
    width: 100%;
  }

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

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

  .detail-poster {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .hero-shell {
    min-height: auto;
  }

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

  .category-grid,
  .movie-grid,
  .library-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .rank-index {
    position: absolute;
    margin-left: 52px;
    margin-top: -78px;
  }

  .poster-link {
    height: 340px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
