:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --slate-900: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(219, 39, 119, 0.16);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--pink-50) 0%, #ffffff 42%, var(--rose-50) 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--pink-100);
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-link {
  padding: 22px 0;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--pink-100);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--pink-600);
  background: var(--pink-50);
}

.nav-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input {
  border: 2px solid var(--pink-200);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14);
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--pink-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--pink-600);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--pink-100);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-search {
  width: min(720px, 100%);
  margin: 0 auto 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-links {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pink-50);
  color: var(--gray-700);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--slate-900);
}

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

.hero-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

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

.hero-content {
  width: min(900px, calc(100% - 40px));
  text-align: center;
  color: #ffffff;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(3px);
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--pink-200);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.4vw, 21px);
}

.hero-tags,
.detail-tags,
.movie-card-tags,
.tag-cloud,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  justify-content: center;
  margin-top: 22px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--pink-600);
  background: var(--pink-100);
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .tag-pill,
.detail-tags .tag-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ghost-button.dark {
  color: var(--pink-600);
  background: #ffffff;
  border-color: var(--pink-200);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 42px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.home-page .page-shell {
  padding: 52px 0 70px;
}

.inner-page {
  padding: 32px 0 70px;
}

.content-section {
  margin-bottom: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.tag-cloud-section h2,
.ranking-aside h2,
.player-section h2,
.detail-block h2,
.detail-side h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--pink-600);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card {
  min-height: 112px;
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.movie-list-card:hover,
.rank-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-overview-card span {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
}

.category-tile strong,
.category-overview-card h2 {
  font-size: 15px;
  font-weight: 900;
}

.tone-rose { background: #ffe4e6; color: #be123c; }
.tone-amber { background: #fef3c7; color: #b45309; }
.tone-pink { background: #fce7f3; color: #be185d; }
.tone-violet { background: #ede9fe; color: #6d28d9; }
.tone-orange { background: #ffedd5; color: #c2410c; }
.tone-sky { background: #e0f2fe; color: #0369a1; }
.tone-green { background: #dcfce7; color: #15803d; }
.tone-red { background: #fee2e2; color: #b91c1c; }
.tone-stone { background: #f5f5f4; color: #57534e; }
.tone-fuchsia { background: #fae8ff; color: #a21caf; }
.tone-emerald { background: #d1fae5; color: #047857; }
.tone-indigo { background: #e0e7ff; color: #4338ca; }
.tone-cyan { background: #cffafe; color: #0e7490; }
.tone-purple { background: #f3e8ff; color: #7e22ce; }
.tone-blue { background: #dbeafe; color: #1d4ed8; }
.tone-yellow { background: #fef9c3; color: #a16207; }

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

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

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

.movie-card,
.movie-list-card,
.rank-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  color: var(--gray-800);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--rose-100));
}

.movie-cover img,
.movie-list-cover img,
.rank-card img,
.detail-poster img,
.ranking-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img,
.movie-list-card:hover .movie-list-cover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.cover-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.68) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-glow {
  opacity: 1;
}

.duration-badge,
.movie-list-cover span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 14px;
}

.movie-card-body h3,
.movie-list-body h3,
.rank-card h3 {
  margin: 0 0 9px;
  color: var(--gray-800);
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.movie-list-card:hover h3,
.rank-card:hover h3 {
  color: var(--pink-600);
}

.movie-card-body h3 {
  min-height: 43px;
  font-size: 16px;
}

.movie-card-body p,
.movie-list-body p,
.rank-card p,
.category-overview-card p,
.detail-block p,
.detail-info p,
.page-hero p {
  color: var(--gray-600);
  line-height: 1.75;
}

.movie-card-body p {
  min-height: 52px;
  margin: 0 0 12px;
  font-size: 14px;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta-row span:last-child {
  color: var(--pink-600);
  background: var(--pink-100);
  border-radius: 8px;
  padding: 3px 7px;
  font-weight: 800;
}

.movie-rail {
  display: flex;
  gap: 18px;
  padding: 2px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.rail-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.editor-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--pink-100), var(--rose-100));
}

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

.movie-list-card {
  display: flex;
  min-height: 168px;
}

.movie-list-cover {
  position: relative;
  flex: 0 0 220px;
  background: var(--pink-100);
  overflow: hidden;
}

.movie-list-body {
  padding: 17px 18px;
}

.movie-list-body h3 {
  font-size: 18px;
}

.movie-list-body p {
  margin: 0 0 12px;
  font-size: 14px;
}

.movie-card-tags {
  margin-top: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: start;
}

.ranking-aside {
  position: sticky;
  top: 90px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.compact-rank-list {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.compact-rank {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--pink-50);
}

.compact-rank span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  font-weight: 900;
}

.compact-rank strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-rank em {
  color: var(--pink-600);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-more {
  display: inline-flex;
  margin-top: 4px;
}

.tag-cloud-section {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.tag-cloud a,
.filter-chip {
  border: 2px solid var(--pink-200);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-700);
  background: #ffffff;
  font-weight: 800;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag-cloud a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: var(--pink-600);
  border-color: var(--pink-400);
  background: var(--pink-50);
}

.site-footer {
  border-top: 2px solid var(--pink-100);
  background: linear-gradient(135deg, var(--pink-50), var(--rose-100));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 420px;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-group h3 {
  margin: 0 0 8px;
  color: var(--pink-700, #be185d);
}

.footer-group a {
  color: var(--gray-600);
  font-size: 14px;
}

.footer-group a:hover {
  color: var(--pink-600);
}

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: var(--gray-500);
  border-top: 1px solid var(--pink-100);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

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

.breadcrumb a {
  color: var(--pink-600);
  font-weight: 800;
}

.page-hero {
  border-radius: var(--radius-xl);
  padding: 42px;
  margin-bottom: 38px;
  background: linear-gradient(135deg, var(--pink-100), var(--rose-100));
  box-shadow: var(--shadow-card);
}

.mini-hero h1,
.category-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-900);
}

.mini-hero p,
.category-hero p {
  max-width: 800px;
  margin: 14px 0 0;
  font-size: 18px;
}

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

.category-overview-card {
  min-height: 190px;
  text-align: left;
  padding: 24px;
}

.category-overview-card span {
  font-size: 38px;
}

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

.category-overview-card p {
  margin: 0;
  color: currentColor;
  opacity: 0.78;
}

.category-hero {
  display: flex;
  align-items: center;
  gap: 24px;
}

.category-hero-emoji {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 44px;
}

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

.ranking-feature {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-feature a:first-child {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
}

.rank-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  font-weight: 900;
}

.ranking-feature h2 {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.ranking-feature h2 a:hover {
  color: var(--pink-600);
}

.ranking-feature p {
  color: var(--gray-600);
  line-height: 1.7;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.rank-card img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.rank-card h3 {
  font-size: 17px;
}

.rank-card p {
  margin: 0 0 8px;
  font-size: 14px;
}

.rank-card span {
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 900;
}

.search-panel {
  margin-bottom: 34px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.big-search {
  margin-bottom: 16px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.empty-state {
  display: none;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  margin-bottom: 36px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.92), transparent 34%), linear-gradient(135deg, #111827, #3b1233 52%, #831843);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.detail-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.player-section {
  margin-bottom: 36px;
}

.player-section h2 {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.player-overlay strong {
  max-width: min(720px, calc(100% - 40px));
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  margin-bottom: 50px;
}

.detail-main,
.detail-side {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-main {
  padding: 28px;
}

.detail-block + .detail-block {
  margin-top: 30px;
}

.detail-block h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.detail-block p {
  margin: 0 0 14px;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 90px;
  padding: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.related-section {
  margin-bottom: 0;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

  .ranking-aside,
  .detail-side {
    position: static;
  }

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

  .detail-hero {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-shell {
    width: min(100% - 24px, 1180px);
    height: 62px;
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

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

  .category-grid,
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .list-grid,
  .rank-grid,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .movie-list-card,
  .ranking-feature,
  .rank-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .movie-list-cover {
    flex-basis: 150px;
  }

  .editor-panel,
  .page-hero,
  .detail-hero,
  .detail-main,
  .detail-side,
  .search-panel {
    padding: 20px;
  }

  .category-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-poster {
    width: min(240px, 100%);
  }

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

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }

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

  .movie-list-card {
    flex-direction: column;
  }

  .movie-list-cover {
    flex-basis: auto;
    aspect-ratio: 16 / 10;
  }

  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .player-overlay strong {
    font-size: 20px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
  }
}
