:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --green: #059669;
  --green-dark: #047857;
  --teal: #0f766e;
  --orange: #f97316;
  --rose: #e11d48;
  --shadow: 0 20px 55px rgba(15, 23, 42, .12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, .14), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 38%, #eef2f7 100%);
  color: var(--ink);
  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: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
}

.nav-wrap,
.container,
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: #064e3b;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 10px 22px rgba(5, 150, 105, .28);
}

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

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

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

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, .92) 0%, rgba(6, 78, 59, .72) 50%, rgba(2, 6, 23, .24) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, .18), rgba(2, 6, 23, .88));
}

.hero-bg img {
  filter: saturate(1.06) contrast(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 92px;
  display: grid;
  grid-template-columns: 1.05fr .72fr;
  align-items: center;
  gap: 52px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #a7f3d0;
  background: rgba(16, 185, 129, .16);
  border: 1px solid rgba(167, 243, 208, .24);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -2px;
}

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

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 16px 30px rgba(5, 150, 105, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(5, 150, 105, .36);
}

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

.hero-panel {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  padding: 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-poster {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
}

.hero-panel h2 {
  margin: 18px 0 6px;
  font-size: 24px;
}

.hero-panel .meta {
  color: rgba(255, 255, 255, .72);
}

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

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

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

.section {
  padding: 54px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

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

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

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

.movie-card,
.category-card,
.info-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(229, 231, 235, .8);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  transition: .25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.poster img {
  transition: transform .4s ease;
}

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.card-body p {
  margin: 12px 0 0;
  color: #475467;
  font-size: 14px;
}

.card-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
}

.category-card {
  padding: 24px;
}

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

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

.search-box {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.search-box input {
  flex: 1;
  min-width: 180px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  font: inherit;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(229, 231, 235, .8);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  transition: .22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(5, 150, 105, .35);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-year {
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 42px;
}

.page-hero .hero-card {
  padding: 36px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(5, 150, 105, .94), rgba(15, 118, 110, .92)),
    radial-gradient(circle at top right, rgba(255, 255, 255, .26), transparent 20rem);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.detail-wrap {
  padding: 48px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.detail-main h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.detail-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.synopsis,
.player-card,
.related-block {
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .8);
  box-shadow: var(--soft-shadow);
}

.synopsis h2,
.player-card h2,
.related-block h2 {
  margin: 0 0 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity .25s ease, visibility .25s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, .18), rgba(2, 6, 23, .78));
}

.play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 18px 42px rgba(5, 150, 105, .38);
  font-size: 32px;
  cursor: pointer;
}

.player-shell.is-playing .player-cover,
.player-shell.is-playing .play-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 116px 1fr;
}

.movie-card.compact .poster {
  aspect-ratio: auto;
  min-height: 156px;
}

.site-footer {
  margin-top: 60px;
  padding: 34px 0;
  color: #d1fae5;
  background: #022c22;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 8px 0 0;
  color: rgba(209, 250, 229, .72);
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  color: #a7f3d0;
  font-weight: 800;
}

.hidden-card {
  display: none !important;
}

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

  .hero-panel {
    max-width: 420px;
  }

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

@media (max-width: 680px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 86px;
  }

  .grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-card.compact {
    grid-template-columns: 96px 1fr;
  }

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