:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --gold: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7fb;
  --line: #fbcfe8;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.16);
  --shadow-strong: 0 28px 70px rgba(219, 39, 119, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #fff7ed 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(251, 207, 232, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
  color: var(--pink);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
}

.header-search button,
.big-search button,
.search-band button {
  border: 0;
  color: #fff;
  font-weight: 750;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--ink);
  background: #fde7f3;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px 22px;
  border-top: 1px solid var(--line);
}

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

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

.mobile-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-panel button {
  border: 0;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  min-height: 640px;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hero-track {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 330px;
  align-items: center;
  gap: 34px;
  padding: 68px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.12);
  opacity: 0.5;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.58), transparent 34%), linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(124, 45, 18, 0.72));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--pink);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffd9ef;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.tag-row a {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 750;
  color: #be185d;
  background: #fce7f3;
}

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

.hero-actions.narrow {
  justify-content: center;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.32);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-ghost.light {
  color: var(--pink-dark);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.35);
}

.btn-primary.full {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-panel {
  min-height: 640px;
  border-radius: 34px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 207, 232, 0.9);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-panel h2,
.side-rank h2,
.footer-links h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 850;
}

.hero-dots {
  position: absolute;
  left: 62px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  background: #fff;
}

.search-band,
.section-wrap,
.page-hero,
.detail-hero,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-band {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff1f8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.search-band p,
.page-hero p,
.detail-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-band form,
.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.search-band input,
.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
}

.section-wrap {
  padding-top: 66px;
}

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

.section-head.compact {
  align-items: center;
}

.section-head a {
  color: var(--pink-dark);
  font-weight: 850;
}

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

.category-card {
  min-height: 150px;
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(135deg, #fff, #fff1f8);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card.large {
  min-height: 190px;
}

.category-card span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--pink-dark);
}

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

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(251, 207, 232, 0.75);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fdf2f8;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-card-compact .poster-link img {
  aspect-ratio: 16 / 11;
}

.card-category,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.card-category {
  right: 12px;
  background: rgba(236, 72, 153, 0.92);
}

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

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

.movie-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

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

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
}

.meta-row span,
.detail-meta span {
  border-radius: 999px;
  background: #f9fafb;
  padding: 4px 8px;
}

.movie-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 30px;
}

.ranking-box,
.latest-box,
.side-rank,
.filter-box,
.detail-content,
.detail-poster {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.ranking-box,
.latest-box,
.side-rank {
  padding: 24px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(251, 207, 232, 0.74);
  transition: transform 0.2s ease, border 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  border-color: var(--pink);
}

.mini-card img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.page-hero,
.detail-hero {
  margin-top: 28px;
  text-align: center;
  border-radius: 34px;
  padding-top: 74px;
  padding-bottom: 74px;
  color: #fff;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(135deg, #be185d, #fb923c);
  box-shadow: var(--shadow-strong);
}

.page-hero .eyebrow {
  color: #ffe4f2;
  margin: 0 auto 12px;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  align-items: start;
}

.filter-box {
  padding: 18px;
  margin-bottom: 22px;
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  outline: 0;
  margin-bottom: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.filter-row strong {
  margin-right: 4px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #9d174d;
  padding: 7px 12px;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.side-rank {
  position: sticky;
  top: 96px;
}

.detail-hero {
  text-align: left;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

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

.player-section {
  padding-top: 28px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 34px;
  background: #030712;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.38);
  cursor: pointer;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030712;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.82));
}

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

.play-core {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.42);
}

.player-cover strong {
  font-size: 24px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.detail-poster,
.detail-content {
  padding: 24px;
}

.detail-poster img {
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(31, 41, 55, 0.18);
}

.detail-content h2 {
  margin: 26px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-content h2:first-of-type {
  margin-top: 22px;
}

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

.large-tags a,
.large-tags span {
  font-size: 14px;
  padding: 8px 13px;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.prev-next a {
  border-radius: 18px;
  padding: 14px;
  color: #9d174d;
  background: #fdf2f8;
  border: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-page {
  display: grid;
  gap: 22px;
}

.big-search {
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  gap: 30px;
}

.footer-brand p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #9d174d;
  background: #fdf2f8;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--muted);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .header-search {
    display: none;
  }

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

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 960px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .hero-poster {
    display: none;
  }

  .search-band,
  .split-section,
  .category-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .side-rank {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .mobile-panel,
  .hero,
  .search-band,
  .section-wrap,
  .page-hero,
  .detail-hero,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero,
  .hero-track {
    min-height: 560px;
  }

  .hero-slide {
    padding: 34px 24px;
  }

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

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

  .hero-dots {
    left: 40px;
  }

  .search-band form,
  .big-search,
  .mobile-panel form {
    border-radius: 22px;
    flex-direction: column;
  }

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

  .page-hero,
  .detail-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .player-shell {
    border-radius: 22px;
  }
}
