* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --teal-500: #14b8a6;
  --rose-600: #e11d48;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.24);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 38%, var(--slate-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 10px 32px rgba(2, 6, 23, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-400);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.28);
  transition: transform 0.24s ease, background 0.24s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.03);
  background: rgba(16, 185, 129, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 0.78rem;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: #e2e8f0;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.18);
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  background: var(--slate-950);
  color: #ffffff;
}

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

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

.hero-image-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-image-cell {
  position: relative;
  overflow: hidden;
  background: var(--slate-800);
}

.hero-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: saturate(1.05) contrast(1.04);
}

.hero-slide.is-active .hero-image-cell:hover img {
  transform: scale(1.1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(16, 185, 129, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.22) 34%, rgba(2, 6, 23, 0.82)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0 92px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--emerald-600);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--emerald-400);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.24);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  max-width: 780px;
  margin: 22px auto 0;
  color: #e2e8f0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary,
.btn.side-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-feature {
  width: min(760px, 100%);
  margin-top: 34px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.48);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.12), 0 20px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.hero-feature span,
.hero-feature em {
  display: block;
  color: #cbd5e1;
}

.hero-feature strong {
  display: block;
  margin: 6px 0;
  font-size: 1.25rem;
}

.hero-feature em {
  font-style: normal;
  line-height: 1.6;
}

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

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

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

.search-band {
  position: relative;
  z-index: 2;
  margin-top: -28px;
}

.search-shell,
.search-results {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.search-shell h2,
.search-shell p {
  margin: 0;
}

.search-shell h2 {
  font-size: 1.5rem;
}

.search-shell p {
  margin-top: 8px;
  color: var(--slate-500);
}

.search-form,
.filter-panel {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: var(--slate-800);
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.search-form button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: #ffffff;
  background: var(--emerald-600);
  font-weight: 900;
  cursor: pointer;
}

.search-results {
  display: none;
  margin-top: 14px;
  padding: 18px;
}

.search-results.is-open {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-result-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.search-result-card img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-200);
}

.search-result-card strong,
.search-result-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-card strong {
  color: var(--slate-800);
}

.search-result-card span {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, var(--slate-100), var(--slate-50));
}

.dark-rank-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-heading h2,
.section-heading h3,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.section-heading h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.section-heading p {
  margin-top: 10px;
  color: var(--slate-500);
  line-height: 1.7;
}

.eyebrow.rose {
  color: var(--rose-600);
}

.eyebrow.blue {
  color: var(--blue-600);
}

.eyebrow.light,
.light-heading .eyebrow {
  color: var(--emerald-400);
}

.light-heading p {
  color: #cbd5e1;
}

.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 900;
}

.section-more:hover,
.text-link:hover {
  background: rgba(16, 185, 129, 0.18);
}

.light-more {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.dark-rank-section .movie-card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.75));
  opacity: 0.78;
}

.play-dot {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), #f97316);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.32);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--slate-100);
}

.dark-rank-section .card-meta span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--emerald-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0;
  overflow: hidden;
  color: var(--slate-500);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dark-rank-section .card-body p {
  color: #cbd5e1;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 10px;
  color: var(--emerald-700);
  background: rgba(16, 185, 129, 0.1);
}

.category-list {
  display: grid;
  gap: 36px;
}

.category-strip {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.compact-heading {
  margin-bottom: 22px;
}

.compact-card .card-body {
  padding: 14px;
}

.compact-card .card-body h3 {
  font-size: 1rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
}

.category-hero {
  background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
}

.rank-hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(225, 29, 72, 0.28), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-movie-grid {
  align-items: stretch;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover {
  position: relative;
  display: block;
  aspect-ratio: 20 / 9;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.75));
}

.category-cover span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
}

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

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.category-card-body p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.7;
}

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

.sample-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 0.88rem;
  font-weight: 800;
}

.detail-page {
  background: linear-gradient(180deg, var(--slate-50), #ffffff);
}

.detail-shell {
  padding: 34px 0 72px;
}

.detail-breadcrumb {
  color: var(--slate-500);
}

.detail-breadcrumb a:hover {
  color: var(--emerald-700);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.poster-panel,
.related-panel {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 24px 60px rgba(5, 150, 105, 0.4);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.big-play:hover {
  transform: scale(1.08);
  box-shadow: 0 30px 80px rgba(5, 150, 105, 0.46);
}

.detail-card {
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.detail-card h2 {
  margin: 30px 0 12px;
  color: var(--slate-900);
  font-size: 1.45rem;
}

.detail-card p {
  color: var(--slate-600);
  font-size: 1.04rem;
  line-height: 1.9;
}

.detail-one-line {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--slate-700) !important;
  background: var(--slate-50);
  font-weight: 800;
}

.detail-tags a {
  padding: 8px 12px;
  color: var(--emerald-700);
  background: rgba(16, 185, 129, 0.1);
}

.detail-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 22px;
}

.poster-panel,
.related-panel {
  padding: 20px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: var(--slate-200);
}

.poster-panel h2 {
  margin: 18px 0 8px;
  color: var(--slate-900);
  font-size: 1.45rem;
}

.poster-panel p {
  margin: 0 0 16px;
  color: var(--slate-500);
  line-height: 1.6;
}

.side-btn {
  width: 100%;
}

.related-panel h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
}

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

.related-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
  transform: translateX(3px);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.related-card img {
  width: 104px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-200);
}

.related-card strong,
.related-card em {
  display: block;
}

.related-card strong {
  color: var(--slate-800);
  line-height: 1.35;
}

.related-card em {
  margin-top: 6px;
  color: var(--slate-500);
  font-style: normal;
  font-size: 0.86rem;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 50px 0 36px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p,
.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.92rem;
}

.is-filter-hidden {
  display: none !important;
}

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

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

  .search-results.is-open {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-block;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 1.2rem;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

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

  .hero-image-cell:not(:first-child) {
    display: none;
  }

  .hero-content {
    padding: 76px 0 78px;
  }

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

  .search-form,
  .filter-panel {
    flex-direction: column;
  }

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

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

  .detail-aside {
    position: static;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 16px;
  }

  .movie-grid,
  .mini-grid,
  .search-results.is-open {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 56px 0;
  }

  .detail-card,
  .poster-panel,
  .related-panel,
  .category-card-body {
    padding: 18px;
  }

  .related-card {
    grid-template-columns: 92px 1fr;
  }

  .related-card img {
    width: 92px;
    height: 60px;
  }

  .big-play {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }
}
