:root {
  --cream: #fff5e1;
  --peach: #ffdab9;
  --pink: #ff69b4;
  --hot-pink: #ff1493;
  --strawberry: #ffb6c1;
  --mint: #98d8c8;
  --gold: #ffd700;
  --ink: #2b2030;
  --muted: #725d71;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(255, 182, 193, 0.46);
  --shadow: 0 24px 80px rgba(255, 105, 180, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 105, 180, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(152, 216, 200, 0.2), transparent 26rem),
    linear-gradient(135deg, var(--cream), #ffc0cb 48%, var(--peach));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 105, 180, 0.25) 2px, transparent 2px),
    radial-gradient(circle, rgba(152, 216, 200, 0.25) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 215, 0, 0.22) 2px, transparent 2px);
  background-size: 54px 54px, 76px 76px, 96px 96px;
  background-position: 0 0, 26px 26px, 48px 48px;
  pointer-events: none;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 182, 193, 0.5);
  background: rgba(255, 245, 250, 0.82);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--pink), var(--hot-pink), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  box-shadow: 0 10px 24px rgba(255, 105, 180, 0.38);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.footer-links a,
.footer-tags a {
  border-radius: 999px;
  padding: 10px 15px;
  color: #60475f;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.footer-links a:hover,
.footer-tags a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--hot-pink));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--hot-pink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero,
.page-hero,
.detail-hero,
.filter-panel,
.section-wrap,
.spotlight-card,
.content-card,
.movie-info-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  min-height: 610px;
  padding: clamp(24px, 5vw, 56px);
  isolation: isolate;
}

.hero-bg,
.hero::before,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 182, 193, 0.34)),
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(255, 255, 255, 0.22) 12px, rgba(255, 255, 255, 0.22) 24px);
}

.hero-viewport {
  position: relative;
  min-height: 510px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(22px, 5vw, 60px);
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.content-card span,
.spotlight-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(255, 105, 180, 0.22);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--hot-pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.72);
}

.hero h1,
.hero h2,
.hero h3,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #311b32;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  font-size: clamp(34px, 6vw, 68px);
}

.hero h2,
.hero h3 {
  font-size: clamp(28px, 4.6vw, 52px);
}

.hero p,
.page-hero p,
.detail-copy p,
.section-heading p,
.spotlight-card p,
.content-card p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

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

.hero-tags span,
.tag-row span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #6c4868;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.ghost-button,
.mini-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.mini-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--hot-pink));
  box-shadow: 0 14px 28px rgba(255, 105, 180, 0.28);
}

.ghost-button,
.section-link {
  border: 1px solid rgba(255, 105, 180, 0.3);
  color: var(--hot-pink);
  background: rgba(255, 255, 255, 0.64);
}

.primary-button:hover,
.ghost-button:hover,
.mini-button:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border: 12px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.14), rgba(255, 218, 185, 0.58));
  box-shadow: 0 30px 70px rgba(255, 105, 180, 0.3);
  transform: rotate(2deg);
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after,
.media-thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent);
  pointer-events: none;
}

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

.hero-controls {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  bottom: 28px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 105, 180, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-controls button.active {
  width: 38px;
  background: var(--hot-pink);
}

.filter-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: end;
  margin-top: 24px;
  padding: 22px;
}

.filter-copy h2,
.section-heading h2,
.content-card h2,
.movie-info-panel h2,
.category-overview-card h2,
.movie-card h3,
.media-info h3,
.spotlight-card h2 {
  margin: 0;
  color: #321f32;
}

.filter-copy h2,
.section-heading h2,
.content-card h2,
.movie-info-panel h2,
.spotlight-card h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.filter-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: #75556f;
  font-size: 13px;
  font-weight: 900;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 105, 180, 0.24);
  border-radius: 18px;
  outline: none;
  padding: 0 14px;
  color: #392139;
  background: rgba(255, 255, 255, 0.82);
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.11);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--hot-pink);
  font-weight: 900;
}

.section-wrap {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.horizontal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

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

.category-card,
.category-overview-card,
.movie-card,
.media-row {
  border: 1px solid rgba(255, 182, 193, 0.48);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(255, 105, 180, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.media-row:hover {
  border-color: rgba(255, 20, 147, 0.45);
  box-shadow: 0 24px 58px rgba(255, 105, 180, 0.22);
  transform: translateY(-4px);
}

.category-card-main {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 22px;
}

.category-card-main span {
  color: #321f32;
  font-size: 22px;
  font-weight: 950;
}

.category-card-main p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--hot-pink);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.16), rgba(255, 218, 185, 0.5));
}

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

.movie-card:hover .poster-link img,
.media-row:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

.poster-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
}

.score-badge {
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  background: linear-gradient(90deg, var(--pink), var(--hot-pink));
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, #ffd700, var(--pink));
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card h3,
.media-info h3 {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
}

.movie-card p,
.media-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

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

.movie-card-compact p {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.media-list {
  display: grid;
  gap: 12px;
}

.media-row {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.media-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
}

.media-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
}

.media-thumb img {
  width: 78px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-info {
  display: grid;
  gap: 7px;
}

.spotlight-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.28), transparent 18rem);
}

.page-hero {
  display: grid;
  gap: 16px;
  min-height: 280px;
  align-content: center;
  padding: clamp(28px, 5vw, 58px);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-poster-stack a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
}

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-overview-card .category-samples {
  padding: 12px 0;
}

.ranking-list .media-row {
  grid-template-columns: auto 94px minmax(0, 1fr) auto;
}

.ranking-list .media-thumb img {
  width: 94px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 18px;
  color: #7a5771;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 42px);
  align-items: center;
  padding: clamp(22px, 5vw, 44px);
}

.detail-poster {
  position: relative;
  border: 10px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 62px rgba(255, 105, 180, 0.24);
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.16), rgba(255, 218, 185, 0.54));
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 11px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(90deg, var(--pink), var(--hot-pink));
}

.detail-copy {
  display: grid;
  gap: 16px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.82);
}

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

.player-shell {
  position: relative;
  border: 1px solid rgba(255, 105, 180, 0.24);
  border-radius: 34px;
  overflow: hidden;
  background: #111111;
  box-shadow: 0 28px 76px rgba(255, 105, 180, 0.24);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  gap: 14px;
  place-items: center;
  align-content: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at center, rgba(255, 105, 180, 0.3), transparent 32rem);
}

.player-overlay[hidden] {
  display: none;
}

.play-circle {
  display: grid;
  width: clamp(74px, 12vw, 112px);
  height: clamp(74px, 12vw, 112px);
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  font-size: clamp(32px, 5vw, 48px);
  background: linear-gradient(135deg, var(--pink), var(--hot-pink));
  box-shadow: 0 20px 55px rgba(255, 105, 180, 0.48);
}

.player-overlay strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

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

.content-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.movie-info-panel {
  margin-top: 28px;
  padding: 28px;
}

.movie-info-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.movie-info-panel div {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.movie-info-panel dt {
  color: var(--hot-pink);
  font-size: 13px;
  font-weight: 900;
}

.movie-info-panel dd {
  margin: 8px 0 0;
  color: #392139;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 182, 193, 0.5);
  background: rgba(255, 245, 250, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-links,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

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

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

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

  .hero-viewport {
    min-height: 780px;
  }

  .hero-poster {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 245, 250, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .hero {
    min-height: 760px;
    padding: 22px;
  }

  .hero-viewport {
    min-height: 690px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .filter-panel,
  .filter-controls,
  .detail-content-grid,
  .movie-info-panel dl,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .media-row,
  .ranking-list .media-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .media-rank {
    grid-row: span 2;
  }

  .media-thumb {
    display: none;
  }

  .media-row .mini-button {
    grid-column: 2;
    width: fit-content;
  }

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

  .footer-inner {
    width: min(100% - 24px, 1180px);
  }
}

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .page-hero,
  .detail-hero,
  .filter-panel,
  .section-wrap,
  .content-card,
  .movie-info-panel {
    border-radius: 24px;
  }
}
