:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --soft: rgba(37, 99, 235, 0.11);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(124, 58, 237, 0.12), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

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

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

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--brand);
}

.hero {
  position: relative;
  max-width: 1240px;
  min-height: 560px;
  margin: 28px auto 0;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #7c3aed 100%);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -90px;
  top: -120px;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: -120px;
  background: rgba(34, 211, 238, 0.2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 34px;
  padding: 64px;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-soft,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-line {
  border: 1px solid var(--line);
  color: var(--brand);
  background: #fff;
}

.btn-primary:hover,
.btn-soft:hover,
.btn-line:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  height: 100%;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.62), transparent 55%);
}

.hero-poster-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 36px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

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

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

.search-panel {
  max-width: 1160px;
  margin: -42px auto 42px;
  position: relative;
  z-index: 20;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 14px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.content-section,
.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px;
}

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

.section-kicker,
.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.section-head h2,
.page-headline h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

.movie-card,
.category-card,
.wide-card,
.detail-panel,
.player-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.16));
}

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

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.score-pill {
  right: 12px;
  top: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta a {
  color: var(--brand);
}

.movie-card h3,
.wide-card h3 {
  margin: 8px 0 8px;
  line-height: 1.25;
  font-size: 18px;
}

.movie-card p,
.wide-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

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

.wide-card {
  display: grid;
  grid-template-columns: auto 118px 1fr;
  gap: 18px;
  padding: 14px;
  align-items: center;
}

.wide-poster {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.wide-poster img {
  height: 100%;
}

.list-rank {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.wide-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 12px;
}

.wide-foot a {
  color: var(--brand);
}

.breadcrumb {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 26px;
}

.player-panel {
  overflow: hidden;
  background: #020617;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18)), var(--poster) center / cover;
  color: #fff;
  display: grid;
  place-items: center;
}

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

.play-button-core {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  padding-left: 5px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
}

.detail-panel p {
  color: #475569;
}

.text-block h2 {
  margin-top: 0;
}

.text-block {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px;
}

.text-block-inner {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.text-block-inner p {
  color: #475569;
  font-size: 17px;
}

.site-footer {
  margin-top: 44px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.brand-footer {
  color: #fff;
  margin-bottom: 12px;
}

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

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

.empty-filter {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero {
    min-height: 680px;
    margin: 18px 14px 0;
  }

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

  .hero-visual {
    max-width: 280px;
  }

  .search-panel {
    margin: -28px 14px 28px;
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

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

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

  .nav-link {
    padding: 12px;
    border-radius: 14px;
  }

  .nav-link:hover {
    background: var(--soft);
  }

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

  .hero {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-dots {
    left: 28px;
    bottom: 22px;
  }

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

  .wide-card {
    grid-template-columns: 72px 1fr;
  }

  .list-rank {
    grid-row: 1;
  }

  .wide-poster {
    display: none;
  }

  .section-head,
  .page-headline {
    display: block;
  }

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

@media (max-width: 460px) {
  .nav-wrap {
    padding: 0 14px;
  }

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

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

  .movie-card {
    display: grid;
    grid-template-columns: 112px 1fr;
  }

  .poster-link {
    aspect-ratio: 2 / 3;
    height: 100%;
  }

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