:root {
  --bg: #141414;
  --panel: #181818;
  --panel-2: #202020;
  --line: #2b2b2b;
  --text: #ffffff;
  --muted: #b3b3b3;
  --dim: #808080;
  --brand: #e50914;
  --brand-hover: #f6121d;
  --match: #46d369;
  --radius: 4px;
  --radius-lg: 6px;
  --gutter: 4vw;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
  transition: background-color .3s ease;
}
.site-header.is-scrolled { background: #141414; box-shadow: 0 1px 0 var(--line); }
.brand {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--brand);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: #fff; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #fff; }
.search-link svg { width: 20px; height: 20px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; }

/* ---------- Language picker ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, border-color .2s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 17px; height: 17px; }
.lang-menu summary:hover, .lang-menu[open] summary { color: #fff; border-color: #666; }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 190px;
  max-height: 330px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  transition: background-color .15s ease, color .15s ease;
}
.lang-list a:hover { background: var(--panel-2); color: #fff; }
.lang-list a.is-active { color: #fff; font-weight: 700; }
.lang-list a.is-active::after { content: '✓'; color: var(--brand); font-weight: 900; }
.lang-list a.is-active .lang-code { display: none; }
.lang-code { font-size: 11.5px; font-weight: 700; color: var(--dim); letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: rgba(255,255,255,.78); }
.btn-white::before { content: '▶'; font-size: .8em; }
.btn-dim { background: rgba(109,109,110,.7); color: #fff; }
.btn-dim:hover { background: rgba(109,109,110,.45); }
.btn-red { background: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-hover); }
.btn-lg { padding: 13px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 11px; font-size: 12.5px; gap: 7px; }

main { min-height: 80vh; }

/* ---------- Billboard hero ---------- */
.billboard {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(56.25vw, 92vh);
  padding: 140px var(--gutter) 96px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 20%;
}
.billboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,0) 32%),
    linear-gradient(77deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%);
}
.billboard-content { position: relative; max-width: 640px; }
.billboard-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.billboard-tag b { color: var(--brand); font-size: 20px; font-weight: 900; }
.billboard h1 {
  font-size: clamp(38px, 5.4vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.meta-line .match { color: var(--match); font-weight: 700; }
.meta-line .cert { padding: 1px 7px; border: 1px solid var(--dim); border-radius: 3px; font-size: 13px; }
.billboard-overview {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 17px;
  color: #e5e5e5;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.billboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Rows & sections ---------- */
.section { padding: 28px var(--gutter) 20px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.row-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.row-link { font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .2s ease; }
.row-link:hover { color: #fff; }
.row-controls { display: none; gap: 8px; }
.circle-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.circle-btn:hover { background: var(--panel-2); }
@media (hover: hover) { .row-controls { display: flex; } }

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 208px;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.movie-row::-webkit-scrollbar { display: none; }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }

/* ---------- Movie card ---------- */
.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.movie-card:hover, .movie-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
}
.poster-wrap { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--panel-2); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.movie-card:hover .poster-wrap img { transform: scale(1.045); }
.card-info { padding: 11px 13px 13px; }
.card-info h3 { font-size: 15px; font-weight: 700; line-height: 1.25; }
.card-info h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 8px; margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.card-meta .match { color: var(--match); font-weight: 700; }
.poster-zone { position: relative; }
.card-hover {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 13px 13px;
  background: linear-gradient(180deg, rgba(24,24,24,0) 0%, rgba(24,24,24,.94) 52%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.movie-card:hover .card-hover, .movie-card:focus-within .card-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.card-overview {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #d6d6d6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-actions { display: flex; gap: 8px; }
.card-actions .btn-white::before { font-size: .75em; }
@media (hover: none) {
  .card-hover { display: none; }
}

/* ---------- Top 10 row ---------- */
.top-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 2px 10px;
}
.top-row::-webkit-scrollbar { display: none; }
.top-item { position: relative; display: grid; grid-template-columns: 84px 136px; align-items: end; }
.top-num {
  font-size: 168px;
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.06em;
  color: var(--bg);
  -webkit-text-stroke: 3px #5e5e5e;
  transform: translateX(10px);
  transition: -webkit-text-stroke-color .2s ease;
}
.top-item:hover .top-num { -webkit-text-stroke-color: #9a9a9a; }
.top-item img {
  position: relative;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .25s ease;
}
.top-item:hover img { transform: scale(1.04); }

/* ---------- Perks ---------- */
.perks { margin-top: 48px; padding-top: 44px; padding-bottom: 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.perk-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(229,9,20,.12);
  color: var(--brand);
}
.perk-icon svg { width: 22px; height: 22px; }
.perks h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.perks p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 32ch; }

/* ---------- Footer ---------- */
.footer-cta { padding: 72px var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.footer-cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.footer-cta p { max-width: 560px; margin: 12px auto 26px; color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ---------- Catalog ---------- */
.page-head { padding: 108px var(--gutter) 0; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.page-head p { margin: 8px 0 0; max-width: 640px; color: var(--muted); font-size: 15px; }
.catalog-tools { padding-top: 24px; padding-bottom: 4px; }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 1px solid #555;
  border-radius: var(--radius);
  background: rgba(0,0,0,.45);
  color: #fff;
}
.search-form input::placeholder { color: var(--dim); }
.search-form input:focus { outline: none; border-color: #aaa; }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 2px 12px; color: var(--muted); font-size: 14.5px; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s ease; }
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-bottom-color: var(--brand); }
.type-toggle { display: flex; gap: 6px; margin-bottom: 18px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin-top: 18px; }
.filter-field { display: grid; gap: 5px; }
.filter-field span { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.select {
  min-width: 110px;
  padding: 9px 32px 9px 12px;
  border: 1px solid #555;
  border-radius: var(--radius);
  background: rgba(0,0,0,.45) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  color: #fff;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select:focus { outline: none; border-color: #aaa; }
.select option { background: var(--panel); color: #fff; }
.genre-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.genre-pill { padding: 6px 12px; border: 1px solid #444; border-radius: var(--radius); color: var(--muted); font-size: 13px; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.genre-pill:hover { color: #fff; border-color: #777; }
.genre-pill.is-active { background: #fff; border-color: #fff; color: #000; font-weight: 700; }
.notice { margin: 0 0 18px; padding: 13px 16px; border-left: 3px solid var(--brand); background: var(--panel); color: var(--muted); font-size: 14px; border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.page-link { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid #444; border-radius: var(--radius); color: var(--muted); font-size: 14px; font-weight: 600; }
.page-link:hover { color: #fff; border-color: #777; }
.page-link.is-active { background: #fff; border-color: #fff; color: #000; }

/* ---------- Movie detail ---------- */
.billboard.detail { min-height: min(50vw, 84vh); }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; padding-top: 34px; padding-bottom: 6px; }
.fact-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 14.5px; line-height: 1.6; }
.fact-row .label { flex: 0 0 auto; color: var(--dim); }
.fact-row .value { color: #e5e5e5; }
.fact-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-link {
  padding: 4px 11px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.genre-link:hover { color: #000; background: #fff; border-color: #fff; }


/* ---------- App strip ---------- */
.app-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin: 26px var(--gutter) 6px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
}
.app-strip h2 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.app-strip p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.btn-icon svg { width: 19px; height: 19px; flex: 0 0 auto; }

/* ---------- Trailer ---------- */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.trailer-modal[hidden] { display: none; }
.trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}
.trailer-dialog {
  position: relative;
  width: min(1040px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop-in .24s cubic-bezier(.2,.7,.3,1);
}
.trailer-frame { position: absolute; inset: 0; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-close {
  position: absolute;
  top: -46px;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.trailer-close:hover { background: rgba(255,255,255,.28); }
.billboard-actions .btn-icon svg { width: 18px; height: 18px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 700px) {
  .trailer-close { top: -44px; }
}


/* ---------- Frames ---------- */
.stills-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.stills-row::-webkit-scrollbar { display: none; }
.still {
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-2);
  cursor: zoom-in;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  transition: transform .22s ease, box-shadow .22s ease;
}
.still:hover, .still:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.still:hover img { transform: scale(1.04); }

.still-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.still-modal[hidden] { display: none; }
.still-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(4px); animation: fade-in .2s ease; }
.still-dialog {
  position: relative;
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  animation: pop-in .24s cubic-bezier(.2,.7,.3,1);
}
.still-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.cast-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 128px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.cast-row::-webkit-scrollbar { display: none; }
.cast-card { display: block; background: var(--panel); border-radius: var(--radius-lg); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.cast-card:hover, .cast-card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.5); }
.cast-card img { transition: transform .3s ease; }
.cast-card:hover img { transform: scale(1.05); }
.cast-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--panel-2); }
.cast-name { margin: 9px 11px 0; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.cast-role { margin: 3px 11px 11px; font-size: 12px; color: var(--dim); line-height: 1.3; }
.cast-name:last-child { margin-bottom: 11px; }


/* ---------- Person page ---------- */
.person-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 116px var(--gutter) 8px;
}
.person-photo img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}
.person-intro .eyebrow {
  margin: 4px 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.person-intro h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.person-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.person-meta span { position: relative; }
.person-meta span + span::before { content: '·'; position: absolute; left: -10px; color: var(--dim); }
.person-bio { max-width: 720px; margin: 18px 0 22px; color: #d0d0d0; font-size: 15px; line-height: 1.6; }

.row-count { font-size: 13.5px; font-weight: 600; color: var(--dim); }
.film-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.film-search { flex: 1 1 320px; max-width: 460px; margin: 0; }
.sort-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sort-pill { padding: 8px 13px; border: 1px solid #444; border-radius: var(--radius); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.sort-pill:hover { color: #fff; border-color: #777; }
.sort-pill.is-active { background: #fff; border-color: #fff; color: #000; }
.text-link { color: #fff; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .perks { grid-template-columns: 1fr; gap: 24px; }
  .detail-facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-strip { flex-direction: column; align-items: flex-start; }
  .app-strip .btn { width: 100%; }
  .cast-row { grid-auto-columns: 108px; }
  .stills-row { grid-auto-columns: 260px; }
  .person-head { grid-template-columns: 1fr; gap: 20px; padding-top: 100px; }
  .person-photo { max-width: 180px; }
  .film-tools { flex-direction: column; align-items: stretch; }
  .film-search { max-width: none; }
  .sort-list { justify-content: flex-start; }
  .site-header { gap: 14px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #141414;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px var(--gutter); }
  .billboard { padding-top: 120px; padding-bottom: 56px; min-height: 74vh; align-items: flex-end; }
  .billboard-overview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .movie-row { grid-auto-columns: 168px; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card-actions .btn-xs { flex: 1; }
  .top-row { grid-auto-columns: 172px; }
  .top-item { grid-template-columns: 62px 110px; }
  .top-num { font-size: 120px; -webkit-text-stroke-width: 2px; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .filter-form { align-items: stretch; }
  .filter-field { flex: 1 1 30%; }
  .filter-form .btn { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .header-actions .btn { padding: 8px 12px; font-size: 13px; }
  .lang-menu summary span { display: none; }
  .lang-menu summary { padding: 8px 9px; }
  .billboard h1 { font-size: clamp(34px, 11vw, 52px); }
  .billboard-actions .btn { flex: 1 1 46%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
