:root {
  --pink: #ff7ab6;
  --blue: #7bb7ff;
  --purple: #a78bfa;
  --mint: #72e6c6;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f8fbff;
  --line: #e8eef7;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 48px rgba(65, 73, 92, 0.12);
  --shadow-hover: 0 24px 70px rgba(64, 91, 140, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 182, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(123, 183, 255, 0.22), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 44%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 238, 247, 0.88);
  box-shadow: 0 8px 26px rgba(78, 91, 124, 0.08);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 28px rgba(255, 122, 182, 0.28);
}

.brand-name {
  font-size: clamp(1.2rem, 2vw, 1.58rem);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-nav input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #dbe4f0;
  outline: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 122, 182, 0.16);
}

.header-search button,
.mobile-nav button,
.primary-button,
.secondary-button,
.ghost-button,
.player-start-button,
.filter-reset {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button,
.player-start-button,
.filter-reset {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 26px rgba(123, 183, 255, 0.28);
}

.header-search button {
  padding: 10px 16px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
}

.secondary-button {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 122, 182, 0.22);
}

.ghost-button {
  color: #2563eb;
  background: rgba(123, 183, 255, 0.12);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.player-start-button:hover,
.filter-reset:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(123, 183, 255, 0.12);
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: #334155;
  margin: 5px 0;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(232, 238, 247, 0.78);
}

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

.mobile-nav a {
  padding: 10px 4px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-nav button {
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 42%, rgba(255, 255, 255, 0.34) 100%),
    var(--hero-image) center / cover no-repeat;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 122, 182, 0.2), transparent 24rem),
    radial-gradient(circle at 80% 22%, rgba(123, 183, 255, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24));
  backdrop-filter: blur(1px);
}

.hero-content {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 46px;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #c026d3;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 122, 182, 0.22);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 122, 182, 0.12);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.35rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 820px;
}

.gradient-text {
  background: linear-gradient(90deg, #ff5ca8, #5aa9ff 62%, #8b5cf6);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 700px;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.83rem;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 228, 240, 0.82);
}

.hero-panel {
  position: relative;
  align-self: center;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.22), rgba(123, 183, 255, 0.18));
  box-shadow: 0 30px 90px rgba(69, 85, 120, 0.22);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-stats {
  position: absolute;
  left: -28px;
  bottom: 26px;
  width: min(260px, 70%);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.62);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.section {
  padding: 54px 0;
}

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

.section-kicker {
  color: var(--pink);
  font-weight: 850;
  margin: 0 0 6px;
}

.section h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-header p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 40px rgba(78, 91, 124, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 122, 182, 0.36);
  box-shadow: var(--shadow-hover);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 2.85;
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.12), rgba(123, 183, 255, 0.12));
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

.card-meta {
  display: flex;
  gap: 8px;
  color: #7c3aed;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.movie-card h3 {
  min-height: 2.75em;
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.rank-box,
.filter-card,
.info-card,
.detail-panel,
.category-card,
.search-empty {
  border-radius: 26px;
  border: 1px solid rgba(219, 228, 240, 0.92);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(78, 91, 124, 0.08);
}

.rank-box {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.rank-box h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.86);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 122, 182, 0.08);
}

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

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

.rank-views {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.category-card {
  padding: 20px;
  overflow: hidden;
  position: relative;
  min-height: 170px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.18), rgba(123, 183, 255, 0.18));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

.category-card strong {
  color: #7c3aed;
}

.page-hero {
  padding: 58px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.filter-card {
  padding: 18px;
  margin-bottom: 24px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 150px auto;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 14px;
}

.filter-reset {
  min-height: 44px;
  padding: 0 16px;
}

.result-count {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pagination-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.detail-hero {
  padding: 38px 0 50px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-cover {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.16), rgba(123, 183, 255, 0.16));
}

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

.detail-title {
  padding: 10px 0 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.info-card {
  padding: 16px;
}

.info-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.info-card strong {
  font-size: 1rem;
}

.player-panel {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72)),
    var(--poster) center / cover no-repeat;
}

.player-overlay.is-hidden {
  display: none;
}

.player-start-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 1.02rem;
}

.player-start-button::before {
  content: "▶";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.player-caption {
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.detail-panel {
  padding: 22px;
  margin-top: 24px;
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.detail-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

.related-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(219, 228, 240, 0.86);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.22s ease;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
}

.related-card strong {
  display: block;
  padding: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(219, 228, 240, 0.9);
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.06), rgba(123, 183, 255, 0.08));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a:hover {
  color: var(--pink);
}

.search-empty {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

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

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

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

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

  .rank-box,
  .detail-cover {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 64px;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 46px 0 78px;
  }

  .hero-stats {
    left: 14px;
    right: 14px;
    width: auto;
  }

  .section {
    padding: 38px 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

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

  .filter-bar,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card p {
    min-height: auto;
  }

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

@media (max-width: 430px) {
  .card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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