:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --slate: #111827;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28rem), var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 21px;
  letter-spacing: -0.02em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background: #e0f2fe;
  color: #0369a1;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: #f1f5f9;
  color: var(--blue);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: block;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0f172a;
  border-radius: 99px;
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 32px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.62fr;
  gap: 36px;
  padding: 72px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.22);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.hero-content .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.13);
  color: #f8fafc;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn.subtle {
  background: #ffffff;
  color: #0f172a;
}

.hero-poster {
  position: relative;
  z-index: 2;
  align-self: center;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

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

.hero-control {
  position: absolute;
  left: 72px;
  bottom: 44px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 26px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.search-band,
.section-block,
.page-hero,
.detail-main,
.site-footer .footer-grid,
.footer-bottom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: 28px;
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.search-band h2,
.search-band p {
  margin: 0;
}

.search-band p {
  color: var(--muted);
}

.search-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: min(520px, 100%);
}

.search-tools input,
.search-tools select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  color: var(--ink);
  outline: none;
  font-weight: 700;
}

.search-tools select {
  max-width: 150px;
}

.section-block {
  margin-top: 34px;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  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.25);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 42px;
  padding: 6px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h2 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.card-body h2 a:hover {
  color: var(--blue);
}

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

.compact .card-body p {
  display: none;
}

.dark-panel {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.dark-panel .section-kicker {
  background: rgba(255, 255, 255, 0.13);
  color: #bae6fd;
}

.dark-panel .section-heading a {
  color: #bae6fd;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: #cbd5e1;
  font-size: 13px;
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  padding: 54px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.page-hero.split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: end;
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto 18px;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--blue);
}

.detail-main {
  padding-top: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a, #172554 45%, #164e63);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  font-weight: 800;
}

.tag-row.large span {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.detail-info .btn {
  margin-top: 26px;
}

.player-section,
.detail-section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.player-section h2,
.detail-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72));
  text-align: center;
}

.player-cover[hidden] {
  display: none;
}

.player-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  font-size: 28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.player-cover strong {
  font-size: 20px;
}

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

.footer-grid {
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-grid h2 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 18px;
}

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

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

.footer-links a {
  color: #e0f2fe;
  font-weight: 800;
}

.footer-bottom {
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-card][hidden] {
  display: none;
}

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    display: grid;
    box-shadow: none;
    margin-top: 8px;
  }

  .hero-shell {
    min-height: 760px;
    margin: 16px;
    border-radius: 24px;
  }

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

  .hero-poster {
    max-width: 260px;
  }

  .hero-control {
    left: 34px;
    bottom: 28px;
  }

  .search-band,
  .section-block,
  .page-hero,
  .detail-main {
    margin-left: 16px;
    margin-right: 16px;
  }

  .search-band,
  .page-hero.split,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-band {
    flex-direction: column;
    align-items: stretch;
  }

  .search-tools {
    min-width: 0;
    flex-direction: column;
  }

  .search-tools select {
    max-width: none;
  }

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

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

  .detail-hero {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    padding: 0 14px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .section-block,
  .page-hero,
  .player-section,
  .detail-section {
    padding: 22px;
  }

  .movie-grid,
  .compact-grid {
    gap: 12px;
  }

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