:root {
  --page-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.72);
  --panel-bg-strong: rgba(15, 23, 42, 0.92);
  --panel-border: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --text: #f8fafc;
  --emerald: #10b981;
  --emerald-strong: #059669;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.15), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  padding-top: 72px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.25);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong,
.footer-brand {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #34d399, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: #64748b;
  font-size: 12px;
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.13);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #d1fae5;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.container,
.section,
.detail-wrap {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  left: -80px;
  top: 70px;
  background: rgba(16, 185, 129, 0.18);
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -80px;
  background: rgba(20, 184, 166, 0.14);
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.2) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.44) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 44px;
  padding: 56px 0 72px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  color: #cbd5e1;
  font-size: clamp(17px, 1.8vw, 22px);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.64);
  font-weight: 900;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.44);
  color: #a7f3d0;
}

.btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.04);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.hero-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.46));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.8);
}

.hero-card-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(14px);
}

.hero-card-info strong {
  display: block;
  font-size: 20px;
}

.hero-card-info span {
  color: var(--muted);
  font-size: 13px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: 0.25s ease;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--emerald), var(--teal));
}

.section {
  padding: 70px 0;
}

.section.is-soft {
  width: 100%;
  max-width: none;
  padding: 70px max(16px, calc((100% - var(--container)) / 2));
  background: rgba(15, 23, 42, 0.36);
}

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

.section-title h2,
.page-hero h1,
.detail-title h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title p,
.page-hero p,
.detail-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.48));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(16, 185, 129, 0.16));
}

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

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

.card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 7px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.card-body h3 a:hover,
.rank-copy h3 a:hover,
.text-link:hover {
  color: #6ee7b7;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 14px;
}

.movie-card.is-compact .card-body p {
  display: none;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.54));
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.36);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

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

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

.category-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.6);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 42px 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
}

.rank-no {
  font-size: 22px;
  font-weight: 950;
  color: #34d399;
}

.rank-thumb img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.8);
}

.rank-copy h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.3;
}

.rank-copy p,
.rank-copy span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 64px 0 34px;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px, 0.7fr));
  gap: 12px;
  margin: 26px 0 30px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.68);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.detail-hero {
  padding: 46px 0 34px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-side,
.content-panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #000;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.32);
}

.player-caption {
  padding: 18px 20px;
  color: var(--muted);
}

.player-caption strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 20px;
}

.detail-side {
  overflow: hidden;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.8);
}

.detail-meta {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.detail-meta dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: #cbd5e1;
}

.detail-meta dt {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.content-panel {
  padding: 24px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.related-section {
  padding: 58px 0 74px;
}

.alpha-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.alpha-list a {
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.5);
  font-weight: 800;
}

.alpha-list a:hover {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.12);
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.62);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 38px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 28px;
}

.footer-inner p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  text-align: center;
  font-size: 14px;
}

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

  .movie-grid.is-compact,
  .category-grid,
  .alpha-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-side {
    max-width: 420px;
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  main {
    padding-top: 66px;
  }

  .nav-wrap {
    height: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 42px 0 74px;
  }

  .hero-card {
    max-width: 360px;
  }

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

  .movie-grid,
  .movie-grid.is-wide,
  .movie-grid.is-compact,
  .category-grid,
  .rank-grid,
  .alpha-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .movie-grid.is-wide,
  .movie-grid.is-compact,
  .category-grid,
  .rank-grid,
  .alpha-list,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-thumb img {
    width: 78px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section,
  .section.is-soft {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
