:root {
  color-scheme: light;
  --rose-50: #fff1f5;
  --rose-100: #ffe4ec;
  --rose-300: #fda4bc;
  --rose-400: #fb718e;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-400: #f472b6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.12);
  --shadow-soft: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, rgba(255, 241, 245, 0.45), #ffffff 18rem, rgba(255, 241, 245, 0.3));
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-400));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-logo {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-400), var(--rose-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--rose-500);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 18%, rgba(253, 164, 188, 0.4), transparent 26rem), radial-gradient(circle at 85% 8%, rgba(244, 114, 182, 0.36), transparent 30rem), linear-gradient(135deg, #fff1f5 0%, #fff7fb 52%, #fff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 21rem;
  height: 21rem;
  left: -7rem;
  top: 4rem;
  background: rgba(253, 164, 188, 0.45);
}

.hero::after {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  bottom: -9rem;
  background: rgba(244, 114, 182, 0.28);
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
  min-height: 560px;
  display: grid;
  align-items: center;
}

.hero-track {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 42px;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--gray-900);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--rose-600), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  max-width: 720px;
  color: var(--gray-600);
  font-size: 18px;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-meta span,
.movie-meta span,
.detail-meta span,
.tag-row span {
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid rgba(244, 63, 94, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 16px 28px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(244, 63, 94, 0.18);
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fff);
  box-shadow: 0 30px 80px rgba(244, 63, 94, 0.22);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.78));
}

.hero-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  width: min(260px, 70%);
  padding: 16px;
  color: white;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.hero-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  background: #fff;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-300);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.section {
  padding: 64px 0;
}

.section-head,
.page-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title,
.page-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
  margin: 10px 0 0;
  color: var(--gray-600);
  max-width: 760px;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, var(--rose-50));
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
  margin-bottom: 10px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fff);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.72));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

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

.poster-badge {
  top: 12px;
  left: 12px;
  color: #fff;
  background: var(--rose-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-body {
  padding: 17px;
}

.card-title,
.rank-title {
  display: block;
  color: var(--gray-900);
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.card-title:hover,
.rank-title:hover {
  color: var(--rose-600);
}

.card-summary {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span + span::before,
.rank-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--rose-300);
}

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

.tag-row span {
  font-size: 12px;
  padding: 3px 8px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-soft);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 116px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-no {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fff);
}

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

.rank-content p {
  margin: 6px 0 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--gray-500);
  font-size: 14px;
  margin: 28px 0 18px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.detail-panel,
.side-panel {
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #111827;
  overflow: hidden;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color: white;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.38);
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.32);
  font-size: 32px;
  padding-left: 4px;
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 22px;
}

.detail-content p {
  color: var(--gray-700);
}

.detail-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.side-panel {
  padding: 18px;
}

.side-panel .rank-item {
  grid-template-columns: 86px 1fr;
  gap: 12px;
  box-shadow: none;
  border-radius: 18px;
}

.side-panel .rank-no {
  display: none;
}

.side-panel .rank-cover {
  width: 86px;
}

.side-panel .rank-content p {
  display: none;
}

.hidden-by-filter {
  display: none !important;
}

.no-result {
  display: none;
  padding: 26px;
  text-align: center;
  color: var(--gray-600);
  border: 1px dashed rgba(244, 63, 94, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.no-result.visible {
  display: block;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #fff, var(--rose-50));
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.site-footer p {
  color: var(--gray-600);
  max-width: 520px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

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

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

.footer-bottom {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  padding: 18px;
  border-top: 1px solid rgba(244, 63, 94, 0.1);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .hero-art {
    max-width: 430px;
    margin: 10px auto 0;
  }

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

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

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

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

  .header-inner {
    height: 66px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-shell {
    padding: 46px 0 42px;
    min-height: auto;
  }

  .hero-card {
    left: 12px;
    bottom: 12px;
  }

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

  .section {
    padding: 44px 0;
  }

  .section-head,
  .page-headline {
    display: block;
  }

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

  .rank-item,
  .side-panel .rank-item {
    grid-template-columns: 82px 1fr;
  }

  .rank-no {
    display: none;
  }
}
