:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5edf8;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.28);
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.mobile-link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
}

.hero {
  min-height: 92vh;
  padding: 96px 18px 42px;
  position: relative;
  overflow: hidden;
}

.hero-stage {
  width: min(1180px, 100%);
  min-height: calc(92vh - 138px);
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.36);
  box-shadow: var(--shadow);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.66) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 48%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  display: none;
  min-height: calc(92vh - 138px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  padding: 70px clamp(24px, 5vw, 72px) 118px;
  position: relative;
}

.hero-slide.is-active {
  display: grid;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  transform: scale(1.06);
  filter: saturate(1.18) contrast(1.08);
}

.hero-content,
.hero-poster,
.hero-controls,
.hero-rail {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.09);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 24px 0 12px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.08em;
  max-width: 760px;
  background: linear-gradient(135deg, #ecfeff, #67e8f9 48%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.05;
}

.hero p,
.page-hero p,
.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}

.hero p {
  max-width: 680px;
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.66);
  font-size: 13px;
}

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

.centered-actions {
  justify-content: center;
  margin-top: 26px;
}

.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, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.25);
}

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

.hero-poster {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.4);
  box-shadow: 0 30px 100px rgba(2, 6, 23, 0.44);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster span {
  display: block;
  padding: 16px 18px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
}

.hero-controls {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

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

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

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

.hero-rail {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 86px);
  gap: 10px;
}

.hero-mini {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
}

.hero-mini img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-mini span {
  display: block;
  padding: 7px;
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.content-section,
.page-hero,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

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

.page-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 58px 26px;
  background:
    radial-gradient(circle at center top, rgba(34, 211, 238, 0.16), transparent 30rem),
    rgba(15, 23, 42, 0.56);
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

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

.section-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
}

.section-more {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
}

.feature-grid,
.movie-grid,
.ranking-grid,
.ranking-list {
  display: grid;
  gap: 18px;
}

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

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

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

.ranking-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.5));
  box-shadow: 0 16px 48px rgba(2, 6, 23, 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(34, 211, 238, 0.36);
  box-shadow: 0 24px 70px rgba(8, 47, 73, 0.28);
}

.movie-card.is-hidden {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #020617;
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
}

.cover-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
  pointer-events: none;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  height: 34px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.24);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 40px;
  height: 32px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  gap: 8px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
}

.movie-info h3 {
  margin: 8px 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.movie-card-compact .movie-info p {
  display: none;
}

.movie-card-compact .tag-row {
  display: none;
}

.filter-toolbar {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.64);
}

.search-box {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  min-height: 48px;
  background: rgba(2, 6, 23, 0.36);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.32);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: white;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.16);
}

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

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

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

.category-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.category-preview {
  margin-top: 72px;
}

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

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

.detail-main {
  padding-top: 106px;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.player-panel,
.poster-panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.22);
}

.player-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  pointer-events: auto;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.2));
  pointer-events: none;
}

.player-cover.is-hidden {
  display: none;
}

.play-toggle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.32);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.play-toggle:hover {
  transform: scale(1.06);
}

.play-toggle span {
  margin-left: 5px;
  font-size: 30px;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 20px;
}

.poster-panel {
  overflow: hidden;
  align-self: start;
}

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

.poster-panel div {
  padding: 18px;
}

.poster-panel strong,
.poster-panel span {
  display: block;
}

.poster-panel span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

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

.article-card {
  padding: 26px;
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

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

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

.footer-brand strong {
  font-size: 20px;
}

.footer-inner p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 22px 0;
  color: #cbd5e1;
}

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

.footer-copy {
  color: #64748b;
  font-size: 14px;
}

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

  .movie-grid-small,
  .ranking-grid,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .poster-panel {
    display: grid;
    grid-template-columns: 220px 1fr;
  }
}

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

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

  .mobile-nav.is-open {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
  }

  .hero-stage {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide,
  .hero-slide.is-active {
    display: flex;
    min-height: 720px;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 42px 22px 150px;
  }

  .hero h1 {
    letter-spacing: -0.06em;
  }

  .hero-poster {
    width: min(270px, 80vw);
  }

  .hero-rail {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-controls {
    left: 22px;
    bottom: 116px;
  }

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

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

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

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

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .page-hero,
  .breadcrumb,
  .detail-layout,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

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

  .movie-grid,
  .movie-grid-small,
  .ranking-grid,
  .ranking-list,
  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-toolbar {
    padding: 12px;
  }

  .poster-panel {
    display: block;
  }

  .hero-mini span {
    display: none;
  }
}
