:root {
  --bg: #111413;
  --surface: #1a1f1d;
  --text: #f1f3f2;
  --muted: #a5afaa;
  --line: #323a36;
  --acid: #c8e55a;
  --blue: #65a9d8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
button { font: inherit; }
img { display: block; width: 100%; }
.topbar, main, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 750; text-decoration: none; }
.edition { color: var(--muted); font-size: 13px; }
.catalog-head { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 64px; align-items: end; padding: 68px 0 44px; }
.catalog-head > p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--acid); font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1, h2 { letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; font-size: 44px; line-height: 1.12; }
h2 { margin: 12px 0 8px; font-size: 21px; }
.filters { display: flex; gap: 8px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.filters button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.filters button.active, .filters button:hover { border-color: var(--acid); color: var(--acid); }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px 0 72px; }
.film-grid article[hidden] { display: none; }
.poster { position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.poster img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform 180ms ease; }
.poster:hover img { transform: scale(1.015); }
.poster span { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; border-radius: 4px; background: rgba(17, 20, 19, 0.9); color: var(--acid); font-size: 12px; font-weight: 700; }
.film-meta { display: flex; justify-content: space-between; margin-top: 14px; color: var(--blue); font-size: 12px; text-transform: uppercase; }
.film-grid p { margin: 0; color: var(--muted); }
dialog { width: min(920px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.dialog-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dialog-head button { border: 0; background: transparent; color: var(--acid); cursor: pointer; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
#player-help { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13px; }
footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .catalog-head { grid-template-columns: 1fr; gap: 20px; }
  h1 { font-size: 36px; }
  .film-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .topbar, main, footer { width: min(100% - 28px, 1180px); }
  .edition { display: none; }
  h1 { font-size: 30px; }
  .filters { overflow-x: auto; }
  footer { align-items: start; flex-direction: column; justify-content: center; gap: 4px; }
}

