:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #111827;
  --line: rgba(96, 165, 250, 0.24);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --orange: #f97316;
  --gold: #eab308;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 20px;
}

* {
  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;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.24), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.header-main,
.strip-inner,
.hero-inner,
.section-wrap,
.footer-grid,
.breadcrumbs,
.detail-wrap,
.page-hero,
.watch-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.header-main {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.34);
}

.logo-text,
.footer-logo span:last-child {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.96rem;
  padding: 8px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.top-search input,
.mobile-search input {
  width: 220px;
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.top-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.reset-filter,
.play-layer {
  border: 0;
  cursor: pointer;
}

.top-search button,
.mobile-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), #0891b2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-search button {
  padding: 10px 16px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn:hover,
.top-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.56);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-panel {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.98);
}

.mobile-search input {
  width: 100%;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 12px 14px;
  color: #cbd5e1;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.category-strip {
  overflow-x: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.55);
}

.strip-inner {
  display: flex;
  gap: 18px;
  padding: 9px 0;
}

.strip-inner a {
  white-space: nowrap;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.strip-inner a:hover {
  color: #38bdf8;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-bg img,
.hero-bg::after {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s ease, transform 4.8s ease;
}

.hero-bg img.active {
  opacity: 0.48;
  transform: scale(1.12);
}

.hero-bg::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.52)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 44%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: end;
  gap: 42px;
  padding: 82px 0 62px;
}

.eyebrow,
.section-kicker,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffffff;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.94), rgba(8, 145, 178, 0.94));
  padding: 7px 13px;
}

.hero h1 {
  margin: 18px 0 18px;
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.9;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 36px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  color: #ffffff;
}

.metric span {
  color: #94a3b8;
  font-size: 0.92rem;
}

.hero-slider {
  display: grid;
  gap: 14px;
}

.hero-slide {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  opacity: 0.68;
  transform: translateX(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.hero-slide.active,
.hero-slide:hover {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(34, 211, 238, 0.5);
}

.hero-slide img {
  width: 116px;
  height: 148px;
  object-fit: cover;
  border-radius: 18px;
  background: #0f172a;
}

.hero-slide h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.hero-slide p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
}

.slide-link {
  color: #67e8f9;
  font-weight: 700;
}

.hero-controls {
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.section-wrap {
  padding: 64px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 12px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.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.35s ease, opacity 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  opacity: 0.76;
}

.play-badge,
.rating-badge {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
}

.play-badge {
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.82);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rating-badge {
  right: 10px;
  top: 10px;
  min-width: 46px;
  min-height: 28px;
  color: #111827;
  font-weight: 800;
  border-radius: 999px;
  background: var(--gold);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.8em;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: #67e8f9;
}

.card-meta,
.tag-row,
.rank-copy div,
.detail-meta,
.breadcrumbs,
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta {
  margin: 9px 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #475569;
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  min-height: 3.9em;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.info-chips span,
.detail-meta span,
.rank-copy div span {
  color: #bae6fd;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  font-size: 0.76rem;
}

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

.category-card {
  min-height: 198px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 12%, rgba(34, 211, 238, 0.18), transparent 48%),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.category-card p {
  color: #94a3b8;
  line-height: 1.7;
}

.category-card strong {
  color: #67e8f9;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #020617;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde68a, #f97316);
}

.rank-cover img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.rank-copy a {
  display: inline-block;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-copy a:hover {
  color: #67e8f9;
}

.rank-copy p {
  margin: 0 0 10px;
  color: #94a3b8;
  line-height: 1.65;
}

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

.breadcrumbs {
  padding: 24px 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 7px;
}

.filter-panel span {
  color: #94a3b8;
  font-size: 0.82rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.58);
  padding: 0 12px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.58);
}

.reset-filter {
  align-self: end;
  min-height: 42px;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.95);
  padding: 0 16px;
}

.empty-state {
  display: none;
  margin: 28px 0;
  color: #cbd5e1;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 28px;
}

.empty-state.active {
  display: block;
}

.watch-section {
  padding: 32px 0 8px;
}

.watch-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.22)),
    radial-gradient(circle at center, rgba(37, 99, 235, 0.2), transparent 48%);
}

.play-layer[hidden] {
  display: none;
}

.play-layer .play-icon {
  width: 84px;
  height: 84px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.34);
  font-size: 2rem;
}

.play-layer strong {
  font-size: 1.1rem;
}

.side-poster {
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0f172a;
}

.side-poster div {
  padding: 16px;
}

.detail-wrap {
  padding: 32px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.detail-main,
.detail-aside {
  min-width: 0;
}

.detail-title {
  padding: 24px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

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

.content-block {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.content-block p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.95;
}

.detail-aside {
  display: grid;
  gap: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
}

.mini-card img {
  width: 76px;
  height: 102px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.mini-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  padding: 52px 0 34px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.02rem;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

@media (max-width: 1180px) {
  .card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

@media (max-width: 980px) {
  .main-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-inner,
  .watch-wrap,
  .detail-grid,
  .rank-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: center;
    padding-top: 52px;
  }

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

  .side-poster {
    display: none;
  }

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

@media (max-width: 760px) {
  .header-main,
  .strip-inner,
  .hero-inner,
  .section-wrap,
  .footer-grid,
  .breadcrumbs,
  .detail-wrap,
  .page-hero,
  .watch-wrap {
    width: min(100% - 22px, 1220px);
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0 38px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

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

  .hero-slide {
    grid-template-columns: 92px 1fr;
  }

  .hero-slide img {
    width: 92px;
    height: 122px;
  }

  .section-head {
    display: block;
  }

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

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

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

  .rank-item {
    grid-template-columns: 38px 76px 1fr;
    gap: 10px;
  }

  .rank-cover img {
    width: 76px;
    height: 100px;
  }

  .content-block,
  .detail-title {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }
}
