:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: rgba(236, 72, 153, 0.18);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(124, 58, 237, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.18), transparent 32rem),
    linear-gradient(135deg, #fdf2f8 0%, #faf5ff 48%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  font-size: 15px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

.brand-text {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.local-filter input,
.search-panel input,
.search-panel select {
  border: 1px solid rgba(236, 72, 153, 0.22);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.local-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(236, 72, 153, 0.72);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.local-filter button,
.search-panel button,
.hero-button,
.outline-button,
.play-overlay,
.player-button {
  border: 0;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.local-filter button,
.search-panel button,
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.local-filter button:hover,
.search-panel button:hover,
.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.32);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.12);
}

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

.mobile-panel {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(236, 72, 153, 0.1);
}

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

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

.mobile-link {
  font-weight: 800;
  color: #4b5563;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #f472b6 0%, #a855f7 48%, #3b82f6 100%);
  min-height: 640px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.32;
  background: white;
}

.hero::before {
  width: 260px;
  height: 260px;
  top: 70px;
  left: 9%;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero::after {
  width: 340px;
  height: 340px;
  right: 8%;
  bottom: 50px;
  animation: pulseGlow 6.5s ease-in-out infinite 1.2s;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 70px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 46px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.56s ease both;
}

.hero-copy {
  max-width: 660px;
}

.hero-kicker,
.section-heading span,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-button {
  min-height: 48px;
  padding: 13px 24px;
  background: #fff;
  color: var(--pink-dark);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.outline-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(31, 41, 55, 0.25);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 52%);
}

.hero-poster-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.hero-poster-info small {
  color: rgba(255, 255, 255, 0.86);
}

.hero-mini-list {
  position: absolute;
  right: -18px;
  bottom: 26px;
  display: grid;
  gap: 10px;
  width: 220px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.16);
  backdrop-filter: blur(14px);
}

.hero-mini-card img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini-card strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.hero-mini-card small {
  color: var(--muted);
  font-size: 12px;
}

.hero-controls {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -50px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 34px;
}

.hero-control-buttons {
  display: flex;
  gap: 10px;
}

.hero-control-buttons button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-control-buttons button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control-buttons button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

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

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

.hero-dot.active {
  width: 32px;
  background: #fff;
}

.quick-cats {
  margin-top: -24px;
  position: relative;
  z-index: 5;
}

.quick-cats-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quick-cat:hover {
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.16);
}

.content-section {
  padding: 58px 0;
}

.content-section.tint-pink {
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.74), rgba(250, 245, 255, 0.74));
}

.content-section.tint-blue {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.72), rgba(236, 254, 255, 0.72));
}

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

.section-heading span,
.page-kicker {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.1);
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--pink-dark);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.82);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.18);
}

.movie-card-small .card-cover {
  aspect-ratio: 3 / 3.7;
}

.movie-card-large .card-cover {
  aspect-ratio: 4 / 5;
}

.card-cover {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(59, 130, 246, 0.14));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.68), transparent 55%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.34);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-duration,
.card-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  color: white;
  background: rgba(17, 24, 39, 0.66);
  backdrop-filter: blur(10px);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  font-size: 12px;
}

.card-rank {
  left: 10px;
  top: 10px;
  min-width: 34px;
  text-align: center;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

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

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 9px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta span,
.card-tags span,
.detail-tags a,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.meta-pill {
  color: #64748b;
  background: #f8fafc;
}

.card-tags {
  margin-top: 9px;
}

.card-tags span,
.detail-tags a {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.1);
}

.horizontal-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.horizontal-row .movie-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.rank-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.14);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.rank-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  padding: 58px 0 30px;
}

.page-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
}

.page-title p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

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

.category-panel {
  display: block;
  min-height: 230px;
  padding: 26px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 22px 44px rgba(124, 58, 237, 0.18);
  overflow: hidden;
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-panel:nth-child(2n) {
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
}

.category-panel:nth-child(3n) {
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
}

.category-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px rgba(124, 58, 237, 0.24);
}

.category-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -54px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.category-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 27px;
}

.category-panel p {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.category-panel span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

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

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

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

.detail-main,
.detail-side,
.search-panel,
.category-toolbar {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.detail-main {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
  cursor: pointer;
}

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

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

.player-button {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: white;
  font-size: 26px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.38);
}

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

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.detail-block {
  margin: 0 0 26px;
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-side {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 96px;
}

.side-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  margin-bottom: 18px;
}

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

.side-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-links a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.08);
  font-weight: 900;
}

.related-section {
  padding: 0 0 64px;
}

.category-toolbar,
.search-panel {
  padding: 20px;
  margin-bottom: 24px;
}

.category-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.category-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px;
  gap: 12px;
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.empty-state.show {
  display: block;
}

.site-footer {
  padding: 52px 0 28px;
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.95), rgba(243, 232, 255, 0.95), rgba(219, 234, 254, 0.95));
  border-top: 1px solid rgba(236, 72, 153, 0.14);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
}

.footer-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.footer-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

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

.footer-links a {
  color: #4b5563;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--pink-dark);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(236, 72, 153, 0.18);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

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

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

  .hero-slide,
  .detail-layout,
  .page-title {
    grid-template-columns: 1fr;
  }

  .hero-mini-list {
    right: 10px;
  }

  .detail-side {
    position: static;
  }
}

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

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

  .brand-text {
    font-size: 22px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 58px 0 80px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-visual {
    margin-top: 34px;
  }

  .hero-poster {
    transform: none;
  }

  .hero-mini-list {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .hero-controls {
    margin-top: -64px;
  }

  .movie-grid,
  .rank-strip,
  .category-grid,
  .footer-inner,
  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .category-toolbar {
    display: block;
  }

  .local-filter {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .hero-inner,
  .hero-controls,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .hero-actions,
  .section-heading,
  .category-toolbar,
  .local-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button,
  .outline-button,
  .local-filter input,
  .local-filter button {
    width: 100%;
  }

  .movie-grid,
  .rank-strip,
  .category-grid,
  .footer-inner,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .horizontal-row .movie-card {
    flex-basis: 220px;
  }

  .detail-content {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

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