:root {
  --blue-900: #173065;
  --blue-800: #1d4d98;
  --blue-700: #2563eb;
  --blue-600: #2f6df6;
  --purple-600: #7c3aed;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --green-600: #059669;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(37, 99, 235, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #2563eb, #1d4ed8, #1e40af);
  color: #fff;
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.28);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.desktop-nav a,
.mobile-panel a {
  font-weight: 700;
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #bfdbfe;
  opacity: 1;
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.listing-tools input {
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
  min-width: 210px;
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin: 8px 0 14px;
}

.hero {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #172554, #1d4ed8 56%, #60a5fa);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s 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-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.88), rgba(15, 23, 42, 0.44) 48%, rgba(30, 64, 175, 0.35));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: #fff;
  padding-bottom: 72px;
  max-width: 1180px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.hero h1,
.hero-title-like {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero h2 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  max-width: 780px;
}

.hero p:not(.hero-kicker) {
  margin: 0;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.tag-row span {
  background: #dbeafe;
  color: #1d4ed8;
  backdrop-filter: none;
}

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

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

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

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.home-wrap {
  padding: 12px 0 36px;
}

.section-block {
  margin: 44px 0;
  padding: 38px 0;
}

.section-block.soft-green,
.section-block.soft-blue,
.section-block.soft-red {
  border-radius: 28px;
  padding: 38px 28px;
}

.soft-green {
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
}

.soft-blue {
  background: linear-gradient(135deg, #eff6ff, #eef2ff, #faf5ff);
}

.soft-red {
  background: linear-gradient(90deg, #fff7ed, #fef2f2, #fefce8);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.section-title > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--gray-600);
}

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

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

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

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
}

.scroll-row .movie-card {
  width: 286px;
  flex: 0 0 286px;
}

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbeafe;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.year-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.movie-info {
  display: block;
  padding: 16px;
}

.movie-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--gray-600);
  font-style: normal;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card-horizontal {
  display: flex;
  min-height: 168px;
}

.movie-card-horizontal .movie-thumb {
  width: 210px;
  flex: 0 0 210px;
  aspect-ratio: auto;
}

.movie-card-horizontal .movie-info {
  flex: 1;
}

.movie-card-minimal {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.movie-card-minimal:hover {
  transform: none;
  box-shadow: none;
}

.movie-card-minimal .movie-thumb {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.movie-card-minimal strong {
  min-height: 44px;
  margin-top: 10px;
  font-size: 15px;
}

.rank-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 3;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 0 0 14px 0;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.32s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 70%);
}

.category-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.category-tile b {
  display: block;
  font-size: 20px;
}

.category-tile em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 13px;
}

.more-link {
  display: table;
  margin: 24px auto 0;
  border-radius: 999px;
  padding: 12px 24px;
  background: #fff;
  color: #b91c1c;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding: 76px 0;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #7c3aed);
}

.page-hero-light {
  color: var(--gray-900);
  background: linear-gradient(135deg, #eff6ff, #eef2ff, #faf5ff);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

.rank-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 180px;
}

.category-card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.category-card-body strong {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-card-body em {
  color: var(--gray-600);
  font-style: normal;
}

.listing-tools {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.listing-tools input {
  width: 100%;
  border: 1px solid var(--gray-200);
  background: #fff;
}

.filter-bar,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip,
.quick-links a {
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
}

.filter-chip.is-active {
  background: #2563eb;
  color: #fff;
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: #111827;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.12);
  transform: scale(1.04);
  opacity: 0.45;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.64), rgba(29, 78, 216, 0.3));
}

.detail-hero-inner {
  position: relative;
  padding: 36px 0 54px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #bfdbfe;
}

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

.detail-cover {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  aspect-ratio: 2 / 3;
  background: #1f2937;
}

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

.detail-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.detail-intro p {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0 26px;
}

.player-section {
  margin-top: 42px;
}

.player-section h2,
.detail-content h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(15, 23, 42, 0.2));
  color: #fff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.95);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.42);
  font-size: 38px;
  padding-left: 5px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.content-card {
  border-radius: 22px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  background: var(--gray-900);
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  padding: 38px 0;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-block;
  margin-right: 18px;
  color: #dbeafe;
}

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

[data-card].is-hidden {
  display: none;
}

.no-result {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  color: var(--gray-600);
  box-shadow: var(--shadow-soft);
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

  .movie-grid.three-col,
  .split-grid,
  .detail-content,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 62px;
  }

  .hero {
    min-height: 620px;
    height: 82vh;
  }

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

  .hero-nav {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .section-block.soft-green,
  .section-block.soft-blue,
  .section-block.soft-red {
    padding: 28px 16px;
    border-radius: 22px;
  }

  .movie-grid,
  .movie-grid.three-col,
  .listing-grid,
  .split-grid,
  .category-showcase,
  .category-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    min-height: 150px;
  }

  .movie-card-horizontal .movie-thumb {
    width: 132px;
    flex-basis: 132px;
  }

  .movie-card strong {
    font-size: 16px;
  }

  .category-card {
    grid-template-columns: 130px 1fr;
  }

  .category-card-images {
    min-height: 148px;
  }

  .listing-tools {
    position: static;
  }

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

  .detail-cover {
    width: min(260px, 78vw);
  }

  .detail-intro p {
    font-size: 17px;
  }
}
