:root {
  --bg: #08111f;
  --bg-soft: #0f1b2d;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --yellow: #facc15;
  --radius: 22px;
  --shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.22), transparent 32rem),
    radial-gradient(circle at 84% 6%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, var(--bg) 44%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
  font-size: 0.9rem;
}

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

.nav-link,
.nav-dropdown > button {
  color: #cbd5e1;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
  color: white;
  background: rgba(37, 99, 235, 0.72);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a,
.mobile-nav a {
  display: block;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-dropdown-menu a:hover,
.mobile-nav a:hover {
  color: white;
  background: rgba(37, 99, 235, 0.5);
}

.mobile-toggle {
  display: none;
  color: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 11px;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 680px;
  padding-bottom: 34px;
  isolation: isolate;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 1s ease;
  pointer-events: none;
}

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

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.70) 44%, rgba(2, 6, 23, 0.36)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 54%, rgba(2, 6, 23, 0.64) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 130px;
  max-width: 780px;
}

.eyebrow,
.eyebrow-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}

.hero-content p,
.page-hero p,
.detail-intro p {
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.card-tags span {
  color: #dbeafe;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.18);
}

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

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

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.42);
}

.btn.ghost {
  color: #dbeafe;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 108px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.hero-strip {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 32px));
  margin: -74px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  min-height: 120px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-mini-card span {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 36px 12px 12px;
  font-size: 0.92rem;
  font-weight: 800;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent);
}

.hero-mini-card:hover img {
  opacity: 0.95;
  transform: scale(1.06);
}

.panel,
.content-section,
.page-hero,
.detail-wrap,
.player-section {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.74));
  box-shadow: var(--shadow);
}

.quick-search h2,
.section-head h2,
.site-footer h2,
.article-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.quick-search p,
.section-head p,
.site-footer p,
.movie-card p,
.rank-row p,
.article-panel p,
.category-card p,
.category-overview-card p {
  color: var(--muted);
  margin: 0;
}

.search-bar,
.filter-panel {
  display: flex;
  gap: 12px;
}

.search-bar input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  outline: 0;
  padding: 0 15px;
  background: rgba(2, 6, 23, 0.36);
}

.search-bar button {
  min-width: 110px;
  color: white;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.content-section {
  padding: 52px 0 12px;
}

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

.section-more,
.text-link {
  color: #7dd3fc;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.article-panel,
.rank-row,
.movie-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.60));
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.32);
}

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card:hover,
.movie-card:hover,
.rank-row:hover,
.category-overview-card:hover {
  border-color: rgba(125, 211, 252, 0.52);
  transform: translateY(-4px);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.07);
  opacity: 0.92;
}

.poster-rank {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  color: #020617;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, var(--yellow));
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #93c5fd;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.movie-meta span {
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(37, 99, 235, 0.18);
}

.movie-card h2,
.rank-row h2,
.category-overview-card h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.02rem;
  line-height: 1.35;
}

.movie-card p {
  min-height: 4.8em;
  font-size: 0.9rem;
}

.movie-card.is-compact p {
  min-height: 4.3em;
}

.card-tags {
  margin: 14px 0 0;
  gap: 7px;
}

.card-tags span {
  font-size: 0.75rem;
  padding: 3px 8px;
}

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

.rank-list.wide {
  grid-template-columns: 1fr;
}

.rank-row {
  display: grid;
  grid-template-columns: 60px 78px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  transition: 0.2s ease;
}

.rank-num {
  color: #020617;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-weight: 950;
  background: linear-gradient(135deg, #fde68a, var(--yellow));
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 70px 0 38px;
}

.compact-hero,
.category-hero {
  position: relative;
}

.compact-hero::before,
.category-hero::before {
  content: "";
  position: absolute;
  inset: 26px -80px 0;
  z-index: -1;
  border-radius: 38px;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.36), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.44));
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  border-radius: 24px;
  padding: 16px;
  transition: 0.2s ease;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.multi-filter {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: end;
  padding: 92px 0 54px;
  overflow: hidden;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  margin-bottom: 10px;
}

.player-section {
  padding-top: 46px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 28px;
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.64));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.45);
  font-size: 2rem;
  padding-left: 5px;
}

.detail-content {
  padding-top: 34px;
}

.article-panel {
  border-radius: 28px;
  padding: 28px;
}

.article-panel p {
  color: #dbeafe;
  margin-bottom: 22px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.detail-meta-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.26);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: white;
}

.prev-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.prev-next a {
  color: #7dd3fc;
  font-weight: 800;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.66);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5e1;
}

.footer-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-content {
    padding-top: 110px;
  }

  .hero-strip {
    margin-top: -42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-search,
  .detail-wrap,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-overview-grid,
  .rank-list,
  .multi-filter {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .nav-wrap,
  .panel,
  .content-section,
  .page-hero,
  .detail-wrap,
  .player-section,
  .footer-grid,
  .mobile-nav {
    width: min(100% - 22px, 1240px);
  }

  .brand {
    font-size: 1rem;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 2.25rem;
  }

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

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

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

  .movie-card p {
    min-height: auto;
  }

  .rank-row {
    grid-template-columns: 44px 66px 1fr;
    gap: 10px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .search-bar,
  .filter-panel {
    flex-direction: column;
  }

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