:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.62);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #2563eb;
  --green: #22c55e;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.18), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.26);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.8);
  color: white;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #020617;
}

.hero-slider {
  position: relative;
  min-height: 68vh;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.58);
  background: #0f172a;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 68vh;
  margin: 0 auto;
  padding: 72px 22px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.42fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.15);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.52;
}

.hero-summary {
  max-width: 720px;
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.75;
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.28);
}

.btn.ghost {
  border: 1px solid rgba(203, 213, 225, 0.28);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.42);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f172a;
}

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

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
  font-size: 28px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(8, 145, 178, 0.8);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--cyan);
}

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

.page-hero {
  padding: 52px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.66));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section {
  margin-top: 70px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.035em;
}

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

.section-head a,
.text-link {
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(30, 41, 59, 0.82);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

.poster img,
.list-cover img,
.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster img,
.movie-card:hover .list-cover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 6, 23, 0.86) 100%);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.movie-info h2,
.list-body h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.list-body h2 a:hover {
  color: var(--cyan);
}

.meta-line {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.movie-info p,
.list-body p {
  margin: 10px 0 0;
  color: #aebbd0;
  font-size: 14px;
  line-height: 1.62;
}

.card-tags {
  margin-top: 13px;
}

.list-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.list-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 12px;
}

.list-cover {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 126px;
  border-radius: 16px;
  background: #0f172a;
}

.list-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

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

.category-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 1fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.56));
}

.category-entry h2 {
  margin: 0;
  font-size: 24px;
}

.category-entry p {
  color: var(--muted);
  line-height: 1.7;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.compact-card a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
}

.compact-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 9px 9px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.rank-no {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  font-size: 13px;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-top: 26px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.74);
  outline: none;
}

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

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

.breadcrumb {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #cbd5e1;
}

.detail-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-subtitle {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.player-panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.78));
}

.play-trigger span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 50px rgba(14, 165, 233, 0.36);
  font-size: 34px;
  transform: translateX(2px);
}

.video-shell.is-playing .play-trigger {
  display: none;
}

.detail-content {
  padding: 28px;
}

.detail-content h2,
.sidebar h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

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

.info-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid var(--line);
}

.info-item strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.info-item span {
  color: var(--text);
  font-weight: 750;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.42);
}

.side-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.side-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.side-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 34px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.footer-col a {
  color: var(--muted);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #64748b;
  font-size: 14px;
}

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

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

  .sidebar {
    position: static;
  }

  .category-grid,
  .category-entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .hero-control {
    display: none;
  }

  .page-hero {
    padding: 30px;
  }

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

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

  .list-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .list-cover {
    min-height: 132px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .page-wrap {
    padding: 42px 16px 56px;
  }

  .movie-grid {
    gap: 12px;
  }

  .movie-info {
    padding: 13px;
  }

  .movie-info h2 {
    font-size: 15px;
  }

  .movie-info p,
  .card-tags {
    display: none;
  }

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

  .detail-content {
    padding: 20px;
  }

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