:root {
  --cherry-pink: #ffb7c5;
  --rose: #fb7185;
  --pink: #ec4899;
  --soft-pink: #ffe4e9;
  --light-yellow: #fff4e6;
  --tender-green: #a8d5ba;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 183, 197, 0.34);
  --shadow: 0 20px 40px rgba(255, 183, 197, 0.3);
}

* {
  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: linear-gradient(135deg, #fff4e6 0%, #ffe4e9 46%, #ffd4e0 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.glass-effect {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.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: var(--shadow);
  border-color: rgba(236, 72, 153, 0.38);
}

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

.cherry-blossom {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  opacity: 0.7;
  background: radial-gradient(circle, #ffb7c5 0%, #ff8fb0 100%);
  border-radius: 50% 0 50% 50%;
  animation: fall linear infinite;
}

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

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.28);
}

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

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

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

.quick-search {
  display: flex;
  align-items: center;
  width: 260px;
  margin-left: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 183, 197, 0.7);
  border-radius: 999px;
}

.quick-search input,
.mobile-search input,
.search-panel input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.quick-search button {
  flex: 0 0 auto;
  width: 46px;
  height: 42px;
  color: var(--pink);
  background: transparent;
  border: 0;
}

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

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border-radius: 22px;
}

.mobile-nav.is-open {
  display: block;
  animation: fadeIn 0.25s ease;
}

.mobile-nav nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-nav a,
.footer-links a {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search button {
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  border: 0;
  border-radius: 999px;
}

.page-main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.hero {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 183, 197, 0.78), rgba(255, 183, 197, 0));
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(168, 213, 186, 0.62), rgba(168, 213, 186, 0));
}

.hero-slide {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
  min-height: 620px;
  padding: 56px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: #db2777;
  font-size: 13px;
  font-weight: 800;
  background: rgba(252, 231, 243, 0.86);
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 999px;
}

.hero h1,
.page-title h1 {
  margin: 20px 0 18px;
  color: transparent;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ec4899, #fb7185, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 660px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.action-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 16px 26px rgba(236, 72, 153, 0.27);
}

.btn-soft {
  color: #be185d;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(244, 114, 182, 0.28);
}

.hero-media {
  position: relative;
  min-height: 440px;
}

.hero-poster {
  position: relative;
  height: 490px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.54);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(236, 72, 153, 0.22);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-float-card {
  position: absolute;
  left: -28px;
  bottom: 34px;
  width: min(300px, calc(100% - 20px));
  padding: 18px;
  border-radius: 24px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-card strong {
  display: block;
  margin-bottom: 6px;
  color: #be185d;
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(236, 72, 153, 0.22);
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-title {
  width: min(1200px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 42px;
  border-radius: 30px;
}

.page-title p {
  max-width: 820px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.section-heading h2 {
  margin: 0;
  color: #374151;
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.card-cover {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 228, 233, 0.65), rgba(255, 244, 230, 0.82));
}

.movie-card-compact .card-cover {
  height: 220px;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-badge,
.card-duration,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(236, 72, 153, 0.88);
  border-radius: 999px;
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 8px;
}

.card-play {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  color: var(--pink);
  font-size: 25px;
  line-height: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease;
}

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

.card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 190px;
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 50px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--pink);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  padding: 6px 9px;
  color: #be185d;
  font-size: 12px;
  font-weight: 700;
  background: rgba(252, 231, 243, 0.8);
  border-radius: 999px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 183, 197, 0.84), rgba(255, 183, 197, 0));
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #be185d;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.7;
}

.category-card a {
  position: relative;
  z-index: 1;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 18px;
}

.rank-thumb {
  height: 82px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 18px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
}

.rank-title:hover {
  color: var(--pink);
}

.rank-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.rank-meta span {
  color: #be185d;
  font-size: 12px;
  font-weight: 700;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
}

.search-box {
  display: flex;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 183, 197, 0.7);
  border-radius: 999px;
}

.search-box button {
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  border: 0;
}

.filter-row button {
  padding: 8px 14px;
  color: #be185d;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 999px;
}

.filter-row button.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.empty-state {
  display: none;
  padding: 34px;
  color: #4b5563;
  text-align: center;
  border-radius: 28px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.player-wrap {
  overflow: hidden;
  border-radius: 30px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.9);
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
}

.player-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  color: var(--pink);
  font-size: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
  background: #fff;
}

.detail-panel {
  padding: 28px;
  border-radius: 30px;
}

.detail-panel h1 {
  margin: 14px 0 14px;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-panel p {
  color: #4b5563;
  line-height: 1.8;
}

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

.meta-box {
  padding: 12px;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 16px;
}

.meta-box span {
  display: block;
  color: #9d174d;
  font-size: 12px;
  font-weight: 800;
}

.meta-box strong {
  display: block;
  margin-top: 3px;
  color: #374151;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.article-block {
  padding: 28px;
  border-radius: 28px;
}

.article-block h2 {
  margin: 0 0 14px;
  color: #be185d;
  font-size: 25px;
}

.article-block p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.95;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 28px;
}

.side-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 80px auto 28px;
  padding: 34px;
  border-radius: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
  color: #4b5563;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #374151;
  font-size: 18px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid var(--line);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #ff9bad;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .hero-slide {
    padding: 34px;
  }

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

  .hero-poster {
    height: 420px;
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 20px, 1200px);
    height: 64px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero,
  .page-title,
  .section,
  .site-footer {
    width: min(100% - 20px, 1200px);
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
  }

  .hero-slide {
    min-height: auto;
    padding: 24px;
  }

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

  .hero p,
  .page-title p {
    font-size: 16px;
  }

  .hero-poster {
    height: 360px;
    border-width: 6px;
    border-radius: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 20px;
  }

  .hero-controls {
    right: 20px;
    bottom: 14px;
  }

  .section-heading {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 44px 84px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .rank-thumb {
    height: 72px;
  }

  .card-cover {
    height: 300px;
  }

  .page-title,
  .detail-panel,
  .article-block,
  .search-panel {
    padding: 22px;
    border-radius: 24px;
  }

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

  .player-button {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }
}
