/* n73 «Монтажёр» (montage-game.js): what its card adds to the hall game's (hall-game.css gives the card — a bottom
   sheet on a phone —, the countdown, the board and the podium). Four frames: a row of four on a wide screen, 2 × 2 on
   a phone; the order reads left to right, then the next line (the numbers say it too). */
body.mg-on.lobby-on .video-wrap { overflow: hidden; }
.mg-card { background: #101218; width: min(920px, calc(100% - 20px)); }
.mg-card .hg-body { gap: 10px; min-width: 0; }
.mg-ask { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.mg-arrow { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.mg-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mg-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #07080b; border: 2px solid rgba(255, 255, 255, .1);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .15s, box-shadow .15s; }
.mg-frame img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.mg-frame.broken::after { content: '🎞️'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; opacity: .4; }
.mg-frame:hover { border-color: rgba(229, 160, 13, .45); }
.mg-frame:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 160, 13, .3); }
.mg-frame.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 160, 13, .35); }
.mg-frame.dragging { z-index: 3; cursor: grabbing; border-color: var(--accent); box-shadow: 0 10px 28px rgba(0, 0, 0, .6); transition: none; opacity: .95; }
.mg-pos { position: absolute; left: 6px; top: 6px; z-index: 1; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; font-weight: 800; }
.mg-strip.done .mg-frame { cursor: default; opacity: .8; }
.mg-strip.mg-story .mg-frame { cursor: default; touch-action: auto; }
.mg-told.right { border-color: rgba(76, 200, 120, .85); }
.mg-told.wrong { border-color: rgba(255, 255, 255, .1); }
.mg-at { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #ddd; font-size: 12px; font-variant-numeric: tabular-nums; }
.mg-note { min-height: 18px; font-size: 13px; color: var(--muted); }
.mg-act { display: flex; justify-content: flex-end; }
.mg-done { min-height: 44px; padding: 0 22px; background: var(--accent); color: #111; border: 0; font-weight: 800; }
.mg-done[disabled] { background: rgba(255, 255, 255, .1); color: var(--muted); }
.mg-close { font-size: 15px; color: var(--muted); }
.mg-mine { display: flex; align-items: baseline; gap: 10px; }
.mg-mine small { color: var(--muted); font-size: 13px; }
.mg-pairs { letter-spacing: 2px; color: var(--accent); font-size: 13px; }
.mg-rows .hg-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.mg-film { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: rgba(255, 255, 255, .04); }
.mg-fposter img { display: block; width: 30px; height: 45px; object-fit: cover; border-radius: 4px; }
.mg-ftext { display: flex; flex-direction: column; min-width: 0; }
.mg-ftext small { color: var(--muted); font-size: 12px; }
.mg-ftext b { overflow-wrap: anywhere; }
.mg-year { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .mg-card { width: 100%; }
  .mg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mg-done { width: 100%; min-height: 48px; }
  .mg-card .hg-min { width: 44px; height: 44px; }
}
