:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-deep: #020617;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --white: #ffffff;
  --accent: #38bdf8;
  --accent-2: #f97316;
  --accent-3: #a78bfa;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(56, 189, 248, 0.15), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.12), transparent 26rem),
    var(--bg);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.page-main {
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--panel-deep);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.15) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  bottom: 12vh;
  max-width: 760px;
  padding-right: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
  font-size: 14px;
}

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

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

.primary-btn {
  background: linear-gradient(135deg, var(--white), #cbd5e1);
  color: #020617;
  box-shadow: 0 16px 42px rgba(255, 255, 255, 0.16);
}

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

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  color: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dots button.is-active {
  width: 36px;
  background: var(--white);
}

.search-band,
.section,
.page-hero,
.category-overview,
.ranking-list,
.breadcrumb,
.detail-layout {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-band h2,
.section-head h2,
.compact-head h2,
.side-box h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.search-box {
  min-width: min(430px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--muted);
}

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

.search-box input::placeholder {
  color: #64748b;
}

.section {
  padding-top: 70px;
}

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

.section-head a,
.text-link {
  color: #7dd3fc;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 26px 80px rgba(14, 165, 233, 0.14);
}

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

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

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.82) 100%);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #020617;
  font-size: 22px;
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--white);
  font-size: 12px;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
}

.movie-line {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags,
.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span,
.category-sample-links a {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  color: #cbd5e1;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.feature-panel,
.rank-panel,
.detail-info,
.player-card,
.side-box,
.category-overview-card,
.ranking-card,
.page-hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.feature-panel {
  min-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1fr;
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.feature-panel div {
  padding: 34px;
  align-self: center;
}

.feature-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.feature-panel p {
  margin: 18px 0 26px;
  color: #cbd5e1;
  line-height: 1.9;
}

.rank-panel {
  padding: 22px;
}

.compact-head {
  margin-bottom: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rank-num {
  color: #fbbf24;
  font-weight: 950;
  font-size: 20px;
}

.rank-row img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: var(--white);
  line-height: 1.35;
}

.rank-text em {
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.56;
  transform: scale(1.06);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(2, 6, 23, 0.94) 100%);
}

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

.category-tile span {
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}

.category-tile small {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.6;
}

.inner-page {
  padding-bottom: 70px;
}

.page-hero {
  margin-top: 40px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.slim-hero,
.category-hero {
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
}

.page-search {
  margin-top: 24px;
}

.inline-search {
  max-width: 420px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-cover {
  display: block;
  min-height: 170px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

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

.category-overview-card h2 {
  margin: 4px 0 10px;
  color: var(--white);
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
}

.ranking-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  background: #0f172a;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.92);
  color: #111827;
  font-weight: 950;
}

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

.ranking-body h2 {
  margin: 4px 0 12px;
  color: var(--white);
  font-size: 22px;
}

.ranking-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.breadcrumb {
  padding-top: 30px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 14px;
}

.breadcrumb a {
  color: #7dd3fc;
}

.detail-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08) 0%, rgba(0, 0, 0, 0.62) 100%);
  color: #020617;
}

.video-overlay[hidden] {
  display: none;
}

.video-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  box-shadow: 0 18px 54px rgba(255, 255, 255, 0.2);
}

.detail-info {
  padding: 30px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-tags {
  margin-bottom: 28px;
}

.text-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-block + .text-block {
  margin-top: 24px;
}

.text-block h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
  font-size: 16px;
}

.side-cover {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.side-cover img {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
}

.side-box {
  margin-top: 24px;
  padding: 22px;
}

.side-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.side-related .movie-card {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.side-related .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

.side-related .movie-line {
  min-height: 0;
  -webkit-line-clamp: 2;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
  font-weight: 950;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #cbd5e1;
}

[data-search-card].is-hidden {
  display: none;
}

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

  .split-section,
  .detail-layout,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
  }

  .side-box {
    margin-top: 0;
  }
}

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

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

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

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 92px;
    padding-right: 0;
  }

  .hero-arrow {
    display: none;
  }

  .search-band,
  .section-head,
  .footer-inner,
  .detail-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-band {
    margin-top: 24px;
  }

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

  .feature-panel,
  .category-overview-card,
  .ranking-card,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .feature-panel img {
    min-height: 260px;
  }

  .side-related .movie-card {
    grid-template-columns: 1fr;
  }
}

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

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

  .search-band,
  .section,
  .page-hero,
  .category-overview,
  .ranking-list,
  .breadcrumb,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .dense-grid,
  .category-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .page-hero {
    margin-top: 24px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .detail-info {
    padding: 22px;
  }

  .video-overlay span {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
