:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #e5eefb;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --amber: #facc15;
  --pink: #fb7185;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 32rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

body.menu-open {
  overflow: hidden;
}

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

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #00121a;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 42%, var(--amber));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.24);
}

.logo-text {
  font-size: 1.18rem;
}

.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 180px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  padding: 10px 12px;
}

.header-search button,
.mobile-search button {
  color: #02111a;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  border: 0;
  padding: 10px 16px;
  font-weight: 800;
}

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

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

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.96);
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.86) 45%, rgba(2, 6, 23, 0.16)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 45%, rgba(2, 6, 23, 0.42));
  z-index: -2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 12% 10% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(24px);
  z-index: -1;
}

.hero-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 32px;
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero-content p {
  max-width: 690px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.9;
}

.hero-meta,
.movie-meta-line,
.detail-meta,
.tag-row,
.breadcrumbs,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-meta {
  margin: 22px 0;
}

.hero-meta span,
.movie-meta-line span,
.detail-meta span,
.tag-row span,
.breadcrumbs a,
.breadcrumbs span {
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary,
.btn-secondary,
.section-more,
.card-link,
.category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #00121a;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 48%, var(--amber));
  padding: 14px 24px;
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.22);
}

.btn-secondary,
.section-more,
.card-link,
.category-link {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  padding: 12px 18px;
}

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover,
.card-link:hover,
.category-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
}

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

main {
  overflow: hidden;
}

.section-block {
  padding: 72px 0 0;
}

.section-heading,
.page-heading {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.page-heading h1,
.detail-title h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.page-heading {
  padding-top: 76px;
  align-items: flex-start;
  flex-direction: column;
}

.page-heading p {
  max-width: 820px;
  color: var(--muted-strong);
  line-height: 1.9;
  font-size: 1.06rem;
}

.movie-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.poster-link img,
.detail-poster img,
.rank-cover img,
.category-sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15), transparent 52%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.movie-card:hover .poster-shine {
  opacity: 1;
  transform: translateX(45%);
}

.score-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #071118;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
  font-size: 0.86rem;
}

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

.movie-card h3 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.36;
  font-weight: 900;
}

.movie-card p {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.movie-meta-line {
  gap: 6px;
}

.movie-meta-line span {
  padding: 4px 8px;
  font-size: 0.76rem;
}

.tag-row {
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.75);
  font-size: 0.76rem;
}

.category-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(8, 47, 73, 0.44));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(18px);
}

.category-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.category-content h2,
.category-content h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  font-weight: 950;
}

.category-content p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.category-sample {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  opacity: 0.9;
}

.category-sample a {
  width: 64px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.category-link {
  margin-top: 20px;
}

.ranking-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #00121a;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  font-weight: 950;
}

.rank-cover {
  display: block;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

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

.spotlight-box {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.62), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow);
}

.spotlight-box h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.spotlight-box p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.filter-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.filter-title {
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 900;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
  padding: 11px 12px;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--line-strong);
}

.no-results {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--muted-strong);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.detail-hero {
  padding: 64px 0 28px;
}

.detail-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 3;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.detail-title h1 {
  margin-top: 16px;
}

.detail-title p {
  max-width: 760px;
  color: var(--muted-strong);
  line-height: 1.9;
  font-size: 1.08rem;
}

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: #ffffff;
  border-color: var(--line-strong);
}

.player-section {
  padding: 30px 0 0;
}

.player-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.88)),
    transparent;
}

.player-overlay.is-hidden {
  display: none;
}

.play-badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #00121a;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 48%, var(--amber));
  font-size: 2rem;
  box-shadow: 0 18px 56px rgba(34, 211, 238, 0.32);
}

.play-text {
  font-size: 1.12rem;
  font-weight: 900;
}

.detail-content {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 24px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 950;
}

.article-panel p,
.side-panel p {
  color: var(--muted-strong);
  line-height: 2;
  margin: 0 0 20px;
}

.side-panel .tag-row {
  margin-bottom: 22px;
}

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

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

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

.footer-inner p {
  color: var(--muted);
}

.footer-links a {
  color: var(--muted-strong);
}

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

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

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

  .spotlight-box {
    position: static;
  }
}

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

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

  .mobile-panel.is-open {
    display: grid;
    gap: 10px;
  }

  .mobile-search {
    margin-top: 10px;
  }

  .hero-slider {
    height: 620px;
    min-height: 620px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }

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

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

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

  .detail-wrap {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .header-inner,
  .container,
  .hero-content,
  .section-heading,
  .page-heading,
  .movie-grid,
  .category-grid,
  .ranking-layout,
  .filter-panel,
  .no-results,
  .detail-wrap,
  .player-shell,
  .detail-content,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

  .hero-slider {
    height: 590px;
    min-height: 590px;
  }

  .hero-slide::before {
    background:
      linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72)),
      linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 50%);
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-controls {
    bottom: 18px;
  }

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

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

  .category-sample {
    position: static;
    margin: 18px 0 0 24px;
  }

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

  .rank-item {
    grid-template-columns: 42px 70px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 0.86rem;
  }

  .rank-cover {
    height: 96px;
  }

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

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

  .article-panel,
  .side-panel {
    padding: 18px;
  }
}
