:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 42%, var(--gray-50) 100%);
}

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

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

img.image-missing {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8 0%, var(--blue-600) 100%);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.26);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--sky-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--sky-600);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 3px 0;
  display: block;
  border-radius: 999px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 650;
}

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.28), transparent 30%), #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.52) 45%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.10) 0%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 0 0 70px;
  color: var(--white);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta,
.tag-row,
.footer-tags,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.tag-row span,
.footer-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-meta span {
  padding: 7px 13px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 650;
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--sky-500);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.34);
}

.btn-secondary {
  color: var(--sky-700, #0369a1);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.btn-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.hero-dots {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.section,
.page-hero,
.detail-shell,
.category-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section.soft {
  width: 100%;
  padding: 64px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.95), rgba(239, 246, 255, 0.95));
}

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

.section-head h2,
.page-hero h1,
.detail-title h1,
.category-shell h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head p,
.page-hero p,
.category-shell .lead,
.detail-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.30);
  box-shadow: var(--shadow-strong);
}

.poster-wrap {
  position: relative;
  height: 300px;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(14, 165, 233, 0.22), transparent 34%),
    linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.poster-wrap img,
.horizontal-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.horizontal-item:hover .horizontal-poster img {
  transform: scale(1.08);
}

.poster-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.poster-pill {
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.86);
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.26);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  margin-bottom: 9px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--sky-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span {
  max-width: 100%;
}

.tag-row span,
.footer-tags span {
  padding: 5px 9px;
  color: #0369a1;
  background: var(--sky-100);
  font-size: 12px;
  font-weight: 700;
}

.compact-card .poster-wrap {
  height: 250px;
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.horizontal-poster {
  min-height: 150px;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.horizontal-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.horizontal-copy strong {
  color: var(--gray-900);
  font-size: 22px;
}

.horizontal-copy em {
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.7;
}

.horizontal-copy small {
  color: var(--gray-500);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 160px;
  gap: 12px;
  margin: 26px 0 28px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: var(--shadow);
}

.category-card:nth-child(3n+2) {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #6366f1, #0ea5e9);
}

.category-card:nth-child(3n+3) {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #06b6d4, #0284c7);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.category-card span {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.detail-hero {
  padding: 42px 0 36px;
  background:
    radial-gradient(circle at 12% 5%, rgba(14, 165, 233, 0.22), transparent 28%),
    linear-gradient(180deg, #f0f9ff, #ffffff);
}

.detail-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  height: 460px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
  box-shadow: var(--shadow-strong);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-title h1 {
  margin-bottom: 16px;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #075985;
  background: var(--sky-100);
  font-weight: 750;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.watch-panel {
  margin: 40px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.38), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.30);
}

.player-box.is-playing .player-start {
  display: none;
}

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

.article-panel,
.side-panel {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.article-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--gray-700);
  line-height: 1.95;
  font-size: 16px;
}

.side-panel {
  padding: 18px;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  padding: 12px;
  border-radius: 15px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 750;
}

.side-links a:hover {
  color: var(--sky-600);
  background: var(--sky-50);
}

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

.site-footer {
  margin-top: 54px;
  padding: 42px 0;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.82);
}

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

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

.footer-grid p {
  max-width: 420px;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--sky-600);
  background: var(--sky-50);
}

.empty-filter {
  display: none;
  padding: 24px;
  border: 1px dashed var(--gray-200);
  border-radius: 18px;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
}

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

  .menu-toggle {
    display: grid;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-shell {
    height: 64px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-slider {
    height: 68vh;
    min-height: 520px;
  }

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

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

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 34px;
  }

  .section,
  .page-hero {
    padding: 40px 0;
  }

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

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

  .poster-wrap {
    height: 230px;
  }

  .compact-card .poster-wrap {
    height: 210px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .horizontal-item {
    grid-template-columns: 120px 1fr;
  }

  .horizontal-copy {
    padding: 14px;
  }

  .horizontal-copy strong {
    font-size: 17px;
  }

  .horizontal-copy em {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    height: 420px;
  }

  .article-panel {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
