:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 48%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 3px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 20px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.35), transparent 28%), linear-gradient(135deg, #0f172a, #0b3a78 48%, #0891b2);
}

.hero-inner {
  max-width: 1180px;
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 20px;
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) 420px;
  gap: 44px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.45s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  color: #a5f3fc;
}

.hero-summary {
  max-width: 710px;
  color: #dbeafe;
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.movie-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.hero-poster-card {
  position: absolute;
  left: -24px;
  right: 24px;
  bottom: 28px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-poster-card p {
  margin: 0;
  color: #cbd5e1;
}

.hero-dots {
  position: absolute;
  left: 20px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 64px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-title h2::before,
.section-title h1::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 32px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: -5px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.section-title p,
.page-intro {
  color: var(--muted);
  margin: 8px 0 0;
}

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

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

.category-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  position: relative;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

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

.category-thumbs {
  display: flex;
  margin-top: 18px;
}

.category-thumbs img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  margin-right: -12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.accent-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.accent-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.accent-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.accent-indigo { background: linear-gradient(135deg, #4338ca, #38bdf8); }
.accent-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.accent-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.accent-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.accent-green { background: linear-gradient(135deg, #16a34a, #84cc16); }
.accent-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.accent-amber { background: linear-gradient(135deg, #d97706, #facc15); }
.accent-violet { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.accent-slate { background: linear-gradient(135deg, #334155, #0ea5e9); }

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

.movie-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0);
  transition: 0.2s ease;
}

.movie-card:hover .poster-overlay {
  background: rgba(15, 23, 42, 0.36);
}

.poster-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: #fff;
  opacity: 0;
  transform: scale(0.88);
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  background: rgba(37, 99, 235, 0.92);
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  transition: 0.2s ease;
}

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

.movie-card-body p {
  height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
}

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

.movie-meta-line span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  outline: none;
}

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

.page-hero {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.ranking-row img {
  width: 86px;
  height: 114px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.ranking-info span {
  color: var(--blue);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  color: #93c5fd;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.watch-zone {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 30%), #020617;
  padding: 34px 0 54px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  z-index: 3;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.watch-info {
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-info h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.watch-info .lead {
  color: #cbd5e1;
  margin: 0 0 18px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.info-list strong {
  color: #fff;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

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

.hidden-by-filter {
  display: none !important;
}

.empty-tip {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 22px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: 48px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  gap: 24px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: #94a3b8;
}

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

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

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

.footer-copy {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

  .hero-poster img {
    height: 420px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-inner {
    min-height: auto;
    padding: 46px 20px 74px;
  }

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

  .hero-poster img {
    height: 330px;
    border-radius: 24px;
  }

  .hero-poster-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .hero-dots {
    bottom: 24px;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 42px 72px 1fr;
  }

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

@media (max-width: 480px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .movie-grid {
    gap: 12px;
  }

  .movie-card-body h3 {
    font-size: 14px;
  }

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