:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --blue: #3b82f6;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(79, 70, 229, 0.16);
  --shadow-soft: 0 12px 30px rgba(236, 72, 153, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 50%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.96), rgba(59, 130, 246, 0.96));
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: pulse-slow 2.5s ease-in-out infinite;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.top-search {
  width: 270px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.top-search input,
.mobile-search input,
.wide-search input,
.search-box input,
.category-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.top-search input {
  color: #fff;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.mobile-search button,
.wide-search button,
.search-box button,
.category-search button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.top-search button {
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
  background: rgba(109, 40, 217, 0.96);
}

.mobile-panel-inner {
  padding: 16px 0 20px;
  display: grid;
  gap: 10px;
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mobile-search button {
  padding: 8px 16px;
  color: #6d28d9;
  background: #fde68a;
}

.hero-banner {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(250, 204, 21, 0.24), transparent 28%), linear-gradient(115deg, #831843 0%, #581c87 46%, #1d4ed8 100%);
}

.hero-orbit {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.32), rgba(236, 72, 153, 0.18));
  filter: blur(8px);
  opacity: 0.7;
  animation: float 5s ease-in-out infinite;
}

.stars-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars-background::before,
.stars-background::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  box-shadow: 100px 150px #fff, 200px 300px #fff, 300px 100px #fff, 400px 250px #fff, 500px 180px #fff, 600px 320px #fff, 700px 90px #fff, 800px 200px #fff, 900px 280px #fff, 1000px 140px #fff, 1100px 260px #fff, 1200px 170px #fff, 50px 220px #fff, 150px 80px #fff, 250px 340px #fff, 350px 120px #fff, 450px 290px #fff, 550px 160px #fff, 650px 310px #fff, 750px 70px #fff, 850px 240px #fff, 950px 190px #fff, 1050px 300px #fff;
  animation: stars-twinkle 3s infinite;
}

.stars-background::after {
  width: 3px;
  height: 3px;
  animation-delay: 1.5s;
  box-shadow: 80px 180px #fff, 180px 280px #fff, 280px 120px #fff, 380px 230px #fff, 480px 190px #fff, 580px 300px #fff, 680px 100px #fff, 780px 220px #fff, 880px 270px #fff, 980px 150px #fff, 1080px 250px #fff;
}

.hero-track {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 48px;
  padding: 92px 0 70px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 18% 36% 12% -10%;
  background: var(--hero-image) center / cover;
  filter: blur(55px);
  opacity: 0.22;
  border-radius: 60px;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fde68a;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 35px rgba(0, 0, 0, 0.26);
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.28);
}

.primary-btn:hover,
.rank-action:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 36px rgba(139, 92, 246, 0.28);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.ghost-btn.light {
  color: var(--purple-dark);
  background: #eef2ff;
}

.hero-image-panel {
  position: relative;
  z-index: 2;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 58%);
}

.hero-image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.65;
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  opacity: 1;
  background: #fde68a;
}

.home-search-panel {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  margin-top: -38px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2,
.section-head h2,
.page-hero h1,
.search-hero h1,
.detail-card h1 {
  margin: 0;
  color: var(--ink);
}

.home-search-panel p,
.page-hero p,
.search-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.wide-search,
.search-box,
.category-search {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(236, 72, 153, 0.16), var(--shadow-soft);
  padding: 8px;
}

.wide-search input,
.search-box input,
.category-search input {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
}

.wide-search button,
.search-box button,
.category-search button {
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.content-section {
  margin-top: 66px;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--shadow-soft);
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
}

.section-more {
  color: var(--pink-dark);
  font-weight: 800;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

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

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(139, 92, 246, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.mini-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 65%);
  opacity: 0;
  transition: 0.25s ease;
}

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

.card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transition: 0.25s ease;
  backdrop-filter: blur(10px);
}

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

.card-quality {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.movie-body {
  padding: 18px;
  background: linear-gradient(135deg, #fff, #fdf2f8);
}

.movie-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-body h2 a:hover {
  color: var(--pink-dark);
}

.movie-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-foot {
  margin-top: 12px;
}

.genre-pill {
  max-width: 140px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.compact-card .movie-body h2 {
  font-size: 16px;
}

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

.large-category-grid {
  gap: 24px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(139, 92, 246, 0.25);
}

.category-glow {
  position: absolute;
  inset: auto -30% -40% auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(6px);
}

.category-previews {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 138px;
  height: 88px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  transform: rotate(4deg);
}

.category-previews img {
  width: 100%;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category-tile strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.tone-purple,
.category-hero.tone-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.tone-blue,
.category-hero.tone-blue {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.tone-rose,
.category-hero.tone-rose {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.tone-amber,
.category-hero.tone-amber {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.tone-indigo,
.category-hero.tone-indigo {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.tone-cyan,
.category-hero.tone-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.tone-yellow,
.category-hero.tone-yellow {
  background: linear-gradient(135deg, #eab308, #f97316);
}

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

.horizontal-scroll .movie-card {
  min-width: 270px;
  scroll-snap-align: start;
}

.blue-band,
.rose-band,
.ranking-band {
  padding: 30px;
  border-radius: 34px;
}

.blue-band {
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.86), rgba(238, 242, 255, 0.92));
}

.rose-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.88), rgba(255, 241, 242, 0.92));
}

.ranking-band {
  background: linear-gradient(90deg, rgba(254, 249, 195, 0.9), rgba(252, 231, 243, 0.88));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.1);
  transition: 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #8b5cf6;
  font-size: 20px;
  font-weight: 950;
  background: #f5f3ff;
}

.top-rank .rank-number {
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-action {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.sub-page,
.detail-page {
  padding: 42px 0 70px;
}

.page-hero,
.search-hero {
  padding: 38px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--shadow);
}

.page-hero h1,
.search-hero h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  color: #fff;
}

.page-hero > span,
.search-hero > span {
  display: inline-flex;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero p,
.search-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.detail-page .breadcrumb {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fde68a;
}

.detail-page .breadcrumb a:hover {
  color: var(--pink-dark);
}

.category-search {
  max-width: 560px;
  margin-top: 24px;
}

.search-hero {
  text-align: center;
  background: radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(135deg, #831843, #6d28d9, #1d4ed8);
}

.search-hero .search-box {
  max-width: 740px;
  margin: 28px auto 20px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #6d28d9;
  background: #fde68a;
}

.empty-state {
  margin: 40px auto;
  padding: 50px 24px;
  text-align: center;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--muted);
}

.empty-state a {
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.35);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.play-cover.hidden {
  display: none;
}

.play-ring {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: 0.2s ease;
}

.play-cover:hover .play-ring {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.detail-card h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
}

.lead-text {
  margin: 12px 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-badges a,
.detail-badges span {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: #6d28d9;
  background: #f5f3ff;
  font-size: 14px;
  font-weight: 700;
}

.detail-badges a:first-child {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.article-section {
  padding-top: 22px;
  border-top: 1px solid #f3f4f6;
}

.article-section h2,
.tag-cloud h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.article-section p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.95;
}

.tag-cloud {
  padding-top: 22px;
  border-top: 1px solid #f3f4f6;
}

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

.tag-cloud a,
.footer-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

.poster-card h2 {
  margin-bottom: 6px;
}

.poster-card p {
  margin: 0;
  color: var(--muted);
}

.mini-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.mini-card:hover {
  background: #fdf2f8;
}

.mini-card img {
  width: 104px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 80px;
  padding: 50px 0 24px;
  color: #fff;
  background: linear-gradient(90deg, #581c87, #831843, #1e3a8a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  line-height: 1.8;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: #fde68a;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-tags a {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes stars-twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.32;
    transform: scale(0.8);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.68;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(to bottom, #f472b6, #c084fc);
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-image-panel {
    display: none;
  }

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

  .detail-layout,
  .spotlight-layout,
  .home-search-panel {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    height: 64px;
  }

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

  .hero-banner,
  .hero-track {
    min-height: 560px;
  }

  .hero-slide {
    padding-top: 84px;
  }

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

  .home-search-panel,
  .blue-band,
  .rose-band,
  .ranking-band,
  .page-hero,
  .search-hero,
  .detail-card,
  .side-card {
    padding: 22px;
    border-radius: 24px;
  }

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

  .rank-row {
    grid-template-columns: 44px 96px 1fr;
  }

  .rank-action {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

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

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

  .hero-banner,
  .hero-track {
    min-height: 610px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

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

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

  .wide-search,
  .search-box,
  .category-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .wide-search button,
  .search-box button,
  .category-search button {
    width: 100%;
  }

  .movie-body p {
    min-height: auto;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-thumb {
    grid-column: 1 / 3;
  }

  .rank-info,
  .rank-action {
    grid-column: 1 / 3;
  }

  .mini-card {
    grid-template-columns: 90px 1fr;
  }

  .mini-card img {
    width: 90px;
  }
}
