:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-light: #1e293b;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.24), transparent 32rem), linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  background: #0f172a;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.brand:hover,
.footer-brand:hover {
  color: var(--cyan);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.32);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 99px;
}

.quick-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
  display: none;
}

.quick-row a {
  white-space: nowrap;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
}

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

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.66);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.24), transparent 28rem);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  display: none;
  min-height: 650px;
  align-items: center;
  gap: 48px;
  padding: 64px 0 42px;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 13px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  font-weight: 750;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.72);
}

.btn.primary {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
}

.btn.ghost {
  color: #a5f3fc;
}

.hero-art {
  position: relative;
  z-index: 2;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}

.hero-poster-info strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.hero-poster-info span {
  color: var(--muted-strong);
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 38px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
}

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

.section {
  padding: 62px 0;
}

.section.compact {
  padding: 36px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.compact-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: rgba(34, 211, 238, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(2, 6, 23, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.rank-badge {
  left: 10px;
  right: auto;
  color: #001018;
  background: var(--cyan);
}

.card-body {
  padding: 16px;
}

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

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

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

.card-body p {
  min-height: 45px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line span,
.tag-row span,
.detail-tag,
.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  font-size: 12px;
}

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

.category-card {
  display: grid;
  min-height: 180px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.category-card:hover {
  border-color: rgba(34, 211, 238, 0.68);
  transform: translateY(-3px);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 24px;
}

.category-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.category-card span {
  color: var(--cyan);
  font-weight: 750;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.22fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.74);
  border-radius: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.86);
  border-radius: 12px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
}

.rank-number {
  color: var(--cyan);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48);
}

.big-play {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.38);
  cursor: pointer;
  font-size: 30px;
}

.player-error .big-play {
  display: none;
}

.player-error::after {
  content: "播放暂时无法启动，请更换浏览器重试。";
  position: relative;
  z-index: 3;
  max-width: 78%;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.detail-card,
.text-panel {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.74);
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.detail-card {
  overflow: hidden;
}

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

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

.detail-meta {
  display: grid;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 14px;
}

.detail-meta strong {
  color: var(--text);
}

.text-panel {
  margin-top: 22px;
  padding: 26px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  margin: 0 0 18px;
  color: var(--muted-strong);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.small-card {
  display: block;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
}

.small-card:hover {
  border-color: rgba(34, 211, 238, 0.72);
}

.small-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.small-card span {
  display: block;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 24px;
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(51, 65, 85, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 560px;
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted-strong);
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  font-size: 14px;
}

.hidden-card {
  display: none;
}

@media (max-width: 1024px) {
  .hero-slide.is-active,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    position: static;
    margin-bottom: 26px;
  }

  .movie-grid,
  .movie-grid.six,
  .category-grid,
  .rank-list,
  .related-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .main-nav,
  .quick-row {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero,
  .hero-stage,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 36px 0 24px;
  }

  .hero-slide.is-active,
  .movie-grid,
  .movie-grid.six,
  .movie-grid.three,
  .category-grid,
  .rank-list,
  .related-strip,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
    height: 360px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 52px 96px 1fr;
    gap: 12px;
  }

  .rank-item img {
    width: 96px;
    height: 66px;
  }
}
