/* The Video row (js/trim-strip.js): the vlog's pictures around the Short; kept = bright, left out = dimmed; under Trim, a
   yellow stretch chosen with a drag */
.ed-trim-strip{height:112px;min-width:0;user-select:none;-webkit-user-select:none}
.ed-trim-strip[hidden],.ed-twick[hidden],.ed-zoom[hidden]{display:none}
.ts{position:relative;height:100%;display:flex;flex-direction:column;gap:6px;padding:0 4px}
.ts-ticks{position:relative;height:16px;font:500 .68rem/16px var(--mono);color:var(--faint)}
.ts-ticks span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.ts-ticks span::after{content:"";position:absolute;left:50%;top:15px;width:1px;height:5px;background:var(--line-2)}
.ts-film{position:relative;flex:1;border-radius:8px;background:#111;touch-action:none;cursor:pointer}
.ts-pics{position:absolute;inset:0;width:100%;height:100%;border-radius:8px;display:block}
/* left out of the Short: still there, dimmed */
.ts-dim{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.66)}
/* cut out by the creator (inside the saved Short): blurred, striped red, "cut" */
.ts-cut{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:hidden;
  background:repeating-linear-gradient(135deg,rgba(255,59,92,.42) 0 6px,rgba(0,0,0,.55) 6px 12px);
  -webkit-backdrop-filter:blur(3px) grayscale(.6);backdrop-filter:blur(3px) grayscale(.6);box-shadow:inset 0 0 0 1px rgba(255,59,92,.6)}
.ts-cut span{padding:1px 6px;border-radius:5px;background:rgba(0,0,0,.7);color:#ff8fa3;font:700 .64rem/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase}
/* the Short's own ends, under Trim: drag them out into the vlog around it, or in */
.ts-grip{position:absolute;top:-4px;bottom:-4px;width:10px;margin-left:-5px;border-radius:5px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.5);z-index:2;pointer-events:none}
.ts-grip::after{content:"";position:absolute;left:50%;top:50%;width:2px;height:14px;margin:-7px 0 0 -1px;background:rgba(0,0,0,.45);border-radius:1px}
/* kept: a light edge round each part */
.ts-keep{position:absolute;top:0;bottom:0;box-sizing:border-box;border:2px solid rgba(255,255,255,.85);border-radius:6px;pointer-events:none}
/* the stretch chosen under Trim */
.ts-sel{position:absolute;top:-4px;bottom:-4px;box-sizing:border-box;background:rgba(255,214,10,.32);border:2px solid var(--cap);border-radius:6px;pointer-events:none;z-index:2}
.ts-sel[hidden]{display:none}
.ts-sel i{position:absolute;top:50%;width:12px;height:34px;margin-top:-17px;border-radius:5px;background:var(--cap);box-shadow:0 0 0 1px rgba(0,0,0,.4)}
.ts-sel i.s{left:-7px}
.ts-sel i.e{right:-7px}
.ts-sel i::after{content:"";position:absolute;left:50%;top:50%;width:2px;height:14px;margin:-7px 0 0 -1px;background:rgba(0,0,0,.45);border-radius:1px}
.ts-hover{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,.7);pointer-events:none;z-index:1}
.ts-hover[hidden]{display:none}
/* where the player is */
.ts-head{position:absolute;top:-6px;bottom:-6px;width:2px;margin-left:-1px;background:var(--primary);box-shadow:0 0 0 1px rgba(0,0,0,.35);border-radius:1px;pointer-events:none;z-index:3}
.ts-head[hidden]{display:none}
.ts-tip{position:absolute;bottom:calc(100% + 22px);transform:translateX(-50%);padding:4px 8px;border-radius:8px;background:var(--raised);
  border:1px solid var(--line-2);font:500 .72rem/1.2 var(--mono);white-space:nowrap;pointer-events:none;z-index:4}
.ts-tip[hidden]{display:none}
/* the big preview over the player while trimming */
.tv-host{position:absolute;inset:0 0 56px;z-index:3;display:flex;align-items:center;justify-content:center;background:rgba(7,7,10,.82);border-radius:16px 16px 0 0;pointer-events:none}  /* (56px: never over the player's controls) */
.tv-host[hidden]{display:none}
.tv-host canvas{height:100%;aspect-ratio:9/16;max-width:100%;display:block;background:#000}
.tv-time{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:4px 10px;border-radius:8px;background:rgba(0,0,0,.7);color:#fff;font:600 .78rem/1.2 var(--mono)}
.tv-time:empty{display:none}
/* the Trim panel (the rest is in css/ai-edit.css: .tr-sum, .tr-row, .tr-steps, .tr-acts) */
.tr-step{display:flex;flex-direction:column;gap:3px;margin:12px 0;padding:10px 12px;border-radius:12px;border:1px dashed var(--line-2);font-size:.84rem}
.tr-step small{font-size:.76rem;color:var(--faint)}
.tr-sel{display:flex;flex-direction:column;gap:8px;margin:12px 0;padding:10px 12px;border-radius:12px;border:1px solid var(--cap);background:var(--cap-soft)}
.tr-sel-h{display:flex;align-items:baseline;justify-content:space-between;font:600 .9rem/1.2 var(--mono)}
.tr-sel-h span{font-size:.78rem;color:var(--muted)}
.tr-why{font-size:.76rem;color:var(--muted)}

/* the playhead's handle (js/trim-strip.js): drag it, or the times above the row, to move through the video */
.ts-ticks{cursor:ew-resize;touch-action:none}
.ts-head{top:-22px;bottom:-4px;transition:none}
.ts-knob{position:absolute;left:50%;top:0;width:16px;height:18px;margin-left:-8px;border-radius:5px 5px 8px 8px;background:var(--primary);box-shadow:0 0 0 2px #fff,0 2px 6px rgba(0,0,0,.45);cursor:grab;pointer-events:auto;touch-action:none}
.ts-knob:hover{transform:scale(1.12)}
.ts-head.drag .ts-knob{cursor:grabbing;transform:scale(1.12)}

/* added to the Short, not saved yet: the lightest green over its pictures */
.ts-add{position:absolute;top:0;bottom:0;background:rgba(134,239,172,.34);box-shadow:inset 0 3px 0 rgb(134,239,172),inset 0 -3px 0 rgb(134,239,172);pointer-events:none}
