:root {
  --page-bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5e7eb;
  --card: #ffffff;
  --brand: #10b981;
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --orange: #f97316;
  --shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.03em;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, #0ea5e9 100%);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.28);
}

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

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

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

.header-search {
  display: flex;
  align-items: center;
  width: min(290px, 28vw);
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 4px 11px 16px;
  color: #0f172a;
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 10px 15px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.main {
  min-height: 70vh;
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.62fr);
  gap: 48px;
  align-items: end;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-weight: 800;
  font-size: 14px;
}

.hero-kicker {
  color: #dcfce7;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(167, 243, 208, 0.28);
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.hero-lead {
  max-width: 720px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.hero-meta span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 18px 30px rgba(16, 185, 129, 0.26);
}

.btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.btn-light {
  color: #0f172a;
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.hero-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
}

.hero-card strong {
  display: block;
  font-size: 21px;
  margin-bottom: 6px;
}

.hero-card p {
  margin: 0;
  color: #dbeafe;
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.section {
  padding: 68px 0 0;
}

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

.section-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.movie-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.76);
  font-weight: 800;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.year-chip {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #064e3b;
  background: rgba(209, 250, 229, 0.92);
  font-weight: 900;
  font-size: 13px;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-title a:hover {
  color: var(--brand-dark);
}

.movie-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 750;
  font-size: 12px;
}

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

.category-card {
  min-height: 188px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
  margin: 12px 0 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #047857;
  background: #d1fae5;
  font-size: 20px;
  font-weight: 950;
}

.rank-cover {
  width: 86px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 18px;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 34px;
  background:
    radial-gradient(circle at 16% 10%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page-hero h1 {
  max-width: 920px;
  margin: 16px 0 12px;
  color: #0f172a;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  position: sticky;
  top: 84px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.22fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #dbe4ef;
  outline: 0;
  border-radius: 16px;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
}

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

.breadcrumb a:hover {
  color: var(--brand-dark);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.05);
  opacity: 0.52;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 56%, rgba(15, 23, 42, 0.55) 100%),
    radial-gradient(circle at 75% 18%, rgba(16, 185, 129, 0.24), transparent 34%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-title {
  margin: 16px 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.detail-lead {
  margin: 0;
  max-width: 820px;
  color: #dbeafe;
  font-size: 19px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.player-section {
  padding: 44px 0 0;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.30), transparent 28%),
    rgba(2, 6, 23, 0.36);
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.35);
  font-size: 30px;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding-top: 40px;
}

.content-card,
.side-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.side-card h2,
.side-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud span,
.tag-cloud a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-weight: 800;
  font-size: 13px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 58px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  color: #0f172a;
  line-height: 1.3;
}

.side-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 900;
}

.footer p,
.footer li {
  color: #94a3b8;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 0;
  color: #94a3b8;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  background: #ffffff;
}

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

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

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

  .hero-card {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links,
  .header-search {
    position: fixed;
    left: 16px;
    right: 16px;
    display: none;
    width: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
  }

  .nav-links {
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
  }

  .header-search {
    top: 308px;
  }

  body.nav-open .nav-links,
  body.nav-open .header-search {
    display: flex;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 88px 0 78px;
  }

  .hero-control {
    display: none;
  }

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

  .movie-body {
    padding: 13px;
  }

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

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .rank-item .btn {
    grid-column: 2 / -1;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-wrap,
  .hero-content,
  .detail-wrap,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero h1,
  .page-hero h1,
  .detail-title {
    letter-spacing: -0.04em;
  }
}
