:root {
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-teal: #14b8a6;
  --color-orange: #f97316;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-soft: #f8fafc;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.94), rgba(236, 254, 255, 0.94), rgba(240, 253, 250, 0.94));
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: grid;
}

.brand strong,
.footer-brand strong {
  font-size: 24px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}

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

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

.nav-link,
.nav-button {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-button:hover {
  color: var(--color-blue);
}

.nav-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 14px);
  display: grid;
  width: 190px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 8px);
}

.dropdown-menu a {
  padding: 9px 12px;
  color: #374151;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  color: var(--color-blue);
  background: #eff6ff;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 280px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
  color: var(--color-ink);
}

.header-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-blue);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 14px 18px 22px;
  border-top: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav a {
  font-weight: 700;
  color: #374151;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}

.mobile-nav button {
  border: 0;
  padding: 11px 14px;
  color: #ffffff;
  background: var(--color-blue);
  border-radius: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 72px 0 40px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.28), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(20, 184, 166, 0.25), transparent 28%),
    linear-gradient(135deg, #eff6ff 0%, #ecfeff 45%, #f0fdfa 100%);
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-one {
  right: 8%;
  top: 70px;
  background: rgba(6, 182, 212, 0.22);
}

.hero-glow-two {
  left: 4%;
  bottom: 10px;
  background: rgba(37, 99, 235, 0.18);
}

.hero-container {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 56px;
  min-height: 500px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeSlide 0.58s ease both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--color-blue-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.88);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.10);
}

.hero-copy h1 {
  max-width: 790px;
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  color: #0f172a;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.1;
  color: var(--color-blue-dark);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--color-blue-dark);
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-button,
.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.24);
}

.ghost-button {
  color: var(--color-blue-dark);
  background: #ffffff;
  border: 1px solid #bfdbfe;
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--color-blue-dark);
}

.primary-button:hover,
.ghost-button:hover,
.inline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.62));
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-play,
.player-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--color-blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.26);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
}

.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-category-strip a {
  padding: 10px 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 999px;
  font-weight: 800;
}

.content-section {
  padding: 68px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-link {
  color: var(--color-blue-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 22px;
  box-shadow: 0 10px 28px 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(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

.movie-card:not(.movie-card-compact) .poster-link {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.66));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.94);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), #fb7185);
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
  font-size: 13px;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--color-blue);
}

.movie-meta {
  margin: 8px 0;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-section,
.ranking-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.category-tile,
.category-overview-card,
.text-card {
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.category-tile {
  padding: 18px;
}

.category-tile > a {
  display: grid;
  gap: 10px;
}

.category-tile span {
  color: var(--color-blue-dark);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.category-samples,
.category-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a,
.category-overview-links a {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #eff6ff, #ecfeff 52%, #f0fdfa);
}

.small-page-hero,
.category-page-hero {
  padding: 74px 0 58px;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.filter-toolbar,
.large-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 820px;
  margin-top: 28px;
}

.filter-toolbar input,
.filter-toolbar select,
.large-search input {
  min-height: 48px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  outline: 0;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.filter-toolbar input,
.large-search input {
  flex: 1 1 280px;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.category-overview-card p {
  margin: 0;
  color: #4b5563;
}

.inline-button {
  margin-top: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
}

.detail-hero {
  padding: 58px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 14px;
}

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

.detail-one-line {
  max-width: 820px;
  margin: 14px 0 20px;
  color: #4b5563;
  font-size: 18px;
}

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

.detail-meta div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dbeafe;
  border-radius: 16px;
}

.detail-meta dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-player-section {
  background: #0f172a;
  color: #ffffff;
}

.detail-player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 36px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #020617;
}

.player-cover {
  z-index: 4;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #020617;
}

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

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.text-card {
  padding: 24px;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.search-summary {
  margin-bottom: 18px;
  color: #374151;
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #0f172a, #111827 55%, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 12px 0 0;
  color: #9ca3af;
}

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

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-slide,
  .detail-hero-grid,
  .category-overview-card,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 32px;
  }

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

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

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

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

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

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

  .header-inner {
    min-height: 68px;
  }

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

  .brand small {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 46px 0 28px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .detail-actions a {
    width: 100%;
  }

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

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .detail-meta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 46px 0;
  }

  .detail-hero {
    padding: 38px 0;
  }
}
