/* CapCut-style transition buttons on each cut (beat-timeline-txbuttons.js),
   on the LYRC tokens: one blue accent, flat, shadow only on the popover. */

/* The old displays are replaced: the drifting transitions lane and the chip
   row drawn over the Edit row. */
.sb-bt-track--transitions { display: none !important; }
#beatRail .sb-bt-transitions-row { display: none !important; }

#beatRail { position: relative; }
/* z 12 (2026-11-16): the first cut's button sat under the clip's trim handle and could not be clicked */
.cfx-tx-layer { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 12; }
.cfx-tx {
  position: absolute; top: 50%; width: 20px; height: 20px; margin: 0; padding: 0;
  transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  display: grid; place-items: center; border-radius: 6px;
  background: rgba(10,10,13,.82); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.4);
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.cfx-tx svg { width: 12px; height: 12px; }
.cfx-tx:hover { transform: translate(-50%, -50%) scale(1.12); background: #F2F4F8; color: #15161C; }
.cfx-tx:active { transform: translate(-50%, -50%) scale(.94); }
.cfx-tx.has-tx { background: #3B82F6; color: #fff; border-color: #3B82F6; }
.cfx-tx.is-open { box-shadow: 0 0 0 2px rgba(59,130,246,.55); }
.cfx-tx:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(59,130,246,.55); }

.cfx-tx-pop {
  position: fixed; z-index: 9000; width: 240px; padding: 6px;
  background: #1C1E26; border: 1px solid #2A2C36; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.55); font-family: 'Inter', -apple-system, sans-serif;
  animation: cfxPopIn 200ms cubic-bezier(0,0,.2,1);
  max-height: calc(100vh - 16px); overflow-y: auto; /* 10 transitions since 2026-11-17 */
}
.cfx-tx-pop-h { padding: 6px 8px 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cfx-tx-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 6px;
  background: transparent; color: #fff; text-align: left; cursor: pointer;
}
.cfx-tx-opt:hover { background: #22242E; }
.cfx-tx-opt.is-on { background: rgba(59,130,246,.14); }
.cfx-tx-opt-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #15161C; border: 1px solid #2A2C36; color: #fff; }
.cfx-tx-opt.is-on .cfx-tx-opt-ic { background: #3B82F6; border-color: #3B82F6; }
.cfx-tx-opt-ic svg { width: 14px; height: 14px; }
.cfx-tx-opt-t { display: flex; flex-direction: column; min-width: 0; }
.cfx-tx-opt-t b { font-size: 13px; font-weight: 600; }
.cfx-tx-opt-t i { font-style: normal; font-size: 12px; color: rgba(255,255,255,.5); }
@keyframes cfxPopIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cfx-tx-pop { animation: none; } }

/* Clip length grips: one on every cut, drag to move the cut. */
.cfx-grip-layer { position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 5; pointer-events: none; }
.cfx-grip { position: absolute; top: 0; bottom: 0; width: 16px; margin-left: -8px; pointer-events: auto; cursor: ew-resize; touch-action: none; outline: none; }
.cfx-grip i { position: absolute; left: 50%; top: 8px; width: 5px; height: 22px; margin-left: -2.5px; border-radius: 3px; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.55); transition: background 120ms ease-out, height 120ms ease-out; }
.cfx-grip:hover i, .cfx-grip:focus-visible i, .cfx-grip.is-drag i { background: #3B82F6; height: 30px; }
.cfx-grip.is-drag::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #3B82F6; }
.is-gripping, .is-gripping * { cursor: ew-resize !important; user-select: none; }
.cfx-grip-tip { position: fixed; z-index: 10000; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; font: 600 12px/1.2 system-ui, sans-serif; color: #fff; background: rgba(10,10,13,.92); border: 1px solid rgba(255,255,255,.3); pointer-events: none; white-space: nowrap; }
.cfx-grip-tip[hidden] { display: none; }

/* Effects scope: whole video or the selected clip. */
.cfx-scope { display: flex; gap: 4px; margin: 0 0 10px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.cfx-scope button { flex: 1; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: 600 12px/1 system-ui, sans-serif; cursor: pointer; opacity: .75; }
.cfx-scope button.is-on { background: #3B82F6; color: #fff; opacity: 1; }
