:root {
  --page-bg: #f6f8fb;
  --panel-bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #dbeafe;
  --radius: 22px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem), var(--page-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.header-search input,
.big-search input,
.inline-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
}

.header-search input {
  width: 150px;
  padding-left: 10px;
}

.header-search button,
.big-search button,
.inline-search button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.header-search button {
  padding: 8px 14px;
  font-size: 13px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: #475569;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #f1f5f9;
  color: var(--brand-dark);
}

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

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-slide > img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68) 44%, rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 72vh;
  align-items: center;
  padding: 90px 0 120px;
}

.hero-copy,
.detail-copy {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p,
.detail-copy p {
  max-width: 660px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-panel {
  position: relative;
  z-index: 10;
  margin-top: -42px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.big-search,
.inline-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.big-search {
  padding: 8px;
}

.big-search input {
  flex: 1;
  padding: 0 18px;
  font-size: 17px;
}

.big-search button,
.inline-search button {
  padding: 12px 22px;
}

.inline-search {
  max-width: 560px;
  margin-top: 22px;
  padding: 7px;
}

.inline-search input {
  flex: 1;
  padding: 0 14px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 14px;
  font-weight: 800;
}

.section-block,
.page-shell {
  padding: 56px 0;
}

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

.section-heading h2,
.page-hero h1,
.player-section h2,
.detail-article h2,
.detail-sidebar h2 {
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 42px);
}

.text-link {
  color: var(--brand-dark);
}

.text-link:hover {
  color: #1e40af;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff 48%, #ffffff);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
}

.rank-badge {
  right: 10px;
  bottom: 10px;
  min-width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f97316, #facc15);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}

.feature-band {
  margin-top: 34px;
  padding: 64px 0;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.34), transparent 26rem),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: center;
}

.feature-grid h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.feature-grid p {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.category-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin-top: 12px;
  color: #475569;
  line-height: 1.7;
}

.category-card strong {
  margin-top: 20px;
  color: var(--brand-dark);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.tone-blue {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.tone-green {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.tone-purple {
  background: linear-gradient(135deg, #f5f3ff, #ffffff);
}

.tone-orange {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.tone-rose {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.tone-slate {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
}

.tone-cyan {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.tone-amber {
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.compact-heading {
  margin-bottom: 18px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.ranking-item:hover {
  background: #eff6ff;
}

.mini-rank {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #dbeafe;
  color: var(--brand-dark);
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  color: #0f172a;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  grid-column: 2;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.simple-hero,
.category-hero {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin-top: 14px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

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

.breadcrumb a:hover {
  color: var(--brand-dark);
}

.light-breadcrumb {
  position: relative;
  z-index: 2;
  color: #cbd5e1;
}

.light-breadcrumb a:hover {
  color: #ffffff;
}

.filter-chips {
  margin-top: 20px;
}

.filter-chips button {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  background: #2563eb;
  color: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 0 74px;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-section {
  padding: 56px 0 22px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.66));
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-dark);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 34px 0 10px;
}

.detail-article,
.detail-sidebar {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-sidebar h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

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

.detail-meta-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-meta-list dt {
  color: #64748b;
  font-weight: 800;
}

.detail-meta-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.compact-card .movie-card-body p {
  min-height: 0;
}

.site-footer {
  margin-top: 40px;
  padding: 52px 0 28px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 30px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin-top: 14px;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-weight: 700;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1180px) {
  .home-grid,
  .category-movie-grid,
  .ranking-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .feature-grid,
  .two-column-section,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 70vw);
  }

  .ranking-panel {
    position: static;
  }

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

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

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 42px;
  }

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

  .quick-panel,
  .page-hero,
  .detail-article,
  .detail-sidebar {
    border-radius: 20px;
  }

  .big-search,
  .inline-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }

  .big-search input,
  .inline-search input {
    width: 100%;
    padding: 12px 14px;
  }

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

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

  .movie-title {
    min-height: 40px;
    font-size: 14px;
  }

  .movie-card-body p,
  .tag-row {
    display: none;
  }

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

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

  .page-hero {
    padding: 30px 22px;
  }

  .player-frame {
    border-radius: 18px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 440px) {
  .home-grid,
  .category-movie-grid,
  .ranking-grid,
  .recommend-grid {
    grid-template-columns: 1fr;
  }
}
