:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-strong: #effcf5;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --brand: #059669;
  --brand-deep: #047857;
  --brand-soft: rgba(16, 185, 129, 0.14);
  --dark: #071513;
  --dark-soft: #10201d;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.16), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34rem);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #047857 58%, #064e3b);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.28);
}

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

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

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 10px;
  background: #111827;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.mobile-panel.open {
  display: block;
}

.mobile-links,
.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-categories {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mobile-categories a {
  padding: 8px 12px;
  color: var(--brand-deep);
  border-radius: 999px;
  background: var(--brand-soft);
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(6, 78, 59, 0.68), rgba(2, 6, 23, 0.56)),
    radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.36), transparent 26rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  padding: 92px 0 120px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.page-hero span,
.section-heading span,
.ranking-hero-copy span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
}

.hero-copy .eyebrow,
.ranking-hero-copy span {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.18);
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

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

.hero-tags,
.detail-meta,
.inline-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-button,
.ghost-button,
.inline-actions a,
.wide-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.inline-actions a:hover,
.wide-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(5, 150, 105, 0.38);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

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

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

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

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

.search-band,
.section-wrap,
.page-hero,
.detail-hero,
.ranking-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  position: relative;
  z-index: 8;
  margin-top: -44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-band span {
  color: var(--brand);
  font-weight: 900;
}

.search-band h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.05em;
}

.wide-search,
.filter-bar {
  display: flex;
  gap: 10px;
}

.wide-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #111827;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
}

.wide-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(16, 185, 129, 0.68);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.section-wrap {
  padding: 72px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.movie-article h2,
.ranking-hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
}

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.poster-badge {
  left: 12px;
}

.poster-year {
  right: 12px;
}

.movie-info {
  padding: 16px;
}

.movie-title,
.compact-title,
.category-index-title {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.compact-title:hover,
.category-index-title:hover {
  color: var(--brand-deep);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-info p,
.category-index-card p,
.page-hero p,
.footer-grid p,
.compact-card p,
.compact-card span,
.movie-article p,
.detail-copy .lead-text {
  color: var(--muted);
  line-height: 1.75;
}

.movie-info p {
  min-height: 48px;
  margin: 0;
  font-size: 14px;
}

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

.tag-row span {
  padding: 5px 9px;
  color: #047857;
  font-size: 12px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.dark-section {
  width: 100%;
  max-width: none;
  margin-top: 78px;
  padding: 72px max(16px, calc((100vw - 1200px) / 2)) 78px;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 22%, rgba(16, 185, 129, 0.25), transparent 28rem),
    linear-gradient(135deg, #071513, #10201d);
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dark-section .compact-card {
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
}

.compact-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.compact-cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #047857);
}

.compact-card p,
.compact-card span {
  display: block;
  margin: 5px 0 0;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.06), rgba(2, 6, 23, 0.86));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.category-card strong {
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.category-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.page-hero,
.detail-hero {
  padding: 72px 0 0;
}

.compact-hero,
.category-hero {
  max-width: 980px;
  text-align: center;
}

.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 18px;
}

.inline-actions {
  justify-content: center;
}

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

.category-index-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.category-index-cover {
  overflow: hidden;
  border-radius: 20px;
}

.category-index-cover img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.category-index-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-index-card li + li {
  margin-top: 8px;
}

.category-index-card li a {
  color: var(--brand-deep);
  font-weight: 700;
}

.filter-bar {
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.filter-bar select {
  max-width: 220px;
}

.movie-card.hidden {
  display: none;
}

.detail-hero {
  padding-top: 38px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--brand-deep);
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.18), transparent 24rem),
    #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

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

.detail-copy h1 {
  margin-bottom: 18px;
}

.detail-meta span {
  color: #065f46;
  border-color: transparent;
  background: var(--brand-soft);
}

.detail-tags {
  margin: 22px 0 26px;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

.video-element {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  font-size: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 18px 48px rgba(16, 185, 129, 0.34);
}

.movie-player.is-playing .play-layer {
  display: none;
}

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

.movie-article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.movie-article h2 {
  margin-top: 0;
  font-size: clamp(24px, 3.4vw, 36px);
}

.movie-article h2 + p {
  margin-top: 12px;
}

.movie-article p + h2 {
  margin-top: 28px;
}

.ranking-hero {
  position: relative;
  min-height: 460px;
  margin-top: 36px;
  overflow: hidden;
  display: grid;
  align-items: center;
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
}

.ranking-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.ranking-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(6, 78, 59, 0.58));
}

.ranking-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 56px;
  color: #ffffff;
}

.ranking-hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.site-footer {
  margin-top: 86px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 16% 0%, rgba(16, 185, 129, 0.22), transparent 26rem),
    #071513;
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

  .ranking-grid,
  .ranking-list,
  .category-index-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-content {
    padding: 58px 0 96px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-poster {
    display: none;
  }

  .search-band,
  .footer-grid,
  .category-index-card {
    grid-template-columns: 1fr;
  }

  .wide-search,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .detail-grid,
  .movie-article,
  .ranking-hero-copy {
    padding: 22px;
  }
}

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

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .section-wrap {
    padding-top: 52px;
  }
}
