:root {
  --bg: #060b17;
  --bg-soft: rgba(10, 16, 30, 0.82);
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e5eefc;
  --muted: #8fa3bf;
  --accent: #67e8f9;
  --accent-2: #a78bfa;
  --accent-3: #fb7185;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.5);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.15), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(251, 113, 133, 0.12), transparent 22%),
    linear-gradient(180deg, #030712 0%, #050a16 22%, #070d19 55%, #050913 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

::selection {
  background: rgba(103, 232, 249, 0.28);
  color: #fff;
}

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.64);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.95), rgba(167, 139, 250, 0.95));
  display: grid;
  place-items: center;
  color: #06111f;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(103, 232, 249, 0.25);
}

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

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.pill-link,
.page-link,
.btn,
.card-link,
.mobile-nav-link {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.nav-link {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.11);
  border-color: rgba(148, 163, 184, 0.16);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  cursor: pointer;
}

.hero {
  padding: 24px 0 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-main,
.hero-side,
.panel,
.movie-card,
.filter-bar,
.player-shell,
.stat-card,
.breadcrumbs,
.page-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-main {
  border-radius: 32px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 232, 249, 0.18), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(167, 139, 250, 0.18), transparent 28%),
    radial-gradient(circle at 72% 86%, rgba(251, 113, 133, 0.14), transparent 22%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
  color: #bff7ff;
  font-size: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
}

.hero-title {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-title .accent {
  background: linear-gradient(135deg, #ffffff 0%, #cfe9ff 28%, #67e8f9 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 1.03rem;
  color: rgba(229, 238, 252, 0.84);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.95), rgba(167, 139, 250, 0.95));
  color: #06111f;
  border-color: transparent;
  font-weight: 800;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tag,
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 8, 23, 0.26);
  color: rgba(229, 238, 252, 0.9);
  font-size: 0.88rem;
}

.hero-side {
  border-radius: 32px;
  padding: 18px;
  overflow: hidden;
}

.hero-carousel {
  display: grid;
  gap: 14px;
}

.hero-slide {
  position: relative;
  min-height: 198px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.35);
  isolation: isolate;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.12) 30%, rgba(2, 6, 23, 0.76) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.34), transparent 36%, rgba(2, 6, 23, 0.18));
  z-index: 1;
}

.hero-slide-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.hero-slide-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.hero-slide-desc {
  margin: 0;
  color: rgba(229, 238, 252, 0.8);
  font-size: 0.92rem;
  max-width: 28ch;
}

.hero-slide-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 2px;
}

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

.hero-dot.active {
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.9), rgba(167, 139, 250, 0.95));
}

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

.stat-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 8px;
}

.section {
  padding: 28px 0;
}

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

.section-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-link,
.page-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.4);
}

.pill-link:hover,
.page-link:hover {
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.22);
  transform: translateY(-1px);
}

.filter-bar {
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 8, 23, 0.34);
  min-height: 56px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: rgba(143, 163, 191, 0.72);
}

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

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 8, 23, 0.18);
  color: rgba(229, 238, 252, 0.84);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(103, 232, 249, 0.24);
  background: rgba(103, 232, 249, 0.12);
  color: #dffcff;
}

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.24);
}

.movie-poster {
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  background: #0b1220;
}

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

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

.movie-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
}

.movie-badge,
.rank-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.movie-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.movie-desc {
  color: rgba(229, 238, 252, 0.78);
  font-size: 0.88rem;
  margin: 0;
  min-height: 3.5em;
}

.movie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.movie-action {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.38);
  color: var(--text);
  font-size: 0.86rem;
}

.movie-action:hover {
  background: rgba(103, 232, 249, 0.12);
  border-color: rgba(103, 232, 249, 0.22);
}

.panel {
  border-radius: 28px;
  padding: 18px;
}

.panel-inner {
  display: grid;
  gap: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(2, 8, 23, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-item:hover {
  border-color: rgba(103, 232, 249, 0.2);
  background: rgba(103, 232, 249, 0.08);
}

.rank-num {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.96), rgba(167, 139, 250, 0.96));
  color: #06111f;
  font-weight: 900;
}

.rank-title {
  margin: 0;
  font-weight: 700;
}

.rank-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.rank-heat {
  color: #bff7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumbs {
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: rgba(229, 238, 252, 0.88);
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

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

.detail-main {
  display: grid;
  gap: 16px;
}

.detail-card {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.detail-subtitle {
  margin: 10px 0 0;
  color: rgba(229, 238, 252, 0.82);
  font-size: 1rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row strong {
  color: rgba(229, 238, 252, 0.82);
  min-width: 72px;
}

.player-shell {
  border-radius: 30px;
  padding: 18px;
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.control-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.42);
  color: var(--text);
  cursor: pointer;
}

.control-btn.active,
.control-btn:hover {
  background: rgba(103, 232, 249, 0.12);
  border-color: rgba(103, 232, 249, 0.24);
}

.rich-text p {
  margin: 0 0 1em;
  color: rgba(229, 238, 252, 0.84);
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 18px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-card {
  border-radius: 24px;
  padding: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.page-link.active {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.96), rgba(167, 139, 250, 0.96));
  border-color: transparent;
  color: #06111f;
  font-weight: 800;
}

.search-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-top: 6px;
}

.empty-state {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}

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

.subtle {
  color: var(--muted);
}

@media (max-width: 1200px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    position: relative;
    top: auto;
    max-width: 280px;
  }
  .stats-grid,
  .section-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 0;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }
  .hero-main,
  .hero-side,
  .panel,
  .detail-card,
  .player-shell {
    border-radius: 22px;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-row {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .section-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }
  .hero-main {
    min-height: auto;
    padding: 22px 18px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .movie-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    max-width: none;
  }
}
