
:root {
  --bg: #07111f;
  --bg-soft: #0d1728;
  --panel: rgba(11, 20, 35, 0.78);
  --panel-strong: rgba(8, 15, 28, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edf6ff;
  --muted: #a8b5c7;
  --muted-2: #74839b;
  --brand: #18c79b;
  --brand-2: #7be6ca;
  --accent: #43a7ff;
  --warning: #ffd166;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 199, 155, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(67, 167, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #06101d 0%, #08111d 38%, #050b14 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
  pointer-events: none;
  z-index: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.page-wrap {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(4, 11, 20, 0.96), rgba(4, 11, 20, 0.72));
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 35px rgba(24, 199, 155, 0.34);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.08));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  transition: all .22s ease;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover,
.nav a.active {
  background: rgba(255,255,255,0.06);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

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

.quick-search {
  position: relative;
  min-width: 280px;
}

.quick-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.quick-search input:focus {
  border-color: rgba(24, 199, 155, 0.5);
  box-shadow: 0 0 0 4px rgba(24, 199, 155, 0.12);
  background: rgba(255,255,255,0.07);
}

.quick-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: .78;
}

.menu-btn {
  display: none;
}

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

.hero-shell {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(9, 20, 34, 0.96), rgba(9, 16, 28, 0.82)),
    radial-gradient(circle at top left, rgba(24,199,155,0.22), transparent 34%);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(24, 199, 155, 0.18), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(67, 167, 255, 0.14), transparent 28%),
    radial-gradient(circle at 74% 80%, rgba(255, 255, 255, 0.04), transparent 18%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 30px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 199, 155, 0.28);
  background: rgba(24, 199, 155, 0.12);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.hero-actions .btn,
.hero-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  font-weight: 700;
}

.btn {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #07121e;
  box-shadow: 0 18px 28px rgba(24, 199, 155, 0.2);
}

.btn-outline {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--text);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.stat-card .num {
  font-size: 22px;
  font-weight: 900;
}

.stat-card .label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

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

.hero-slide .poster {
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

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

.hero-slide .poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.42));
}

.hero-slide .copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.hero-slide .title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

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

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 12px;
}

.chip.brand {
  color: #07121e;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  font-weight: 800;
}

.hero-slide .excerpt {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.hero-slide .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 36px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.section {
  padding: 22px 0;
}

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

.section-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.section-link {
  color: var(--brand-2);
  font-weight: 700;
  white-space: nowrap;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

.movie-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 199, 155, 0.35);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.55));
}

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

.movie-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  min-height: 42px;
}

.movie-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-excerpt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 63px;
}

.movie-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.movie-actions .small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 12px;
  transition: all .2s ease;
}

.movie-actions .small-btn:hover {
  background: rgba(24, 199, 155, 0.14);
  border-color: rgba(24, 199, 155, 0.35);
}

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

.category-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease;
  min-height: 170px;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 167, 255, 0.34);
}

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

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

.category-card .count {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-2);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

.filter-bar input {
  min-width: 280px;
  flex: 1;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(24, 199, 155, 0.5);
  box-shadow: 0 0 0 4px rgba(24, 199, 155, 0.12);
}

.page-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
}

.page-intro {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  transition: transform .2s ease, border-color .2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: rgba(24,199,155,0.34);
}

.rank-num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(24,199,155,0.2), rgba(67,167,255,0.18));
  border: 1px solid var(--line);
}

.rank-poster {
  width: 82px;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
}

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

.rank-main {
  min-width: 0;
}

.rank-main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

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

.rank-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-hero {
  padding: 28px 0 10px;
}

.detail-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.04);
}

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

.detail-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  border-radius: 30px;
  padding: 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-panel h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.detail-panel .one-line {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.player-shell {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.player-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.player-head h2 {
  margin: 0;
  font-size: 18px;
}

.player-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.3));
  opacity: 0;
  transition: opacity .2s ease;
}

.player-stage.is-paused .player-overlay {
  opacity: 1;
}

.player-play-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 16, 28, 0.7);
  color: white;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.panel-grid {
  display: grid;
  gap: 18px;
}

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

.footer {
  padding: 34px 0 50px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.tiny {
  font-size: 12px;
  color: var(--muted-2);
}

@media (max-width: 1200px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-grid,
  .detail-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .brand {
    min-width: 0;
  }
  .nav {
    order: 3;
    width: 100%;
    display: none;
    padding-bottom: 8px;
  }
  .nav.is-open {
    display: flex;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    color: var(--text);
  }
  .quick-search {
    min-width: 0;
    flex: 1;
  }
  .hero-grid {
    padding: 20px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-carousel {
    min-height: 580px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .hero-slide .poster {
    min-height: 280px;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-item {
    grid-template-columns: 46px 72px 1fr;
  }
  .rank-cta {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .page-wrap,
  .header-inner {
    width: min(100% - 20px, 1380px);
  }
  .hero-shell {
    border-radius: 24px;
  }
  .hero-carousel {
    min-height: 640px;
  }
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .rank-item {
    grid-template-columns: 1fr;
  }
  .rank-num {
    width: 46px;
    height: 46px;
  }
  .quick-search input,
  .filter-bar input,
  .filter-bar select {
    min-width: 0;
    width: 100%;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
