:root {
  --sakura-50: #fef6f9;
  --sakura-100: #fdeaf1;
  --sakura-200: #fcd9e7;
  --sakura-400: #f472b6;
  --sakura-500: #ec4899;
  --sakura-600: #db2777;
  --cream-50: #fffaf0;
  --cream-100: #fff4d6;
  --cream-400: #ffd166;
  --cream-500: #ffc857;
  --spring-500: #4ade80;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --shadow: 0 18px 48px rgba(236, 72, 153, 0.15);
  --shadow-soft: 0 12px 28px rgba(31, 41, 55, 0.08);
  --radius-xl: 24px;
  --radius-2xl: 32px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(252, 217, 231, 0.92), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 209, 102, 0.42), transparent 34%),
    linear-gradient(135deg, var(--sakura-50), var(--cream-50) 52%, #ffffff);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.glass-effect {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 12px 34px rgba(236, 72, 153, 0.12);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 21px;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
  transition: transform 0.24s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--sakura-600), var(--sakura-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.top-search {
  flex: 1;
  max-width: 430px;
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 2px solid var(--sakura-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.top-search input,
.mobile-search input,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.top-search input {
  padding: 9px 14px;
}

.top-search button,
.mobile-search button,
.search-box button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 10px 16px;
  color: #4b5563;
  font-weight: 600;
  transition: all 0.24s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #ffffff;
  background: var(--sakura-500);
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.24);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(252, 217, 231, 0.46);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
}

.mobile-toggle span {
  height: 2px;
  border-radius: 99px;
  background: var(--sakura-600);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--sakura-200);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.hero-shell {
  position: relative;
  margin: 32px 0 48px;
  min-height: 510px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(252, 217, 231, 0.8), transparent 64%);
  animation: floatGlow 7s ease-in-out infinite;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(255, 200, 87, 0.3));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.52) 46%, rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.68), transparent 46%);
}

.hero-content {
  position: absolute;
  inset: auto auto 54px 54px;
  width: min(620px, calc(100% - 64px));
  color: #ffffff;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sakura-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero-kicker {
  color: #ffd7ea;
  margin-bottom: 14px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.text-link,
.filter-chip,
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.24s ease;
}

.primary-button {
  color: #ffffff;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.34);
}

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

.ghost-button {
  color: #ffffff;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.14);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section-block {
  margin: 46px 0;
}

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

.section-heading h2,
.page-title h1 {
  margin: 6px 0 0;
  color: #273142;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
}

.section-more {
  color: var(--sakura-600);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(255, 200, 87, 0.18)),
    #fff7fb;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 14px -18px;
  height: 70px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.26);
  filter: blur(24px);
  z-index: 1;
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 11px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.card-body {
  padding: 18px;
}

.card-meta {
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.card-meta a {
  color: var(--sakura-600);
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-copy h3 a:hover {
  color: var(--sakura-600);
}

.movie-card p {
  margin: 0;
  color: #566174;
  line-height: 1.7;
  font-size: 14px;
}

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

.tag-row span {
  color: #8a4767;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: var(--sakura-100);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.text-link {
  color: var(--sakura-600);
  font-size: 14px;
}

.score {
  color: #b45309;
  font-weight: 800;
  font-size: 13px;
}

.sakura-panel {
  border-radius: var(--radius-2xl);
  padding: 28px;
  background: linear-gradient(135deg, rgba(252, 217, 231, 0.96), rgba(255, 244, 214, 0.96));
  box-shadow: var(--shadow-soft);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.16);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(255, 200, 87, 0.26));
}

.category-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-size: 22px;
  z-index: 1;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  z-index: 1;
}

.search-panel {
  display: grid;
  gap: 16px;
  margin: 34px 0 26px;
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 7px;
  border: 2px solid var(--sakura-200);
  border-radius: 999px;
  background: #ffffff;
}

.search-box input {
  padding: 11px 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--sakura-200);
  color: #7c2d52;
  padding: 9px 14px;
  background: #ffffff;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--sakura-500);
  border-color: var(--sakura-500);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
}

.empty-state.show {
  display: block;
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 56px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sakura-100);
}

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

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cream-500), var(--sakura-500));
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0 0 10px;
  color: #566174;
  line-height: 1.65;
}

.rank-meta span {
  color: var(--muted);
  font-size: 13px;
}

.page-title {
  margin: 36px 0 24px;
}

.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin: 32px 0;
  border-radius: var(--radius-2xl);
  min-height: 430px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.7)),
    var(--detail-bg, linear-gradient(135deg, #7c2d52, #92400e));
  box-shadow: var(--shadow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.17;
  filter: blur(5px);
  transform: scale(1.04);
}

.detail-poster,
.detail-copy {
  position: relative;
  z-index: 1;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.25);
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-copy .lead {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  font-size: 18px;
}

.detail-actions {
  margin-top: 26px;
}

.player-section,
.content-section {
  margin: 32px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #111827;
  box-shadow: var(--shadow);
}

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

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.38);
  z-index: 2;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.07);
}

.video-shell.playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 26px;
}

.article-panel,
.side-panel {
  border-radius: var(--radius-2xl);
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: #445063;
  line-height: 1.92;
  font-size: 16px;
}

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

.info-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
  font-size: 13px;
}

.info-list strong {
  font-size: 16px;
}

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

.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 32px 0;
}

.pager-link {
  min-height: 44px;
  padding: 11px 18px;
  color: var(--sakura-600);
  border: 1px solid var(--sakura-200);
  background: rgba(255, 255, 255, 0.78);
}

.pager-link:hover {
  color: #ffffff;
  background: var(--sakura-500);
  border-color: var(--sakura-500);
}

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

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

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

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

@media (max-width: 860px) {
  main,
  .nav-wrap,
  .mobile-panel {
    width: min(100% - 24px, 760px);
  }

  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-shell {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-image {
    min-height: 560px;
  }

  .hero-content {
    left: 24px;
    bottom: 34px;
    width: calc(100% - 48px);
  }

  .hero-content p {
    font-size: 16px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 74px 42px 1fr;
    gap: 12px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

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

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

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

  .hero-shell,
  .hero-image {
    min-height: 620px;
  }

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

  .hero-actions,
  .detail-actions,
  .pager,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .pager-link {
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 68px 1fr;
  }

  .rank-number {
    position: absolute;
    top: 10px;
    left: 10px;
  }

  .rank-copy {
    min-width: 0;
  }

  .search-box {
    border-radius: 24px;
    flex-direction: column;
  }

  .search-box button {
    width: 100%;
  }

  .article-panel,
  .side-panel,
  .sakura-panel {
    padding: 22px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
