:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 38%, #eef8ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--ink-900);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--ink-500);
  font-size: 0.74rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 650;
}

.desktop-nav a {
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--sky-700);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--sky-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  color: var(--ink-700);
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--sky-700);
  background: var(--sky-50);
}

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

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

.hero {
  position: relative;
  padding: 34px 0 42px;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xl);
  background: #082f49;
  box-shadow: var(--shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.015);
}

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

.hero-image,
.detail-poster,
.poster-art,
.rank-poster {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.58) 44%, rgba(3, 7, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 47, 73, 0.86) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 56px));
  padding: 74px 0 0 56px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #bae6fd;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 18px;
}

.hero-content p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  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-500), var(--sky-700));
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.34);
}

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

.btn-plain {
  color: #e0f2fe;
}

.hero-controls {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-prev,
.hero-next,
.hero-dot {
  pointer-events: auto;
  border: 0;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

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

.hero-panel {
  position: relative;
  z-index: 6;
  width: min(1060px, calc(100% - 48px));
  margin: -34px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.hero-panel strong {
  color: var(--sky-700);
  white-space: nowrap;
}

.hero-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel a,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  font-size: 0.86rem;
  font-weight: 700;
}

.section {
  margin: 54px 0;
}

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

.section-kicker {
  color: var(--sky-700);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h1,
.section h2,
.page-title h1,
.detail-info h1 {
  margin: 0;
  color: var(--ink-900);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section h2,
.page-title h1,
.detail-info h1 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.section-head p,
.page-title p,
.detail-info p,
.copy-block p {
  color: var(--ink-500);
}

.link-more {
  color: var(--sky-700);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #eff9ff);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.14);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.93rem;
}

.site-filter {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, minmax(150px, 0.65fr));
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.site-filter label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-500);
  font-size: 0.84rem;
  font-weight: 800;
}

.site-filter input,
.site-filter select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--ink-900);
  background: #ffffff;
  border: 1px solid var(--sky-100);
  border-radius: 14px;
  outline: none;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: linear-gradient(135deg, #dff4ff, #f7fbff);
}

.poster-art {
  position: absolute;
  inset: 0;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-art {
  transform: scale(1.07);
}

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.88);
  backdrop-filter: blur(10px);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--sky-700);
}

.movie-line {
  display: -webkit-box;
  min-height: 3em;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 0.86rem;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--sky-500);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact .movie-line,
.movie-card-compact .tag-row {
  display: none;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item {
  list-style: none;
}

.rank-link {
  display: grid;
  grid-template-columns: 46px 64px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
}

.rank-poster {
  width: 64px;
  height: 74px;
  border-radius: 14px;
  background-color: var(--sky-50);
}

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

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--ink-500);
  font-size: 0.88rem;
  font-style: normal;
}

.page-title {
  margin: 42px 0 22px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 26rem);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 18px;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--sky-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 30px;
  align-items: stretch;
  margin: 18px 0 44px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  min-height: 520px;
  border-radius: 24px;
  background-color: var(--sky-50);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.detail-info > p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.player-section,
.copy-block,
.related-section {
  margin: 44px 0;
}

.player-section h2,
.copy-block h2,
.related-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.28), transparent 28rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-layer.is-hidden {
  display: none;
}

.play-symbol {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: var(--sky-700);
  border-radius: 50%;
  background: #ffffff;
  font-size: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.copy-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.copy-panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.copy-panel p {
  margin: 0;
  color: var(--ink-700);
}

.empty-state {
  display: none;
  padding: 26px;
  color: var(--ink-500);
  text-align: center;
  border: 1px dashed var(--sky-200);
  border-radius: 20px;
  background: var(--sky-50);
}

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

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

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

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

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

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

  .detail-hero,
  .copy-block {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    min-height: 440px;
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  main,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-stage,
  .hero-track {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 34px);
    padding: 46px 0 0 22px;
  }

  .hero-content p {
    font-size: 0.96rem;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
  }

  .hero-panel {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 22px);
  }

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

  .category-grid,
  .movie-grid,
  .rank-grid,
  .site-filter {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 16px;
  }

  .detail-poster {
    min-height: 420px;
  }

  .page-title {
    padding: 22px;
  }
}
