* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --line: rgba(14, 165, 233, 0.22);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-soft: #64748b;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --yellow: #facc15;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 36rem),
    linear-gradient(135deg, #020617 0%, #172554 48%, #0f172a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

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

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

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

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

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

.brand-icon,
.footer-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.3);
}

.brand-text strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
}

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--cyan);
  border-radius: 999px;
}

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

.hero-carousel {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 72px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(2, 6, 23, 0.52) 100%),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.1);
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.98), transparent);
}

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

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

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: white;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.13);
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.btn-primary {
  color: #00111a;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.32);
}

.btn-ghost {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(15, 23, 42, 0.58);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.38);
  border-radius: 30px;
  background: rgba(2, 6, 23, 0.4);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #172554, #0f172a);
}

.hero-poster span,
.rating-badge,
.detail-poster span {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(234, 179, 8, 0.92);
  font-weight: 900;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  right: 36px;
  bottom: 28px;
  left: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.62);
  font-size: 26px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
}

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

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.42;
}

.hero-glow-one {
  top: -70px;
  right: 20%;
  background: #0891b2;
}

.hero-glow-two {
  bottom: -100px;
  left: 14%;
  background: #2563eb;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 1fr 1fr;
  gap: 18px;
  margin: 24px 0 42px;
}

.search-panel,
.stat-panel,
.story-card,
.info-card,
.toolbar,
.page-hero,
.site-footer,
.ranking-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.search-panel,
.stat-panel {
  padding: 20px;
}

.search-panel label {
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-weight: 800;
}

.search-panel div,
.toolbar {
  display: flex;
  gap: 12px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 15px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.7);
  outline: none;
  padding: 0 14px;
}

input:focus,
select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.stat-panel strong {
  display: block;
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.stat-panel span,
.search-panel label,
.content-section p,
.page-hero p,
.site-footer p,
.story-card p,
.info-card dd,
.ranking-row small {
  color: var(--muted);
}

.content-section {
  margin: 56px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-main h1,
.story-card h2,
.info-card h2 {
  margin: 0;
  color: white;
  letter-spacing: -0.035em;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-head p {
  margin: 8px 0 0;
  max-width: 680px;
  line-height: 1.75;
}

.section-more {
  min-width: max-content;
  color: var(--cyan);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  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.48);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent 52%);
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.88);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.36);
}

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

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

.movie-card h3 {
  margin: 0 0 9px;
  color: white;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.tag-row {
  min-height: 28px;
  margin-bottom: 12px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-soft);
  font-size: 12px;
}

.movie-meta span:last-child {
  color: var(--cyan);
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.35)),
    var(--tile-image) center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.category-tile span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong {
  color: white;
  font-size: 26px;
}

.category-tile small {
  color: #cbd5e1;
}

.page-hero {
  padding: 46px;
  margin-bottom: 28px;
}

.slim-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.page-hero p {
  max-width: 780px;
  line-height: 1.82;
}

.toolbar {
  position: sticky;
  top: 82px;
  z-index: 20;
  padding: 16px;
  margin-bottom: 28px;
}

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

.ranking-list {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 72px minmax(0, 1fr) minmax(140px, 220px) 94px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease;
}

.ranking-row:hover {
  background: rgba(14, 165, 233, 0.08);
}

.ranking-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 13px;
}

.rank-no {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

.rank-info strong {
  display: block;
  color: white;
  font-size: 17px;
  margin-bottom: 6px;
}

.rank-info small {
  display: block;
  line-height: 1.6;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: var(--yellow);
  font-weight: 900;
  text-align: right;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72)),
    var(--detail-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(to top, rgba(2, 6, 23, 0.96), transparent 55%);
  backdrop-filter: blur(2px);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 54px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0f172a;
}

.detail-main h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin: 34px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.74));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-button span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.42);
  font-size: 30px;
}

.play-button strong {
  font-size: 18px;
}

.player-shell.is-playing .play-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-info {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
}

.player-info h2 {
  margin: 0 0 10px;
  color: white;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.story-card,
.info-card {
  padding: 26px;
}

.story-card h2,
.info-card h2 {
  font-size: 25px;
  margin-bottom: 16px;
}

.story-card p {
  margin: 0;
  line-height: 1.9;
  text-align: justify;
}

.info-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 96px;
}

.info-card dl {
  margin: 0;
}

.info-card div {
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-card dt {
  color: var(--muted-soft);
  font-size: 12px;
  margin-bottom: 5px;
}

.info-card dd {
  margin: 0;
  line-height: 1.6;
}

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

.info-page h1 {
  margin-top: 0;
}

.info-page p {
  max-width: 900px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.info-cards article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.42);
}

.info-cards h2 {
  margin: 0 0 10px;
  color: white;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 70px auto 24px;
  padding: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.copyright {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  color: var(--muted-soft);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 44px;
  }
}

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

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-stage,
  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 32px;
  }

  .hero-poster {
    width: min(260px, 72vw);
  }

  .search-band,
  .player-section,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

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

  .detail-poster {
    width: min(260px, 76vw);
  }

  .ranking-row {
    grid-template-columns: 46px 58px minmax(0, 1fr) 76px;
  }

  .ranking-row img {
    width: 58px;
    height: 78px;
  }

  .rank-meta {
    display: none;
  }

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

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

  .brand-text small {
    display: none;
  }

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

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

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

  .toolbar,
  .search-panel div {
    flex-direction: column;
  }

  .page-hero {
    padding: 28px;
  }

  .hero-content h1,
  .detail-main h1 {
    font-size: 36px;
  }

  .hero-summary,
  .detail-one-line {
    font-size: 15px;
  }
}
