/* DIGITHRONEX · The Cut · scrub and cut handle. Load after glass.css. */

/* Scrub */
.scrub-track { position: relative; height: 56px; display: flex; gap: 2px; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scrub-clip { position: relative; min-width: 0; display: flex; align-items: flex-end; padding: 6px 8px; overflow: hidden; background: var(--raised); }
.scrub-clip span { font-family: var(--font-mono); font-stretch: 87.5%; font-size: 10.5px; color: rgba(255, 255, 255, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub-playhead { position: absolute; top: -16px; bottom: -6px; left: 0; width: 32px; margin-left: -16px; display: flex; flex-direction: column; align-items: center; z-index: 3; cursor: grab; }
.scrub-playhead:focus-visible { outline-offset: 0; }
.scrub-head { width: 30px; height: 20px; flex: none; transform: scale(var(--sx, 1), var(--sy, 1)); transform-origin: 50% 100%; box-shadow: var(--glass-rim), var(--glass-disp), var(--glass-body), 0 6px 14px -6px rgba(0, 0, 0, .6); }
.scrub-head.is-pressed { transform: scale(var(--sx, 1), var(--sy, 1)); }
.scrub-stem { flex: 1; width: 2px; background: var(--brand-azure); }

/* Cut handle */
.cutframe { --p: 50%; --dx: 0px; --len: 100%; --rot: 45deg; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cut-before { position: absolute; inset: 0; z-index: 1; clip-path: polygon(0 0, calc(var(--p) + var(--dx) / 2) 0, calc(var(--p) - var(--dx) / 2) 100%, 0 100%); }
.cut-after { position: absolute; inset: 0; }
.cut-line { position: absolute; left: var(--p); top: 50%; width: 2px; height: var(--len); background: var(--brand-azure); transform: translate(-50%, -50%) rotate(var(--rot)); pointer-events: none; z-index: 2; }
.cut-handle { position: absolute; left: var(--p); top: 50%; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; cursor: grab; box-shadow: var(--glass-rim), var(--glass-disp), var(--glass-body), 0 10px 22px -10px rgba(0, 0, 0, .7); }
.cut-handle i { display: block; width: 2px; height: 18px; background: #fff; transform: rotate(var(--rot)); }
.cut-handle.is-pressed { transform: scale(1.16, .88); }
.cut-tag { position: absolute; bottom: 14px; z-index: 2; padding: 6px 10px; font-family: var(--font-mono); font-stretch: 87.5%; font-size: 11px; color: #fff; }
.cut-tag--before { left: 16px; }
.cut-tag--after { right: 16px; }
