:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --dark: #111827;
  --muted: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.30);
}

.logo-text {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-weight: 600;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #374151;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: #374151;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--teal));
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .28;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, .16), transparent 24%),
    linear-gradient(90deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .46), rgba(15, 23, 42, .15));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

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

.hero p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, .92);
  font-size: 20px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.btn-primary:hover {
  background: #f3f4f6;
}

.btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--blue);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

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

.wave {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 92px;
  background: var(--light);
  clip-path: polygon(0 48%, 10% 58%, 23% 38%, 38% 55%, 54% 43%, 70% 57%, 86% 48%, 100% 56%, 100% 100%, 0 100%);
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 46px 0;
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.link-more {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

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

.stat-card,
.category-card,
.search-panel,
.content-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, .72);
}

.stat-card {
  padding: 26px;
  text-align: center;
  transition: transform .25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 22px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
  border: 1px solid rgba(229, 231, 235, .75);
  transition: transform .28s ease, box-shadow .28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, .16);
}

.card-poster {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.card-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
  font-size: 13px;
  font-weight: 700;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  transition: color .2s ease;
}

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

.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #6b7280;
  font-size: 13px;
}

.line-1,
.line-2,
.line-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-1 {
  -webkit-line-clamp: 1;
}

.line-2 {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.banner-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 50px rgba(37, 99, 235, .22);
}

.banner-panel::before,
.banner-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
}

.banner-panel::before {
  width: 240px;
  height: 240px;
  top: -110px;
  right: -90px;
}

.banner-panel::after {
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: -70px;
}

.banner-content {
  position: relative;
  z-index: 2;
}

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

.banner-link {
  display: block;
  min-height: 96px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease;
}

.banner-link:hover {
  background: rgba(255, 255, 255, .26);
  transform: translateY(-3px);
}

.banner-link strong {
  display: block;
  margin-bottom: 4px;
}

.banner-link span {
  font-size: 13px;
  color: rgba(255, 255, 255, .84);
}

.horizontal-scroll {
  overflow-x: auto;
  padding: 4px 4px 18px;
  margin: 0 -4px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  width: max-content;
}

.scroll-row .movie-card {
  width: 320px;
}

.page-hero {
  color: #ffffff;
  padding: 70px 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(90deg, var(--blue), var(--cyan));
}

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

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

.search-panel {
  padding: 24px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.search-input {
  flex: 1 1 280px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  background: #eff6ff;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #ffffff;
  background: var(--blue);
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, .14);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.category-mini {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-mini span {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 104px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, .80);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

.rank-number {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-cover {
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-meta {
  color: var(--blue);
  font-weight: 800;
}

.breadcrumb {
  padding: 24px 0;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 24px 58px rgba(15, 23, 42, .24);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
  position: relative;
  z-index: 1;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, .18), rgba(15, 23, 42, .62));
  cursor: pointer;
}

.player-start.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--blue);
  background: rgba(255, 255, 255, .94);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.player-start strong {
  font-size: 18px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.detail-title-card,
.detail-section,
.side-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, .80);
  box-shadow: var(--shadow);
}

.detail-title-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-title-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.meta-pills span,
.tag-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 700;
  font-size: 13px;
}

.detail-section h2,
.side-card h2,
.side-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.poster-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.poster-card img {
  height: 455px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.poster-info {
  padding: 18px;
}

.poster-info h2,
.poster-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.poster-info p {
  margin: 0;
  color: var(--muted);
}

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

.related-grid .movie-card .card-poster {
  height: 230px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.footer-title {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.footer-links a {
  color: #9ca3af;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 18px 0;
  color: #9ca3af;
  font-size: 14px;
}

.is-hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero {
    min-height: 620px;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.wide,
  .banner-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .link-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .rank-item {
    grid-template-columns: 54px 84px 1fr;
  }

  .rank-meta {
    grid-column: 3;
  }

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

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

  .logo {
    font-size: 20px;
  }

  .hero-content {
    padding: 70px 0 110px;
  }

  .hero p {
    font-size: 17px;
  }

  .stats-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.wide,
  .banner-grid,
  .related-grid,
  .detail-side,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-poster {
    height: 270px;
  }

  .banner-panel {
    padding: 28px;
  }

  .rank-item {
    grid-template-columns: 44px 76px 1fr;
    gap: 12px;
  }

  .rank-cover {
    height: 64px;
  }

  .poster-card img {
    height: 390px;
  }
}
