:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #edf7ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f2a56;
  --shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #eef8ff 45%, #ffffff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 234, 254, 0.9);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #334155;
  font-weight: 700;
  font-size: 15px;
}

.site-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #081833;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 88px max(36px, calc((100vw - 1180px) / 2)) 90px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.015);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8, 24, 51, 0.96), rgba(8, 24, 51, 0.76), rgba(8, 24, 51, 0.48)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% 28%;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.34), transparent 62%);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-copy {
  color: white;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p {
  max-width: 700px;
  color: #dbeafe;
  line-height: 1.9;
  font-size: 17px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(96, 165, 250, 0.38);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.28);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.tag-row.big span {
  font-size: 14px;
  padding: 9px 14px;
}

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

.btn,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.search-box button:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.btn.primary,
.search-box button {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.btn.ghost {
  color: #e0f2fe;
  border: 1px solid rgba(224, 242, 254, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--cyan);
}

.search-band,
.section-wrap,
.page-hero,
.breadcrumb,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(219, 234, 254, 0.86);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-head h2,
.page-hero h1,
.player-section h2,
.detail-text h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.search-band p,
.page-hero p,
.category-panel p,
.detail-text p {
  color: var(--muted);
  line-height: 1.85;
}

.search-box,
.filter-bar {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px 16px;
  outline: none;
  color: var(--text);
  font-size: 15px;
}

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

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
}

.section-head.compact h2 {
  font-size: 30px;
}

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

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid var(--line);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.pill small {
  color: var(--cyan);
  font-size: 13px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(219, 234, 254, 0.96);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster-link img {
  transition: transform 0.35s ease;
}

.movie-card:hover img {
  transform: scale(1.04);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(37, 99, 235, 0.88);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3,
.movie-card h4 {
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 18px;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  flex: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid #eff6ff;
  padding-top: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
}

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

.rank-list.large {
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 74px;
  border-radius: 12px;
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta,
.rank-views {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  margin-top: 30px;
  padding: 58px;
  border-radius: 32px;
  color: white;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.46), transparent 36%), linear-gradient(135deg, #0f2a56, #2563eb 58%, #06b6d4);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: #e0f2fe;
  font-size: 17px;
}

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

.category-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.category-title {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  color: #1e40af;
  background: #eff6ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  margin-bottom: 24px;
  align-items: center;
}

.filter-bar.wide input {
  flex: 1 1 auto;
}

.filter-bar select {
  max-width: 200px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px 0 0;
  color: var(--muted);
  font-weight: 700;
  flex-wrap: wrap;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 28px;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-grid span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: #334155;
  font-weight: 700;
}

.player-section {
  margin-top: 34px;
  padding: 30px;
  border-radius: 32px;
  background: #081833;
  color: white;
  box-shadow: var(--shadow);
}

.player-section h2 {
  margin-bottom: 18px;
}

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

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.38), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-mask span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 36px;
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.38);
}

.play-mask strong {
  font-size: 18px;
}

.play-mask.hidden {
  display: none;
}

.detail-text {
  display: grid;
  gap: 14px;
  padding: 42px;
  margin-top: 34px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.detail-text p {
  margin: 0 0 10px;
  font-size: 16px;
}

.site-footer {
  margin-top: 72px;
  padding: 46px max(24px, calc((100vw - 1180px) / 2));
  color: #cbd5e1;
  background: #081833;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-links strong {
  display: block;
  color: #fff;
  margin-bottom: 14px;
}

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

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

.copyright {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
  color: #94a3b8;
}

.hidden-by-filter {
  display: none;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

  .rank-row {
    grid-template-columns: 38px 48px minmax(0, 1fr);
  }

  .rank-meta,
  .rank-views {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-carousel {
    min-height: 620px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-band,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-text {
    padding: 24px;
  }

  .search-box,
  .filter-bar {
    flex-direction: column;
  }

  .pill-grid,
  .movie-grid,
  .movie-grid.small-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    gap: 22px;
  }

  .detail-poster {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
  }
}
