:root {
  --sky: #0ea5e9;
  --sky-deep: #0284c7;
  --sky-soft: #e0f2fe;
  --blue-soft: #dbeafe;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(14, 116, 144, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 46%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

img,
video {
  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.86);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), #2563eb);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.32);
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 430px;
  margin-left: auto;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  color: #0f172a;
  background: transparent;
}

.header-search button {
  border: 0;
  color: #ffffff;
  background: var(--sky);
  padding: 11px 18px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: #334155;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sky-deep);
  background: var(--sky-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #e0f2fe;
}

.stage {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.stage-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.stage-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.stage-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(14, 165, 233, 0.35), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.64) 42%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 50%);
}

.stage-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 74px;
}

.stage-copy {
  max-width: 760px;
  color: #ffffff;
}

.stage-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.88);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.stage-copy h1,
.stage-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.stage-copy p {
  max-width: 690px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: 19px;
}

.stage-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  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(--sky), #2563eb);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.32);
}

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

.stage-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
}

.stage-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.stage-arrow.prev {
  left: 24px;
}

.stage-arrow.next {
  right: 24px;
}

.stage-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.stage-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.stage-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

main {
  display: block;
}

.content-wrap {
  padding: 56px 0 76px;
}

.section {
  margin-bottom: 62px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.2;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-link {
  color: var(--sky-deep);
  font-weight: 900;
}

.page-title {
  max-width: 850px;
  margin-bottom: 34px;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 12px;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 26px 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-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

.poster-wrap img,
.wide-poster img,
.rank-cover img,
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.9);
  border-radius: 50%;
  box-shadow: 0 16px 26px rgba(14, 165, 233, 0.38);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play,
.wide-card:hover .poster-play,
.related-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-meta span,
.tag-row span,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-body strong {
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.movie-line {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.feature-grid .movie-card {
  position: relative;
  min-height: 360px;
}

.feature-grid .poster-wrap {
  flex: 1;
  aspect-ratio: auto;
}

.feature-grid .movie-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.feature-grid .movie-body strong,
.feature-grid .movie-line {
  color: #ffffff;
}

.scroller {
  overflow-x: auto;
  padding: 4px 4px 18px;
}

.scroller-track {
  display: flex;
  gap: 22px;
  width: max-content;
}

.scroller .movie-card {
  width: 292px;
}

.panel-soft {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

.wide-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.wide-poster {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: #dbeafe;
}

.wide-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.wide-body strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.25;
}

.wide-body span {
  color: #64748b;
}

.wide-body em {
  color: #64748b;
  border-left: 4px solid #7dd3fc;
  padding-left: 14px;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px 180px;
  gap: 14px;
  padding: 18px;
  margin: 24px 0 34px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: #0f172a;
  background: #f8fafc;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.empty-message {
  display: none;
  padding: 24px;
  color: #64748b;
  text-align: center;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

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

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

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  padding: 18px 20px;
  color: #0f172a;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.category-link:hover {
  color: var(--sky-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-link span:last-child {
  color: var(--sky);
  font-size: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 140px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-number {
  color: var(--sky-deep);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #dbeafe;
}

.rank-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.rank-copy strong {
  color: #0f172a;
  font-size: 20px;
}

.rank-copy span,
.rank-copy em {
  color: #64748b;
}

.detail-hero {
  padding: 34px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.35);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.32), transparent 28%),
    rgba(2, 6, 23, 0.62);
  cursor: pointer;
}

.video-overlay.is-hidden {
  display: none;
}

.video-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), #2563eb);
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.4);
  font-size: 30px;
}

.video-overlay strong {
  font-size: 24px;
}

.video-overlay em {
  color: #dbeafe;
  font-style: normal;
}

.video-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: #dbeafe;
  font-size: 14px;
}

.detail-title {
  padding: 28px 0 20px;
}

.detail-title h1 {
  font-size: clamp(32px, 4vw, 50px);
  margin-bottom: 14px;
}

.detail-title p {
  margin: 0;
  color: #475569;
  font-size: 18px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-section {
  margin-top: 22px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

.detail-section h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 26px;
  border-radius: 999px;
  background: var(--sky);
}

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

.review-box {
  border-left: 4px solid #7dd3fc;
  padding-left: 18px;
  color: #475569;
  font-style: italic;
}

.side-panel {
  position: sticky;
  top: 100px;
}

.related-list {
  display: grid;
  gap: 16px;
}

.related-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.related-thumb {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  background: #dbeafe;
}

.related-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.related-copy strong {
  color: #0f172a;
  line-height: 1.35;
}

.related-copy span {
  color: #64748b;
  font-size: 13px;
}

.detail-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.detail-switch a {
  padding: 16px;
  border-radius: 18px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: #64748b;
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .nav-links.is-open {
    display: flex;
  }

  .stage {
    height: 560px;
  }

  .stage-content {
    padding-bottom: 66px;
  }

  .stage-copy p {
    font-size: 16px;
  }

  .stage-arrow {
    display: none;
  }

  .content-wrap {
    padding-top: 38px;
  }

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

  .wide-card,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .wide-poster,
  .rank-cover {
    min-height: 180px;
  }

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

  .panel-soft {
    padding: 22px;
    border-radius: 24px;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .related-card,
  .detail-switch {
    grid-template-columns: 1fr;
  }
}
