:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --dark: #0f172a;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f7f9fc;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  font-weight: 650;
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.top-search input {
  min-width: 0;
  flex: 1;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 16px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.hero-button,
.play-button,
.filter-button {
  border: 0;
  border-radius: 999px;
  font-weight: 760;
  cursor: pointer;
}

.top-search button {
  padding: 8px 14px;
  color: #0f172a;
  background: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
  gap: 12px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.open {
  display: block;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.86)), linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 34px;
}

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

.hero-eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
  font-weight: 750;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  padding: 15px 24px;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.28);
  transition: transform 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-side-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 28px 70px rgba(0, 0, 0, 0.22);
  padding: 18px;
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-side-card strong {
  display: block;
  margin-top: 16px;
  font-size: 20px;
}

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

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

.hero-dots button.active {
  width: 36px;
  background: #ffffff;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 70px;
}

.content-section {
  margin-bottom: 56px;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 850;
  color: #0f172a;
}

.section-head p {
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 760;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

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

.cover-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.3);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: #2563eb;
}

.movie-meta {
  margin: 8px 0;
  color: #6b7280;
  font-size: 13px;
}

.movie-line {
  min-height: 44px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

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

.tag-row span {
  background: #eff6ff;
  color: #2563eb;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 28px;
  min-height: 190px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 48%, #14b8a6);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.2);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #ec4899 52%, #f97316);
}

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

.category-card p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

.category-card span {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 800;
}

.page-hero {
  border-radius: 32px;
  padding: 48px;
  margin-bottom: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4 52%, #14b8a6);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.22);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin: -20px 0 30px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
}

.filter-button {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  padding: 12px 20px;
}

.detail-main {
  max-width: 1120px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 700;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.62));
  z-index: 2;
}

.player-overlay.hidden {
  display: none;
}

.play-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 34px;
  box-shadow: 0 24px 52px rgba(239, 68, 68, 0.36);
}

.detail-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 34px 0;
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: #dbeafe;
}

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

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #64748b;
  font-weight: 650;
}

.detail-tags span {
  color: #1d4ed8;
  background: #eff6ff;
}

.prose-card {
  margin: 24px 0;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.prose-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 850;
}

.prose-card p {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.no-results {
  display: none;
  padding: 24px;
  border-radius: 22px;
  color: #64748b;
  background: #ffffff;
}

.no-results.visible {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
  padding: 48px 20px 26px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-grid p {
  margin-top: 12px;
  max-width: 430px;
  color: #9ca3af;
  line-height: 1.75;
}

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

.footer-links strong {
  color: #ffffff;
  margin-bottom: 4px;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 92px;
  }

  .hero-side-card {
    max-width: 320px;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

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

  .hero-inner,
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .movie-info {
    padding: 14px;
  }

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

  .movie-line {
    display: none;
  }

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

  .page-hero,
  .prose-card,
  .detail-hero {
    border-radius: 24px;
    padding: 22px;
  }

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

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

  .filter-bar {
    flex-direction: column;
  }

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