:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(59, 130, 246, 0.24);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #e5eefb;
  --muted: #93a4ba;
  --soft: #c7d2fe;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --orange: #f97316;
  --gold: #facc15;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  --radius: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.22), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.96));
  box-shadow: 0 14px 50px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

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

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.3);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-2deg);
}

.logo-text {
  background: linear-gradient(90deg, #bfdbfe, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: min(280px, 28vw);
}

.header-search input,
.filter-input,
.search-box input,
.filter-select {
  width: 100%;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: 0;
  background: rgba(15, 23, 42, 0.58);
  border-radius: 999px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  padding-left: 42px;
}

.header-search input:focus,
.filter-input:focus,
.search-box input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.88);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.52);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: grid;
  gap: 14px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.72);
}

.main {
  overflow: hidden;
}

.section {
  padding: 70px 0;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(14, 165, 233, 0.12);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

h3 {
  line-height: 1.25;
}

.lead,
.section-desc {
  color: var(--muted);
  line-height: 1.85;
}

.lead {
  max-width: 760px;
  font-size: clamp(16px, 1.5vw, 19px);
}

.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.2), transparent 26rem);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

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

.hero-tags,
.tag-list,
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.pill,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.pill.hot {
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.94), rgba(249, 115, 22, 0.72));
  border-color: rgba(251, 146, 60, 0.45);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.64);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.2);
}

.hero-card {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.52);
  box-shadow: var(--shadow);
}

.hero-card img,
.poster-frame img,
.movie-card img,
.rank-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.hero-card img {
  position: absolute;
  inset: 0;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.88));
}

.hero-card-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 36px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 52px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.hero-side-list {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-link {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.54);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mini-link:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(30, 41, 59, 0.76);
}

.mini-link span {
  color: var(--muted);
  font-size: 13px;
}

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

.category-card,
.info-panel,
.feature-panel,
.search-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.58));
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.22);
}

.category-card {
  padding: 22px;
  min-height: 156px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.66), rgba(15, 23, 42, 0.72));
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.category-card p,
.card-desc,
.rank-meta,
.footer p,
.detail-meta {
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 26px 70px rgba(14, 165, 233, 0.18);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #172554);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.card-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.86);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  min-height: 43px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 0 0 12px;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.52);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-info h3 {
  margin: 0 0 8px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  font-weight: 900;
}

.page-hero {
  padding: 78px 0 34px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.12), transparent 24rem);
}

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 28px;
}

.controls .filter-input {
  flex: 1 1 320px;
}

.controls .filter-select {
  flex: 0 0 180px;
}

.detail-hero {
  padding: 58px 0 36px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 96px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.breadcrumb a {
  color: #a5f3fc;
}

.detail-summary {
  color: #cbd5e1;
  line-height: 1.92;
  font-size: 17px;
}

.video-section {
  padding: 22px 0 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: #000000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-core {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.4);
  font-size: 34px;
  transform: translateZ(0);
}

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

.info-panel,
.feature-panel,
.search-panel {
  padding: 24px;
}

.info-panel p {
  color: #cbd5e1;
  line-height: 1.9;
}

.feature-panel {
  display: grid;
  gap: 14px;
}

.feature-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-link:hover {
  background: rgba(30, 64, 175, 0.46);
  transform: translateY(-2px);
}

.feature-link img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.feature-link strong {
  display: block;
  margin-bottom: 5px;
}

.feature-link span {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.no-results {
  display: none;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.7);
}

.no-results.show {
  display: block;
}

.footer {
  margin-top: 56px;
  padding: 46px 0;
  border-top: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 24px;
}

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

.footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #67e8f9;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-poster {
    position: relative;
    top: auto;
    max-width: 360px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel.open {
    display: block;
  }

  .hero {
    min-height: 860px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 760px;
    gap: 26px;
    padding-top: 36px;
  }

  .hero-card {
    min-height: 360px;
  }

  .hero-dots {
    bottom: 12px;
  }

  .hero-side-list {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .rank-item .score {
    grid-column: 3;
    width: fit-content;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .container,
  .mobile-panel-inner {
    width: min(100% - 22px, 1180px);
  }

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

  h1 {
    font-size: 36px;
  }

  .section {
    padding: 48px 0;
  }

  .movie-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 14px;
    min-height: 38px;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-poster {
    display: none;
  }

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