:root {
  --night-950: #06111f;
  --night-900: #0a1929;
  --night-850: #102236;
  --night-800: #172a3f;
  --night-700: #243b53;
  --night-300: #bcccdc;
  --night-200: #d9e2ec;
  --ocean-600: #1a92e6;
  --ocean-500: #2eabff;
  --ocean-400: #53bbff;
  --moon-500: #b28dff;
  --gold: #ffd166;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(46, 171, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 6rem, rgba(178, 141, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 44%, var(--night-950));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.is-menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

.page-main {
  min-height: 70vh;
  padding-top: 92px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(36, 59, 83, 0.35);
  background: linear-gradient(180deg, rgba(10, 25, 41, 0.92), rgba(10, 25, 41, 0.62));
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 25, 41, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean-400), var(--ocean-600));
  box-shadow: 0 12px 35px rgba(46, 171, 255, 0.28);
  font-size: 17px;
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--night-300);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: var(--night-200);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(46, 171, 255, 0.16);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(83, 187, 255, 0.18);
  border-radius: 14px;
  background: rgba(23, 42, 63, 0.74);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  padding: 10px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.filter-panel input::placeholder {
  color: #8da2b8;
}

.header-search button,
.mobile-search button {
  height: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  padding: 10px 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(83, 187, 255, 0.22);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(23, 42, 63, 0.7);
  font-size: 22px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(36, 59, 83, 0.6);
  background: rgba(10, 25, 41, 0.98);
  padding: 16px;
}

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

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

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

.mobile-category-short {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mobile-category-short a {
  border-radius: 999px;
  background: rgba(46, 171, 255, 0.12);
  color: var(--ocean-400);
  padding: 8px 12px;
  font-size: 13px;
}

.hero-section {
  position: relative;
  margin-bottom: 64px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.55s ease;
}

.hero-slide {
  min-width: 100%;
  padding: 0 8px;
}

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(83, 187, 255, 0.15);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(23, 42, 63, 0.92), rgba(6, 17, 31, 0.95));
  box-shadow: var(--shadow-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease, opacity 0.2s ease;
}

.hero-card:hover .hero-media img {
  transform: scale(1.08);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.94), rgba(10, 25, 41, 0.72) 42%, rgba(10, 25, 41, 0.22)),
    linear-gradient(180deg, rgba(6, 17, 31, 0.15), rgba(6, 17, 31, 0.95));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(680px, 100%);
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.hero-kicker,
.section-eyebrow {
  color: var(--ocean-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 16px;
  font-size: 14px;
}

.hero-content h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  color: var(--night-200);
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags {
  margin: 22px 0 28px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button,
.filter-panel button,
.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.primary-button,
.filter-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  box-shadow: 0 15px 34px rgba(46, 171, 255, 0.25);
}

.ghost-button,
.source-button {
  border: 1px solid rgba(83, 187, 255, 0.24);
  color: #ffffff;
  background: rgba(23, 42, 63, 0.72);
}

.source-button.is-active,
.source-button:hover,
.ghost-button:hover {
  border-color: rgba(83, 187, 255, 0.62);
  background: rgba(46, 171, 255, 0.16);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(83, 187, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(10, 25, 41, 0.78);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(46, 171, 255, 0.22);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-dots button {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: rgba(217, 226, 236, 0.25);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 42px;
  background: var(--ocean-500);
}

.section-block {
  margin-bottom: 72px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading h1,
.section-heading h2 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.12;
}

.section-heading p {
  max-width: 760px;
  color: var(--night-300);
  line-height: 1.7;
}

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

.movie-card,
.movie-list-card,
.category-tile,
.stat-card,
.content-panel,
.detail-side-card {
  border: 1px solid rgba(83, 187, 255, 0.12);
  background: rgba(23, 42, 63, 0.48);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(83, 187, 255, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.movie-card-link {
  display: block;
}

.media-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(83, 187, 255, 0.20), transparent 40%),
    linear-gradient(135deg, rgba(23, 42, 63, 0.95), rgba(6, 17, 31, 0.92));
}

.media-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 34%, rgba(6, 17, 31, 0.88));
}

.media-shell img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.media-shell img.image-missing {
  opacity: 0;
}

.movie-card:hover .media-shell img,
.movie-list-card:hover .media-shell img {
  transform: scale(1.08);
}

.poster-wrap {
  aspect-ratio: 3 / 4;
}

.badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(10, 25, 41, 0.82);
  backdrop-filter: blur(10px);
}

.play-mark {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(26, 146, 230, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  min-height: 132px;
  padding: 16px;
}

.movie-card-body h3,
.list-content h3 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
}

.movie-card:hover h3,
.movie-list-card:hover h3 {
  color: var(--ocean-400);
}

.movie-card-body p,
.list-content p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--night-300);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.55;
}

.movie-card-body p {
  min-height: 44px;
  margin: 9px 0 12px;
  font-size: 13px;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span,
.tag {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1;
}

.card-meta span {
  color: var(--night-300);
  background: rgba(6, 17, 31, 0.38);
}

.tag-muted {
  color: var(--night-200);
  background: rgba(36, 59, 83, 0.72);
}

.tag-ocean {
  color: #bfe8ff;
  background: rgba(46, 171, 255, 0.16);
}

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

.category-tile,
.stat-card {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(83, 187, 255, 0.34);
}

.category-tile h3,
.stat-card strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.stat-card span {
  color: var(--night-300);
  line-height: 1.65;
}

.category-count {
  color: var(--ocean-400);
  font-weight: 900;
}

.movie-list {
  display: grid;
  gap: 16px;
}

.movie-list-card {
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.movie-list-card:hover {
  transform: translateX(4px);
  border-color: rgba(83, 187, 255, 0.32);
}

.movie-list-link {
  display: grid;
  grid-template-columns: 64px 176px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--moon-500), var(--ocean-600));
  font-size: 18px;
  font-weight: 900;
}

.list-poster {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

.list-content p {
  margin: 8px 0 12px;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 150px 150px auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  border: 1px solid rgba(83, 187, 255, 0.12);
  border-radius: 22px;
  background: rgba(23, 42, 63, 0.45);
  padding: 14px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid rgba(83, 187, 255, 0.16);
  outline: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(6, 17, 31, 0.4);
  padding: 0 13px;
}

.filter-summary {
  margin-bottom: 16px;
  color: var(--night-300);
}

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

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

.breadcrumbs a {
  color: var(--ocean-400);
}

.content-panel {
  border-radius: 24px;
  padding: 26px;
}

.detail-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.08;
}

.detail-intro {
  margin-bottom: 22px;
  color: var(--night-200);
  font-size: 18px;
  line-height: 1.75;
}

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

.info-item {
  border-radius: 16px;
  background: rgba(6, 17, 31, 0.35);
  padding: 13px;
}

.info-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--night-300);
}

.info-item strong {
  color: #ffffff;
}

.player-panel {
  margin: 26px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(83, 187, 255, 0.16);
  border-radius: 24px;
  background: #02070d;
  box-shadow: var(--shadow-soft);
}

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

.play-overlay {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(26, 146, 230, 0.86);
  box-shadow: 0 22px 50px rgba(46, 171, 255, 0.28);
  font-size: 34px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  margin-top: 12px;
  color: var(--night-300);
  font-size: 14px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.article-block p {
  color: var(--night-200);
  line-height: 1.9;
  text-align: justify;
}

.detail-side-card {
  overflow: hidden;
  border-radius: 24px;
}

.detail-side-card .side-poster {
  aspect-ratio: 3 / 4;
}

.detail-side-body {
  padding: 18px;
}

.detail-side-body h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

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

.sitemap-list {
  columns: 4 240px;
  column-gap: 28px;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.sitemap-list a {
  color: var(--night-200);
}

.sitemap-list a:hover {
  color: var(--ocean-400);
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(36, 59, 83, 0.72);
  background: rgba(6, 17, 31, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--night-300);
  line-height: 1.8;
}

.footer-grid a:hover {
  color: var(--ocean-400);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid rgba(36, 59, 83, 0.62);
  padding: 18px;
  font-size: 13px;
}

.empty-state {
  border: 1px dashed rgba(83, 187, 255, 0.3);
  border-radius: 20px;
  color: var(--night-300);
  padding: 28px;
  text-align: center;
}

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-card,
  .hero-content {
    min-height: 470px;
  }

  .hero-content {
    padding: 44px 30px;
  }

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

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

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

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

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

@media (max-width: 640px) {
  .page-main {
    padding-top: 84px;
  }

  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-section {
    margin-bottom: 42px;
  }

  .hero-slide {
    padding: 0;
  }

  .hero-card,
  .hero-content {
    min-height: 430px;
  }

  .hero-card {
    border-radius: 20px;
  }

  .hero-content {
    padding: 32px 22px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .movie-card-body {
    min-height: 128px;
    padding: 12px;
  }

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

  .movie-list-link {
    grid-template-columns: 44px 112px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .list-content p,
  .list-content .tag-row {
    display: none;
  }

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

  .content-panel {
    padding: 18px;
  }

  .play-overlay {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
