:root {
  --bg: #f7faf9;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --dark: #07110f;
  --dark-soft: #12201d;
  --green: #10b981;
  --green-dark: #059669;
  --teal: #0d9488;
  --orange: #f97316;
  --shadow: 0 22px 65px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 35%), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.28);
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #030712;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 62%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 78vh;
  padding: 88px 22px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta,
.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-meta span,
.detail-meta span,
.card-meta-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  padding: 14px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.30);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.38);
}

.btn-ghost {
  padding: 13px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(10, 20, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.mini-rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  padding: 12px;
  color: #ffffff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.mini-rank-item:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: translateX(4px);
}

.mini-rank-item span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-weight: 900;
}

.mini-rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-rank-item em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-style: normal;
}

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

.hero-dots button {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.36), transparent 30%),
    linear-gradient(135deg, #07110f, #15241f 46%, #0f172a);
}

.page-hero-shell,
.content-shell,
.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
}

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

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px;
}

.content-section.is-dark {
  max-width: none;
  color: #ffffff;
  background: linear-gradient(135deg, #07110f, #17211e);
}

.content-section.is-dark > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.content-section.is-dark .section-heading p {
  color: rgba(255, 255, 255, 0.65);
}

.section-more {
  flex: none;
  padding: 10px 16px;
  color: var(--green-dark);
  background: rgba(16, 185, 129, 0.10);
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

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

.content-section.is-dark .movie-card {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}

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

.movie-card-compact .poster-box {
  aspect-ratio: 4 / 3;
}

.poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

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

.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.year-pill {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(3, 7, 18, 0.62);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: inherit;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-section.is-dark .movie-info em {
  color: rgba(255, 255, 255, 0.66);
}

.meta-line,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line span,
.tag-line span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #047857;
  background: rgba(16, 185, 129, 0.10);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 20px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #064e3b);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.category-tile:after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.category-tile span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.search-field input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}

.search-field input {
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-width: 150px;
  padding: 0 12px;
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
}

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

.breadcrumb i {
  font-style: normal;
  opacity: 0.45;
}

.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #07110f, #0f172a);
}

.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 58px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-title h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-title p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.player-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 26px 66px rgba(15, 23, 42, 0.20);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.46), rgba(3, 7, 18, 0.18));
  cursor: pointer;
  transition: 0.2s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.34);
}

.detail-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.article-card,
.side-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.article-card p {
  margin: 0 0 20px;
  color: #334155;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.side-links strong {
  display: block;
  line-height: 1.35;
}

.side-links span {
  color: var(--muted);
  font-size: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 18px;
}

.rank-cover img {
  width: 116px;
  height: 84px;
  object-fit: cover;
}

.rank-main strong {
  display: block;
  font-size: 19px;
}

.rank-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-action {
  padding: 10px 16px;
  border-radius: 999px;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  font-weight: 800;
}

.site-footer {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.72);
  background: #07110f;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
}

.footer-shell p {
  max-width: 520px;
  margin: 12px 0 0;
}

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

.footer-links a:hover {
  color: #ffffff;
}

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

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

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

  .hero-panel {
    display: none;
  }
}

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

  .main-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero,
  .hero-shell {
    min-height: 74vh;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 74px;
  }

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

  .section-heading,
  .footer-shell,
  .filter-panel,
  .detail-shell,
  .rank-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    flex-direction: column;
  }

  .detail-shell {
    padding-top: 28px;
  }

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

  .rank-row {
    display: grid;
  }

  .rank-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-action {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-shell,
  .content-section,
  .page-hero-shell,
  .player-section,
  .detail-body,
  .footer-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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