* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 36rem),
    radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.14), transparent 34rem),
    #020617;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 80%);
}

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

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

.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.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #001018;
  font-weight: 900;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.15);
}

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

.header-search input {
  width: 220px;
  padding: 10px 14px;
  color: #e2e8f0;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button,
.hero-button,
.ghost-button,
.player-button {
  border: 0;
  color: #001018;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.24);
  cursor: pointer;
}

.header-search button {
  margin-right: 4px;
  padding: 8px 16px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.94);
}

.page-main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-slide {
  display: none;
  min-height: 650px;
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  display: block;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.28)),
    linear-gradient(to top, #020617, rgba(2, 6, 23, 0.12) 52%, rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 44px;
  padding: 74px 0;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  background: rgba(8, 145, 178, 0.12);
}

.hero h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 710px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-button,
.ghost-button,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.ghost-button {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: none;
}

.hero-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.46));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.hero-card .poster-box {
  height: 470px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  padding: 6px 10px;
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.18);
}

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

.hero-dot {
  width: 42px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.25);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
}

.content-section {
  margin-top: 56px;
}

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

.section-head h2,
.page-head h1,
.detail-title h1 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-head p,
.detail-title p {
  max-width: 760px;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.movie-card,
.category-card,
.rank-row,
.info-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(15, 23, 42, 0.9);
}

.poster-box {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.38), rgba(168, 85, 247, 0.24)),
    #0f172a;
}

.movie-card .poster-box {
  margin: 14px 14px 0;
}

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

.movie-card:hover .poster-box img,
.hero-card:hover .poster-box img {
  transform: scale(1.05);
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.78), transparent 48%);
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #001018;
  font-size: 12px;
  font-weight: 900;
  background: #67e8f9;
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.movie-card h3 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card p {
  min-height: 54px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.compact-card .poster-box {
  min-height: 220px;
}

.category-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 18rem),
    rgba(15, 23, 42, 0.72);
}

.category-card h2,
.category-card h3 {
  margin: 12px 0;
  font-size: 28px;
}

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

.category-card .mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.category-card .mini-links span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
}

.filter-panel {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  outline: 0;
  background: rgba(2, 6, 23, 0.66);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 120px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 18px;
  padding: 12px;
}

.rank-num {
  color: #67e8f9;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-row .poster-box {
  min-height: 120px;
  border-radius: 18px;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  color: #94a3b8;
  line-height: 1.7;
}

.hot-score {
  justify-self: end;
  padding: 10px 12px;
  border-radius: 999px;
  color: #001018;
  font-weight: 900;
  background: linear-gradient(135deg, #fde047, #22d3ee);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 20px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumbs a {
  color: #67e8f9;
}

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

.player-wrap {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.player-button {
  gap: 10px;
  font-size: 16px;
}

.play-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.player-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.96);
}

.detail-title {
  margin: 24px 0;
}

.prose-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.62);
}

.prose-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.prose-card p {
  color: #cbd5e1;
  line-height: 2;
}

.side-poster {
  padding: 16px;
}

.side-poster .poster-box {
  min-height: 500px;
}

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

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 24px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

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

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 6px;
  }

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

  .hero-card {
    max-width: 420px;
  }

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

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

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

  .hot-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
  }

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

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 44px;
  }

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

  .section-head,
  .page-head,
  .filter-panel {
    display: block;
  }

  .filter-panel > * + * {
    margin-top: 12px;
  }

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

  .rank-row .poster-box {
    display: none;
  }

  .rank-info {
    grid-column: 2;
  }

  .hot-score {
    grid-column: 2;
  }
}
