:root {
  --bg: #f8fcff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.16);
  --brand: #0891b2;
  --brand-dark: #0369a1;
  --brand-soft: #e0f7ff;
  --accent: #2563eb;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f7fbff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.header-inner,
.mobile-nav,
.hero,
.section,
.page-hero,
.filter-panel,
.footer-grid,
.footer-bottom,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.22);
  font-size: 15px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  cursor: pointer;
}

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

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

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

.hero {
  position: relative;
  margin-top: 38px;
  margin-bottom: 64px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(240, 253, 255, 0.96), rgba(239, 246, 255, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.hero::before {
  width: 360px;
  height: 360px;
  right: -130px;
  top: -160px;
  background: rgba(34, 211, 238, 0.22);
}

.hero::after {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -140px;
  background: rgba(37, 99, 235, 0.16);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
  gap: 36px;
  align-items: center;
  padding: 56px;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  max-width: 780px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.btn-primary,
.btn-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.30);
}

.btn-secondary {
  min-height: 48px;
  padding: 0 20px;
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.btn-secondary:hover,
.text-link:hover {
  color: #075985;
  background: #ecfeff;
}

.text-link {
  color: var(--brand-dark);
  font-size: 14px;
}

.section-kicker,
.hero-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  opacity: 0;
  transform: scale(0.98);
  transition: 0.6s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 78%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #ffffff;
}

.hero-slide-content h2 {
  margin: 10px 0;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(620px, 100%);
  padding: 6px 8px 6px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.14);
}

.search-box input {
  flex: 1;
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box button {
  min-height: 44px;
  border: 0;
  padding: 0 18px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.search-box.wide {
  width: 100%;
  box-shadow: none;
}

.section {
  margin-bottom: 64px;
}

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

.section-head h2,
.page-hero h1,
.filter-panel h2,
.detail-title h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-card p,
.detail-title p,
.detail-text p,
.filter-panel p {
  color: var(--muted);
  line-height: 1.85;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.58));
}

.play-mark,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}

.play-mark {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 32px;
  padding: 0 9px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

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

.tag-row span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #075985;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-solid);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 190px;
  overflow: hidden;
}

.category-cover-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.page-hero {
  margin-top: 38px;
  margin-bottom: 34px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(239, 246, 255, 0.92));
  box-shadow: var(--shadow);
}

.filter-panel {
  margin-bottom: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  border-color: transparent;
}

.no-result {
  margin: 18px 0 0;
  font-weight: 800;
}

.detail-shell {
  margin-top: 34px;
  margin-bottom: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

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

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

.player-section,
.detail-text,
.related-section {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.18);
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.42);
  cursor: pointer;
  font-size: 26px;
}

.detail-text h2,
.player-section h2,
.related-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(236, 254, 255, 0.74));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 48px 0 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1020px) {
  .hero-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
  }

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

  .detail-poster img {
    min-height: auto;
    max-height: 620px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand {
    font-size: 20px;
  }

  .hero-layout,
  .page-hero,
  .detail-hero,
  .filter-panel,
  .player-section,
  .detail-text,
  .related-section {
    padding: 22px;
  }

  .hero {
    border-radius: 26px;
  }

  .hero-stage {
    min-height: 420px;
  }

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

  .section-head {
    display: block;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .player-button {
    width: 70px;
    height: 70px;
  }
}
