:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c32;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --blue-deep: #2563eb;
  --blue-soft: rgba(56, 189, 248, 0.12);
  --gold: #facc15;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
  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;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.12), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #08111f 40%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.22s ease;
}

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

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

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select,
.search-panel input {
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input {
  width: 100%;
  padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-panel button {
  border: 0;
  color: white;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.header-search button {
  padding: 11px 16px;
}

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

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

.mobile-panel {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 16px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-weight: 800;
}

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
}

.mobile-search button {
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.14) 100%),
    linear-gradient(0deg, #020617 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 84px;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0 16%, var(--blue) 17% 44%, transparent 45% 100%);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.hero-meta,
.movie-meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-meta {
  margin-bottom: 28px;
}

.pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.btn:hover,
.btn-outline:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-outline {
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(15, 23, 42, 0.58);
}

.hero-search {
  display: flex;
  width: min(420px, 100%);
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  padding: 0 18px;
}

.hero-search button {
  padding: 0 22px;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 72px 0 0;
}

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

.section-kicker {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62));
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 26px 80px rgba(37, 99, 235, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.88) 100%);
}

.poster-badge,
.play-chip {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.88);
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(56, 189, 248, 0.84);
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.34);
}

.card-body {
  padding: 16px;
}

.card-meta,
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-meta span:first-child {
  color: var(--blue);
  font-weight: 900;
}

.card-body h2 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--blue);
}

.card-body p {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: #aab7c8;
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-foot {
  justify-content: space-between;
}

.featured-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.wide-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.wide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

.wide-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px;
}

.wide-card h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.wide-card p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 46px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(30, 41, 59, 0.82);
}

.compact-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 8px;
  color: white;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.rank-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.22), transparent 40%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58));
  padding: 26px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.22);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -32px;
  bottom: -32px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
}

.category-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.category-card p,
.category-card a {
  position: relative;
  z-index: 1;
}

.category-card p {
  color: #aab7c8;
  line-height: 1.75;
}

.category-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.page-hero {
  padding: 72px 0 26px;
}

.page-panel,
.detail-panel,
.player-shell,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.page-panel {
  padding: 26px;
}

.filter-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
  padding: 0 16px;
}

.filter-bar input,
.search-panel input {
  flex: 1 1 260px;
}

.filter-bar select {
  flex: 0 1 180px;
}

.search-panel {
  padding: 18px;
}

.search-panel button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.detail-hero {
  padding: 48px 0 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.24);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-trigger {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.44);
}

.detail-title {
  padding: 24px;
}

.detail-title p {
  color: #cbd5e1;
  line-height: 1.8;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
}

.detail-panel {
  padding: 22px;
}

.detail-panel h2,
.content-block h2 {
  margin: 0 0 16px;
  font-size: 1.28rem;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.tag-cloud span {
  padding: 8px 12px;
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: 26px;
}

.content-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.66);
}

.content-block p {
  color: #cbd5e1;
  line-height: 1.95;
  margin: 0;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
}

.related-card img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: #0f172a;
}

.related-card span {
  display: block;
  padding: 12px;
  font-weight: 800;
  line-height: 1.35;
}

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

.empty-message {
  display: none;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.empty-message.is-visible {
  display: block;
}

.site-footer {
  margin-top: 84px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.88));
}

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

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

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

  .featured-strip,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding-bottom: 74px;
  }

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

  .hero-search,
  .btn,
  .btn-outline {
    width: 100%;
  }

  .hero-dots {
    left: 12px;
    right: auto;
    bottom: 24px;
  }

  .section {
    padding-top: 52px;
  }

  .section-head {
    display: block;
  }

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

  .wide-card {
    min-height: 340px;
  }

  .wide-card-content {
    padding: 22px;
  }

  .compact-card {
    grid-template-columns: 38px 58px 1fr;
  }

  .compact-card img {
    width: 58px;
    height: 78px;
  }

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

  .detail-title,
  .content-block,
  .detail-panel {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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

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