:root {
  --bg: #070a13;
  --bg-soft: #0e1424;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --gold: #fbbf24;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 24px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(139, 92, 246, 0.18), transparent 32rem),
    linear-gradient(180deg, #060814 0%, #0b1020 42%, #070a13 100%);
  min-height: 100vh;
}

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;
  background: rgba(7, 10, 19, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 22px;
  white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--muted-2);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.top-search input,
.mobile-search input,
.filter-search input,
.filter-select {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 12px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.top-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-button {
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.25);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.top-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
  border-radius: 14px;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 19, 0.96) 0%, rgba(7, 10, 19, 0.70) 45%, rgba(7, 10, 19, 0.26) 100%),
    linear-gradient(0deg, #070a13 0%, rgba(7, 10, 19, 0.1) 55%, rgba(7, 10, 19, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 160px 0 170px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.inner-hero h1,
.detail-info h1 {
  max-width: 860px;
  margin: 16px 0;
  font-size: clamp(38px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p,
.inner-hero p,
.detail-one-line {
  max-width: 720px;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.8;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted-2);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.small-actions {
  margin-top: 18px;
}

.hero-controls {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
}

.hero-dots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 8px;
  min-width: 0;
  opacity: 0.72;
}

.hero-dot.is-active {
  opacity: 1;
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.hero-dot img {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-dot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.section,
.inner-hero,
.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 58px 0;
}

.section-overlap {
  margin-top: -16px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(18px);
}

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

.filter-select {
  min-width: 142px;
}

.empty-state {
  display: none;
  margin: 20px 0;
  color: var(--muted-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 22;
}

.poster-wrap img,
.detail-cover img,
.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(7, 10, 19, 0.88), transparent);
}

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  right: 12px;
  color: #1f1300;
  background: linear-gradient(135deg, #fde68a, var(--gold));
}

.rank-badge {
  left: 12px;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover {
  color: var(--cyan);
}

.movie-card-body p {
  min-height: 52px;
  margin: 10px 0 14px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card-compact .movie-card-body p {
  min-height: 45px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: rgba(148, 163, 184, 0.5);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.hot-panel,
.category-panel,
.story-card,
.facts-card,
.category-stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto 70px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.08);
}

.rank-num {
  color: var(--cyan);
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta,
.rank-heat {
  color: var(--muted);
  font-size: 13px;
}

.rank-heat {
  color: var(--gold);
  text-align: right;
  font-weight: 900;
}

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

.category-pill-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.18), transparent 10rem),
    rgba(255, 255, 255, 0.045);
}

.category-pill-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

.category-pill-card span,
.category-pill-card strong,
.category-pill-card em {
  display: block;
}

.category-pill-card span {
  font-size: 18px;
  font-weight: 900;
}

.category-pill-card strong {
  color: var(--cyan);
  margin: 8px 0;
}

.category-pill-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.inner-hero,
.detail-hero {
  padding: 70px 0 20px;
}

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

.breadcrumb a {
  color: var(--cyan);
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  color: rgba(148, 163, 184, 0.55);
  margin-right: 8px;
}

.inner-hero-grid,
.detail-layout,
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: center;
}

.category-stat-card {
  text-align: center;
}

.category-stat-card strong {
  display: block;
  font-size: 76px;
  letter-spacing: -0.08em;
  color: var(--cyan);
}

.category-stat-card span,
.category-stat-card em {
  display: block;
  color: var(--muted-2);
}

.category-stat-card em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
}

.category-overview-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
}

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

.category-overview-card p {
  color: var(--muted-2);
  line-height: 1.7;
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-link-row a {
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}

.mini-link-row a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.45);
}

.detail-layout {
  grid-template-columns: 320px 1fr;
  align-items: end;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.8);
}

.detail-score {
  top: 16px;
  right: 16px;
}

.detail-info h1 {
  font-size: clamp(38px, 5.2vw, 72px);
}

.detail-tags {
  margin-top: 18px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--text);
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 22rem),
    linear-gradient(180deg, rgba(7, 10, 19, 0.1), rgba(7, 10, 19, 0.72));
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00131a;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.34);
  font-size: 34px;
}

.play-layer strong {
  font-size: 20px;
}

.content-grid {
  grid-template-columns: 1fr 340px;
  align-items: start;
}

.story-card h2,
.facts-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card h2:not(:first-child) {
  margin-top: 30px;
}

.story-card p {
  color: var(--muted-2);
  line-height: 2;
  font-size: 17px;
}

.facts-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.facts-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.facts-card span {
  color: var(--muted);
}

.facts-card strong {
  text-align: right;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 19, 0.86);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
}

.footer-grid p,
.footer-links a {
  color: var(--muted-2);
  line-height: 1.8;
}

.footer-grid h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 1100px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 10px;
  }

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

  .split-section,
  .inner-hero-grid,
  .detail-layout,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 110px 0 150px;
  }

  .hero-dots {
    display: none;
  }

  .hero-controls {
    justify-content: center;
  }

  .section-heading,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-pill-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 1fr 62px;
  }

  .rank-meta {
    display: none;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card-body h2 {
    font-size: 15px;
  }

  .movie-card-body p {
    font-size: 12px;
    min-height: 42px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .dense-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .inner-hero h1,
  .detail-info h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .hero p,
  .inner-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    text-align: center;
  }

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