:root {
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3f4f6;
  --surface: #ffffff;
  --soft: #fff7fb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 25px 60px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 45%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

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

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red);
}

.nav-link:hover,
.mobile-link:hover {
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.hero-search-form input,
.filter-toolbar input,
.filter-toolbar select {
  border: 1px solid rgba(236, 72, 153, 0.18);
  background: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search-form input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.hero-search-form button,
.primary-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--red));
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search-form button:hover,
.primary-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.32);
}

.primary-button.small,
.ghost-button.small {
  padding: 10px 18px;
  font-size: 14px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 6px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--red));
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
  animation: slideDown 0.25s ease;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: 430px;
  overflow: auto;
  display: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(236, 72, 153, 0.12);
  padding: 10px;
  z-index: 200;
}

.search-panel.open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #fff1f2;
}

.search-result-item img {
  width: 58px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  font-size: 15px;
}

.search-result-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(100deg, var(--pink), var(--red), var(--yellow));
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.34;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(239, 68, 68, 0.86), rgba(245, 158, 11, 0.72)),
    rgba(0, 0, 0, 0.24);
  animation: gradientMove 6s ease infinite;
  background-size: 200% 200%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 50px;
}

.hero-copy {
  color: #fff;
  animation: fadeInUp 0.55s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.7;
}

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

.hero-tags span {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}

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

.hero-poster span,
.play-chip,
.big-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.34);
}

.hero-poster span {
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  font-size: 24px;
}

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

.hero-controls > button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.content-section,
.home-search-block,
.breadcrumb,
.detail-layout,
.footer-inner,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search-block {
  margin-top: -56px;
  position: relative;
  z-index: 6;
}

.search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.search-card h2,
.section-heading h2,
.sub-hero h1,
.detail-card h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.search-card p,
.sub-hero p,
.category-overview-body p,
.detail-section p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-search-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-search-form input {
  min-height: 54px;
}

.hero-search-panel {
  left: 0;
  right: auto;
  width: 100%;
}

.content-section {
  padding: 70px 0 10px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
  animation: heartbeat 1.8s ease-in-out infinite;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link,
.category-overview-card,
.detail-card,
.sidebar-card,
.compact-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link:hover,
.category-overview-card:hover,
.compact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

.wide-card .card-media {
  aspect-ratio: 16 / 9;
}

.card-media img,
.category-cover img,
.compact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card-link:hover .card-media img,
.category-overview-card:hover .category-cover img,
.compact-card:hover .compact-image img {
  transform: scale(1.1);
}

.quality-badge,
.rank-badge,
.compact-rank,
.score-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
}

.quality-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
}

.rank-badge,
.compact-rank {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  background: #f9fafb;
  padding: 5px 9px;
}

.card-body h3 {
  margin: 12px 0 8px;
  min-height: 44px;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.card-link:hover h3,
.compact-card:hover h3 {
  color: var(--red);
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 44px;
}

.card-tags span,
.detail-tags span {
  color: var(--pink);
  background: #fce7f3;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 10px;
}

.compact-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}

.compact-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.compact-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.compact-info p,
.compact-info span {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

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

.category-pill {
  display: grid;
  gap: 10px;
  min-height: 138px;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-pill:nth-child(3n) {
  background: linear-gradient(135deg, var(--orange), var(--yellow), var(--red));
}

.category-pill:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow);
}

.category-pill strong {
  font-size: 22px;
}

.category-pill span {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.editor-section {
  margin-top: 55px;
  padding: 10px 0 72px;
  background: linear-gradient(90deg, #ffedd5, #ffe4e6, #fce7f3);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: clamp(46px, 7vw, 86px);
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--pink), var(--red), var(--orange));
  box-shadow: var(--shadow);
}

.sub-hero .eyebrow {
  color: var(--red);
}

.sub-hero h1 {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  margin: 18px 0;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.sub-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.sub-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 260px;
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.category-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--pink), var(--red));
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-sample-links a,
.category-link-cloud a {
  color: var(--pink);
  background: #fce7f3;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.filter-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-toolbar input {
  width: min(520px, 100%);
}

.filter-toolbar select {
  min-width: 160px;
}

.related-category-links h2 {
  font-size: 28px;
}

.category-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.1);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.player-cover:hover img {
  transform: scale(1.04);
  opacity: 0.72;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.big-play {
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.player-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.player-bottom-bar button {
  pointer-events: auto;
  border: 0;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-bottom-bar button:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.26);
}

.player-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: none;
  transform: translate(-50%, -50%);
  color: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.72);
}

.player-status.show {
  display: block;
}

.detail-card,
.sidebar-card {
  margin-top: 22px;
  padding: 28px;
  overflow: visible;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-card h1 {
  margin-top: 8px;
}

.score-badge {
  position: static;
  white-space: nowrap;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.detail-meta {
  margin: 14px 0 24px;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.detail-section h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-section p {
  margin: 0 0 12px;
}

.detail-tags span {
  font-size: 13px;
}

.review-box {
  border-radius: 22px;
  border: 0;
  padding: 24px;
  background: linear-gradient(135deg, #fff1f2, #eff6ff);
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.prev-next a {
  color: var(--red);
  font-weight: 800;
}

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

.sidebar-list {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding-right: 4px;
}

.sidebar-list .compact-card {
  grid-template-columns: 120px 1fr;
}

.sidebar-list .compact-image {
  aspect-ratio: 16 / 10;
}

.site-footer {
  margin-top: 70px;
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  padding: 52px 0;
}

.footer-brand p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.footer-link-grid a {
  color: #d1d5db;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-content {
    grid-template-columns: 1fr 260px;
  }

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

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

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

  .detail-sidebar {
    position: static;
  }

  .sidebar-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .hero-carousel {
    height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 42px 0 96px;
  }

  .hero-poster {
    width: 210px;
    margin: 0 auto;
  }

  .hero-actions,
  .sub-hero-actions,
  .prev-next,
  .footer-bottom,
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-card,
  .category-overview-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-grid,
  .editor-grid,
  .ranking-grid,
  .ranking-list,
  .category-pill-grid,
  .category-overview-grid,
  .footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-card,
  .sidebar-list .compact-card {
    grid-template-columns: 104px 1fr;
  }

  .hero-search-form {
    grid-template-columns: 1fr;
  }

  .detail-title-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 64px;
  }

  .site-logo,
  .footer-logo {
    font-size: 20px;
  }

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

  .movie-grid,
  .category-grid,
  .editor-grid,
  .ranking-grid,
  .ranking-list,
  .category-pill-grid,
  .category-overview-grid,
  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .card-body h3,
  .card-body p {
    min-height: auto;
  }

  .sub-hero,
  .detail-card,
  .sidebar-card,
  .search-card {
    border-radius: 24px;
    padding: 22px;
  }

  .player-bottom-bar {
    padding: 12px;
  }

  .player-bottom-bar button {
    padding: 8px 12px;
    font-size: 13px;
  }
}
