* {
  box-sizing: border-box;
}

:root {
  --cherry-pink: #ffb7c5;
  --deep-pink: #ec4899;
  --rose: #fb7185;
  --snow-white: #ffffff;
  --tender-green: #a8d5ba;
  --light-yellow: #fff4e6;
  --soft-pink: #ffe4e9;
  --ink: #1f2937;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 20px 45px rgba(255, 183, 197, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe4e9 48%, #ffd4e0 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #ffe4e9;
}

::-webkit-scrollbar-thumb {
  background: #ffb7c5;
  border-radius: 999px;
}

.glass-effect {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(244, 114, 182, 0.14);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--deep-pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-pink), var(--rose));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.24);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a,
.footer-cats a {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.24s ease, background 0.24s ease;
}

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

.top-search,
.mobile-search,
.large-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.large-search input,
.inline-filter input {
  min-width: 0;
  border: 2px solid rgba(244, 114, 182, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border 0.24s ease, box-shadow 0.24s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.inline-filter input:focus {
  border-color: var(--deep-pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.top-search button,
.mobile-search button,
.large-search button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--deep-pink), var(--rose));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
}

.ghost-btn,
.quick-links a,
.section-title-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--deep-pink);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(244, 114, 182, 0.24);
  transition: transform 0.24s ease, background 0.24s ease;
}

.ghost-btn:hover,
.quick-links a:hover,
.section-title-row > a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.ghost-btn.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  color: var(--deep-pink);
  background: rgba(255, 255, 255, 0.66);
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.mobile-panel.is-open {
  display: block;
  animation: fadeIn 0.24s ease both;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel a {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 228, 233, 0.52);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.72s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 244, 230, 0.96), rgba(255, 228, 233, 0.84), rgba(236, 72, 153, 0.25));
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, #ffe4e9, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 42px;
  align-items: center;
  padding: 64px 0 76px;
}

.hero-copy {
  max-width: 720px;
  border-radius: 30px;
  padding: 38px;
  animation: fadeIn 0.5s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--deep-pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.quick-copy p,
.category-overview-head p,
.text-card p,
.detail-copy .lead {
  color: #4b5563;
  line-height: 1.8;
}

.hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 18px;
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.2;
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 900;
  background: rgba(236, 72, 153, 0.9);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--deep-pink);
  font-size: 36px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.76);
  transform: translateY(-50%);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--deep-pink);
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: -44px;
  position: relative;
  z-index: 6;
  border-radius: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.quick-copy h2,
.section-title-row h2,
.category-overview-head h2,
.text-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

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

.section-block {
  padding: 58px 0 0;
}

.section-title-row,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 28px rgba(244, 114, 182, 0.12);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 183, 197, 0.42);
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent);
}

.poster-badge,
.poster-score,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(236, 72, 153, 0.88);
}

.poster-badge {
  top: 10px;
  left: 10px;
}

.poster-score {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  right: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--deep-pink);
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-body {
  padding: 15px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta a {
  color: var(--deep-pink);
}

.movie-body h3 {
  margin: 9px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-body p {
  min-height: 44px;
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  background: rgba(252, 231, 243, 0.92);
}

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

.category-pill {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 228, 233, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.category-pill strong {
  font-size: 22px;
  color: var(--deep-pink);
}

.category-pill span {
  color: #4b5563;
  line-height: 1.6;
}

.page-hero {
  margin-top: 34px;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "✦";
  position: absolute;
  right: 34px;
  bottom: -30px;
  color: rgba(236, 72, 153, 0.12);
  font-size: 180px;
  line-height: 1;
}

.category-overview-list {
  display: grid;
  gap: 28px;
  padding-top: 44px;
}

.category-overview-card {
  border-radius: 30px;
  padding: 28px;
}

.ranking-grid .movie-card:nth-child(-n + 3) {
  background: rgba(255, 255, 255, 0.86);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 40px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(110deg, rgba(255, 244, 230, 0.98), rgba(255, 228, 233, 0.86)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #ffe4e9 0%, transparent 55%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

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

.detail-main {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 32px;
  border-radius: 30px;
  padding: clamp(20px, 4vw, 36px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4.12;
  box-shadow: var(--shadow);
}

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

.detail-copy .lead {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 18px;
}

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

.detail-meta-list div {
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.detail-meta-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-meta-list a {
  color: var(--deep-pink);
}

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

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

.player-card {
  border-radius: 30px;
  padding: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.26));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--deep-pink);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.player-overlay strong {
  width: min(680px, calc(100% - 36px));
  font-size: clamp(20px, 4vw, 36px);
  line-height: 1.25;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 34px;
}

.text-card {
  border-radius: 28px;
  padding: 28px;
}

.text-card p {
  margin-top: 12px;
}

.large-search {
  max-width: 760px;
  margin-top: 22px;
}

.large-search input {
  flex: 1 1 auto;
  padding: 14px 18px;
}

.inline-filter input {
  width: min(280px, 56vw);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  border-radius: 20px;
  padding: 22px;
  color: #9f1239;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

body.has-empty-results .empty-state {
  display: block;
}

.site-footer {
  padding: 58px 0 28px;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 30px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 1.2fr;
  gap: 24px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: start;
}

.copyright {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.cherry-blossom {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50% 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  background: radial-gradient(circle, #ffb7c5, #ff8fb0);
  animation: fall linear forwards;
}

.cherry-blossom::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 5px;
  width: 10px;
  height: 10px;
  border-radius: 0 50%;
  background: radial-gradient(circle, #ffb7c5, #ff8fb0);
}

@keyframes fall {
  from {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }

  to {
    transform: translate3d(var(--drift), 112vh, 0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: inline-grid;
  }

  .top-search {
    margin-left: auto;
  }

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

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

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
  }

  .top-search {
    display: none;
  }

  .brand {
    font-size: 21px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 700px;
    padding-top: 40px;
    gap: 24px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    justify-self: center;
  }

  .quick-panel,
  .section-title-row,
  .category-overview-head,
  .detail-main,
  .footer-inner,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .category-overview-head {
    align-items: flex-start;
  }

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

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

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

@media (max-width: 560px) {
  .max-wrap,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .home-hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-control {
    display: none;
  }

  .quick-panel {
    margin-top: -28px;
    padding: 20px;
  }

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

  .movie-body {
    padding: 12px;
  }

  .movie-body h3 {
    font-size: 15px;
  }

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

  .detail-main,
  .category-overview-card,
  .page-hero,
  .text-card {
    border-radius: 22px;
    padding: 20px;
  }

  .detail-meta-list {
    grid-template-columns: 1fr;
  }

  .large-search,
  .inline-filter {
    width: 100%;
  }

  .large-search input,
  .inline-filter input {
    width: 100%;
  }
}
