:root {
  --purple-950: #2e1065;
  --purple-900: #4c1d95;
  --purple-700: #7e22ce;
  --purple-600: #9333ea;
  --pink-600: #db2777;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --yellow-500: #eab308;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f7f0ff;
  --paper: #ffffff;
  --line: rgba(126, 34, 206, 0.14);
  --shadow: 0 24px 60px rgba(76, 29, 149, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--purple-700), var(--pink-500), #a855f7);
  box-shadow: 0 18px 45px rgba(126, 34, 206, 0.28);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--purple-700);
  background: linear-gradient(135deg, #fff, #fce7f3);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.28);
}

.brand-name {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #fff, #f5d0fe);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.big-search input {
  border: 0;
  outline: 0;
  min-width: 220px;
  padding: 12px 16px;
  color: #fff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  padding: 12px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 10px 14px;
  color: #fff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  min-height: clamp(580px, 72vh, 760px);
  overflow: hidden;
  background: var(--purple-950);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(236, 72, 153, 0.55), transparent 34%),
    linear-gradient(90deg, rgba(46, 16, 101, 0.94), rgba(76, 29, 149, 0.66), rgba(17, 24, 39, 0.36)),
    linear-gradient(0deg, rgba(46, 16, 101, 0.94), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 52px;
  padding: 90px 0 70px;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f9a8d4;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.card-meta,
.filter-hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.filter-hints span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.glass-btn,
.section-more,
.category-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 18px 36px rgba(219, 39, 119, 0.35);
}

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

.primary-btn:hover,
.glass-btn:hover,
.section-more:hover,
.category-enter:hover {
  transform: translateY(-2px);
}

.hero-card {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

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

.hero-card div {
  padding: 20px;
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.hero-card span,
.hero-card p {
  color: rgba(255, 255, 255, 0.74);
}

.hero-card p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.search-band,
.page-main,
.movie-page {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  margin-top: -64px;
  position: relative;
  z-index: 8;
}

.search-panel {
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background: linear-gradient(135deg, var(--purple-700), var(--pink-600));
  box-shadow: var(--shadow);
}

.search-panel h2,
.search-panel p {
  margin: 0;
}

.search-panel p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.big-search {
  margin-top: 22px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.18);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}

.content-section {
  margin: 64px auto;
}

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

.section-heading h2,
.page-hero h1,
.story-section h2,
.aside-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more,
.category-enter {
  color: var(--purple-700);
  background: #f3e8ff;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(126, 34, 206, 0.18);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.76));
}

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.play-pill {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(236, 72, 153, 0.92);
}

.card-content {
  padding: 18px;
}

.card-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.card-content h2 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.card-content h2 a:hover {
  color: var(--purple-700);
}

.card-content p {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--purple-700);
  background: #f3e8ff;
}

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

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

.category-tile,
.category-card {
  min-height: 160px;
  padding: 24px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.1);
  border: 1px solid var(--line);
}

.category-tile span,
.category-card-title {
  display: block;
  margin-bottom: 10px;
  font-size: 1.28rem;
  font-weight: 900;
}

.category-tile p,
.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.accent-purple { --accent: var(--purple-600); }
.accent-blue { --accent: var(--blue-500); }
.accent-pink { --accent: var(--pink-500); }
.accent-orange { --accent: var(--orange-500); }
.accent-yellow { --accent: var(--yellow-500); }
.accent-cyan { --accent: var(--cyan-500); }
.accent-red { --accent: var(--red-500); }
.accent-green { --accent: var(--green-500); }

.category-tile,
.category-card,
.page-hero {
  position: relative;
  overflow: hidden;
}

.category-tile::before,
.category-card::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent, var(--purple-600));
}

.mini-links {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.mini-links a {
  color: var(--purple-700);
  font-weight: 700;
}

.page-main,
.movie-page {
  padding-top: 34px;
}

.page-hero {
  border-radius: 34px;
  padding: clamp(32px, 6vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(236, 72, 153, 0.5), transparent 36%),
    linear-gradient(135deg, var(--purple-900), var(--purple-700));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 20px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.09);
}

.filter-bar input {
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  outline: 0;
}

.filter-bar input:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

.filter-hints span {
  color: var(--purple-700);
  background: #f3e8ff;
}

.empty-state {
  display: none;
  margin: 34px 0;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #fff;
}

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

[data-card].is-hidden {
  display: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050012;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050012;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.4rem;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 24px 50px rgba(219, 39, 119, 0.35);
}

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

.movie-detail-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #4c1d95, #db2777);
}

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

.detail-info h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 18px;
}

.story-section,
.aside-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(76, 29, 149, 0.09);
}

.story-section h2,
.aside-card h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.story-section p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
  font-size: 1.02rem;
}

.watch-aside {
  position: sticky;
  top: 96px;
  height: fit-content;
}

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

.aside-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.aside-item img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #4c1d95, #db2777);
}

.aside-item strong,
.aside-item em {
  display: block;
}

.aside-item strong {
  color: #111827;
  line-height: 1.35;
}

.aside-item em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.pager-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pager-links a {
  padding: 18px;
  border-radius: 20px;
  color: var(--purple-700);
  font-weight: 800;
  background: #f3e8ff;
}

.related-section {
  margin-top: 52px;
}

.site-footer {
  margin-top: 80px;
  padding: 54px 0 26px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, var(--purple-900), var(--purple-950));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.visually-spaced {
  margin-bottom: 22px;
}

@media (max-width: 1120px) {
  .nav-links,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-card {
    display: none;
  }

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

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

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

  .watch-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 68px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 3rem;
  }

  .hero-control {
    display: none;
  }

  .search-band {
    margin-top: 18px;
  }

  .section-heading,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .wide-grid,
  .ranking-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid,
  .movie-detail-card,
  .pager-links {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 22px;
  }

  .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .compact-card .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .detail-cover {
    max-width: 240px;
  }

  .story-section,
  .aside-card,
  .movie-detail-card {
    padding: 20px;
  }
}
