:root {
  --sakura-50: #fef6f9;
  --sakura-100: #fde7f1;
  --sakura-200: #fcd9e7;
  --sakura-400: #f78bb8;
  --sakura-500: #f06292;
  --sakura-600: #e91e63;
  --cream-50: #fffcf5;
  --cream-100: #fff6df;
  --cream-400: #ffd47f;
  --cream-500: #ffc857;
  --spring-500: #22c55e;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(233, 30, 99, 0.16);
  --shadow: 0 20px 45px rgba(233, 30, 99, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(247, 139, 184, 0.28), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(255, 212, 127, 0.32), transparent 30rem),
    linear-gradient(135deg, var(--sakura-50), var(--cream-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.28);
  transition: transform 0.25s ease;
}

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

.brand-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--sakura-600), var(--sakura-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-search {
  flex: 1 1 320px;
  max-width: 460px;
}

.nav-search-inner {
  position: relative;
}

.nav-search input,
.card-search input,
.card-search select {
  width: 100%;
  border: 2px solid var(--sakura-200);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  padding: 10px 46px 10px 18px;
}

.nav-search input:focus,
.card-search input:focus,
.card-search select:focus {
  border-color: var(--sakura-500);
  box-shadow: 0 0 0 4px rgba(240, 98, 146, 0.12);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--sakura-500);
  transform: translateY(-50%);
}

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

.nav-link {
  padding: 9px 12px;
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sakura-600);
  background: var(--sakura-100);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  color: var(--sakura-600);
  border-radius: 50%;
  background: var(--sakura-100);
}

.site-main {
  padding: 34px 0 58px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #111827;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.18));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -35% auto auto -15%;
  width: 46%;
  height: 70%;
  border-radius: 50%;
  background: rgba(247, 139, 184, 0.25);
  filter: blur(18px);
  animation: floatGlow 6s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 70px clamp(22px, 5vw, 68px);
}

.hero-panel {
  max-width: 720px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #ffd7e7;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.72;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.pill.sakura {
  background: var(--sakura-500);
}

.pill.cream {
  color: #78350f;
  background: var(--cream-400);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  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: var(--sakura-500);
  box-shadow: 0 14px 28px rgba(240, 98, 146, 0.35);
}

.btn-primary:hover {
  background: var(--sakura-600);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
}

.hero-dots {
  position: absolute;
  right: clamp(22px, 5vw, 68px);
  bottom: 38px;
  z-index: 6;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: #fff;
}

.section {
  margin-top: 46px;
}

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--sakura-600);
  font-weight: 900;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card,
.category-card,
.info-card,
.rank-card,
.detail-card {
  overflow: hidden;
  border: 1px solid rgba(233, 30, 99, 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 98, 146, 0.35);
  box-shadow: 0 22px 48px rgba(233, 30, 99, 0.14);
}

.poster-link,
.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sakura-100), var(--cream-100));
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img,
.rank-card:hover .poster-frame img,
.category-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25);
}

.poster-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title a:hover {
  color: var(--sakura-600);
}

.card-desc {
  display: -webkit-box;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta-item {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.meta-item.hot {
  color: #b45309;
  background: #ffedd5;
}

.meta-item.sakura {
  color: var(--sakura-600);
  background: var(--sakura-100);
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 210px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-count {
  align-self: flex-start;
  padding: 8px 13px;
  color: var(--sakura-600);
  font-weight: 900;
  border-radius: 999px;
  background: var(--sakura-100);
}

.feature-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sakura-200), var(--cream-100));
  box-shadow: var(--shadow);
}

.feature-panel .section-title {
  color: #7f1d1d;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.horizontal-card .poster-frame {
  border-radius: 16px;
}

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

.rank-card {
  counter-increment: rank;
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}

.rank-score {
  min-width: 120px;
  text-align: right;
}

.rank-score strong {
  display: block;
  color: var(--sakura-600);
  font-size: 26px;
}

.card-search {
  display: grid;
  grid-template-columns: 1.2fr 180px 180px 150px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.card-search input,
.card-search select {
  height: 44px;
  padding: 0 14px;
}

.result-note {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(252, 217, 231, 0.92), rgba(255, 240, 207, 0.92));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.78;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  background: #111827;
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.54));
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--sakura-500);
  box-shadow: 0 18px 44px rgba(240, 98, 146, 0.42);
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-align: center;
}

.detail-card {
  padding: 24px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
}

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

.tag {
  padding: 8px 12px;
  color: #374151;
  font-size: 14px;
  border-radius: 999px;
  background: #f3f4f6;
}

.sidebar {
  position: sticky;
  top: 92px;
}

.sidebar-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
}

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.related-item:last-child {
  border-bottom: 0;
}

.related-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sakura-100), var(--cream-100));
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.related-item:hover img {
  transform: scale(1.06);
}

.related-title {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: #111827;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item:hover .related-title {
  color: var(--sakura-600);
}

.related-meta {
  color: var(--muted);
  font-size: 12px;
}

.sitemap-list {
  columns: 4 240px;
  column-gap: 30px;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sitemap-list a:hover {
  color: var(--sakura-600);
}

.empty-state {
  display: none;
  padding: 40px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--sakura-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(254, 246, 249, 0.9), rgba(255, 252, 245, 0.95));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.footer-text,
.footer-links a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--sakura-500);
  box-shadow: 0 14px 30px rgba(240, 98, 146, 0.34);
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-main {
    padding-top: 22px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-search {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 470px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.38), rgba(17, 24, 39, 0.94));
  }

  .hero-content {
    padding: 42px 22px 62px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-dots {
    right: auto;
    left: 22px;
    bottom: 24px;
  }

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

  .grid.cards-5,
  .grid.cards-4,
  .grid.cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .horizontal-card,
  .rank-card {
    grid-template-columns: 120px 1fr;
  }

  .rank-score {
    grid-column: 1 / -1;
    text-align: left;
  }

  .card-search {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 430px;
  }

  .hero-title {
    font-size: 32px;
  }

  .grid.cards-5,
  .grid.cards-4,
  .grid.cards-3 {
    grid-template-columns: 1fr;
  }

  .horizontal-card,
  .rank-card,
  .related-item {
    grid-template-columns: 1fr;
  }

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