:root {
  --ash-50: #f8f7f6;
  --ash-100: #efedeb;
  --ash-200: #ddd9d5;
  --ash-300: #c3bdb6;
  --ash-500: #83766d;
  --ash-700: #5a524e;
  --ash-900: #4a4441;
  --fire-50: #fff8f0;
  --fire-100: #ffefd6;
  --fire-300: #ffbd76;
  --fire-500: #ff7a1a;
  --fire-600: #f05d00;
  --ember-50: #fdf4f3;
  --ember-100: #fce7e4;
  --ember-500: #e25e4e;
  --ember-600: #cf4332;
  --forest-50: #f3f6f3;
  --forest-100: #e3e9e3;
  --forest-600: #475e47;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(74, 68, 65, 0.08);
  --shadow-md: 0 16px 34px rgba(74, 68, 65, 0.13);
  --shadow-lg: 0 24px 54px rgba(74, 68, 65, 0.2);
  --radius: 18px;
  --radius-lg: 28px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ash-50);
  color: var(--ash-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 217, 213, 0.7);
  box-shadow: 0 6px 22px rgba(74, 68, 65, 0.08);
}

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

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
  box-shadow: 0 10px 24px rgba(240, 93, 0, 0.28);
  font-size: 17px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 23px;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--ash-500);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--ash-700);
  font-weight: 650;
  font-size: 15px;
  transition: color 0.25s ease;
}

.nav-link-muted {
  color: var(--ash-500);
  font-weight: 560;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ash-100);
  padding: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ash-900);
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 18px;
  background: var(--white);
  border-top: 1px solid var(--ash-200);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-link {
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--ash-700);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--fire-50);
  color: var(--fire-600);
}

.hero {
  padding: 38px 0 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(240, 93, 0, 0.18), transparent 28%),
    linear-gradient(135deg, var(--fire-50), var(--ember-50) 48%, var(--ash-100));
}

.hero-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  background: var(--ash-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 22, 21, 0.9), rgba(25, 22, 21, 0.62) 42%, rgba(25, 22, 21, 0.12)),
    linear-gradient(0deg, rgba(25, 22, 21, 0.55), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  max-width: 680px;
  padding: 64px;
  color: var(--white);
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: var(--fire-100);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

.hero-tags,
.tag-row,
.tag-cloud,
.genre-row,
.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.genre-row span,
.detail-labels span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
  box-shadow: 0 14px 32px rgba(240, 93, 0, 0.28);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-outline {
  color: var(--fire-600);
  background: var(--white);
  border-color: var(--fire-600);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

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

.search-band {
  background: var(--ash-900);
  color: var(--white);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.search-band h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.search-band p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.search-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.search-form input,
.catalog-tools input,
.catalog-tools select {
  width: 100%;
  border: 1px solid var(--ash-200);
  border-radius: 14px;
  outline: none;
  background: var(--white);
  color: var(--ash-900);
}

.search-form input {
  min-height: 48px;
  padding: 0 15px;
  border: 0;
}

.search-form button {
  min-width: 96px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--fire-600);
  font-weight: 750;
}

.section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(135deg, var(--fire-50), var(--ember-50) 52%, var(--ash-100));
}

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

.forest-section {
  background: linear-gradient(135deg, var(--forest-50), var(--ash-50));
}

.split-section {
  background: linear-gradient(135deg, var(--ember-50), var(--fire-50));
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ash-900);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading h2 span {
  color: var(--fire-600);
  font-family: inherit;
  font-size: 28px;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--ash-500);
  max-width: 740px;
}

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

.text-link {
  color: var(--fire-600);
  font-weight: 750;
  white-space: nowrap;
}

.featured-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

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

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

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

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

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

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

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

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

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ash-100);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fire-600), var(--ember-600));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--ash-500);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  gap: 12px;
  color: var(--ash-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 13px;
}

.tag-row span {
  color: var(--ash-700);
  background: var(--ash-100);
  font-size: 12px;
}

.movie-card-featured {
  border-radius: 24px;
}

.movie-card-featured .movie-card-body {
  padding: 22px;
}

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

.movie-card-compact h3 {
  min-height: 44px;
  font-size: 15px;
}

.movie-card-compact p,
.movie-card-compact .tag-row {
  display: none;
}

.category-tile,
.category-overview-card,
.content-card,
.sidebar-card,
.ranking-panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(221, 217, 213, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-count {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--fire-600);
  background: var(--fire-100);
  font-weight: 750;
  font-size: 13px;
}

.category-tile h3,
.category-overview-head h2,
.ranking-panel h2,
.content-card h2,
.sidebar-card h2 {
  margin: 0;
  color: var(--ash-900);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

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

.category-tile p {
  min-height: 58px;
  margin: 10px 0 18px;
  color: var(--ash-500);
}

.category-preview {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--ash-200);
  padding-top: 16px;
}

.category-preview a {
  display: block;
  overflow: hidden;
  color: var(--ash-700);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-preview a:hover {
  color: var(--fire-600);
}

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

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 26px;
}

.ranking-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.ranking-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.ranking-panel a {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--ash-50);
}

.ranking-panel a:hover {
  background: var(--fire-50);
}

.ranking-panel li span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: var(--ash-900);
  font-weight: 800;
}

.ranking-panel strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-panel em {
  color: var(--ash-500);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  background: var(--ash-900);
  color: var(--ash-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 34px;
  padding: 56px 0;
}

.footer-brand {
  margin-bottom: 16px;
  color: var(--white);
}

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

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a:hover {
  color: var(--fire-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--fire-600), var(--ember-600));
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 180px;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--ash-50);
  border: 1px solid var(--ash-200);
}

.catalog-tools-wide {
  grid-template-columns: minmax(320px, 1fr) 220px 220px;
}

.catalog-tools label {
  display: grid;
  gap: 8px;
  color: var(--ash-700);
  font-weight: 700;
  font-size: 14px;
}

.catalog-tools input,
.catalog-tools select {
  min-height: 46px;
  padding: 0 13px;
}

.result-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 24px;
  color: var(--ash-500);
}

.result-line strong {
  color: var(--fire-600);
  font-size: 28px;
}

.empty-state {
  margin: 30px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ash-50);
  color: var(--ash-500);
  text-align: center;
}

.overview-stack {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 28px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.category-overview-head span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--fire-600);
  background: var(--fire-100);
  font-weight: 750;
  font-size: 13px;
}

.category-overview-head h2 {
  font-size: 34px;
}

.category-overview-head p {
  margin: 8px 0 0;
  color: var(--ash-500);
}

.detail-hero {
  padding: 36px 0 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, var(--ash-900), #241f1d 55%, var(--ember-600));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--ash-700);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-labels span {
  color: var(--ash-900);
  background: var(--fire-100);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.85;
}

.genre-row span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  background: #111;
  padding: 42px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32));
  text-align: center;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(240, 93, 0, 0.88);
  box-shadow: 0 18px 42px rgba(240, 93, 0, 0.36);
  font-size: 32px;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.player-message {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(207, 67, 50, 0.92);
  text-align: center;
}

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

.detail-article {
  display: grid;
  gap: 22px;
}

.content-card,
.sidebar-card {
  padding: 28px;
}

.content-card h2,
.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.content-card p {
  margin: 0;
  color: var(--ash-700);
  font-size: 17px;
  line-height: 1.95;
  white-space: pre-line;
}

.review-card {
  border-left: 5px solid var(--forest-600);
  background: var(--forest-50);
}

.tag-cloud span {
  color: var(--ash-700);
  background: var(--ash-100);
}

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

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--ash-50);
  transition: background 0.25s ease;
}

.related-card:hover {
  background: var(--fire-50);
}

.related-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: var(--ash-100);
}

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

.related-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.related-copy strong {
  overflow: hidden;
  color: var(--ash-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-copy em {
  color: var(--ash-500);
  font-size: 13px;
  font-style: normal;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid-six,
  .movie-grid-five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .desktop-nav .nav-link-muted {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-shell,
  .hero-content {
    min-height: 500px;
  }

  .hero-content {
    padding: 46px;
  }

  .search-band-inner,
  .split-layout,
  .footer-grid,
  .detail-hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .movie-grid-three,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-tools,
  .catalog-tools-wide {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }

  .detail-poster {
    max-width: 520px;
  }
}

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

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-shell,
  .hero-content {
    min-height: 520px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-control {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-dots {
    left: 28px;
    bottom: 22px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    min-height: 46px;
  }

  .section {
    padding: 48px 0;
  }

  .section-topline,
  .category-overview-head {
    display: grid;
  }

  .featured-grid,
  .movie-grid-three,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-hero {
    padding: 42px 0;
  }

  .content-card,
  .sidebar-card,
  .category-overview-card {
    padding: 20px;
  }

  .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
