:root {
  --cake-cream: #fff5e1;
  --cake-rose: #ffc0cb;
  --cake-strawberry: #ffb6c1;
  --cake-peach: #ffdab9;
  --cake-coral: #ff7f7f;
  --bow-pink: #ff69b4;
  --bow-hotpink: #ff1493;
  --mint: #98d8c8;
  --gold: #ffd700;
  --ink: #2b2230;
  --muted: #7a6575;
  --line: rgba(255, 182, 193, 0.45);
  --card: rgba(255, 255, 255, 0.88);
  --shadow-cake: 0 8px 16px -4px rgba(255, 182, 193, 0.3);
  --shadow-cake-hover: 0 18px 36px -8px rgba(255, 105, 180, 0.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 105, 180, 0.16), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(255, 218, 185, 0.45), transparent 26%),
    linear-gradient(135deg, var(--cake-cream), #fff 42%, #fff0f7);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cake-rose), var(--cake-cream));
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-cake);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: var(--cake-coral);
  font-size: 12px;
  font-style: normal;
}

.gradient-text,
.brand-text strong,
.footer-brand {
  background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink), var(--bow-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: #554154;
  font-weight: 650;
  transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > button,
.desktop-nav a.active {
  color: var(--bow-hotpink);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 260px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-cake-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 192, 203, 0.3);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 2px solid rgba(255, 182, 193, 0.6);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  padding: 11px 15px;
  color: var(--ink);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--bow-hotpink);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.13);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--bow-hotpink);
  background: rgba(255, 192, 203, 0.45);
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 182, 193, 0.34);
  font-weight: 700;
}

.layer-cake {
  position: relative;
  background: linear-gradient(180deg, #ffb6c1, pink, #fffacd, pink, #ffb6c1);
}

.layer-cake::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255, 255, 255, 0.13) 10px, rgba(255, 255, 255, 0.13) 20px);
  pointer-events: none;
}

.sprinkle-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, #ff69b4 2px, transparent 2px),
    radial-gradient(circle, #98d8c8 2px, transparent 2px),
    radial-gradient(circle, #ffd700 2px, transparent 2px);
  background-size: 50px 50px, 70px 70px, 90px 90px;
  background-position: 0 0, 25px 25px, 50px 50px;
}

.hero-carousel {
  overflow: hidden;
  min-height: 620px;
}

.hero-shell {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.hero-slide {
  position: relative;
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.58s ease both;
}

.hero-copy,
.hero-poster,
.content-card,
.ranking-panel,
.category-card,
.category-tile,
.movie-card,
.filter-bar,
.player-wrap {
  box-shadow: var(--shadow-cake);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--bow-hotpink);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(255, 20, 147, 0.22);
  background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink), var(--bow-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 20px 0 0;
  color: #5d4b5b;
  font-size: 18px;
  line-height: 1.78;
}

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

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

.hero-tags span,
.tag-row span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--bow-hotpink);
  background: rgba(255, 192, 203, 0.44);
  font-size: 12px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 26px;
}

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

.btn-cake {
  color: #fff;
  background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
  box-shadow: var(--shadow-cake);
}

.btn-ghost {
  color: var(--bow-hotpink);
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 182, 193, 0.55);
}

.btn-cake:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-cake-hover);
}

.hero-poster {
  position: relative;
  z-index: 1;
  display: block;
  height: 500px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.5);
  border-radius: 38px;
  background: #fff;
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.48));
}

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

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

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

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

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

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

.section-heading h2,
.page-hero h1,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 900;
}

.section-link {
  color: var(--bow-hotpink);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 2px solid rgba(255, 182, 193, 0.34);
  border-radius: 28px;
  background: var(--card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 20, 147, 0.4);
  box-shadow: var(--shadow-cake-hover);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cake-rose), var(--cake-peach));
}

.movie-card.large .movie-cover {
  aspect-ratio: 16 / 10;
}

.cover-mask {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
}

.rank-badge {
  left: 12px;
  top: 12px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.movie-info {
  padding: 16px;
}

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

.movie-meta a {
  color: var(--bow-hotpink);
  font-weight: 800;
}

.movie-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 850;
}

.movie-info h3 a:hover {
  color: var(--bow-hotpink);
}

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

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

.category-tile,
.category-card {
  display: block;
  min-height: 165px;
  padding: 22px;
  border: 2px solid rgba(255, 182, 193, 0.35);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-cake-hover);
}

.category-tile span,
.category-card-main span {
  color: var(--bow-hotpink);
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-main p,
.site-footer p,
.page-hero p {
  color: var(--muted);
  line-height: 1.72;
}

.category-tile em,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-style: normal;
}

.category-tile em a,
.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--bow-hotpink);
  background: rgba(255, 192, 203, 0.35);
  font-size: 12px;
  font-weight: 750;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 2px solid rgba(255, 182, 193, 0.35);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 900;
}

.panel-title a {
  color: var(--bow-hotpink);
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 192, 203, 0.24);
}

.rank-list strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
}

.rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 105, 180, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 245, 225, 0.86), rgba(255, 192, 203, 0.58));
}

.page-hero > div {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(43, 34, 48, 0.72);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--bow-hotpink);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 2px solid rgba(255, 182, 193, 0.32);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
}

.no-results {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  color: #fff;
  background: #140c18;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(2px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 24, 0.95), rgba(20, 12, 24, 0.62), rgba(20, 12, 24, 0.95));
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 6px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 950;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.72;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

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

.detail-tags span {
  color: #fff;
  background: rgba(255, 105, 180, 0.4);
}

.player-section {
  padding-bottom: 32px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 4px solid rgba(255, 182, 193, 0.48);
  border-radius: 32px;
  background: #07040a;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #07040a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  display: inline-grid;
  place-items: center;
  gap: 10px;
  width: 148px;
  height: 148px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
  box-shadow: 0 18px 40px rgba(255, 20, 147, 0.34);
}

.player-start span {
  font-size: 34px;
}

.player-start strong {
  font-size: 16px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 28px;
  border: 2px solid rgba(255, 182, 193, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
}

.content-card p {
  color: #5d4b5b;
  font-size: 16px;
  line-height: 1.9;
}

.detail-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-nav a {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--bow-hotpink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 182, 193, 0.42);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--bow-hotpink);
  background: rgba(255, 192, 203, 0.32);
  font-weight: 750;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

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

  .hero-poster {
    height: 420px;
    transform: none;
  }

  .ranking-panel {
    position: relative;
    top: 0;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero-shell {
    padding: 40px 0 54px;
  }

  .hero-copy {
    padding: 26px;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding: 40px 0;
  }

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

  .detail-poster {
    max-width: 280px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .ranking-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    height: 330px;
  }

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

  .player-start {
    width: 112px;
    height: 112px;
  }
}
