:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --sky: #38bdf8;
  --blue: #2563eb;
  --yellow: #facc15;
  --red: #fb7185;
  --orange: #f97316;
  --green: #34d399;
  --purple: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(30, 41, 59, 0.86);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.24);
}

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

.brand-copy strong,
.footer-brand strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #fff;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(30, 41, 59, 0.72);
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #020617;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 680px;
}

.hero-slide.is-active {
  display: block;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.04);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 30%, rgba(56, 189, 248, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.44) 68%, rgba(2, 6, 23, 0.86) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.42) 0%, rgba(2, 6, 23, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 96px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 54px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  font-weight: 750;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  border-color: rgba(226, 232, 240, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 660px;
  margin-top: 26px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #fff;
  outline: none;
  background: rgba(15, 23, 42, 0.72);
  padding: 0 16px;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.hero-side {
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 28px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-side__body {
  display: grid;
  gap: 8px;
  padding: 16px 6px 4px;
}

.hero-side__body strong {
  font-size: 20px;
}

.hero-side__body span {
  color: var(--muted);
  font-size: 14px;
}

.hero-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-nav.prev {
  left: 24px;
}

.hero-nav.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: #fff;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: rgba(15, 23, 42, 0.42);
}

.section-gradient {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(2, 6, 23, 0.2));
}

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

.section-kicker {
  color: var(--sky);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title p {
  max-width: 760px;
  color: var(--muted);
  margin: 12px 0 0;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.92));
}

.movie-card__poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: translateY(0);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card__meta a,
.breadcrumb a {
  color: #bae6fd;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card--small h3 {
  font-size: 16px;
}

.movie-card--small .movie-card__body {
  padding: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 14px;
}

.tag-row span {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.62);
  font-size: 12px;
}

.card-link {
  display: inline-flex;
  color: #7dd3fc;
  font-weight: 800;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 56px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
}

.rank-card__number {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 22px;
  font-weight: 900;
}

.rank-card__cover img {
  width: 132px;
  height: 176px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-card__body {
  min-width: 0;
}

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

.category-box {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.62));
  box-shadow: var(--shadow);
}

.category-box::after {
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
}

.category-box h2 {
  margin: 0 0 10px;
  font-size: 27px;
}

.category-box p {
  max-width: 520px;
  color: var(--muted);
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 22px;
}

.category-preview a {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
  font-size: 13px;
}

.page-hero {
  padding: 70px 0 34px;
}

.filter-panel {
  margin: 0 0 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 180px 180px;
  gap: 12px;
}

.empty-filter {
  display: none;
  color: var(--muted);
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: center;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

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

.detail-title {
  padding-top: 10px;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.detail-facts span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.6);
}

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

.content-panel + .content-panel {
  margin-top: 22px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 14px;
  color: #cbd5e1;
}

.player-section {
  padding: 28px 0 70px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.76));
  cursor: pointer;
}

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

.player-start {
  display: inline-flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #e2e8f0;
  font-size: 14px;
}

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

.site-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(2, 6, 23, 0.9);
  padding: 54px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 34px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 38px;
  padding: 20px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.82);
  color: var(--muted-2);
  text-align: center;
}

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

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

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

  .hero-side {
    max-width: 360px;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-side {
    display: none;
  }

  .hero-nav {
    display: none;
  }

  .hero-search,
  .filter-panel__row {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 44px 92px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card__number {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 17px;
  }

  .rank-card__cover img {
    width: 92px;
    height: 124px;
  }

  .section {
    padding: 54px 0;
  }

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

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

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

  .movie-grid,
  .movie-grid.compact,
  .related-strip {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }
}
