/* 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; }
.cfx-tx-layer { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 6; }
.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);
}
.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; } }
