:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --green: #10b981;
  --red: #dc2626;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.25);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-weight: 650;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #334155;
  background: #f1f5f9;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #e2e8f0;
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  color: #334155;
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--cyan-dark);
  background: #f0fdfa;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 54px;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 48%, #f0fdfa 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -90px;
  background: rgba(20, 184, 166, 0.24);
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -130px;
  bottom: -180px;
  background: rgba(59, 130, 246, 0.18);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 42px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.10);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

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

.hero-lead {
  max-width: 650px;
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 19px;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 28px rgba(6, 182, 212, 0.22);
}

.btn-secondary {
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid #dbeafe;
}

.btn-soft {
  color: var(--cyan-dark);
  background: #ecfeff;
}

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

.hero-tags,
.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.10);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 20px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-poster,
.hero-info {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: relative;
  min-height: 100%;
  background: #cbd5e1;
}

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

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 32px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.96) 45%, rgba(15, 23, 42, 0.95));
}

.hero-info h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-info p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

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

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

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-item {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 20px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #cbd5e1;
}

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

.movie-card:hover img,
.category-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.68));
  opacity: 0.95;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.24);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.movie-card-title a:hover {
  color: var(--cyan-dark);
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.45s ease;
}

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

.category-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 26px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  padding: 72px 0 46px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff, #f0fdfa);
  border-bottom: 1px solid #e2e8f0;
}

.page-hero p {
  max-width: 760px;
  color: #4b5563;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 12px;
  padding: 18px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.compact-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.compact-panel h2 {
  margin: 0 0 14px;
}

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

.compact-row {
  display: grid;
  grid-template-columns: 32px 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-row:hover {
  transform: translateX(3px);
  background: #ecfeff;
}

.compact-row span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  font-weight: 800;
}

.compact-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-row strong {
  display: block;
  color: #0f172a;
  line-height: 1.3;
}

.compact-row em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}

.detail-wrap {
  background: linear-gradient(180deg, #f8fafc, #ffffff 35%);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 30px;
  align-items: start;
  padding: 46px 0 34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #ffffff;
  overflow: hidden;
  background: #020617;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08);
}

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

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

.player-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.32);
  font-size: 34px;
}

.player-title {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 24px;
  text-align: left;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.15;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.detail-info-card,
.content-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-info-card {
  padding: 26px;
}

.detail-title {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 54px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-summary {
  margin: 18px 0 20px;
  color: #475569;
  font-size: 17px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-bottom: 72px;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

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

.site-footer {
  color: #475569;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
  padding: 44px 0;
}

.footer-grid p {
  max-width: 620px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 20px;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
}

.footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid #dbe3ee;
  color: #64748b;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  box-shadow: var(--shadow-soft);
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

  .hero-stage {
    min-height: 500px;
  }

  .feature-strip,
  .movie-grid,
  .movie-grid.small,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-panel {
    position: static;
  }
}

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

  .main-nav {
    display: none;
  }

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

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

  .hero {
    padding-top: 50px;
  }

  .hero-layout {
    gap: 30px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster img,
  .hero-info,
  .hero-stage {
    min-height: 420px;
  }

  .hero-info {
    min-height: 330px;
  }

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

  .section-head {
    display: block;
  }

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

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

@media (max-width: 560px) {
  .brand {
    font-size: 22px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title {
    letter-spacing: -0.04em;
  }

  .feature-strip,
  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 780px;
  }

  .hero-controls,
  .hero-dots {
    bottom: 14px;
  }

  .detail-hero {
    padding-top: 26px;
  }

  .content-card,
  .detail-info-card {
    padding: 22px;
  }
}
