:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #0f766e;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 36%, #f4f8fb 100%);
}

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

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.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.86);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

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

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a {
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 285px;
}

.nav-search input,
.search-page-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}

.nav-search input:focus,
.search-page-form input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: white;
}

.nav-search button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.35), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #06b6d4 100%);
}

.hero-slider {
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  position: relative;
  padding: 60px 24px;
}

.hero-slide {
  position: absolute;
  inset: 60px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -80px -120px;
  opacity: 0.16;
  filter: blur(12px) saturate(1.2);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 760px;
}

.hero-kicker,
.section-heading span,
.inner-hero-copy span,
.category-card span {
  display: inline-flex;
  width: fit-content;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-content p {
  margin: 0;
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #0f172a;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.26);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.row-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.46);
  transform: rotate(1.5deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 44px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: white;
}

.quick-panel {
  transform: translateY(-28px);
  margin-bottom: -8px;
  padding: 0 24px;
}

.quick-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-inner a {
  display: flex;
  justify-content: center;
  border-radius: 18px;
  padding: 16px 10px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 900;
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.soft-section {
  max-width: none;
  background: linear-gradient(180deg, #f8fbff 0%, #eef8ff 100%);
}

.soft-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading span {
  color: var(--blue);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.section-heading h2,
.inner-hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.section-heading p,
.inner-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
}

.poster-link img {
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-type,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  left: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.76);
}

.rank-badge {
  right: 12px;
  color: #0f172a;
  background: #fef3c7;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-meta,
.ranking-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span + span::before,
.ranking-meta span + span::before,
.detail-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #cbd5e1;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-body h3 a:hover,
.ranking-copy h3 a:hover {
  color: var(--blue);
}

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

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

.category-tile,
.category-card {
  display: grid;
  gap: 12px;
  min-height: 150px;
  border-radius: 24px;
  padding: 22px;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.14);
}

.category-tile strong,
.category-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.category-tile span,
.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--blue);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.category-card strong {
  color: var(--blue);
}

.inner-hero {
  padding: 82px 24px;
  background: radial-gradient(circle at 18% 15%, rgba(6, 182, 212, 0.28), transparent 30%), linear-gradient(135deg, #eff6ff 0%, #f8fafc 58%, #ecfeff 100%);
}

.inner-hero-copy {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.inner-hero-copy span {
  color: var(--blue);
  background: white;
  border-color: #bfdbfe;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 76px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  padding: 14px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.ranking-copy {
  display: grid;
  gap: 7px;
}

.ranking-copy h3 {
  margin: 0;
  font-size: 20px;
}

.ranking-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.row-action {
  min-height: 40px;
  color: white;
  background: var(--teal);
}

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 12px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.filter-tabs button {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--blue);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.filter-tabs button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.empty-state {
  display: none;
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
}

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

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.detail-hero {
  padding: 48px 24px;
  color: white;
  background: radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.32), transparent 28%), linear-gradient(135deg, #020617 0%, #1e3a8a 54%, #0891b2 100%);
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.player-card {
  border-radius: 32px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  z-index: 3;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  color: #0f172a;
  background: white;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.detail-info {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  color: #dbeafe;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  color: #bfdbfe;
}

.detail-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.detail-copy {
  display: grid;
  gap: 18px;
  border-radius: 28px;
  padding: clamp(26px, 5vw, 48px);
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
}

.detail-copy h2 {
  margin: 8px 0 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-top: 34px;
}

.site-footer {
  margin-top: 32px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 55%, #164e63);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 10px 0 0;
  color: #94a3b8;
}

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

.footer-links a:hover {
  color: white;
}

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

  .nav-search {
    margin-left: auto;
  }

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .brand-copy small,
  .nav-search {
    display: none;
  }

  .hero-slider {
    min-height: 760px;
    padding: 40px 16px;
  }

  .hero-slide {
    inset: 40px 16px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
    transform: none;
  }

  .hero-dots {
    left: 16px;
    bottom: 28px;
  }

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

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

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

  .ranking-number,
  .row-action {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .page-section,
  .inner-hero,
  .detail-hero,
  .detail-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .quick-inner {
    grid-template-columns: 1fr;
  }

  .search-page-form {
    flex-direction: column;
  }
}
