:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --green: #22c55e;
  --yellow: #facc15;
  --orange: #f97316;
  --red: #ef4444;
  --purple: #7c3aed;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --body: #f8fafc;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 48%, #f0fdfa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #1e3a8a;
  background: #facc15;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(250, 204, 21, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fef08a;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #fef08a;
  border-radius: 999px;
}

.header-search {
  display: flex;
  min-width: 250px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  outline: 0;
}

.header-search button {
  padding: 0 16px;
  color: #1e3a8a;
  font-weight: 800;
  cursor: pointer;
  background: #facc15;
  border: 0;
  transition: background 0.2s ease;
}

.header-search button:hover {
  background: #fde047;
}

.mobile-menu-button {
  display: none;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 30px;
  cursor: pointer;
}

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

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

.mobile-menu a {
  display: block;
  padding: 9px 0;
  color: #fff;
  font-weight: 650;
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.26;
  pointer-events: none;
}

.hero::before {
  top: -180px;
  left: -120px;
  background: #fff;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
  right: -160px;
  bottom: -160px;
  background: #facc15;
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: 610px;
  padding: 72px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 20px;
  font-weight: 800;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(18px, 2.6vw, 24px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  color: #1e3a8a;
  background: #facc15;
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-search {
  display: flex;
  max-width: 560px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  outline: 0;
}

.hero-search button {
  padding: 0 22px;
  color: #1e3a8a;
  font-weight: 900;
  background: #facc15;
  border: 0;
  cursor: pointer;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.hero-slide.is-active img {
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.82));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.14;
}

.hero-slide-content p {
  margin-bottom: 18px;
  color: #e2e8f0;
  font-size: 16px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #facc15;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.82), rgba(254, 226, 226, 0.88));
}

.section-green {
  background: linear-gradient(90deg, rgba(220, 252, 231, 0.9), rgba(204, 251, 241, 0.9));
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-title .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

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

.movie-grid.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-900);
}

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

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

.year-badge,
.play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  border-radius: 8px;
}

.play-badge {
  top: 50%;
  right: auto;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

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

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  border-radius: 8px;
}

.badge-blue {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.badge-green {
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.badge-red {
  background: #ef4444;
}

.badge-purple {
  background: #7c3aed;
}

.movie-title {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.movie-desc {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.featured-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-900);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
}

.featured-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 24px;
}

.featured-card-content h3 {
  margin: 10px 0;
  font-size: 26px;
  line-height: 1.22;
}

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

.pill-link,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: #334155;
  font-weight: 750;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pill-link:hover,
.pill-link.is-active,
.pagination a:hover,
.pagination .current {
  color: #fff;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  transform: translateY(-2px);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.list-hero {
  padding: 64px 0 42px;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
}

.list-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.list-hero p {
  max-width: 860px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #e0f2fe;
  font-size: 14px;
}

.detail-page {
  padding: 42px 0 68px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.video-card,
.detail-card,
.review-card,
.side-card,
.text-card,
.category-card,
.ranking-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.video-card {
  overflow: hidden;
  margin-bottom: 24px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76));
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-overlay-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #2563eb;
  font-size: 42px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
}

.player-status {
  padding: 12px 18px;
  color: #64748b;
  font-size: 14px;
  background: #f8fafc;
}

.detail-card,
.review-card,
.side-card,
.text-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 12px 0 12px;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.detail-card .lead {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 18px;
  font-style: italic;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

.tag-list a,
.tag-list span {
  display: inline-flex;
  padding: 6px 10px;
  color: #475569;
  font-size: 13px;
  background: #f1f5f9;
  border-radius: 999px;
}

.review-card {
  margin-top: 24px;
}

.review-card h2,
.side-card h2,
.text-card h2 {
  margin-top: 0;
  color: #1f2937;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #f8fafc;
}

.compact-card img {
  width: 116px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.compact-card h3 {
  margin: 0 0 4px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

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

.category-card {
  padding: 20px;
}

.category-card h2 {
  margin: 0 0 12px;
  color: #1f2937;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 46px 138px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

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

.ranking-row img {
  width: 138px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: 0;
}

.search-panel button {
  padding: 0 22px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.footer {
  padding: 52px 0 32px;
  color: #fff;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h2,
.footer h3 {
  margin-top: 0;
  color: #67e8f9;
}

.footer p,
.footer a {
  color: #cbd5e1;
}

.footer a:hover {
  color: #67e8f9;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  padding-top: 22px;
  margin-top: 32px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

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

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

  .hero-inner {
    min-height: auto;
    padding: 52px 0;
  }

  .hero-search,
  .search-panel {
    flex-direction: column;
    padding: 10px;
  }

  .hero-search button,
  .search-panel button {
    min-height: 46px;
  }

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

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

  .ranking-row {
    grid-template-columns: 40px 96px minmax(0, 1fr);
  }

  .ranking-row > .badge-row {
    grid-column: 2 / -1;
  }

  .ranking-row img {
    width: 96px;
    height: 62px;
  }

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