:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.18);
  --text-main: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #fb923c;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  color-scheme: dark;
}

* {
  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.14), transparent 34rem), linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text-main);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.image-missing {
  opacity: 0;
}

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

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.25);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.85);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(30, 41, 59, 0.92);
}

.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 96px;
}

.home-main {
  width: 100%;
  padding-top: 72px;
}

.home-main > .section-block,
.home-main > .toolbar-section {
  width: min(1240px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.inner-main,
.detail-main {
  padding-bottom: 80px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 43%, rgba(2, 6, 23, 0.28) 100%), linear-gradient(180deg, rgba(2, 6, 23, 0.16), #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

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

.hero-tags,
.tag-list,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-soft);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-more {
  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, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.22);
}

.ghost-button,
.section-more {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.62);
  color: var(--text-soft);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.ghost-button:hover,
.section-more:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: #ffffff;
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.54);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 44px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

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

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: 250px;
  gap: 20px;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.spotlight-card.is-wide {
  grid-row: span 2;
}

.spotlight-card img,
.category-bg img,
.rank-hero-card img {
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.spotlight-card:hover img,
.category-card:hover img,
.rank-hero-card:hover img {
  transform: scale(1.06);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(2, 6, 23, 0.94) 100%);
}

.spotlight-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.spotlight-content em,
.compact-info em,
.rank-hero-text em {
  display: block;
  color: var(--text-muted);
  font-style: normal;
  font-size: 13px;
}

.spotlight-content strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 24px;
}

.spotlight-content span {
  color: var(--text-soft);
  line-height: 1.6;
}

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

.all-grid {
  align-items: start;
}

.movie-card {
  min-width: 0;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.09));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
}

.poster-wrap img {
  transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.play-hover,
.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.play-hover {
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--cyan);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.movie-card-body p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.category-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.46));
}

.category-content {
  position: relative;
  z-index: 2;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
}

.category-content strong {
  font-size: 22px;
}

.category-content em {
  margin-top: 8px;
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 26rem), rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.category-panel {
  margin-top: 26px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-panel h2 {
  margin: 10px 0 8px;
  font-size: 26px;
}

.category-panel p {
  margin: 0;
  color: var(--text-muted);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.compact-thumb {
  height: 88px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.compact-info strong {
  display: block;
  margin-bottom: 8px;
}

.toolbar-section {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.sticky-toolbar {
  position: sticky;
  top: 86px;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.65);
  color: #ffffff;
  font-size: 15px;
}

.search-box.large input {
  min-height: 54px;
  font-size: 16px;
}

.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.filter-chip {
  border: 0;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: rgba(34, 211, 238, 0.18);
  color: #ffffff;
}

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

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

.rank-hero-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.rank-hero-card:first-child {
  min-height: 390px;
}

.rank-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.96) 100%);
}

.rank-number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-size: 24px;
  font-weight: 900;
}

.rank-hero-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 22px;
}

.rank-hero-text strong {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
}

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

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

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

.detail-primary,
.detail-side,
.detail-info,
.side-card {
  min-width: 0;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.video-player,
.player-cover,
.player-cover-bg,
.player-cover-mask {
  position: absolute;
  inset: 0;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  z-index: 2;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.player-cover-mask {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.78));
}

.big-play {
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 34px;
}

.video-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.detail-info,
.side-card {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--text-soft);
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.72);
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.detail-section p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.side-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.side-card dl,
.side-card dd {
  margin: 0;
}

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

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

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

.side-card dd {
  color: var(--text-soft);
}

.related-section {
  margin-top: 42px;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-soft);
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--text-muted);
  font-size: 13px;
}

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
  }

  .side-card {
    margin-top: 0;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
  }

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

  .hero-control {
    display: none;
  }

  .section-head,
  .page-hero,
  .category-panel-head,
  .footer-inner,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .spotlight-grid,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card.is-wide {
    grid-row: span 1;
  }

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

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

  .sticky-toolbar {
    top: 78px;
  }
}

@media (max-width: 620px) {
  .page-main,
  .home-main > .section-block,
  .home-main > .toolbar-section,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

  .hero-content {
    width: min(100% - 24px, 1240px);
  }

  .hero-content p {
    font-size: 15px;
  }

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

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

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

  .page-hero,
  .category-panel,
  .detail-info,
  .side-card {
    padding: 22px;
  }

  .side-poster {
    max-width: 260px;
  }

  .footer-links {
    flex-direction: column;
  }
}
