:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --panel-soft: rgba(30, 41, 59, 0.52);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(6, 182, 212, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --blue: #3b82f6;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(6, 182, 212, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

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

.main-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.10);
}

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

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 1s ease, transform 1.2s ease;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.40) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, transparent 45%),
    var(--hero-image) center / cover no-repeat;
}

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

.hero-inner {
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 54px;
  padding: 72px 0 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.section-head h2,
.feature-panel h2,
.detail-copy h1,
.detail-block h2,
.detail-side h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  max-width: 850px;
}

.hero-copy h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.05;
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags,
.card-tags,
.detail-meta,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.card-tags span,
.detail-meta span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.12);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.search-form button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-btn,
.search-form button {
  border: 0;
  color: #02111f;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 16px 38px rgba(6, 182, 212, 0.26);
}

.ghost-btn,
.section-more {
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.20);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

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

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.52);
}

.search-band-inner,
.split-layout,
.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 32px;
  align-items: center;
}

.search-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.search-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
}

.search-form input::placeholder {
  color: var(--muted);
}

.content-section {
  padding: 70px 0;
}

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

.section-head.compact {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.64));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.12);
}

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

.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: saturate(1.08) brightness(0.92);
}

.play-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
}

.play-badge {
  right: 10px;
  bottom: 10px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.30);
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.32);
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  margin-top: 12px;
  gap: 6px;
}

.card-tags span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.category-grid,
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  min-height: 170px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68)),
    var(--tile-image) center / cover no-repeat;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-tile span,
.category-card h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong,
.category-card p {
  display: block;
  color: var(--soft);
  font-weight: 500;
  line-height: 1.7;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 290px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.category-samples a {
  color: var(--soft);
}

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

.rank-panel,
.feature-panel,
.detail-side,
.detail-article,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rank-panel {
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.rank-row:hover {
  background: rgba(6, 182, 212, 0.08);
}

.rank-number {
  color: var(--orange);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.feature-panel {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 15rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.58));
}

.feature-panel h2 {
  font-size: clamp(28px, 3.8vw, 46px);
}

.feature-panel p {
  color: var(--soft);
  line-height: 1.8;
  margin: 18px 0 28px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 92px 0 48px;
  background:
    radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.22), transparent 20rem),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.18), transparent 22rem);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.inline-search {
  max-width: 760px;
  margin-top: 28px;
}

.filter-row {
  margin-top: 18px;
}

.filter-chip {
  color: var(--soft);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #02111f;
  border-color: transparent;
  background: var(--cyan);
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 66px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  filter: blur(6px) saturate(1.08);
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 38%, rgba(2, 6, 23, 0.62) 100%),
    linear-gradient(0deg, #020617 0%, transparent 70%),
    var(--detail-image) center / cover no-repeat;
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
}

.detail-meta {
  margin-top: 18px;
}

.detail-one-line {
  max-width: 850px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.player-section {
  padding-top: 44px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #02111f;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.35);
  font-size: 28px;
}

.detail-content {
  padding-top: 24px;
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-block + .detail-block {
  margin-top: 30px;
}

.detail-block h2,
.detail-side h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.detail-block p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.9;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.detail-side dl {
  margin: 0;
}

.detail-side div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-side div:last-child {
  border-bottom: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: var(--text);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 36px 0 22px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

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

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

.footer-bottom {
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
}

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero-inner,
  .search-band-inner,
  .split-layout,
  .detail-content-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 30px;
    padding-top: 50px;
  }

  .hero-poster {
    justify-self: start;
    width: min(300px, 84vw);
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    width: min(260px, 76vw);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }
}

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

  .nav-wrap {
    min-height: 64px;
  }

  .site-logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-slider,
  .hero-inner {
    min-height: 760px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-summary,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .search-form {
    border-radius: 18px;
    flex-direction: column;
  }

  .search-form input {
    min-height: 44px;
  }

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .content-section {
    padding: 46px 0;
  }

  .page-hero {
    padding: 58px 0 34px;
  }

  .detail-side div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}
