:root {
  --purple-950: #2e1065;
  --purple-900: #4c1d95;
  --purple-800: #5b21b6;
  --purple-700: #6d28d9;
  --purple-600: #9333ea;
  --purple-500: #a855f7;
  --taro-500: #b794f6;
  --taro-200: #e0c3fc;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --amber-500: #f59e0b;
  --gray-950: #0f172a;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --purple-100: #f3e8ff;
  --purple-50: #faf5ff;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(91, 33, 182, 0.10);
  --shadow-purple: 0 20px 50px rgba(147, 51, 234, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 45%, #faf5ff 100%);
  color: var(--gray-800);
  line-height: 1.6;
}

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: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(216, 180, 254, 0.45);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--taro-500));
  box-shadow: 0 14px 32px rgba(147, 51, 234, 0.35);
  animation: floatSoft 4.5s ease-in-out infinite;
}

.logo-text {
  background: linear-gradient(90deg, var(--purple-700), var(--taro-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 19px;
  letter-spacing: -0.02em;
}

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

.nav-links a,
.nav-drop-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 2px;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-drop:hover .nav-drop-button {
  color: var(--purple-600);
}

.nav-drop {
  position: relative;
}

.nav-menu {
  position: absolute;
  left: 0;
  top: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
  width: 270px;
  padding: 12px;
  margin-top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  border: 1px solid rgba(216, 180, 254, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-purple);
  transition: all 180ms ease;
}

.nav-drop:hover .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  background: rgba(250, 245, 255, 0.62);
}

.nav-menu a:hover {
  background: linear-gradient(135deg, rgba(183, 148, 246, 0.28), rgba(224, 195, 252, 0.28));
}

.header-search {
  position: relative;
  width: min(270px, 30vw);
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(216, 180, 254, 0.85);
  border-radius: 999px;
  padding: 11px 16px 11px 40px;
  color: var(--gray-700);
  background: rgba(250, 245, 255, 0.9);
  outline: none;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.header-search input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple-500);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--purple-50);
  color: var(--purple-700);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(216, 180, 254, 0.55);
  background: rgba(255, 255, 255, 0.95);
}

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

.mobile-panel a {
  display: block;
  padding: 11px 6px;
  color: var(--gray-700);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700) 54%, var(--taro-500));
}

.hero-cloud {
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  color: rgba(224, 195, 252, 0.55);
  opacity: 0.42;
}

.hero-cloud.top {
  top: -8px;
}

.hero-cloud.bottom {
  bottom: -10px;
  transform: rotate(180deg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.12) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(46, 16, 101, 0.94) 4%, rgba(76, 29, 149, 0.58) 46%, rgba(76, 29, 149, 0.14) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 72px 0 84px;
}

.hero-copy {
  max-width: 720px;
  animation: slideUp 800ms ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #4c1d95;
  background: linear-gradient(135deg, #b794f6, #e0c3fc);
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.18);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 680px;
  margin: 0 0 30px;
  color: #f3e8ff;
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--purple-700);
  background: var(--white);
  box-shadow: var(--shadow-purple);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-panel {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.34);
}

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

.hero-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.hero-panel-title strong {
  font-size: 20px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #4c1d95;
  font-weight: 900;
  background: linear-gradient(135deg, #fef3c7, #f5d0fe);
}

.hero-meta {
  margin: 10px 0 0;
  color: #f3e8ff;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-control.prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 72px));
}

.hero-control.next {
  right: max(18px, calc((100vw - 1180px) / 2 - 72px));
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 250ms ease, background 250ms ease;
}

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

.section {
  padding: 64px 0;
}

.section.soft {
  margin: 38px auto;
  padding: 54px 0;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(183, 148, 246, 0.25), rgba(224, 195, 252, 0.10));
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--purple-600);
  font-weight: 800;
}

.section-title {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--gray-600);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 232, 255, 0.95);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow: var(--shadow-purple);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(224, 195, 252, 0.20));
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.movie-card:hover .poster img {
  transform: scale(1.08);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent 60%);
  transition: opacity 220ms ease;
}

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

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.poster-tag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(147, 51, 234, 0.90);
  backdrop-filter: blur(10px);
}

.movie-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px;
}

.movie-title {
  margin: 0;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.28;
}

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

.movie-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 700;
  background: rgba(243, 232, 255, 0.92);
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(243, 232, 255, 0.90);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-purple);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background: var(--cat-gradient, linear-gradient(135deg, var(--purple-600), var(--taro-500)));
}

.category-card strong,
.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-800);
  font-size: 21px;
}

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

.category-card span {
  color: var(--purple-700);
  font-weight: 800;
}

.red-orange { --cat-gradient: linear-gradient(135deg, #fb7185, #f97316); }
.purple-pink { --cat-gradient: linear-gradient(135deg, #a855f7, #ec4899); }
.blue-cyan { --cat-gradient: linear-gradient(135deg, #3b82f6, #22d3ee); }
.yellow-orange { --cat-gradient: linear-gradient(135deg, #facc15, #f97316); }
.orange-red { --cat-gradient: linear-gradient(135deg, #f97316, #ef4444); }
.slate-purple { --cat-gradient: linear-gradient(135deg, #475569, #7c3aed); }
.rose-purple { --cat-gradient: linear-gradient(135deg, #f43f5e, #a855f7); }
.amber-brown { --cat-gradient: linear-gradient(135deg, #d97706, #92400e); }
.indigo-blue { --cat-gradient: linear-gradient(135deg, #6366f1, #2563eb); }
.green-blue { --cat-gradient: linear-gradient(135deg, #10b981, #3b82f6); }

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(243, 232, 255, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-purple);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-600), var(--taro-500));
}

.rank-item img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 58px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700) 58%, var(--taro-500));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 78% 12%, rgba(224, 195, 252, 0.30), transparent 30%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

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

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 840px;
  margin: 18px 0 0;
  color: #f3e8ff;
  font-size: 18px;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(216, 180, 254, 0.65);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid rgba(216, 180, 254, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--gray-700);
  background: var(--purple-50);
  outline: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 380px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 72px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 64px rgba(46, 16, 101, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.16));
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.player-play {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple-700);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-purple);
}

.content-card,
.side-card {
  border: 1px solid rgba(243, 232, 255, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.content-card {
  padding: 26px;
  margin-top: 22px;
}

.content-card h1,
.content-card h2 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.content-card h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.content-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.content-card p {
  color: var(--gray-700);
}

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

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--purple-700);
  font-size: 14px;
  font-weight: 700;
  background: var(--purple-50);
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 20px;
}

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

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

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

.related-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--gray-800);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-item span {
  color: var(--gray-500);
  font-size: 13px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prev-next a {
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--purple-700);
  font-weight: 800;
  background: var(--purple-50);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 52px 0 32px;
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.68), rgba(255, 255, 255, 0.94));
  border-top: 1px solid rgba(216, 180, 254, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 18px;
  font-weight: 900;
}

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

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

.footer-links a:hover {
  color: var(--purple-600);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(216, 180, 254, 0.55);
  color: var(--gray-500);
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    max-width: 460px;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .navbar {
    height: 66px;
  }

  .nav-links,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .logo-text {
    max-width: 230px;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
  }

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

  .hero-inner {
    padding: 48px 0 88px;
  }

  .hero-control {
    top: auto;
    bottom: 84px;
    transform: none;
  }

  .hero-control.prev {
    left: 18px;
  }

  .hero-control.next {
    right: 18px;
  }

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

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

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

  .filter-box {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 112px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 112px;
    height: 76px;
  }

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

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

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-panel {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .prev-next,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 94px minmax(0, 1fr);
  }

  .rank-item img {
    width: 94px;
    height: 64px;
  }

  .content-card {
    padding: 20px;
    border-radius: 22px;
  }
}
