:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: rgba(15, 23, 42, 0.82);
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(56, 189, 248, 0.22);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #3b82f6;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.82), rgba(15, 23, 42, 0.96));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(37, 99, 235, 0.32);
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #05111f;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.42);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link,
.mobile-nav-link {
  color: #dbeafe;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
  color: var(--cyan);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 18px;
  border-top: 1px solid rgba(37, 99, 235, 0.24);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: end;
  padding: 58px;
}

.hero-text {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.34);
  backdrop-filter: blur(10px);
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-text h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 44px);
  color: var(--cyan);
}

.hero-text p {
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.category-chip {
  padding: 7px 12px;
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.36);
}

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

.primary-button,
.ghost-button,
.section-more,
.site-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.site-search-button {
  color: #02101a;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.22);
}

.ghost-button,
.section-more {
  color: #dbeafe;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.62);
}

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

.hero-poster {
  align-self: center;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.46);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  color: #e0f2fe;
  font-size: 34px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 22px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

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

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

.hero-side {
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.side-title {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 800;
}

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.compact-card img {
  width: 76px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 15px;
}

.compact-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.search-panel,
.filter-panel,
.page-hero,
.content-section,
.detail-panel,
.category-card {
  margin-top: 28px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(16px);
}

.search-panel {
  padding: 22px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 14px;
  outline: 0;
  background: rgba(2, 6, 23, 0.52);
}

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

.search-results {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.search-results.is-open {
  display: grid;
}

.search-result-item {
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.44);
}

.search-result-item strong,
.search-result-item span {
  display: block;
}

.search-result-item strong {
  margin-bottom: 8px;
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.category-chips {
  margin-top: 22px;
}

.category-chip:hover {
  color: #e0f2fe;
  border-color: rgba(34, 211, 238, 0.5);
}

.content-section {
  padding: 26px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-copy h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.36);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 22px 55px rgba(8, 47, 73, 0.3);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #ecfeff;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 14px;
}

.movie-title {
  display: block;
  min-height: 44px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.movie-meta span,
.rank-meta span,
.breadcrumb a,
.breadcrumb span {
  color: #bfdbfe;
  font-size: 12px;
}

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

.page-hero {
  padding: 34px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.category-card {
  display: block;
  padding: 24px;
  margin-top: 0;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 150px);
  gap: 12px;
  padding: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #03111f;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
}

.rank-item img {
  width: 86px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy h2 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 20px;
}

.rank-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-panel video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.24), rgba(2, 6, 23, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.42);
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-panel {
  padding: 26px;
}

.detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.detail-facts div {
  padding: 12px;
  color: #dbeafe;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.36);
}

.detail-facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 12px;
}

.detail-copy p {
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-copy h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 26px;
}

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

.hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(37, 99, 235, 0.26);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(30, 58, 138, 0.62), rgba(2, 6, 23, 0.94));
}

.footer-grid {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0 26px;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #e0f2fe;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(37, 99, 235, 0.22);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .hero-wrap,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .side-title {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 34px 26px 58px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .rank-item .primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-nav,
  .mobile-nav,
  .page-main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1320px);
  }

  .site-logo {
    font-size: 22px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 600px;
  }

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

  .hero-control {
    display: none;
  }

  .hero-dots {
    left: 26px;
  }

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

  .search-box {
    grid-template-columns: 1fr;
  }

  .content-section,
  .detail-panel,
  .page-hero {
    padding: 20px;
  }

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

  .movie-title {
    font-size: 14px;
  }

  .movie-card-body p {
    display: none;
  }

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