:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --yellow: #f59e0b;
  --green: #10b981;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

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

.nav-links a {
  padding: 10px 14px;
  color: #374151;
  font-weight: 600;
  border-radius: 999px;
  transition: 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  border: 0;
  background: #eff6ff;
  color: var(--blue);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 48%, #14b8a6 100%);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.25), transparent 30%), radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 28%), rgba(0, 0, 0, 0.20);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  color: var(--light);
}

.hero-inner {
  position: relative;
  z-index: 4;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 96px;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

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

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-ghost:hover {
  color: var(--blue);
  background: #fff;
}

.hero-search {
  max-width: 620px;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 160px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 12px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
}

.hero-panel {
  position: relative;
  min-height: 450px;
}

.hero-orbit {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  top: -34px;
  right: -44px;
}

.hero-slider {
  position: relative;
  height: 450px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
}

.badge.light {
  color: var(--blue);
  background: #eff6ff;
}

.badge.green {
  background: #10b981;
}

.badge.yellow {
  color: #7c2d12;
  background: #fef3c7;
}

.section {
  padding: 64px 0;
}

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

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

.section-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: -58px;
  position: relative;
  z-index: 8;
}

.stat-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.015);
}

.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  border-radius: 18px;
  background: #eff6ff;
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: 0.28s ease;
}

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

.poster {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.poster.tall {
  height: 350px;
}

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

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

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

.poster-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 14px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.card-body {
  padding: 18px;
  flex: 1;
}

.card-title {
  margin: 0 0 10px;
  min-height: 48px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.feature-strip {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 36px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.20);
}

.feature-strip::before,
.feature-strip::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.feature-strip::before {
  right: -120px;
  top: -120px;
}

.feature-strip::after {
  left: -110px;
  bottom: -135px;
}

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

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

.hot-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.hot-tile:hover {
  background: rgba(255, 255, 255, 0.28);
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
}

.hot-title {
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.86;
}

.scroller {
  overflow-x: auto;
  padding: 8px 0 20px;
}

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

.wide-card {
  width: 330px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.13);
}

.wide-cover {
  height: 205px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

.wide-body {
  padding: 20px;
}

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

.media-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  min-height: 136px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.media-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13);
}

.media-row img {
  width: 128px;
  height: 100%;
  min-height: 136px;
  object-fit: cover;
}

.media-row-body {
  padding: 16px 16px 16px 0;
}

.page-hero {
  color: #fff;
  padding: 74px 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

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

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filters {
  margin: 32px 0;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-box {
  position: relative;
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 0 18px;
  color: var(--text);
}

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

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
  transition: 0.2s ease;
}

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

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

.detail-card,
.side-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-card {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
  transition: 0.25s ease;
  pointer-events: none;
}

.player-wrap.playing .play-layer {
  opacity: 0;
}

.play-button {
  pointer-events: auto;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  transition: 0.25s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.detail-body {
  padding: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.detail-body h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.detail-body p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.side-card {
  padding: 22px;
  margin-bottom: 24px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.side-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-item:last-child {
  border-bottom: 0;
}

.side-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.side-title {
  font-weight: 900;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) 90px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13);
}

.rank-cover {
  width: 96px;
  height: 124px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.score {
  text-align: center;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.footer-inner h2,
.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #e0f2fe;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 420px;
  }

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

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

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

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

  .movie-grid,
  .movie-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .poster {
    height: 230px;
  }

  .list-grid,
  .hot-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 78px minmax(0, 1fr);
  }

  .rank-cover {
    width: 78px;
    height: 104px;
  }

  .score {
    display: none;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-slider {
    height: 390px;
    border-radius: 24px;
  }

  .hero-slide-content {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-grid,
  .category-cards {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid.four {
    grid-template-columns: 1fr;
  }

  .poster {
    height: 320px;
  }

  .media-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .media-row img {
    width: 100px;
  }
}
