:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --panel: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef8ff 38%, #ffffff 100%);
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #38bdf8 45%, #7c3aed);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.24);
}

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

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--sky-dark);
  background: #e0f2fe;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 32px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.75;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -130px;
  top: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42), rgba(56, 189, 248, 0));
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -190px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0));
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  z-index: 1;
}

.hero-copy {
  padding: 44px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.94), rgba(15, 23, 42, 0.95));
  color: #ffffff;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.eyebrow {
  width: fit-content;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #075985;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
}

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

.stat-card {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
}

.stat-card strong {
  display: block;
  font-size: 22px;
}

.stat-card span {
  display: block;
  color: #bae6fd;
  font-size: 12px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
  border-radius: 32px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

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

.hero-slide-content {
  position: absolute;
  inset: auto 22px 22px 22px;
  padding: 24px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.86));
  backdrop-filter: blur(10px);
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-slide-content p {
  margin: 0 0 14px;
  color: #e2e8f0;
}

.slider-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.slider-dot {
  width: 28px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.slider-dot.is-active {
  background: #ffffff;
}

.section {
  padding: 42px 0;
}

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

.section-kicker {
  margin: 0 0 5px;
  color: var(--sky-dark);
  font-weight: 900;
  font-size: 14px;
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.section-lead,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.category-card {
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  min-height: 150px;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #be123c, #f97316);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -42px;
  bottom: -48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-icon {
  font-size: 30px;
}

.category-card h3 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-count {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin: 22px 0;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

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

.movie-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.badge-dark {
  background: rgba(15, 23, 42, 0.74);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-body p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  color: var(--sky-dark);
  font-weight: 900;
  font-size: 14px;
}

.page-title {
  padding: 42px 0 22px;
}

.breadcrumb {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-dark);
  font-weight: 800;
}

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

.detail-panel,
.side-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.78));
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--sky-dark);
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.detail-panel h1 {
  margin: 22px 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.detail-panel h2,
.side-panel h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-panel p {
  color: #334155;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
  background: #e2e8f0;
}

.rank-item h3 {
  margin: 0 0 6px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 56px;
  padding: 36px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a:hover {
  color: #38bdf8;
}

.hide-card {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .navbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero-copy,
  .hero-slider {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-slider {
    aspect-ratio: 3 / 4;
  }

  .hero-stats,
  .category-grid,
  .movie-grid,
  .toolbar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-item img {
    width: 72px;
    height: 98px;
  }
}
