:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-soft: #dbeafe;
  --glow: rgba(37, 99, 235, 0.35);
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 15% 5%, #dbeafe 0, transparent 28rem), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(30, 64, 175, 0.9));
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.site-header.is-scrolled .brand-mark {
  color: #ffffff;
  background: var(--brand);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  opacity: 0.9;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  opacity: 1;
  color: #bfdbfe;
}

.site-header.is-scrolled .desktop-nav a:hover,
.site-header.is-scrolled .desktop-nav a.active {
  color: var(--brand);
}

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

.nav-search input,
.large-search input,
.section-filter input,
.mobile-panel input {
  border: 1px solid rgba(255, 255, 255, 0.28);
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .nav-search input,
.section-filter input,
.large-search input,
.mobile-panel input {
  color: var(--ink);
  border-color: #cbd5e1;
  background: #ffffff;
}

.nav-search input::placeholder,
.large-search input::placeholder,
.section-filter input::placeholder,
.mobile-panel input::placeholder {
  color: currentColor;
  opacity: 0.62;
}

.nav-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.site-header.is-scrolled .nav-search button,
.large-search button {
  color: #ffffff;
  background: var(--brand);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

main {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(37, 99, 235, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.96) 0%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 170px 0 120px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

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

.eyebrow,
.section-kicker {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-content .eyebrow {
  color: #93c5fd;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 850;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 36px var(--glow);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.section-more {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 54px;
  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.active {
  width: 34px;
  background: #ffffff;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -48px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 8;
}

.intro-strip h2,
.section-title-row h2,
.story-panel h2,
.info-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.intro-strip p,
.category-overview-card p,
.page-hero p,
.story-panel p,
.info-panel dd {
  color: var(--muted);
  line-height: 1.85;
}

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

.section-filter input {
  min-width: 280px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.movie-copy {
  padding: 16px;
}

.movie-meta {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.movie-copy h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.movie-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.movie-copy h3 a:hover {
  color: var(--brand);
}

.movie-desc {
  min-height: 54px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.small-card .movie-copy {
  padding: 12px;
}

.small-card .movie-copy h3 {
  font-size: 15px;
}

.small-card .movie-desc,
.small-card .tag-row {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  text-decoration: none;
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  opacity: 0.7;
  transform: scale(1.08);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
}

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

.category-tile p {
  margin: 8px 0 0;
  color: #dbeafe;
  line-height: 1.65;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #172554, #1d4ed8 48%, #0f172a);
}

.compact-hero {
  min-height: 360px;
  padding: 132px max(16px, calc((100% - 1180px) / 2)) 72px;
}

.compact-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 950;
  letter-spacing: -0.06em;
}

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

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.overview-cover {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 10;
}

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

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-card h2 a {
  color: inherit;
  text-decoration: none;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mini-link-list a {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 750;
}

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

.large-search input {
  flex: 1;
  min-height: 52px;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.04);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.78), rgba(29, 78, 216, 0.28)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), transparent 70%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #bfdbfe;
  font-weight: 750;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.lead-text {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(2, 6, 23, 0.3));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
  font-size: 34px;
  transform: translateX(3px);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
}

.story-panel,
.info-panel {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.story-panel h2 {
  font-size: 28px;
}

.story-panel p {
  margin-top: 14px;
}

.info-panel dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.info-panel div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft);
}

.info-panel div:last-child {
  border-bottom: 0;
}

.info-panel dt {
  color: var(--brand);
  font-weight: 900;
}

.info-panel dd {
  margin: 4px 0 0;
}

.empty-tip {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.empty-tip.show {
  display: block;
}

.site-footer {
  margin-top: 40px;
  color: #dbeafe;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .hot-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 660px;
  }

  .hero-content {
    padding-bottom: 104px;
  }

  .intro-strip,
  .section-title-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-overview-card,
  .detail-main {
    grid-template-columns: 1fr;
  }

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

  .section-filter input {
    width: 100%;
    min-width: 0;
  }

  .large-search {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-slider {
    min-height: 620px;
  }

  .movie-grid,
  .hot-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .compact-hero {
    padding-top: 112px;
  }

  .detail-hero-inner {
    padding-top: 104px;
  }
}
