* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --purple: #7c3aed;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 52%, #7c3aed 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.top-nav {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.page-search input,
.filter-panel select {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.nav-search button,
.mobile-search button,
.page-search button,
.primary-btn,
.secondary-btn,
.player-start {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button,
.mobile-search button,
.primary-btn,
.player-start {
  color: #2563eb;
  background: #fff;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.16);
}

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

.nav-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.player-start:hover {
  transform: translateY(-2px) scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a,
.mobile-menu a {
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.mobile-menu a {
  color: #fff;
  font-weight: 700;
  padding: 8px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #7c3aed 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.35;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero::before {
  top: 48px;
  left: 6%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.62);
}

.hero::after {
  right: 7%;
  bottom: 40px;
  width: 360px;
  height: 360px;
  background: rgba(103, 232, 249, 0.55);
  animation-delay: 1.2s;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 64, 175, 0.56) 45%, rgba(124, 58, 237, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 40px;
  color: #fff;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.hero h1 span {
  color: #a5f3fc;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
}

.hero-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.hero-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.hero-card div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

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

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

.main-wrap,
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}

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

.section-title {
  margin: 0;
  color: #1e293b;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(37, 99, 235, 0.22);
}

.card-poster {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.58));
}

.card-type,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-type,
.rank-badge {
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-type {
  left: 14px;
  background: rgba(37, 99, 235, 0.88);
}

.rank-badge {
  right: 14px;
  background: rgba(249, 115, 22, 0.92);
}

.card-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.card-link:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: 19px;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.feature-band {
  background: linear-gradient(90deg, #f3e8ff 0%, #fce7f3 52%, #ffedd5 100%);
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb 55%, #7c3aed);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.page-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #075985;
  background: #e0f2fe;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.result-line {
  color: #64748b;
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(90deg, #0891b2, #2563eb 55%, #1d4ed8);
  color: #fff;
}

.page-hero .section-wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.04em;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.62), rgba(124, 58, 237, 0.34));
}

.detail-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 36px;
  color: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.detail-summary {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.detail-side {
  display: grid;
  align-content: end;
}

.score-card {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.score-card strong {
  display: block;
  font-size: 56px;
  line-height: 1;
}

.score-card span {
  color: rgba(255, 255, 255, 0.82);
}

.player-section {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.movie-player {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.72));
}

.player-start {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2563eb;
  font-size: 18px;
}

.movie-player.is-ready .player-poster {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.content-card,
.side-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

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

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

.mini-card:hover {
  transform: translateX(4px);
  background: #eff6ff;
}

.mini-thumb {
  height: 58px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
}

.mini-card strong {
  display: block;
  color: #1e293b;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.8;
}

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.72);
}

.hidden-card {
  display: none;
}

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

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

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

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

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

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

@media (max-width: 620px) {
  .top-nav {
    height: 60px;
    padding: 0 14px;
  }

  .brand {
    font-size: 19px;
  }

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

  .hero-content {
    padding-top: 54px;
    padding-bottom: 78px;
  }

  .hero-card dl,
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .page-search {
    grid-template-columns: 1fr;
  }

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

  .main-wrap,
  .section-wrap {
    padding: 44px 16px;
  }

  .detail-hero-inner {
    padding: 52px 16px;
  }
}
