* {
  box-sizing: border-box;
}

:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --orange-500: #f97316;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --purple-500: #8b5cf6;
  --amber-50: #fffbeb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

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

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.28);
}

.logo-text {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-500);
}

.nav-link-sub {
  color: var(--gray-500);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search:focus-within,
.mobile-search:focus-within {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: var(--gray-700);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  border: 0;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.site-main {
  min-height: 68vh;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fffbeb 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(244, 63, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 63, 94, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 500px;
  height: 500px;
  content: "";
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), transparent 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.78fr);
  gap: 46px;
  align-items: center;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--gray-600);
  font-size: 20px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 14px 26px rgba(244, 63, 94, 0.28);
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.button-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.button-ghost:hover {
  color: var(--rose-500);
  background: var(--white);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-stat {
  min-width: 96px;
  padding-right: 24px;
  border-right: 1px solid rgba(107, 114, 128, 0.22);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.hero-stat span {
  color: var(--gray-600);
  font-size: 14px;
}

.hero-showcase {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 18px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster-large,
.hero-poster-small {
  overflow: hidden;
  background: var(--white);
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

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

.hero-poster-large {
  height: 420px;
}

.hero-poster-small {
  height: 300px;
  margin-top: 80px;
}

.hero-card-caption {
  position: absolute;
  right: 10px;
  bottom: 18px;
  width: min(360px, 86%);
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(244, 63, 94, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-card-caption h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-card-caption p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: -24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(244, 63, 94, 0.28);
  border: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--rose-500);
}

.section {
  padding: 74px 0;
}

.section-soft {
  background: var(--white);
}

.section-warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-title,
.categories-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.section-heading p,
.page-hero p,
.categories-intro {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.text-link {
  color: var(--rose-500);
  font-weight: 750;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.category-tile-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.category-blue .category-tile-bg {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.category-orange .category-tile-bg,
.category-amber .category-tile-bg {
  background: linear-gradient(135deg, #f59e0b, var(--orange-500));
}

.category-red .category-tile-bg {
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
}

.category-purple .category-tile-bg {
  background: linear-gradient(135deg, var(--purple-500), #6366f1);
}

.category-pink .category-tile-bg {
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.category-cyan .category-tile-bg {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.category-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.category-tile-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 210px;
  padding: 24px;
}

.category-icon {
  font-size: 36px;
}

.category-tile h3 {
  margin: 24px 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.movie-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: var(--gray-100);
}

.movie-card-compact .poster-wrap {
  height: 240px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.04));
  transition: opacity 0.25s ease;
}

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

.poster-region,
.rank-badge {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
  background: rgba(244, 63, 94, 0.94);
  border-radius: 999px;
}

.poster-region {
  right: 14px;
}

.rank-badge {
  left: 14px;
  min-width: 32px;
  background: var(--orange-500);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  opacity: 0;
  background: rgba(244, 63, 94, 0.9);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

.movie-meta-row span:first-child {
  max-width: 62%;
  padding: 4px 9px;
  overflow: hidden;
  color: var(--rose-600);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--rose-50);
  border-radius: 999px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 12px 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--rose-500);
}

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

.movie-genre {
  overflow: hidden;
  color: var(--gray-400);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.side-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.side-rank-item {
  display: grid;
  grid-template-columns: 32px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-rank-item:hover {
  background: var(--gray-50);
}

.side-rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--rose-500);
  border-radius: 999px;
  font-weight: 800;
}

.side-rank-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.side-rank-item strong,
.side-rank-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-rank-item strong {
  color: var(--gray-900);
  font-size: 14px;
}

.side-rank-item em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.cta-section {
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.cta-section .container {
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-section p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.page-hero {
  padding: 58px 0;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 22%), linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(120px, 180px));
  gap: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-meta {
  color: var(--gray-600);
  font-size: 14px;
}

.no-results {
  display: none;
  padding: 42px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.no-results.is-visible {
  display: block;
}

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

.player-card,
.detail-card,
.info-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.player-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.1));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 28px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.9);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start-button:hover {
  background: var(--rose-600);
  transform: translateY(-2px) scale(1.02);
}

.player-start-button strong {
  font-size: 18px;
}

.player-note {
  padding: 16px 20px;
  color: var(--gray-600);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 23px;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
}

.review-box {
  padding: 22px;
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
  border: 1px solid var(--rose-100);
  border-radius: 16px;
}

.info-card {
  position: sticky;
  top: 94px;
  padding: 24px;
}

.info-list {
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 750;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 10px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 12px;
}

.related-section {
  margin-top: 34px;
}

.related-section h2 {
  margin: 0 0 20px;
  font-size: 28px;
}

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

.category-summary-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.category-summary-card h2 {
  margin: 0 0 10px;
}

.category-summary-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.category-sample-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.category-sample-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--rose-500);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.footer-logo {
  color: var(--white);
  font-size: 21px;
}

.footer-brand p,
.site-footer p {
  color: var(--gray-400);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.footer-socials a:hover {
  background: var(--rose-500);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 17px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: var(--gray-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

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

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

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

  .hero-showcase {
    min-height: 430px;
  }

  .side-panel,
  .info-card {
    position: static;
  }

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

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

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

@media (max-width: 780px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 0 72px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .hero-slide {
    grid-template-columns: 0.92fr 0.76fr;
  }

  .hero-poster-large {
    height: 330px;
  }

  .hero-poster-small {
    height: 240px;
    margin-top: 52px;
  }

  .hero-card-caption {
    right: 0;
    bottom: 10px;
    width: 94%;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

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

  .poster-wrap {
    height: 250px;
  }

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

  .detail-card,
  .info-card,
  .filter-panel {
    padding: 18px;
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .container,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-stats {
    gap: 14px;
  }

  .hero-stat {
    min-width: 80px;
    padding-right: 12px;
  }

  .hero-stat strong {
    font-size: 26px;
  }

  .category-grid,
  .movie-grid,
  .movie-grid-wide,
  .categories-layout,
  .related-section .movie-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-compact .poster-wrap {
    height: 360px;
  }

  .hero-showcase {
    display: none;
  }
}
