:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.2);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --subtle: #64748b;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --cyan: #22d3ee;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

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

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed 60%, #f97316);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.35);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-panel a {
  transition: color 0.2s ease;
}

.nav-panel a:hover {
  color: #ffffff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-search input,
.local-filter input {
  width: 220px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

.nav-search input::placeholder,
.local-filter input::placeholder {
  color: #94a3b8;
}

.nav-search button,
.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-search button,
.primary-btn {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.26);
}

.nav-search button {
  padding: 8px 16px;
  cursor: pointer;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn,
.section-more {
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(15, 23, 42, 0.6);
}

.nav-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.04);
}

.hero-bg {
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(59, 130, 246, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.55) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 34%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 70px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero-copy p,
.page-hero p,
.lead-text {
  max-width: 760px;
  color: #cbd5e1;
  line-height: 1.85;
}

.hero-copy p {
  margin: 22px 0 0;
  font-size: 20px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.76);
  border: 1px solid rgba(147, 197, 253, 0.18);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 36px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #3b82f6;
}

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

.alt-section {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-head h2,
.category-overview h2,
.info-card h2,
.prose-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.section-head p,
.category-card p,
.category-overview p,
.info-card dd,
.prose-card p {
  color: var(--muted);
  line-height: 1.78;
}

.section-more {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.66);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.22);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.year-badge {
  top: 10px;
  right: 10px;
}

.type-badge {
  left: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 16px;
}

.compact-card .card-body {
  padding: 13px;
}

.card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.tag-row {
  margin-top: 12px;
}

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

.category-card,
.category-overview,
.prose-card,
.info-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.category-card {
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.62);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #020617;
}

.category-cover-strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-card-body {
  padding: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.ranking-item a {
  display: grid;
  grid-template-columns: 46px 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item a:hover {
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.6);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.ranking-item img {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-text {
  min-width: 0;
}

.ranking-text strong,
.ranking-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-text strong {
  color: #ffffff;
}

.ranking-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.heat-score {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 900;
}

.region-layout,
.stacked-list {
  display: grid;
  gap: 28px;
}

.region-block h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 76% 20%, rgba(59, 130, 246, 0.22), transparent 30%),
    linear-gradient(180deg, #0f172a, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  margin: 18px 0 0;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #93c5fd;
}

.local-filter {
  width: min(720px, 100%);
  margin-top: 28px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.local-filter input {
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
}

.category-overview {
  padding: 24px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-inner {
  position: relative;
  z-index: 2;
  padding: 68px 0 78px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 860px;
  font-size: clamp(40px, 6.5vw, 78px);
}

.lead-text {
  margin: 22px 0 0;
  font-size: 20px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #000000;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.36), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.42);
  font-size: 30px;
  text-indent: 4px;
}

.player-cover strong {
  font-size: 20px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.prose-card,
.info-card {
  padding: 28px;
}

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

.prose-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-card dt {
  color: #cbd5e1;
  font-weight: 800;
}

.detail-switch {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.detail-switch a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.12);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 42px 0;
}

.footer-grid p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #94a3b8;
}

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

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

.inline-actions {
  margin-top: 22px;
}

@media (max-width: 1120px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .nav-panel,
  .nav-search {
    grid-column: 1 / -1;
    display: none;
  }

  .nav-panel.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .nav-panel.is-open {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .nav-search.is-open {
    margin-bottom: 14px;
  }

  .nav-search input {
    width: 100%;
  }

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

  .hero-poster,
  .detail-poster {
    width: min(320px, 72vw);
  }

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

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

  .home-ranking,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .nav-wrap {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-inner {
    min-height: 620px;
  }

  .hero-inner {
    padding: 54px 0 92px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .lead-text {
    font-size: 16px;
  }

  .section-block {
    padding: 50px 0;
  }

  .section-head,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

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

  .card-body {
    padding: 13px;
  }

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

  .ranking-item a {
    grid-template-columns: 38px 48px 1fr;
  }

  .heat-score {
    display: none;
  }

  .detail-inner {
    padding: 42px 0 58px;
  }

  .info-card dl div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
