:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --pink: #fb7185;
  --gold: #facc15;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 32rem),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07111f;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--cyan), #93c5fd 56%, #f0abfc);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.26);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  color: white;
  background: rgba(15, 23, 42, 0.92);
}

.main-wrap,
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 72px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: 640px;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.34;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 36%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 86px 22px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 380px;
  align-items: center;
  gap: 58px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.12);
  font-weight: 800;
  font-size: 13px;
}

.hero-title {
  margin: 0;
  max-width: 840px;
  color: #f8fafc;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-movie-title {
  margin: 18px 0 12px;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero-text {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-meta span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  font-weight: 700;
}

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

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--cyan), #93c5fd);
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.26);
}

.button-secondary {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.button-ghost {
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.12));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-controls {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 46px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--cyan);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.76);
  cursor: pointer;
}

.section {
  margin-top: 52px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #f8fafc;
  letter-spacing: -0.035em;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.34)), var(--tile-image);
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.category-tile:hover::before {
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: #f8fafc;
  font-size: 23px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(30, 41, 59, 0.9));
}

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

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

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  color: #020617;
  border-radius: 999px;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-title {
  display: block;
  min-height: 44px;
  color: #f8fafc;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.rank-title:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.13);
  font-size: 12px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-poster {
  overflow: hidden;
  border-radius: 13px;
  aspect-ratio: 2 / 3;
  background: rgba(148, 163, 184, 0.08);
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  display: block;
  margin: 4px 0 8px;
  color: #f8fafc;
  font-weight: 900;
  font-size: 18px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.rank-card span:not(.rank-num) {
  color: var(--gold);
  font-weight: 900;
}

.rank-num {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  background: linear-gradient(135deg, var(--gold), #fb7185);
  font-weight: 900;
}

.search-panel,
.filter-panel,
.info-panel {
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.search-form,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(150px, 0.5fr));
  gap: 12px;
}

.search-form button {
  grid-column: auto;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0 14px;
  color: #e2e8f0;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
}

input:focus,
select:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.page-title {
  margin: 22px 0 30px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(30, 41, 59, 0.72)),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.page-title h1 {
  font-size: clamp(34px, 6vw, 58px);
}

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

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

.detail-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.36)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.32;
}

.detail-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  padding: 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: rgba(148, 163, 184, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

.detail-title p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

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

.article-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.article-panel h2 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.95;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

.play-mask::before {
  content: "▶";
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 7px;
  color: #03111f;
  background: linear-gradient(135deg, var(--cyan), #93c5fd);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.34);
}

.play-mask span {
  font-size: 18px;
  font-weight: 900;
}

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

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

.related-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.related-card img {
  width: 74px;
  height: 106px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(148, 163, 184, 0.08);
}

.related-card strong {
  display: block;
  color: #f8fafc;
  line-height: 1.35;
}

.related-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 18px;
}

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

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.footer-grid p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
}

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

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

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

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

  .hero-poster {
    max-width: 320px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
  }

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

  .hero-inner {
    min-height: 720px;
    padding-top: 64px;
  }

  .hero-carousel,
  .hero-track {
    min-height: 720px;
  }

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

  .category-grid,
  .rank-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .main-wrap,
  .page-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand-copy small {
    display: none;
  }

  .hero-inner {
    gap: 28px;
    padding-bottom: 110px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-movie-title {
    font-size: 30px;
  }

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

  .movie-title {
    font-size: 14px;
  }

  .movie-line {
    display: none;
  }

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