:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --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-soft: 0 16px 45px rgba(190, 24, 93, 0.13);
  --shadow-card: 0 10px 30px rgba(31, 41, 55, 0.10);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--pink-50) 0%, #ffffff 38%, var(--purple-50) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 6px 30px rgba(190, 24, 93, 0.08);
}

.nav-shell {
  max-width: 1280px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(219, 39, 119, 0.30);
  font-size: 16px;
  padding-left: 2px;
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 15px;
  color: var(--gray-700);
  border-radius: 12px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-700);
  background: var(--pink-50);
  transform: translateY(-1px);
}

.nav-search {
  margin-left: auto;
  width: min(330px, 30vw);
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(236, 72, 153, 0.25);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.10);
}

.nav-search input,
.mobile-search input,
.hero-search-card input,
.hero-search-wide input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-800);
}

.nav-search input {
  padding: 9px 12px;
}

.nav-search button,
.mobile-search button,
.hero-search-card button,
.hero-search-wide button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(147, 51, 234, 0.22);
}

.nav-search button {
  min-width: 42px;
  height: 42px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--pink-50);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--pink-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid var(--pink-100);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border-radius: 18px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 12px;
}

.mobile-search button {
  padding: 0 18px;
}

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

.mobile-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(252, 231, 243, 0.72);
  color: var(--gray-700);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--pink-700), var(--purple-700));
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(90deg, rgba(190, 24, 93, 0.94) 0%, rgba(147, 51, 234, 0.78) 48%, rgba(17, 24, 39, 0.34) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 24px 210px;
  color: var(--white);
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  text-shadow: 0 16px 38px rgba(17, 24, 39, 0.30);
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 24px;
  font-size: clamp(17px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.mini-tags,
.tag-cloud,
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-cloud a,
.genre-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: var(--white);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  box-shadow: 0 16px 32px rgba(190, 24, 93, 0.26);
}

.hero .primary-btn {
  color: var(--pink-700);
  background: var(--white);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.ghost-btn.dark {
  color: var(--gray-800);
  border-color: rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.70);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(190, 24, 93, 0.22);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.hero-search-card {
  position: absolute;
  z-index: 6;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 86px;
  width: min(420px, calc(100% - 48px));
  padding: 20px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

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

.hero-search-card form,
.hero-search-wide {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--white);
  border-radius: 999px;
}

.hero-search-card input,
.hero-search-wide input {
  padding: 12px 14px;
}

.hero-search-card button,
.hero-search-wide button {
  padding: 12px 18px;
  border: 0;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.hero-shortcuts a {
  padding: 7px 12px;
  color: var(--pink-700);
  background: var(--pink-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.section-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading span {
  color: var(--pink-600);
}

.section-heading h2,
.page-hero h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 950;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid rgba(236, 72, 153, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 22px 50px rgba(190, 24, 93, 0.16);
}

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

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.related-item:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.region-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: var(--white);
  background: var(--pink-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(219, 39, 119, 0.26);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .movie-title {
  color: var(--pink-700);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta,
.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 9px;
  background: var(--gray-50);
  border-radius: 999px;
}

.mini-tags {
  margin-top: auto;
}

.mini-tags span {
  padding: 4px 8px;
  color: var(--pink-700);
  background: var(--pink-50);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.category-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.82), rgba(243, 232, 255, 0.92), rgba(252, 231, 243, 0.82));
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.category-thumbs,
.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
  border-radius: 18px;
}

.category-thumbs img,
.category-cover-strip img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: var(--pink-100);
}

.category-title {
  margin-top: 16px;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 950;
}

.category-desc {
  margin-top: 6px;
  color: var(--gray-600);
  font-size: 14px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: var(--pink-50);
}

.rank-no {
  color: var(--pink-600);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  overflow: hidden;
  color: var(--gray-900);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text em {
  overflow: hidden;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.rank-panel h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.rank-panel p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
}

.page-hero {
  position: relative;
  margin: 0 auto;
  min-height: 330px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.95), rgba(243, 232, 255, 0.95));
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 84px 24px;
}

.page-hero span {
  color: var(--pink-600);
}

.rank-hero,
.search-hero {
  background: linear-gradient(135deg, #fff1f2, #faf5ff 56%, #fdf2f8);
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.55)), var(--soft-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.category-overview {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
}

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

.category-cover-strip img {
  height: 118px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

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

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-sample-links a {
  padding: 6px 10px;
  color: var(--pink-700);
  background: var(--pink-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  color: var(--pink-700);
  font-weight: 900;
}

.filter-bar,
.search-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  height: 48px;
  border: 1px solid rgba(236, 72, 153, 0.20);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.08);
}

.filter-bar input {
  flex: 1 1 280px;
  padding: 0 18px;
}

.filter-bar select {
  padding: 0 18px;
  color: var(--gray-700);
  outline: none;
}

.search-tools button {
  border: 0;
  padding: 10px 16px;
  color: var(--pink-700);
  background: var(--pink-50);
  border-radius: 999px;
  font-weight: 900;
}

.hero-search-wide {
  width: min(680px, 100%);
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

.empty-state {
  display: none;
  padding: 34px;
  margin-bottom: 24px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

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

.ranking-list-page {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--pink-100);
}

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

.ranking-poster span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  border-radius: 999px;
  font-weight: 950;
}

.ranking-content h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
}

.ranking-content p {
  color: var(--gray-600);
}

.detail-shell {
  padding-top: 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 800;
}

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

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.detail-card,
.side-card {
  background: var(--white);
  border: 1px solid rgba(236, 72, 153, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--gray-900);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.site-video,
.poster-layer,
.poster-layer img {
  width: 100%;
  height: 100%;
}

.site-video {
  display: block;
  background: #000000;
}

.poster-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000000;
}

.poster-layer.is-hidden {
  display: none;
}

.poster-layer img {
  object-fit: cover;
  opacity: 0.82;
}

.poster-layer-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.72)), linear-gradient(135deg, rgba(219, 39, 119, 0.34), rgba(147, 51, 234, 0.26));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.detail-card,
.side-card {
  padding: 26px;
  margin-bottom: 22px;
}

.detail-tags-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-tags-top a,
.detail-tags-top span {
  padding: 6px 12px;
  color: var(--pink-700);
  background: var(--pink-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
}

.lead-text {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 18px;
}

.tag-cloud {
  margin-top: 22px;
}

.tag-cloud a,
.genre-pills span {
  padding: 7px 12px;
  color: var(--pink-700);
  background: var(--pink-50);
  font-size: 13px;
}

.content-block h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-side {
  position: relative;
}

.detail-side .side-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.detail-side .side-card + .side-card {
  top: auto;
  position: static;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: var(--pink-100);
}

.poster-side h2 {
  margin-top: 16px;
}

.side-meta {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
}

.genre-pills {
  margin-top: 16px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--pink-50);
}

.related-item img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--pink-100);
  transition: transform 0.25s ease;
}

.related-item strong,
.related-item em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-item strong {
  color: var(--gray-900);
  font-size: 14px;
}

.related-item em {
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(250, 245, 255, 0.95));
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 32px;
}

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

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

.footer-links a,
.footer-tags a {
  padding: 8px 12px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.footer-bottom {
  padding: 18px 24px 28px;
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

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

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

  .detail-side .side-card {
    position: static;
  }

  .hero-search-card {
    left: 24px;
    right: auto;
    bottom: 78px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .nav-shell {
    padding: 0 16px;
  }

  .main-nav,
  .nav-search {
    display: none;
  }

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

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 92px 18px 260px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-card {
    left: 18px;
    right: 18px;
    bottom: 78px;
    width: auto;
  }

  .section-shell,
  .detail-shell {
    padding: 52px 18px;
  }

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

  .movie-info {
    padding: 14px;
  }

  .category-overview-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .brand-text {
    font-size: 17px;
  }

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

  .hero-content h1 {
    font-size: 36px;
  }

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

  .hero-actions,
  .hero-search-card form,
  .hero-search-wide,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .hero-search-card button,
  .hero-search-wide button {
    width: 100%;
  }

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

  .rank-row {
    grid-template-columns: 38px 72px minmax(0, 1fr);
  }

  .rank-row img {
    width: 72px;
    height: 52px;
  }

  .ranking-card {
    padding: 14px;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-item img {
    width: 96px;
    height: 68px;
  }
}
