/* Diamond Edit V45 — direct clip sorting and separate sound effect lane. */
.v45-direct-hint{font-size:11px;color:#d6b77d;font-weight:600}
.v34-reorder,.v34-sort{display:none!important}
.v34-clip-group.dragging{z-index:18;filter:drop-shadow(0 0 11px #eec47c99);transform:scale(1.035);transition:transform .1s;opacity:.87}
.v34-clip-group.dragging .v34-clip{border:2px solid #f3c680!important;background:#1c2d42}
.v34-clip-images{touch-action:none!important;cursor:grab;user-select:none;-webkit-user-select:none}
.v45-audio-head{padding:8px 3px 12px}.v45-audio-head>span{color:#e2b879;font-size:10px;letter-spacing:.18em;font-weight:800}.v45-audio-head h3{margin:4px 0;color:#f6f2e9;font-size:20px}.v45-audio-head p,.v45-mixer p{font-size:12px;line-height:1.6;color:#91a7bc;margin:4px 0}
.v45-audio-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:4px 0 14px}.v45-audio-actions button{min-height:51px;border-radius:11px;border:1px solid #334b61;background:#111e2b;color:#f1d0a4;font-size:11px;line-height:1.35;padding:6px 4px;font-weight:650}
.v45-music-library>strong,.v45-mixer>strong,.v45-fx-added>strong{display:block;font-size:12px;color:#eff2f5;margin:9px 0}
.v45-searchbox input{box-sizing:border-box;width:100%;height:39px;margin:3px 0 12px;border-radius:9px;background:#0b1724;border:1px solid #3b546b;color:#f3f6fc;padding:9px;font-size:13px}
.v45-music-results,.v45-fx-list{max-height:300px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:6px}
.v45-music-item{display:flex;align-items:center;gap:11px;width:100%;text-align:left;min-height:62px;padding:8px;border:1px solid #2a3d52;background:#101c2b;border-radius:10px;color:#eff6fe}
.v45-music-item.selected{border-color:#e6b66e;background:#25231e}.v45-music-item>span:nth-child(2){display:grid;flex:1;gap:4px;min-width:0}.v45-music-item strong{font-size:13px}.v45-music-item small{font-size:10px;color:#a1b2c2}.v45-music-item b{color:#f0c789;font-size:19px}
.v45-track-art{display:grid;place-items:center;background:linear-gradient(140deg,#243a51,#0d1927);width:45px;height:45px;flex:0 0 45px;border-radius:8px;color:#e1bb81;font-size:23px}
.v45-mixer{padding:9px 4px;border-top:1px solid #34465b;margin-top:15px}
.v45-fx-categories{display:flex;overflow-x:auto;gap:6px;margin-bottom:12px;scrollbar-width:none}.v45-fx-categories button{white-space:nowrap;background:#0d1b2a;border:1px solid #334b61;color:#adc0d1;border-radius:50px;padding:9px 11px;font-size:11px}.v45-fx-categories button.active{color:#131d2b;background:#e2bd7a;border-color:#e2bd7a;font-weight:750}
.v45-fx-row{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #2d4259;border-radius:10px;background:#111d2b;min-height:51px}.v45-fx-row>button{flex:0 0 36px;min-width:36px;height:36px;border-radius:9px;border:1px solid #54708d;background:#1d3248;color:#fff}.v45-fx-row>button:last-child{color:#0a1725;background:#e9bf7b;border-color:#e9bf7b;font-size:22px}.v45-fx-row>span{display:grid;gap:5px;flex:1}.v45-fx-row b{font-size:12px;color:#ecf3fa}.v45-fx-row small{font-size:10px;color:#8fa7c1}.v45-fx-added{margin-top:12px;padding-top:11px;border-top:1px solid #374d61}.v45-fx-added-row{display:flex;align-items:center;justify-content:space-between;margin:5px 0;gap:12px}.v45-fx-added-row span{font-size:12px}.v45-fx-added-row small{color:#8aa1b9}.v45-fx-added-row button{border-radius:7px;background:#231d1e;color:#f0a8a6;border:1px solid #663b3c;padding:7px;font-size:11px}.v45-fx-added p{font-size:11px;color:#849ab0}
.v45-fx-lane .v45-fx-lane-body{position:relative;flex:1;min-height:32px;overflow-x:auto}.v45-fx-take{position:absolute;top:3px;height:25px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:3px 7px;border-radius:6px;border:1px solid #6fd3e2;background:#0d596e;color:#e9ffff;font-size:10px;z-index:2;touch-action:none;cursor:grab}.v45-fx-take:active{cursor:grabbing;background:#0987a6}.v45-fx-plus{border:1px dashed #496a7c;background:transparent;color:#9dcdd9;padding:4px 9px;border-radius:7px;font-size:11px;height:29px;min-width:135px}
.v45-extract-list{display:grid;gap:7px;max-height:300px;overflow-y:auto}.v45-extract-list button{display:flex;justify-content:space-between;gap:10px;background:#13263a;border:1px solid #33506d;color:#f8e3c5;border-radius:9px;padding:13px;font-size:12px;text-align:left}.v45-extract-list small{color:#9db4c7}
[data-v45-music-search][hidden],[data-v45-fx-search][hidden]{display:none!important}
@media(max-width:650px){.v45-audio-actions button{font-size:10px}.v45-direct-hint{font-size:10px}.v45-fx-list{max-height:240px}.v45-music-results{max-height:225px}}

.v45-music-row{display:flex;align-items:center;gap:6px}.v45-music-row .v45-music-item{flex:1;min-width:0}.v45-music-audition{min-width:41px;width:41px;height:48px;border:1px solid #456785;border-radius:10px;background:#1a334b;color:#c6eaff;font-size:14px}.v45-music-audition:active{background:#295976}
.v45-fx-plus{position:sticky;left:calc(100% - 140px);z-index:1;background:#111c28dd}

.v34-clip-group.v45-drop-target .v34-clip{outline:3px solid #eac07c;outline-offset:2px;box-shadow:0 0 14px #eac07c66}

/* V45 refined: align music and effects to the same global playhead as video thumbnails. */
.v35-layer-stack{--v45-timeline-x:0px;overflow:hidden}
.v35-layer-stack .v35-layer-row{position:relative}
.v35-layer-stack .v35-audio-clip{position:absolute;top:0;left:calc(50% + var(--v45-start,0px) - var(--v45-timeline-x,0px));margin:0!important;width:var(--v45-music-width,190px)!important;max-width:none;min-width:90px;touch-action:none;cursor:grab;z-index:2}
.v35-layer-stack .v35-audio-clip:active{cursor:grabbing}
.v45-fx-lane .v45-fx-lane-body{min-width:0;overflow:hidden}
.v45-fx-plus{position:absolute;right:0;top:1px;z-index:5;background:#152535eb;box-shadow:-5px 0 13px #08111e}
.v45-music-length,.v45-fx-volume{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#e7d8bf;margin:12px 2px}
.v45-music-length output,.v45-fx-volume output{font-size:11px;font-weight:500;color:#94bfdf}
.v45-music-length input,.v45-fx-volume input{accent-color:#deb574;width:100%;min-height:24px}
.v45-external-extract{margin:10px 0;max-width:100%;white-space:normal}
.v45-fx-added-row.selected{background:#18324a;border-radius:8px;padding:3px 5px}
.v45-fx-added-row>button:first-child{background:transparent;color:#dae6f2;border:0;flex:1;text-align:left;padding:8px 3px}
.v45-take-ghost{position:fixed;z-index:99999;pointer-events:none;width:112px;height:58px;transform:translateX(-50%);border:2px solid #ffdf9e;border-radius:8px;background:#172d48 center/cover no-repeat;color:#fff3d4;text-shadow:0 2px 5px #000;font-weight:800;font-size:12px;display:grid;place-items:center;box-shadow:0 11px 28px #000b,0 0 0 3px #d2a66a44}
.v34-clip-group.v45-drop-target{box-shadow:inset 4px 0 #eac181;filter:brightness(1.16)}
.v34-clip-group.v45-drop-moving{opacity:.55}
@media(max-width:650px){.v45-fx-plus{font-size:10px;min-width:118px}.v45-take-ghost{width:94px;height:50px}}

/* Keep the audio waveform anchored directly beneath the video playhead. */
.v35-layer-stack .v35-audio-clip{left:calc(50% - 12px + var(--v45-start,0px) - var(--v45-timeline-x,0px))}

/* V45 mobile studio: keep the video takes and independent audio lanes usable while editing a tool. */
@media (max-width:650px) {
 body .mode-editor.v24-tool-open .editor-layout>.stage-panel {
  flex:0 0 clamp(310px,42dvh,460px)!important;
  height:clamp(310px,42dvh,460px)!important;
  min-height:310px!important;max-height:460px!important;order:1!important;
 }
 body .mode-editor.v24-tool-open .editor-layout>.timeline-panel,
 body .mode-editor.v24-tool-open.v27-visual-panel .editor-layout>.timeline-panel {
  display:block!important;visibility:visible!important;
  height:auto!important;min-height:172px!important;max-height:27dvh!important;
  flex:0 0 auto!important;padding:4px 5px!important;margin:0!important;
  order:2!important;overflow-y:auto!important;overflow-x:hidden!important;
  border-radius:0!important;background:#080b11!important;
 }
 body .mode-editor.v24-tool-open .editor-layout>.properties-panel {
  order:3!important;flex:1 1 0!important;min-height:180px!important;
  max-height:none!important;height:auto!important;padding-bottom:20px!important;
 }
}

/* One-tap sound cues must remain inside their dedicated compact lane. */
.v45-fx-take{min-height:25px!important;height:25px!important;max-height:25px!important;line-height:17px!important}
.v45-fx-plus{min-height:29px!important;height:29px!important}

/* Align every audio lane with the true global video playhead. */
.v35-layer-stack .v35-audio-clip{left:calc(var(--v45-playhead-x,110px) + var(--v45-start,0px) - var(--v45-timeline-x,0px))}
@media(max-width:650px){.v45-fx-plus{min-width:32px!important;width:32px!important;font-size:0!important;padding:3px!important}.v45-fx-plus::after{content:'+';font-size:19px;color:#b1e3f5}}
