:root {
  color-scheme: light;
  --site-rose: #f43f5e;
  --site-pink: #db2777;
  --site-deep: #111827;
  --site-muted: #6b7280;
  --site-soft: #fff1f2;
  --site-card: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7f7 0%, #f9fafb 38%, #ffffff 100%);
  color: var(--site-deep);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(254, 205, 211, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-rose), var(--site-pink));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
  transition: transform 0.3s ease;
}

.site-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.04);
}

.logo-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, #e11d48, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
  color: #374151;
}

.site-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: #e11d48;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input,
.search-panel input,
.filter-input {
  width: 16rem;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: #ffffff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.search-panel input:focus,
.filter-input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.55rem 0.75rem;
  background: #fff1f2;
  color: #be123c;
  font-size: 1.3rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #ffe4e6;
  padding: 1rem;
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.85rem;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.28) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(244, 63, 94, 0.28), transparent 34%), linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 5.8rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 23rem;
  align-items: center;
  gap: 3rem;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  font-size: 0.95rem;
}

.hero-title {
  margin: 1.15rem 0 1rem;
  color: #ffffff;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 44rem;
  color: #f3f4f6;
  font-size: 1.12rem;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.card-tags,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.detail-tags a,
.card-tags span,
.filter-pills button,
.meta-pill {
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.84rem 1.25rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-rose), var(--site-pink));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.3);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.btn-light {
  color: #be123c;
  background: #fff1f2;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-dot,
.hero-arrow {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.is-active {
  width: 2rem;
  background: linear-gradient(90deg, #fb7185, #db2777);
}

.hero-arrow {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-size: 1.4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-kicker {
  color: #e11d48;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 900;
  color: #111827;
}

.section-desc {
  max-width: 50rem;
  margin-top: 0.8rem;
  color: var(--site-muted);
  line-height: 1.8;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 205, 211, 0.68);
  border-radius: 1.35rem;
  background: var(--site-card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 113, 133, 0.68);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

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

.poster-badge {
  position: absolute;
  left: 0.72rem;
  top: 0.72rem;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #db2777);
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.poster-year {
  position: absolute;
  right: 0.72rem;
  bottom: 0.72rem;
  border-radius: 999px;
  padding: 0.28rem 0.54rem;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-body {
  padding: 0.95rem;
}

.card-title {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.card-title a:hover {
  color: #e11d48;
}

.card-desc {
  min-height: 3.2em;
  margin: 0.5rem 0 0.65rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.78rem;
}

.card-tags span,
.meta-pill {
  color: #be123c;
  background: #fff1f2;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  border-radius: 1.5rem;
  padding: 1.35rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -2rem;
  top: -2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  position: relative;
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 0.8rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3.2rem 5.2rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #ffe4e6;
  border-radius: 1.2rem;
  padding: 0.7rem;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  font-weight: 900;
}

.rank-thumb {
  width: 5.2rem;
  aspect-ratio: 2 / 3;
  border-radius: 0.85rem;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  color: #6b7280;
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 2rem;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(0, 0, 0, 0.64));
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 5.2rem;
  height: 5.2rem;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.4);
  font-size: 2rem;
}

.detail-card,
.sidebar-card,
.search-panel {
  border: 1px solid #ffe4e6;
  border-radius: 1.35rem;
  padding: 1.35rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 900;
  color: #111827;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
}

.detail-section h2,
.detail-section h3,
.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 0.75rem;
  color: #111827;
  font-weight: 900;
}

.detail-section p {
  color: #374151;
  line-height: 1.9;
}

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

.mini-list {
  display: grid;
  gap: 0.75rem;
}

.mini-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.mini-item img {
  width: 4rem;
  aspect-ratio: 2 / 3;
  border-radius: 0.8rem;
  object-fit: cover;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid #ffe4e6;
  background: #ffffff;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  margin: 0 0 0.8rem;
  font-weight: 900;
  color: #111827;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  color: #6b7280;
}

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

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-nav,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-content {
    padding-top: 5rem;
  }

  .hero-poster-card {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

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

  .rank-item {
    grid-template-columns: 2.6rem 4.4rem minmax(0, 1fr);
  }

  .rank-item .btn-light {
    grid-column: 2 / -1;
  }

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

  .card-desc {
    min-height: auto;
  }
}
