:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #0f172a;
  --line: rgba(56, 189, 248, 0.22);
  --text: #e5f4ff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(8, 47, 73, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.20), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.42);
}

.brand-name {
  font-size: 1.38rem;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 13px;
  color: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.14);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  font-size: 1.25rem;
}

.hero-carousel {
  position: relative;
  height: min(66vh, 620px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.55));
  box-shadow: var(--shadow);
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.cover-image.image-missing,
.hero-image.image-missing {
  opacity: 0;
}

.poster-frame,
.category-card a,
.detail-poster,
.ranking-poster,
.player-frame {
  background:
    radial-gradient(circle at 30% 18%, rgba(34, 211, 238, 0.38), transparent 16rem),
    linear-gradient(135deg, rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.98));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.85) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #67e8f9;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.38);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: #00111a;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.28);
}

.btn.ghost,
.section-more {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.58);
}

.btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.26);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.52);
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

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

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

.hero-dots {
  position: absolute;
  z-index: 5;
  right: 36px;
  bottom: 32px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 34px;
}

.quick-entry a,
.content-section,
.filter-panel,
.page-hero,
.detail-text,
.player-section,
.breadcrumb,
.ranking-row {
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(14px);
}

.quick-entry a {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-entry strong {
  font-size: 1.08rem;
}

.quick-entry span,
.section-head p,
.movie-card p,
.category-card p,
.detail-line,
.detail-text p,
.ranking-main p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.content-section,
.player-section,
.detail-text {
  margin-top: 28px;
  padding: 26px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-text h2,
.ranking-main h2,
.category-card h2 {
  margin: 8px 0 8px;
  line-height: 1.18;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

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

.small-grid,
.rank-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  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 18px 44px rgba(8, 47, 73, 0.36);
}

.poster-link,
.poster-frame {
  display: block;
}

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

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #00111a;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #22d3ee);
  border-radius: 12px;
}

.card-body {
  padding: 15px;
}

.card-meta {
  color: #67e8f9;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag-row span {
  color: #bfdbfe;
  font-size: 0.78rem;
  padding: 4px 8px;
}

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

.category-card a {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 28px;
  padding: 24px;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.category-card div {
  position: relative;
  z-index: 2;
}

.category-card span:not(.category-glow) {
  color: #67e8f9;
  font-weight: 800;
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.18));
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 30px;
}

.compact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #bfdbfe;
  font-size: 0.88rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: var(--text);
  background: rgba(2, 6, 23, 0.56);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 76px 54px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.ranking-poster {
  display: block;
  width: 76px;
  height: 104px;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-index {
  color: #67e8f9;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.score-pill {
  justify-self: end;
  min-width: 70px;
  padding: 9px 12px;
  color: #00111a;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, #facc15, #22d3ee);
  border-radius: 999px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 12px 16px;
  color: #bfdbfe;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-copy {
  padding: 12px 0;
}

.detail-copy h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 780px;
  font-size: 1.08rem;
}

.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.large-tags {
  margin-bottom: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 28px;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(15, 23, 42, 0.36));
  cursor: pointer;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.44);
  font-size: 1.8rem;
}

.play-overlay strong {
  font-size: 1.12rem;
}

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

.detail-text p {
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(2, 6, 23, 0.48);
}

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

.footer-brand {
  color: #67e8f9;
  font-weight: 900;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 14px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(15, 23, 42, 0.96);
    border-radius: 20px;
  }

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

  .hero-copy {
    padding: 36px 28px;
  }

  .quick-entry,
  .filter-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .hero-carousel {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-control {
    display: none;
  }

  .quick-entry,
  .movie-grid,
  .small-grid,
  .rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-index,
  .score-pill {
    justify-self: start;
  }

  .ranking-main,
  .score-pill {
    grid-column: 2;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
