:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo {
  color: var(--gray-900);
  font-size: 21px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.logo-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search {
  width: min(300px, 28vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
}

.header-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: var(--blue-600);
  padding: 11px 16px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav-link {
  display: block;
  padding: 13px 4px;
  color: var(--gray-700);
  font-weight: 700;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link.is-active {
  color: var(--blue-600);
}

.mobile-search {
  display: flex;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: 640px;
  padding-top: 76px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #172554 0%, #1e40af 48%, #2563eb 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 18c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6zm0 32c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6zM0 24c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6z' stroke='%23fff' stroke-opacity='.65' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

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

.eyebrow {
  margin: 0 0 18px;
  color: #bfdbfe;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 span,
.hero-copy h2 span {
  display: block;
  margin-top: 12px;
  color: #bfdbfe;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.outline-btn,
.outline-dark-btn,
.light-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: var(--white);
  border: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
}

.hero-section .primary-btn,
.light-btn {
  color: var(--blue-900);
  background: var(--white);
}

.primary-btn:hover,
.outline-btn:hover,
.outline-dark-btn:hover,
.light-btn:hover,
.text-btn:hover {
  transform: translateY(-2px);
}

.outline-btn {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.outline-dark-btn {
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
  background: var(--white);
}

.text-btn {
  color: #dbeafe;
}

.hero-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 20%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.hero-card span {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.section {
  padding: 76px 0;
}

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

.soft-section {
  background: linear-gradient(135deg, var(--gray-50), #eff6ff);
}

.gradient-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.stat-section {
  padding: 42px 0;
  background: var(--gray-50);
}

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

.stat-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  color: var(--blue-600);
  font-size: 28px;
  line-height: 1.15;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
}

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 800;
}

.gradient-section .section-heading span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

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

.category-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--cat-from), var(--cat-to));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.78));
}

.category-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  mix-blend-mode: soft-light;
  opacity: 0.85;
  transition: transform 0.45s ease;
}

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

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

.category-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.category-card span,
.category-overview-body span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.category-card h3,
.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.2;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

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

.compact-grid,
.rank-grid,
.ranking-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

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

.movie-poster {
  position: relative;
  overflow: hidden;
  height: 255px;
  background: #e5e7eb;
}

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

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

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

.movie-region,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  background: var(--blue-600);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.movie-region {
  top: 14px;
  right: 14px;
  padding: 0 12px;
}

.rank-badge {
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--blue-600);
}

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

.movie-tags {
  min-height: 28px;
  margin-bottom: 14px;
}

.movie-tags span,
.detail-chip-group span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-meta strong {
  color: var(--blue-600);
  white-space: nowrap;
}

.center-action {
  margin-top: 36px;
  text-align: center;
}

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

.page-hero,
.category-hero {
  color: var(--white);
  padding: 76px 0;
  text-align: center;
}

.blue-page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.dark-page-hero {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.category-hero {
  background: linear-gradient(135deg, var(--cat-from), var(--cat-to));
}

.page-hero p,
.category-hero p {
  margin: 0 0 12px;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-hero h1,
.category-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero span,
.category-hero span {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 19px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--cat-from), var(--cat-to));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

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

.category-image-stack img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

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

.category-overview-body strong {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--cat-to);
  background: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-600);
  font-weight: 700;
}

.related-channel-links {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.related-channel-links h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.related-channel-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-channel-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eff6ff;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.8fr repeat(5, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.filter-panel input:focus,
.filter-panel select:focus,
.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.empty-state {
  display: none;
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.empty-state.is-visible {
  display: block;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.empty-state p {
  margin: 0;
  color: var(--gray-600);
}

.detail-section {
  padding-top: 40px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
  gap: 34px;
  padding: 30px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-media {
  display: grid;
  gap: 24px;
}

.detail-cover,
.player-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}

.detail-cover img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.player-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.player-box h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-950);
}

.player-frame video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-frame video {
  display: block;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.05);
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.95);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.35);
  font-size: 30px;
  line-height: 1;
}

.detail-info {
  min-width: 0;
}

.detail-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.detail-chip-group {
  margin-bottom: 16px;
}

.tag-group span {
  color: #1f2937;
  background: #f3f4f6;
}

.detail-text {
  margin-top: 24px;
}

.detail-text h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-text p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

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

.related-section {
  padding-bottom: 0;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 54px 0;
}

.footer-logo {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 330px;
  margin: 0 0 16px;
  color: var(--gray-300);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-600);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 18px;
  }

  .header-search {
    width: 240px;
  }

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

  .movie-grid,
  .feature-grid,
  .compact-grid,
  .rank-grid,
  .ranking-page-grid,
  .all-movie-grid,
  .category-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .filter-panel input {
    grid-column: 1 / -1;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    min-height: 780px;
  }

  .hero-inner {
    min-height: 704px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 30px;
    padding: 34px 0 74px;
  }

  .hero-card {
    min-height: 330px;
  }

  .hero-card img {
    height: 330px;
  }

  .stat-grid,
  .category-grid,
  .movie-grid,
  .feature-grid,
  .compact-grid,
  .rank-grid,
  .ranking-page-grid,
  .all-movie-grid,
  .category-movie-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-cover img {
    height: 420px;
  }

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

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

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

  .nav-shell {
    height: 66px;
  }

  .site-logo {
    font-size: 18px;
  }

  .page-main,
  .hero-section {
    padding-top: 66px;
  }

  .hero-section {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 694px;
  }

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

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

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

  .hero-actions {
    align-items: stretch;
  }

  .primary-btn,
  .outline-btn,
  .outline-dark-btn,
  .light-btn,
  .text-btn {
    width: 100%;
  }

  .hero-dots {
    bottom: 24px;
  }

  .section {
    padding: 54px 0;
  }

  .stat-grid,
  .category-grid,
  .movie-grid,
  .feature-grid,
  .compact-grid,
  .rank-grid,
  .ranking-page-grid,
  .all-movie-grid,
  .category-movie-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero,
  .category-hero {
    padding: 54px 0;
  }

  .detail-card {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-cover img {
    height: 360px;
  }

  .detail-info h1 {
    font-size: 32px;
  }

  .detail-one-line {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
