/* 22514454: монтаж восьми вертикальных роликов. Без скрипта — восемь постеров с подписями,
   в режиме истории — лента исходников, монитор с рамкой 9:16, монтажная линейка и рамка ролика. */

#w22514454 .vx { width: 100%; }
#w22514454 .vx-tape, #w22514454 .vx-mon, #w22514454 .vx-tl, #w22514454 .vx-cap, #w22514454 .vx-shelf-hd { display: none; }

/* ——— без скрипта: восемь постеров ——— */
#w22514454 .vx-rolls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; max-width: 860px; }
#w22514454 .vx-slot { margin: 0; min-width: 0; }
#w22514454 .vx-fr {
  display: block; position: relative; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: #050a18; cursor: zoom-in; color: inherit;
}
#w22514454 .vx-img { display: block; width: 100%; height: 100%; object-fit: cover; }
#w22514454 .vx-ph { display: none; }
#w22514454 .vx-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
#w22514454 .vx-slot.is-play .vx-vid { opacity: 1; }
#w22514454 .vx-slot figcaption { margin-top: 7px; font: 500 14px/1.25 var(--text); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#w22514454 .vx-slot figcaption b { font: 800 17px/1 var(--display); color: var(--mk); margin-right: 3px; }
#w22514454 .vx-slot figcaption span { color: rgba(255, 255, 255, 0.45); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ——— режим истории ——— */
.story #w22514454 .vx { position: absolute; inset: 0; }
.story #w22514454 .vx-tape { display: block; position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
#w22514454 .vx-tape-hd { margin: 0; height: 22px; display: flex; align-items: baseline; gap: 10px; font: 500 13px/22px var(--text); color: var(--soft); white-space: nowrap; }
#w22514454 .vx-tape-hd b { color: #fff; font-weight: 700; }
#w22514454 .vx-tape-sel { margin-left: auto; color: var(--mk); font-weight: 500; }
#w22514454 .vx-tape-view { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
#w22514454 .vx-tape-in { position: absolute; left: 0; top: 0; bottom: 0; will-change: transform; }
#w22514454 .vx-ruler {
  position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 100%) 0 100% / 10% 4px no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
#w22514454 .vx-ruler span { position: absolute; top: 1px; transform: translateX(-50%); font: 500 10px/11px var(--text); color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
#w22514454 .vx-clips, #w22514454 .vx-frags { position: absolute; left: 0; right: 0; top: 14px; bottom: 0; }
#w22514454 .vx-clip { position: absolute; top: 0; bottom: 0; overflow: hidden; box-shadow: inset -2px 0 0 #0b1530; }
#w22514454 .vx-clip img { display: block; height: 100%; width: auto; max-width: none; opacity: 0.78; }
#w22514454 .vx-clip em { position: absolute; left: 3px; top: 3px; padding: 2px 4px; border-radius: 3px; background: rgba(8, 14, 34, 0.72); font: 600 10px/1 var(--text); font-style: normal; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
#w22514454 .vx-frags { pointer-events: none; }
#w22514454 .vx-frag { position: absolute; top: 0; bottom: 0; border-radius: 3px; transition: background-color 0.25s, box-shadow 0.25s; }
#w22514454 .vx-frag b { position: absolute; left: 3px; bottom: 3px; padding: 2px 4px 1px; border-radius: 3px; background: var(--mk); color: var(--ink); font: 800 12px/1 var(--display); opacity: 0; transition: opacity 0.25s; }
#w22514454 .vx-frag.is-on { box-shadow: inset 0 0 0 2px var(--mk); background: rgba(155, 231, 240, 0.1); }
#w22514454 .vx-frag.is-cur { box-shadow: inset 0 0 0 3px var(--mk), 0 0 18px rgba(155, 231, 240, 0.55); background: rgba(155, 231, 240, 0.26); }
#w22514454 .vx-frag.is-done { box-shadow: inset 0 0 0 1px rgba(155, 231, 240, 0.5); background: rgba(6, 12, 30, 0.45); }
#w22514454 .vx-frag.is-on b, #w22514454 .vx-frag.is-cur b, #w22514454 .vx-frag.is-done b { opacity: 1; }
#w22514454 .vx-frag.is-done b { background: rgba(155, 231, 240, 0.55); }
#w22514454 .vx-head { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #ff5b47; box-shadow: 0 0 8px rgba(255, 91, 71, 0.7); will-change: transform; }
#w22514454 .vx-head::before { content: ""; position: absolute; left: -5px; top: 0; border: 6px solid transparent; border-top: 8px solid #ff5b47; border-bottom: 0; }

.story #w22514454 .vx-mon { display: block; position: absolute; left: 0; top: 0; will-change: transform; }
#w22514454 .vx-scr { position: relative; overflow: hidden; border-radius: 8px; background: #000; }
#w22514454 .vx-raw { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(0.9) brightness(0.96); transition: filter 0.3s; }
#w22514454 .vx-scr.is-crop .vx-raw { filter: saturate(0.6) contrast(0.85) brightness(0.9) blur(2px); }
#w22514454 .vx-crop { position: absolute; left: 0; top: 0; overflow: hidden; box-shadow: 0 0 0 2000px rgba(5, 9, 24, 0.66); outline: 2px solid var(--mk); will-change: transform; }
#w22514454 .vx-crop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 33.1%, rgba(255, 255, 255, 0.28) 33.1% 33.6%, transparent 33.6% 66.4%, rgba(255, 255, 255, 0.28) 66.4% 66.9%, transparent 66.9%),
    linear-gradient(transparent 33.1%, rgba(255, 255, 255, 0.28) 33.1% 33.4%, transparent 33.4% 66.6%, rgba(255, 255, 255, 0.28) 66.6% 66.9%, transparent 66.9%);
}
#w22514454 .vx-crop.is-full { box-shadow: none; outline-color: transparent; }
#w22514454 .vx-crop.is-full::after, #w22514454 .vx-crop.is-full span { opacity: 0; }
#w22514454 .vx-graded { position: absolute; left: 0; top: 0; max-width: none; filter: contrast(1.14) saturate(1.2) brightness(1.05); }
#w22514454 .vx-crop span { position: absolute; right: 5px; top: 5px; z-index: 1; padding: 3px 5px 2px; border-radius: 4px; background: var(--mk); color: var(--ink); font: 800 14px/1 var(--display); transition: opacity 0.2s; }
#w22514454 .vx-mon-bar { margin: 0; display: flex; justify-content: space-between; gap: 10px; font: 500 12px/26px var(--text); color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
#w22514454 .vx-shn { color: #fff; font-weight: 700; }
#w22514454 .vx-fx { display: none; }
#w22514454 .vx-mon.is-side .vx-mon-bar { position: absolute; left: calc(100% + 18px); top: 0; flex-direction: column; justify-content: flex-start; gap: 6px; white-space: normal; line-height: 1.35; }
#w22514454 .vx-mon.is-side .vx-shn { order: -1; font: 800 26px/1 var(--display); text-transform: uppercase; }
#w22514454 .vx-mon.is-side .vx-fx { display: block; color: rgba(255, 255, 255, 0.5); }

.story #w22514454 .vx-tl { display: block; position: absolute; left: 0; top: 0; }
#w22514454 .vx-tl-r { display: none; }
#w22514454 .vx-tl-r.is-on { display: block; }
#w22514454 .vx-tr { display: flex; align-items: center; gap: 8px; height: 28px; margin-bottom: 5px; }
#w22514454 .vx-tr > b { flex: none; width: 18px; font: 700 11px/1 var(--text); color: var(--soft); text-align: center; }
#w22514454 .vx-tr-in { position: relative; flex: 1; height: 100%; border-radius: 5px; background: rgba(255, 255, 255, 0.06); }
#w22514454 .vx-b {
  position: absolute; top: 2px; bottom: 2px; padding: 0 6px; overflow: hidden; border-radius: 4px; box-shadow: inset -2px 0 0 #0e1a3a;
  font: 600 12px/24px var(--text); white-space: nowrap; text-overflow: ellipsis;
  opacity: 0; transform: scaleX(0.2); transform-origin: 0 50%; transition: transform 0.35s var(--ease), opacity 0.25s;
}
#w22514454 .vx-b.is-in { opacity: 1; transform: none; }
#w22514454 .vx-b-op { background: #e23a2a; color: #fff6e4; }
#w22514454 .vx-b-ti { background: #ffc738; color: #16110f; }
#w22514454 .vx-b-cp { background: rgba(255, 255, 255, 0.86); color: #16110f; }
#w22514454 .vx-b-sh { background: #3a5aa8; color: #fff; }
#w22514454 .vx-tl-ru { position: relative; height: 14px; margin-left: 26px; }
#w22514454 .vx-tl-ru span { position: absolute; top: 1px; font: 500 10px/12px var(--text); color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
#w22514454 .vx-tl-ru span:first-child { transform: none; }

.story #w22514454 .vx-cap { display: flex; position: absolute; left: 0; top: 0; margin: 0; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; font: 500 13px/1.1 var(--text); color: var(--soft); transition: opacity 0.3s; }
#w22514454 .vx-cap-n { font: 800 21px/1 var(--display); color: #fff; text-transform: uppercase; }
#w22514454 .vx-cap-t { color: #fff; font-weight: 700; }
#w22514454 .vx-cap-s { margin-left: auto; font-variant-numeric: tabular-nums; }
#w22514454 .vx-cap.is-live .vx-cap-s::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff5b47; vertical-align: 1px; }

#w22514454 .vx-ghost { display: none; }
.story #w22514454 .vx-ghost {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: absolute; left: 0; top: 0;
  border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 14px; color: rgba(255, 255, 255, 0.26);
}
#w22514454 .vx-ghost b { font: 800 34px/1 var(--display); }
#w22514454 .vx-ghost span { font: 500 13px/1 var(--text); font-variant-numeric: tabular-nums; }
#w22514454 .vx-ghost em { margin-top: 14px; padding: 0 12px; font: 500 14px/1.3 var(--text); font-style: normal; text-align: center; color: rgba(255, 255, 255, 0.55); opacity: 0; transition: opacity 0.3s; }
#w22514454 .vx-ghost.is-intro em { opacity: 1; }
.story #w22514454 .vx-shelf-hd { display: flex; position: absolute; left: 0; top: 0; margin: 0; gap: 10px; align-items: baseline; font: 500 13px/20px var(--text); color: var(--soft); white-space: nowrap; transition: opacity 0.3s; }
#w22514454 .vx-shelf-hd b { color: #fff; font-weight: 700; }
#w22514454 .vx-done { margin-left: auto; color: var(--mk); font-variant-numeric: tabular-nums; }

.story #w22514454 .vx-rolls { position: absolute; inset: 0; display: block; max-width: none; pointer-events: none; }
.story #w22514454 .vx-slot { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; }
.story #w22514454 .vx-fr { height: 100%; aspect-ratio: auto; border-radius: 7px; background: rgba(255, 255, 255, 0.04); transition: border-radius 0.3s, box-shadow 0.3s; }
.story #w22514454 .vx-slot .vx-img { opacity: 0; transition: opacity 0.25s; }
.story #w22514454 .vx-slot.is-filled .vx-img { opacity: 1; }
.story #w22514454 .vx-slot .vx-ph {
  display: grid; place-items: center; position: absolute; inset: 0; border: 1.5px dashed rgba(255, 255, 255, 0.28); border-radius: inherit;
  font: 800 17px/1 var(--display); color: rgba(255, 255, 255, 0.42);
}
.story #w22514454 .vx-slot.is-filled .vx-ph { display: none; }
.story #w22514454 .vx-slot.is-big .vx-fr { border-radius: 14px; box-shadow: 0 0 0 2px var(--mk), 0 34px 70px -24px rgba(0, 0, 0, 0.8); }
.story #w22514454 .vx-slot.is-build .vx-fr::after {
  content: "Монтаж…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 12px; border-radius: 999px;
  background: rgba(8, 14, 34, 0.78); color: #fff; font: 700 13px/1 var(--text); white-space: nowrap;
}
.story #w22514454 .vx-slot.is-grid .vx-fr { border-radius: 12px; box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.85); }
.story #w22514454 .vx-slot figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 7px; opacity: 0; transition: opacity 0.3s; }
.story #w22514454 .vx-slot.is-grid figcaption { opacity: 1; }

@media (max-width: 899px) {
  #w22514454 .vx-tape-hd { display: none; }
  #w22514454 .vx-tape-view { top: 0; border-radius: 6px; }
  #w22514454 .vx-ruler span { font-size: 11px; line-height: 12px; }
  #w22514454 .vx-clip em, #w22514454 .vx-frag b { display: none; }
  #w22514454 .vx-mon-bar { font-size: 11px; line-height: 18px; }
  #w22514454 .vx-crop span { font-size: 11px; right: 3px; top: 3px; padding: 2px 3px 1px; }
  #w22514454 .vx-tr { height: 16px; margin-bottom: 3px; gap: 4px; }
  #w22514454 .vx-tr > b { width: 11px; font-size: 11px; }
  #w22514454 .vx-b { font-size: 0; top: 2px; bottom: 2px; padding: 0; }   /* на телефоне дорожки без подписей: мелко */
  #w22514454 .vx-tl-ru { display: none; }
  .story #w22514454 .vx-cap { font-size: 11px; gap: 5px; }
  #w22514454 .vx-cap-n { font-size: 16px; }
  #w22514454 .vx-cap-s { display: none; }
  .story #w22514454 .vx-ghost { border-radius: 10px; }
  #w22514454 .vx-ghost b { font-size: 20px; }
  #w22514454 .vx-ghost span { display: none; }
  #w22514454 .vx-ghost em { font-size: 11px; margin-top: 6px; padding: 0 6px; }
  .story #w22514454 .vx-slot .vx-ph { font-size: 12px; border-width: 1px; }
  .story #w22514454 .vx-slot.is-big .vx-fr { border-radius: 10px; }
  .story #w22514454 .vx-slot.is-build .vx-fr::after { font-size: 11px; padding: 5px 8px; }
  .story #w22514454 .vx-slot.is-grid .vx-fr { border-radius: 8px; }
  #w22514454 .vx-slot figcaption { font-size: 11px; margin-top: 4px; }
  #w22514454 .vx-slot figcaption b { font-size: 13px; }
  #w22514454 .vx-slot figcaption span { display: none; }
  /* горизонтальный телефон: только лента и ряд роликов */
  .story #w22514454 .vx.is-short .vx-mon, .story #w22514454 .vx.is-short .vx-tl, .story #w22514454 .vx.is-short .vx-cap,
  .story #w22514454 .vx.is-short .vx-ghost, .story #w22514454 .vx.is-short .vx-shelf-hd, .story #w22514454 .vx.is-short .vx-slot figcaption { display: none; }
  .story #w22514454 .vx.is-short .vx-slot.is-build .vx-fr::after { content: none; }
  .story #w22514454 .vx.is-short .vx-slot.is-big .vx-fr { border-radius: 7px; box-shadow: 0 0 0 2px var(--mk); }
}
@media (max-width: 600px) {
  #w22514454 .vx-rolls { gap: 12px 8px; }
}
