:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 48%, #ecfeff 100%);
  line-height: 1.6;
}

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

img {
  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: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  filter: blur(12px);
  opacity: 0.45;
  z-index: -1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-600);
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 64, 175, 0.76) 42%, rgba(8, 145, 178, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 600px;
  align-items: center;
}

.hero-text {
  max-width: 720px;
  padding: 72px 0 120px;
}

.hero-kicker,
.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.28);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
  color: #dbeafe;
}

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

.hero-title-sub {
  display: block;
  margin-top: 10px;
  color: #bfdbfe;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 650px;
  color: rgba(243, 244, 246, 0.92);
  font-size: 19px;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--blue-600);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 140px;
  background: linear-gradient(0deg, #eff6ff 0%, rgba(239, 246, 255, 0) 100%);
  pointer-events: none;
}

.featured-wrap {
  position: relative;
  z-index: 4;
  margin-top: -78px;
  margin-bottom: 70px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.section {
  padding: 64px 0;
}

.section-light {
  background: rgba(249, 250, 251, 0.9);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-600);
  flex: 0 0 auto;
}

.more-link {
  color: var(--blue-600);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.movie-card {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay,
.ranking-item:hover .poster-overlay {
  opacity: 1;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-600);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.28);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.movie-body {
  padding: 18px;
}

.movie-title {
  margin: 0 0 9px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-card:hover .movie-title,
.ranking-item:hover .movie-title {
  color: var(--blue-600);
}

.movie-desc {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--blue-50);
  font-weight: 750;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 650;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  min-height: 148px;
}

.movie-card-list .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.stats-banner,
.cta-panel,
.page-hero {
  color: #ffffff;
  background: linear-gradient(110deg, var(--blue-600), var(--cyan-500));
}

.stats-banner {
  padding: 74px 0;
}

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

.stat-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 38px;
  line-height: 1;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 26px;
  min-height: 180px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 211, 238, 0.2));
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb-dark {
  color: var(--gray-600);
}

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

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

.page-hero h1,
.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  margin: 34px 0;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.5fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-600);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  gap: 20px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 80px 220px 1fr;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.rank-num {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-size: 30px;
  font-weight: 900;
}

.ranking-item .poster-wrap {
  border-radius: 16px;
  aspect-ratio: auto;
  height: 128px;
}

.detail-page {
  background: var(--gray-50);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  padding: 34px 0 70px;
}

.panel {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-pad {
  padding: 24px;
}

.player-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-title {
  color: var(--gray-900);
}

.detail-section h2,
.side-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin: 0 0 16px;
  color: var(--gray-700);
}

.side-stack {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--gray-50);
}

.related-card img {
  width: 112px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.cta-panel {
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel h2,
.cta-panel h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  z-index: 1;
}

.cta-panel p {
  position: relative;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  z-index: 1;
}

.footer {
  background: #111827;
  color: #ffffff;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 34px;
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
  color: #93c5fd;
  font-weight: 850;
}

.footer p,
.footer a,
.footer li {
  color: #d1d5db;
  font-size: 14px;
}

.footer a:hover {
  color: #93c5fd;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .side-stack {
    position: static;
  }

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .hero-text {
    padding: 56px 0 116px;
  }

  .featured-wrap {
    margin-top: -54px;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-list,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .movie-card-list .poster-wrap,
  .ranking-item .poster-wrap {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .rank-num {
    min-height: 64px;
  }

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

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
