:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --purple-700: #7e22ce;
  --cyan-500: #06b6d4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 70px rgba(244, 63, 94, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50), var(--rose-50) 42%, #fdf2f8);
}

body,
button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

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

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 241, 242, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.header-inner,
.footer-inner,
.section-inner,
.hero-inner,
.page-hero-inner,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 900;
  border-radius: 15px;
  background: linear-gradient(135deg, #fb7185, var(--pink-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.30);
}

.brand-copy strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 0.76rem;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--gray-700);
  font-weight: 650;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: var(--rose-600);
  background: #fff;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--gray-800);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #881337, #831843 56%, #581c87);
}

.hero-slide {
  display: none;
  min-height: 600px;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  mix-blend-mode: overlay;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 26%, rgba(244, 63, 94, 0.42), transparent 33%), linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 46px;
  min-height: 600px;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.eyebrow::before {
  content: "★";
  font-size: 1.2em;
}

.hero h1,
.hero h2 {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.75;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--rose-600);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

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

.hero-panel strong {
  display: block;
  margin-top: 14px;
  font-size: 1.25rem;
}

.hero-panel em {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 42px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(90deg, var(--rose-100), #fce7f3 50%, #f3e8ff);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.text-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.category-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-500), var(--purple-500));
}

.category-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  mix-blend-mode: multiply;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.16));
}

.category-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
}

.category-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 900;
}

.category-info em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.poster-card,
.wide-card,
.rank-card {
  color: inherit;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #fecdd3, #f3e8ff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.poster-frame img,
.wide-thumb img,
.rank-thumb img,
.related-thumb img,
.detail-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.poster-card:hover .poster-frame img,
.wide-card:hover .wide-thumb img,
.rank-card:hover .rank-thumb img,
.related-card:hover .related-thumb img {
  transform: scale(1.08);
}

.poster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  padding: 16px;
  color: #fff;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.08));
  transition: opacity 0.24s ease;
}

.poster-card:hover .poster-layer {
  opacity: 1;
}

.poster-layer span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.poster-type,
.poster-year {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 4px 9px;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.poster-type {
  left: 10px;
  background: var(--rose-500);
}

.poster-year {
  right: 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.poster-body,
.wide-copy,
.rank-copy {
  display: block;
}

.poster-body {
  padding-top: 12px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-badges span,
.meta-pills span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-600);
  font-size: 0.75rem;
  font-weight: 800;
}

.poster-body strong,
.wide-copy strong,
.rank-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.poster-card:hover strong,
.wide-card:hover strong,
.rank-card:hover strong,
.related-card:hover strong {
  color: var(--rose-600);
}

.poster-body em,
.wide-copy em,
.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--gray-600);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wide-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.wide-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #f3e8ff);
}

.wide-thumb span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 10px;
  background: var(--purple-500);
  font-size: 0.76rem;
  font-weight: 800;
}

.wide-copy {
  padding: 18px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #fecdd3, #f3e8ff);
}

.rank-copy span {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 0.82rem;
}

.tool-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--gray-100);
}

.search-box span {
  color: var(--rose-600);
  font-size: 1.25rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
}

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

.filter-btn {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.empty-state {
  display: none;
  padding: 38px;
  color: var(--gray-500);
  text-align: center;
  border-radius: var(--radius-xl);
  background: #fff;
}

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

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500) 62%, var(--purple-700));
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 26px 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: 32px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.30);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-size: 2.2rem;
}

.player-overlay.is-hidden {
  display: none;
}

.detail-card,
.related-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-title h1 {
  margin-bottom: 16px;
}

.meta-pills,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-lead {
  margin: 22px 0;
  color: var(--gray-700);
  font-size: 1.12rem;
  line-height: 1.8;
}

.detail-card h2 {
  margin: 28px 0 12px;
  color: var(--gray-800);
  font-size: 1.35rem;
  font-weight: 900;
}

.detail-card p {
  color: var(--gray-700);
  line-height: 1.92;
}

.related-panel {
  position: sticky;
  top: 100px;
  margin-top: 0;
}

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  font-weight: 900;
}

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

.related-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #fecdd3, #f3e8ff);
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--gray-800);
  font-size: 0.95rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card em,
.related-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: linear-gradient(135deg, var(--gray-900), #1f2937 52%, #111827);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 48px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.08rem;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links a,
.footer-accent {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-accent:hover {
  color: #fb7185;
}

.footer-accent {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  font-size: 0.9rem;
}

[data-card][hidden] {
  display: none !important;
}

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

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

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

  .hero-panel {
    display: none;
  }

  .related-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-slide,
  .hero-inner {
    min-height: 540px;
  }

  .section {
    padding: 54px 0;
  }

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

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

  .wide-grid,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 44px 62px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-no {
    width: 40px;
    height: 40px;
    font-size: 0.84rem;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .section-inner,
  .hero-inner,
  .page-hero-inner,
  .detail-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .brand-copy small {
    display: none;
  }

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

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light {
    width: 100%;
  }

  .detail-card,
  .related-panel,
  .tool-panel {
    padding: 20px;
  }
}
