:root {
  --cherry-pink: #ffb7c5;
  --rose: #ec4899;
  --rose-deep: #be185d;
  --soft-pink: #ffe4e9;
  --light-yellow: #fff4e6;
  --tender-green: #a8d5ba;
  --ink: #2f2430;
  --muted: #6b5d67;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(255, 255, 255, 0.45);
  --shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

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:
    radial-gradient(circle at 8% 12%, rgba(255, 183, 197, 0.52), transparent 32rem),
    radial-gradient(circle at 92% 20%, rgba(168, 213, 186, 0.36), transparent 30rem),
    linear-gradient(135deg, #fff4e6 0%, #ffe4e9 48%, #ffd4e0 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.glass-effect,
.site-header,
.site-footer,
.movie-card,
.category-card,
.category-overview-card,
.detail-hero,
.filter-panel,
.detail-content {
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

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

.petal-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

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

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

@keyframes fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 0.78;
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

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

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-width: 0 0 1px;
  border-radius: 0;
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #ec4899, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ec4899;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.24);
}

.logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
  transform: rotate(12deg);
}

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

.nav-link {
  color: #5f5360;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

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

.nav-search input,
.mobile-panel input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 2px solid rgba(255, 183, 197, 0.68);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.nav-search button,
.search-page-form button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.nav-search button,
.primary-button,
.search-page-form button {
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #fb7185);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #be185d;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
  animation: fadeIn 0.28s ease both;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
}

.mobile-panel a:hover {
  background: #ffe4e9;
  color: var(--rose);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero-carousel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.hero-frame {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(93, 24, 61, 0.28);
  background: #1f1320;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: center;
  padding: 56px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 13, 27, 0.9) 0%, rgba(24, 13, 27, 0.68) 45%, rgba(24, 13, 27, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 52%);
}

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

.hero-eyebrow,
.section-title p,
.page-hero p,
.detail-eyebrow,
.rank-hero-inner p {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta-grid,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.detail-meta-grid span,
.tag-cloud span,
.movie-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #8a1f55;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-poster {
  align-self: center;
  border: 6px solid rgba(255, 255, 255, 0.42);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.34);
}

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

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.hero-heading {
  border-radius: 36px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.hero-heading > p {
  margin: 0 0 12px;
  color: var(--rose);
  font-weight: 900;
}

.hero-search-card {
  margin-top: 24px;
}

.hero-search-card form,
.search-page-form {
  display: flex;
  gap: 10px;
}

.hero-search-card input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 2px solid rgba(255, 183, 197, 0.72);
  border-radius: 999px;
  padding: 14px 16px;
  outline: none;
}

.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, #ec4899, #fb7185);
  cursor: pointer;
}

.hero-category-links,
.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-category-links a,
.page-hero-links a,
.category-samples a,
.overview-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #8a1f55;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 13px;
}

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

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

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.section-title a {
  color: var(--rose);
  font-weight: 900;
}

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

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

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

.movie-card {
  border-radius: 26px;
  overflow: hidden;
}

.poster-link {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: rgba(47, 36, 48, 0.12);
}

.movie-card-compact .poster-link {
  height: 240px;
}

.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-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #fb7185);
  font-size: 12px;
}

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

.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

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

.movie-meta {
  margin-top: 14px;
  color: #8d7c87;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card,
.category-overview-card {
  border-radius: 26px;
  padding: 24px;
}

.category-card h2,
.category-overview-card h2 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.category-card p,
.category-overview-card p,
.page-desc {
  color: var(--muted);
  line-height: 1.75;
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.18);
}

.category-samples,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ranking-list,
.rank-plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.ranking-list a,
.rank-plain-list a {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.ranking-list a {
  grid-template-columns: 48px 58px minmax(0, 1fr);
}

.rank-plain-list a {
  grid-template-columns: 56px minmax(0, 1fr);
}

.ranking-list a:hover,
.rank-plain-list a:hover {
  color: var(--rose);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.14);
}

.ranking-list span,
.rank-plain-list span {
  font-size: 22px;
  font-weight: 900;
  color: var(--rose);
}

.ranking-list img {
  width: 58px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-list strong,
.rank-plain-list strong {
  display: block;
  margin-bottom: 4px;
}

.ranking-list em,
.rank-plain-list em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 34px;
  padding: 42px;
}

.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.filter-panel {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.filter-panel input {
  flex: 1;
  min-width: 0;
}

.filter-panel select {
  min-width: 160px;
}

.rank-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 460px;
  margin: 28px auto 0;
  border-radius: 36px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(31, 19, 32, 0.9), rgba(31, 19, 32, 0.28)), var(--hero-image);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  box-shadow: 0 32px 80px rgba(93, 24, 61, 0.28);
}

.rank-hero-inner {
  max-width: 760px;
  padding: 54px;
  color: #fff;
}

.rank-hero-inner h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
}

.rank-hero-inner p:not(:first-child) {
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

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

.detail-one-line {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-section {
  margin-top: 42px;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 32px;
  background: #111;
  box-shadow: 0 36px 90px rgba(31, 19, 32, 0.34);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  align-content: center;
  padding: 30px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  text-align: center;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.player-overlay strong {
  font-size: clamp(20px, 4vw, 34px);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.detail-content-wrap {
  margin-top: 34px;
}

.detail-content {
  border-radius: 28px;
  padding: 34px;
}

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

.detail-content h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 28px;
  border-radius: 34px;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 34px;
}

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

.footer-inner h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--rose);
}

.footer-bottom {
  padding: 18px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .hero-carousel {
    grid-template-columns: 1fr;
  }

  .hero-heading {
    order: -1;
  }

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

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

  .nav-search,
  .main-nav {
    display: none;
  }

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

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

  .logo,
  .footer-logo {
    font-size: 21px;
  }

  .hero-frame {
    min-height: 660px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    width: 190px;
  }

  .hero-poster img {
    height: 260px;
  }

  .hero-dots {
    left: 28px;
  }

  .hero-search-card form,
  .search-page-form,
  .filter-panel {
    flex-direction: column;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .ranking-card-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-list,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .rank-hero-inner,
  .hero-heading {
    padding: 26px;
  }

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

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

  .poster-link,
  .movie-card-compact .poster-link {
    height: 360px;
  }

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