:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #071733;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(96, 165, 250, 0.18);
  --line-strong: rgba(103, 232, 249, 0.32);
  --text: #eef7ff;
  --muted: #9fb9d7;
  --cyan: #67e8f9;
  --blue: #60a5fa;
  --deep-blue: #1d4ed8;
  --gold: #facc15;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.58);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.35), transparent 30%),
    radial-gradient(circle at 78% 4%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f2354 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.85));
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #061126;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(103, 232, 249, 0.28);
}

.brand-text {
  min-width: 0;
}

.brand-text strong,
.footer-logo {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #dbeafe, #a5f3fc, #dbeafe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(191, 219, 254, 0.74);
  font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a,
.inline-nav a {
  padding: 10px 15px;
  border-radius: 12px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.inline-nav a:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.18);
  color: #ffffff;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

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

.hero {
  position: relative;
  min-height: 620px;
  margin: 34px 0 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.58)),
    radial-gradient(circle at 82% 18%, rgba(103, 232, 249, 0.34), transparent 36%);
  box-shadow: var(--shadow);
}

.hero-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.36;
  pointer-events: none;
}

.hero-orb-one {
  top: -90px;
  right: 10%;
  background: var(--cyan);
}

.hero-orb-two {
  bottom: -120px;
  left: 2%;
  background: var(--deep-blue);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: blur(8px) saturate(1.3);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  align-items: center;
  gap: 42px;
  padding: 66px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #f8fafc, #bfdbfe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-hero p,
.detail-info p {
  margin: 20px 0 0;
  max-width: 720px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.36);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  min-height: 30px;
  padding-inline: 12px;
  background: rgba(8, 145, 178, 0.18);
  color: #cffafe;
}

.hero-actions,
.detail-actions,
.inline-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions.centered {
  justify-content: center;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #061126;
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.3);
}

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

.ghost-button {
  border: 1px solid rgba(147, 197, 253, 0.3);
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
}

.text-button,
.section-link {
  min-height: 38px;
  padding-inline: 14px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 100%);
  margin-left: auto;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.34), rgba(14, 165, 233, 0.15));
  box-shadow: 0 36px 80px rgba(2, 6, 23, 0.62), 0 0 36px rgba(103, 232, 249, 0.18);
}

.hero-poster img,
.poster-wrap img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(103, 232, 249, 0.22);
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.45);
}

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

.surface-section,
.page-hero,
.detail-shell,
.player-section {
  margin: 28px 0;
}

.surface-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.58));
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.32);
}

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

.section-heading.compact {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.38);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(103, 232, 249, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(30, 64, 175, 0.48), rgba(15, 23, 42, 0.92));
}

.poster-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(103, 232, 249, 0.28), transparent 42%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #fb923c);
  color: #1f1300;
  font-weight: 900;
  box-shadow: 0 8px 26px rgba(250, 204, 21, 0.28);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after {
  margin-left: 6px;
  content: "·";
  color: rgba(147, 197, 253, 0.45);
}

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

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

.movie-card p {
  min-height: 48px;
  margin: 9px 0 0;
  color: #b6c9e2;
  font-size: 13px;
  line-height: 1.65;
}

.small-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 172px;
}

.small-card .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.small-card .movie-card p,
.small-card p {
  min-height: 0;
}

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

.category-tile,
.category-overview-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 5%, rgba(103, 232, 249, 0.2), transparent 42%),
    rgba(15, 23, 42, 0.68);
  transition: 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.34);
}

.category-tile span,
.category-overview-title {
  display: block;
  color: #e0f2fe;
  font-size: 21px;
  font-weight: 900;
}

.category-tile em,
.category-overview-card p {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.category-overview-card ul {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li {
  margin-top: 7px;
  color: #cbd5e1;
  font-size: 14px;
}

.category-overview-card li a:hover {
  color: var(--cyan);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 32px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(103, 232, 249, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.46));
  box-shadow: var(--shadow);
}

.page-hero .eyebrow {
  margin-inline: auto;
}

.page-hero p {
  margin-inline: auto;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 14px;
  margin-bottom: 24px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.48);
  color: #ffffff;
  font: inherit;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(103, 232, 249, 0.56);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.08);
}

.inline-nav {
  margin-top: 18px;
}

.detail-shell {
  padding-top: 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #b6c9e2;
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 8%, rgba(103, 232, 249, 0.22), transparent 36%),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.4), rgba(2, 6, 23, 0.88));
}

.player-section {
  padding: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(96, 165, 250, 0.18), rgba(0, 0, 0, 0.48));
  color: #061126;
  cursor: pointer;
  transition: 0.22s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 54px rgba(14, 165, 233, 0.38);
}

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

.story-block {
  margin-bottom: 24px;
}

.story-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.story-block p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 2;
}

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

.info-table div {
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.26);
}

.info-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.info-table strong {
  display: block;
  margin-top: 6px;
  color: #e0f2fe;
}

.site-footer {
  margin-top: 42px;
  padding: 44px 0 28px;
  border-top: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.78));
}

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

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

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-top: 8px;
  color: #b6c9e2;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  color: #7590b1;
  font-size: 13px;
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .hero-poster {
    width: 280px;
    margin: 0;
  }

  .detail-hero {
    grid-template-columns: 250px 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand-text strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  main,
  .header-inner,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content {
    padding: 30px 22px 84px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-controls {
    left: 22px;
    right: auto;
  }

  .surface-section,
  .page-hero,
  .detail-hero {
    padding: 20px;
    border-radius: 22px;
  }

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

  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .small-card {
    grid-template-columns: 110px 1fr;
  }

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

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

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