* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #9333ea;
  --purple-soft: #f3e8ff;
  --blue: #3b82f6;
  --yellow: #facc15;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(147, 51, 234, 0.16);
  --shadow: 0 20px 35px rgba(79, 70, 229, 0.15);
  --radius-lg: 24px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 46%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(147, 51, 234, 0.96), rgba(59, 130, 246, 0.96));
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.28);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, #fef08a, #fce7f3);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #7e22ce;
  background: #fef08a;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14);
  animation: pulseGlow 2.6s ease-in-out infinite;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fef08a;
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
}

.header-search input,
.mobile-search input {
  width: 220px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button {
  padding: 10px 18px;
  color: #581c87;
  font-weight: 800;
  background: #facc15;
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.26);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  background: rgba(126, 34, 206, 0.96);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  padding: 16px 0;
  display: grid;
  gap: 12px;
}

.page-main {
  padding-top: 64px;
}

.hero-banner {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-gradient,
.sub-hero,
.detail-hero {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.94), rgba(147, 51, 234, 0.92), rgba(59, 130, 246, 0.9));
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-container {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 28px rgba(88, 28, 135, 0.26);
}

.hero-copy p,
.sub-hero p,
.detail-copy p {
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.ghost-button {
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-visual {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(31, 41, 55, 0.36);
  transform: rotate(1.5deg);
}

.hero-visual::after,
.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.04));
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual:hover img,
.movie-card:hover img {
  transform: scale(1.1);
}

.hero-play,
.play-hover,
.player-start-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.38);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 28px;
  background: #facc15;
}

.stars-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  opacity: 0.75;
}

.stars-background::before,
.stars-background::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  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, 1150px 130px #fff;
  animation: starsTwinkle 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, 1180px 160px #fff;
}

.content-stack {
  padding: 64px 0 76px;
}

.section-block {
  margin-bottom: 64px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.16);
}

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

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.side-featured {
  display: grid;
  gap: 14px;
}

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

.movie-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
}

.movie-card {
  position: relative;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 48px rgba(147, 51, 234, 0.2);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #e0e7ff);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.play-hover {
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-hover.big {
  width: 68px;
  height: 68px;
}

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

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

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

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

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--pink-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span:first-child {
  max-width: 52%;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  padding: 5px 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.horizontal-card .movie-card-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
}

.horizontal-poster img {
  height: 100%;
  min-height: 112px;
}

.large-card h3 {
  font-size: 24px;
}

.small-card h3 {
  font-size: 15px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 168px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px rgba(147, 51, 234, 0.22);
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card strong,
.category-overview-card h2 {
  font-size: 24px;
  margin: 8px 0;
}

.category-card small,
.category-card em,
.category-overview-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.category-card em {
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
}

.category-icon {
  font-size: 42px;
  position: relative;
  z-index: 1;
}

.category-overview-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card ul {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-overview-card li a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pink { background: linear-gradient(135deg, #f472b6, #a855f7); }
.yellow { background: linear-gradient(135deg, #f59e0b, #f97316); }
.rose { background: linear-gradient(135deg, #fb7185, #ec4899); }
.purple { background: linear-gradient(135deg, #a855f7, #4f46e5); }
.red { background: linear-gradient(135deg, #ef4444, #ec4899); }
.amber { background: linear-gradient(135deg, #f59e0b, #eab308); }
.blue { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }

.soft-panel {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(243, 232, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 30px rgba(147, 51, 234, 0.14);
}

.ranking-row img {
  width: 82px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.ranking-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ranking-info strong,
.ranking-info small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info small {
  color: var(--muted);
}

.ranking-score {
  color: var(--pink-dark);
  font-weight: 900;
}

.sub-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 82px 0 72px;
  isolation: isolate;
}

.sub-hero .container {
  position: relative;
  z-index: 2;
}

.sub-hero h1 {
  margin-bottom: 16px;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  min-width: 190px;
  padding: 12px 16px;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
}

.filter-panel input {
  flex: 1;
}

.hero-search {
  max-width: 620px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  color: #111827;
  background: #fff;
}

.search-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 52px 0 60px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 20%, rgba(250, 204, 21, 0.2), transparent 35%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-intro {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  transform: rotate(-1.5deg);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 820px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.player-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 70px rgba(79, 70, 229, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  z-index: 3;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.14));
}

.player-shell.playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-bottom: 64px;
}

.detail-article,
.detail-side-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

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

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

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-side-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

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

.detail-side-card dd {
  margin: 0;
  line-height: 1.6;
}

.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #581c87, #831843, #1e3a8a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.footer-grid a:hover {
  color: #fef08a;
}

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08); }
}

@keyframes starsTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.82); }
}

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

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

  .hero-slide,
  .detail-intro,
  .detail-content-grid,
  .featured-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 28px;
    padding: 58px 0 96px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
    max-width: 620px;
  }

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

  .detail-cover {
    max-width: 320px;
  }
}

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

  .site-logo span:last-child {
    font-size: 20px;
  }

  .hero-banner,
  .hero-container {
    min-height: 720px;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-controls {
    bottom: 22px;
  }

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

  .horizontal-card .movie-card-link {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .soft-panel {
    padding: 20px;
  }

  .ranking-row {
    grid-template-columns: 36px 66px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

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

@media (max-width: 560px) {
  .hero-banner,
  .hero-container {
    min-height: 760px;
  }

  .hero-slide {
    display: block;
  }

  .hero-visual {
    margin-bottom: 24px;
    transform: none;
  }

  .hero-actions,
  .filter-panel,
  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner {
    gap: 12px;
  }

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

  .movie-strip {
    grid-auto-columns: 82%;
  }

  .detail-cover {
    max-width: 250px;
  }

  .detail-side-card div {
    grid-template-columns: 1fr;
  }
}
