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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 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 34%, #f8fafc 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: #eff6ff;
  border: 0;
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  border-radius: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

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

.mobile-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #0f172a;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(59, 130, 246, 0.36), transparent 32%),
    radial-gradient(circle at 76% 45%, rgba(6, 182, 212, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.62));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 22px;
}

.hero-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #eff6ff;
  border-radius: 999px;
}

.section-label.light,
.hero-kicker {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

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

.hero-tags,
.detail-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-line span {
  padding: 7px 11px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.2);
}

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

.white-btn {
  color: var(--blue);
  background: #ffffff;
}

.section-action {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

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

.hero-poster {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.42);
}

.hero-poster img,
.poster-link img,
.row-poster img,
.detail-poster img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

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

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

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

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

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

.section-block {
  padding: 64px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head p {
  max-width: 690px;
  margin: 10px 0 0;
  color: var(--muted);
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 12px;
}

.quick-entry a {
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.quick-entry strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
}

.quick-entry span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  color: #ffffff;
  background: #0f172a;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile span,
.category-tile strong,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: inline-flex;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.category-tile p {
  margin: 54px 0 0;
  color: #e0f2fe;
  font-size: 14px;
}

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

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

.movie-card,
.movie-row {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover,
.movie-row:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.14);
  transform: translateY(-4px);
}

.poster-link,
.row-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eff6ff;
}

.poster-link {
  aspect-ratio: 3 / 4.08;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.92);
  border-radius: 999px;
}

.year-badge {
  right: 12px;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.card-body h2,
.row-content h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.row-content h2 a:hover,
.detail-side a:hover {
  color: var(--blue);
}

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

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.card-foot span {
  color: var(--muted);
  font-weight: 800;
}

.gradient-band {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(90deg, var(--blue), var(--cyan));
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0;
}

.band-inner h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.06em;
}

.band-inner p {
  max-width: 660px;
  margin: 10px 0 0;
  color: #dbeafe;
}

.movie-row-list {
  display: grid;
  gap: 18px;
}

.movie-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.row-poster {
  min-height: 210px;
}

.row-content {
  padding: 22px;
}

.row-content h2 {
  font-size: 24px;
}

.tag-line {
  margin-top: 16px;
}

.tag-line span {
  color: var(--blue);
  background: #eff6ff;
  border-color: #dbeafe;
}

.inner-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 28%, rgba(6, 182, 212, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a, #1d4ed8 56%, #06b6d4);
}

.inner-hero .container {
  padding: 82px 0 72px;
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.search-field span {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.search-field input,
.filter-panel select {
  width: 100%;
  min-height: 54px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  outline: 0;
}

.filter-panel select {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 30px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 52px 0 68px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.38);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 840px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-stats span {
  padding: 8px 12px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.player-section {
  padding-bottom: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #020617;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  border: 0;
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: var(--blue);
  font-size: 34px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(255, 255, 255, 0.22);
}

.player-cover strong {
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.56);
  border-radius: 999px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding-bottom: 34px;
}

.detail-main,
.detail-side {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-main p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 52px 0 28px;
}

.footer-grid p {
  max-width: 460px;
  margin: 16px 0 0;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

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

  .nav-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    width: min(310px, 78vw);
  }

  .quick-entry,
  .category-grid.large,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .section-head,
  .band-inner {
    align-items: start;
    flex-direction: column;
  }

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

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

  .detail-poster {
    width: min(260px, 70vw);
  }
}

@media (max-width: 620px) {
  .container,
  .nav-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-track {
    min-height: 720px;
  }

  .hero-content h1,
  .detail-info h1,
  .inner-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-poster {
    display: none;
  }

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

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

  .row-poster {
    min-height: 168px;
  }

  .row-content {
    padding: 16px;
  }

  .row-content h2 {
    font-size: 18px;
  }

  .detail-main,
  .detail-side {
    padding: 20px;
  }
}
