:root {
  color-scheme: dark;
  --bg-main: #020617;
  --bg-deep: #0f172a;
  --bg-soft: rgba(15, 23, 42, 0.78);
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(34, 211, 238, 0.18);
  --line-soft: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #60a5fa;
  --gold: #fbbf24;
  --danger: #fb7185;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-cyan: 0 20px 70px rgba(8, 145, 178, 0.24);
  --shadow-card: 0 18px 40px rgba(2, 6, 23, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 30rem),
    radial-gradient(circle at 75% 10%, rgba(96, 165, 250, 0.16), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0b1630 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #00111a;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 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 {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 13px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
}

.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.8);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line-soft);
}

.page-shell,
.home-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.home-shell {
  padding: 36px 0 64px;
}

.page-shell {
  padding: 38px 0 64px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.84), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-cyan);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: center;
  padding: 62px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.25) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -12% -35% 28%;
  z-index: -1;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 62%);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.gradient-title {
  background: linear-gradient(90deg, #ffffff, #a5f3fc 48%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2.3vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-ghost {
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
}

.btn-soft {
  color: #dbeafe;
  border: 1px solid var(--line-soft);
  background: rgba(30, 41, 59, 0.7);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags a,
.tag-row span,
.detail-tags span {
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
}

.hero-tags a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.7);
  transform: rotate(2deg);
}

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

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

.hero-card-mini {
  position: absolute;
  left: -24px;
  bottom: 24px;
  width: min(260px, 78%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.hero-card-mini strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.hero-card-mini span {
  color: var(--muted);
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  left: 62px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 30px;
  max-width: 560px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.52);
}

.hero-search input,
.search-field input,
.filter-form select {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line-soft);
  outline: none;
  background: rgba(15, 23, 42, 0.72);
}

.hero-search input {
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

.hero-search button {
  border: none;
  cursor: pointer;
}

.section {
  margin-top: 58px;
}

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

.page-head {
  align-items: flex-start;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.section h2,
.page-head h1,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.page-head p,
.section-head p,
.category-tile p,
.detail-copy p,
.article-block p {
  color: var(--muted);
  line-height: 1.8;
}

.section-head p,
.page-head p {
  margin: 10px 0 0;
  max-width: 780px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.2);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 16px 16px;
  height: 18px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.35);
  filter: blur(18px);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  box-shadow: 0 12px 24px rgba(251, 191, 36, 0.25);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

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

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

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

.meta-row {
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12px;
}

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

.tag-row span,
.detail-tags span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-tile {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.5));
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-tile strong {
  display: block;
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-tile p {
  margin: 0 0 20px;
  font-size: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
}

.ranking-item em {
  color: var(--cyan);
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-item strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.ranking-item span,
.breadcrumbs,
.breadcrumbs a {
  color: var(--muted);
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(140px, 0.36fr));
  gap: 14px;
  align-items: end;
}

.filter-form label,
.search-field {
  display: grid;
  gap: 8px;
}

.filter-form label span,
.search-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.search-field input,
.filter-form select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

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

.empty-result.show {
  display: block;
}

.detail-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.55), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 28rem);
  box-shadow: var(--shadow-cyan);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

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

.breadcrumbs {
  margin-bottom: 16px;
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 10px;
  color: #dbeafe;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.12);
}

.player-section {
  margin-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-card);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  color: #00111a;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.44);
  cursor: pointer;
}

.play-button span {
  transform: translateX(3px);
  font-size: 40px;
  font-weight: 900;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 24px;
  margin-top: 30px;
}

.article-block,
.side-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.article-block h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #fff;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.6);
}

.related-list a:hover {
  background: rgba(34, 211, 238, 0.09);
}

.related-list img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.related-list strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.related-list span {
  color: var(--muted);
  font-size: 12px;
}

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

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner strong {
  color: #fff;
}

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

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

.copyright {
  margin: 0;
  color: var(--muted-2);
}

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 34px 24px 86px;
  }

  .hero-controls {
    left: 24px;
    bottom: 28px;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .category-grid,
  .article-grid,
  .detail-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .nav-wrap,
  .page-shell,
  .home-shell,
  .footer-inner {
    width: min(100% - 22px, var(--max));
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-search,
  .section-head,
  .page-head,
  .hero-actions,
  .section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 820px;
  }

  .hero-slide {
    padding: 28px 18px 78px;
  }

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

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

  .filter-form,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .play-button {
    width: 78px;
    height: 78px;
  }
}
