:root {
  --bg: #07111f;
  --bg-2: #0d1b2f;
  --card: #ffffff;
  --text: #142033;
  --muted: #607089;
  --line: rgba(20, 32, 51, 0.12);
  --cyan: #22d3ee;
  --blue: #2563eb;
  --deep: #0f172a;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(4, 13, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.25);
  font-size: 18px;
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #67e8f9;
  font-style: normal;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel > a,
.mobile-category-link {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 10px;
  border-radius: 12px;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 25% 18%, rgba(34, 211, 238, 0.38), transparent 34%), linear-gradient(135deg, #020617 0%, #0f2b63 48%, #020617 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72) 42%, rgba(2, 6, 23, 0.58));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 54px;
  padding: 78px 0 62px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #cffafe;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.42);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card-info strong {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}

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

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

.hero-dots button.active {
  width: 36px;
  background: #22d3ee;
}

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

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

.section-kicker {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.section h2,
.page-title h1,
.detail-info h1 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  min-height: 138px;
  padding: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.34);
}

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

.meta-line,
.score-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span:first-child {
  color: var(--blue);
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--blue);
}

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

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.search-panel {
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 14px;
}

.search-row input,
.search-row select {
  height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 15px;
  color: var(--text);
  background: #f8fbff;
  outline: none;
}

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

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-pill {
  border: 0;
  cursor: pointer;
}

.filter-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.36), transparent 34%), linear-gradient(135deg, #020617, #1e3a8a 58%, #020617);
}

.page-title {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 58px;
}

.page-title h1,
.page-title p {
  color: #ffffff;
}

.page-title p {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.28);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.play-panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  text-align: center;
}

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.45);
  font-size: 28px;
}

.player-stage.playing .player-cover {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 32px;
}

.detail-card,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 30px;
}

.detail-info h1 {
  margin-top: 0;
}

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

.detail-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
  font-size: 13px;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #0f172a;
}

.detail-card p {
  color: #475569;
  line-height: 2;
  font-size: 16px;
}

.side-card {
  padding: 18px;
  align-self: start;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 72px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  border-radius: 22px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
}

.empty-state.show {
  display: block;
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-card {
    max-width: 420px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    min-height: 720px;
    gap: 30px;
    padding-top: 46px;
  }

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

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

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

  .section-head {
    display: block;
  }

  .detail-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .page-title {
    padding: 54px 0 42px;
  }
}
