/**
 * Tool: Visual Audio Waveform Cutter, Merger & Ringtone Studio
 * Stylesheet: audio-cutter-merger-ringtone.css
 * Strict 2-Column Desktop / 1-Column Mobile Responsive Grid
 */

/* ── Workspace Root & Global Containers ── */
.acm-workspace {
    position: relative;
    width: 100%;
    margin: 0 auto;
    color: #f1f5f9;
    font-family: inherit;
}

.acm-header-banner {
    display: none;
}

.acm-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

.acm-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

@media (min-width: 901px) {
    .acm-preview {
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

@media (max-width: 900px) {
    .acm-workspace {
        display: flex !important;
        flex-direction: column !important;
    }
    .acm-preview {
        order: 1 !important;
    }
    .acm-controls {
        order: 2 !important;
    }
}

.acm-badge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.acm-studio-title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.acm-title-gradient {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.acm-studio-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #94a3b8;
    max-width: 760px;
    margin: 0;
}

.acm-quick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.acm-pill-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
}

.acm-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

/* ── Upload Stage ── */
.acm-upload-stage {
    width: 100%;
    margin-bottom: 30px;
}

.acm-dropzone {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(244, 63, 94, 0.08) 0%, rgba(15, 23, 42, 0.6) 80%);
    border: 2px dashed rgba(244, 63, 94, 0.35);
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acm-dropzone:hover,
.acm-dropzone.drag-over {
    border-color: #f43f5e;
    background: radial-gradient(circle at 50% 20%, rgba(244, 63, 94, 0.16) 0%, rgba(15, 23, 42, 0.8) 80%);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.2);
    transform: translateY(-2px);
}

.acm-hidden-file-input {
    display: none;
}

.acm-drop-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4c0519;
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 22px;
    color: #fb7185;
}

.acm-drop-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.acm-drop-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.acm-drop-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.acm-drop-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.acm-drop-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Main Spatial Studio Stage (Strict Single-Column Flex Container) ── */
.acm-studio-stage {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

/* ── Top Studio Toolbar (Full Width Horizontal Bar) ── */
.acm-top-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 18px;
    width: 100%;
    box-sizing: border-box;
}

.acm-toolbar-file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acm-file-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
}

.acm-pill-meta {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 8px;
    margin-left: 4px;
}

/* Mode Switch Tabs in Toolbar */
.acm-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    gap: 6px;
}

.acm-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.acm-mode-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.acm-mode-tab.active {
    background: rgba(244, 63, 94, 0.18) !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.25);
}

.acm-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acm-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
}

.acm-btn-top-export {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.acm-studio-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* ── COLUMN 1: VISUAL WAVEFORM STAGE / MERGER QUEUE ── */
.acm-stage-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* View 1: Audio Cutter View */
.acm-cutter-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Slicing Action Bar */
.acm-slicing-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
}

.acm-action-toggle {
    display: flex;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.acm-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.acm-action-btn:hover {
    color: #ffffff;
}

.acm-action-btn.active {
    background: #1e293b;
    color: #38bdf8;
}

.acm-action-btn[data-action="delete"].active {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.15);
}

.acm-preset-strip {
    display: flex;
    align-items: center;
    gap: 6px;
}

.acm-preset-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.acm-preset-pill {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.acm-preset-pill:hover {
    background: #1e293b;
    color: #ffffff;
}

.acm-preset-pill.active {
    border-color: #f43f5e;
    color: #fb7185;
    background: rgba(244, 63, 94, 0.1);
}

/* Waveform Card */
.acm-waveform-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.acm-waveform-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.acm-trim-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-family: monospace;
}

.acm-trim-stats strong {
    color: #ffffff;
}

.acm-stat-sep {
    color: #475569;
}

.acm-zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 4px;
}

.acm-btn-zoom {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acm-btn-zoom:hover {
    background: #1e293b;
    color: #ffffff;
}

.acm-btn-zoom-fit {
    width: auto;
    padding: 0 6px;
    font-size: 0.7rem;
}

.acm-zoom-label {
    font-size: 0.7rem;
    color: #64748b;
    min-width: 28px;
    text-align: center;
    font-family: monospace;
}

/* Waveform Viewport */
.acm-waveform-viewport {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.acm-waveform-wrap {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: 140px;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.acm-waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Dim Overlays for Selection Modes */
.acm-dim-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.78);
    pointer-events: none;
    z-index: 5;
}

.acm-dim-left {
    left: 0;
    width: 0%;
}

.acm-dim-right {
    right: 0;
    width: 0%;
}

.acm-dim-middle {
    left: 0%;
    width: 0%;
    background: repeating-linear-gradient(
        45deg,
        rgba(244, 63, 94, 0.25),
        rgba(244, 63, 94, 0.25) 10px,
        rgba(3, 7, 18, 0.85) 10px,
        rgba(3, 7, 18, 0.85) 20px
    );
    border-left: 2px dashed #f43f5e;
    border-right: 2px dashed #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acm-delete-tag {
    background: rgba(244, 63, 94, 0.85);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Fade Slopes */
.acm-fade-slope {
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 6;
}

.acm-fade-in-slope {
    left: 0%;
    width: 0%;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.35) 0%, transparent 100%);
    border-right: 1px dotted rgba(244, 63, 94, 0.6);
}

.acm-fade-out-slope {
    right: 0%;
    width: 0%;
    background: linear-gradient(225deg, rgba(56, 189, 248, 0.35) 0%, transparent 100%);
    border-left: 1px dotted rgba(56, 189, 248, 0.6);
}

/* Playhead Line */
.acm-playhead-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    pointer-events: none;
    z-index: 8;
}

/* Dual Draggable Handles */
.acm-trim-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    background: #f43f5e;
    border-radius: 4px;
    cursor: ew-resize;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.6);
    transition: background 0.15s;
}

.acm-trim-handle:hover {
    background: #fb7185;
}

.acm-handle-flag {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 2px 0;
    border-radius: 3px 3px 0 0;
}

.acm-handle-grip {
    width: 2px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 1px;
    margin-bottom: 30px;
}

.acm-handle-start {
    left: 0%;
    transform: translateX(0);
}

.acm-handle-end {
    left: 100%;
    transform: translateX(-100%);
}

/* Transport Bar */
.acm-transport-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acm-transport-main {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.acm-btn-transport-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f43f5e;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background-color 0.2s;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
}

.acm-btn-transport-play:hover {
    background: #fb7185;
    transform: scale(1.05);
}

.acm-btn-transport-skip,
.acm-btn-transport-tool {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.acm-btn-transport-skip:hover,
.acm-btn-transport-tool:hover {
    background: #334155;
    color: #ffffff;
}

.acm-btn-transport-tool.active {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fb7185;
}

.acm-time-display {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 120px;
}

.acm-time-sep {
    color: #64748b;
}

.acm-scrubber-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 60px;
}

.acm-scrubber-slider {
    width: 100%;
    -webkit-appearance: none;
    background: #1e293b;
    height: 6px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.acm-scrubber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fb7185;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
    cursor: pointer;
}

/* ── VIEW 2: MULTI-TRACK MERGER ── */
.acm-merger-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.acm-merger-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.acm-merger-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.acm-merger-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* ── Merger Visual Multi-Track Timeline Stage ── */
.acm-merger-timeline-card {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acm-merger-timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.acm-merger-timeline-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.acm-merger-stat-pill {
    display: inline-flex;
    align-items: center;
}

.acm-merger-timeline-viewport {
    position: relative;
    height: 72px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.acm-merger-timeline-blocks {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
}

.acm-timeline-track-block {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 10px;
    border-right: 1px dashed rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: filter 0.2s;
    user-select: none;
}

.acm-timeline-track-block:hover {
    filter: brightness(1.15);
}

.acm-timeline-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.acm-timeline-block-num {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.acm-timeline-block-title {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.acm-timeline-block-dur {
    font-size: 10px;
    font-family: var(--font-mono, monospace);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
}

.acm-timeline-block-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    opacity: 0.6;
}

.acm-timeline-wave-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
}

.acm-timeline-cf-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(167, 139, 250, 0.25), rgba(167, 139, 250, 0.25) 6px, transparent 6px, transparent 12px);
    border-left: 1px solid #a78bfa;
    border-right: 1px solid #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.acm-timeline-cf-badge {
    font-size: 9.5px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(139, 92, 246, 0.85);
    padding: 2px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.acm-merger-playhead-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8, 0 0 4px #ffffff;
    z-index: 10;
    pointer-events: none;
}

/* ── Dedicated Merger Transport Card ── */
.acm-merger-transport-card {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

/* ── Notice Card for 1 Track ── */
.acm-single-notice-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    animation: fadeIn 0.2s ease-out;
}

/* ── Crossfade Bar ── */
.acm-crossfade-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    flex-wrap: wrap;
}

.acm-crossfade-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.acm-chip {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.acm-chip:hover {
    background: #334155;
    color: #ffffff;
}

.acm-chip.active {
    background: rgba(167, 139, 250, 0.2);
    border-color: #a78bfa;
    color: #c4b5fd;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

/* ── Track Queue List ── */
.acm-track-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
}

.acm-track-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s;
}

.acm-track-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.02);
}

.acm-track-card.active-playback {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.acm-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.acm-track-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1e293b;
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acm-btn-track-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.acm-btn-track-play:hover {
    background: #38bdf8;
    color: #020617;
    transform: scale(1.08);
}

.acm-btn-track-play.playing {
    background: #f43f5e;
    border-color: #f43f5e;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.acm-track-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acm-track-dur {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 6px;
    font-family: var(--font-mono, monospace);
}

.acm-track-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.acm-track-card[draggable="true"] {
    cursor: grab;
}

.acm-track-card.is-dragging {
    opacity: 0.35;
    border: 1px dashed #f43f5e;
}

.acm-track-card.drag-over {
    border-color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    transform: translateY(-2px);
}

.acm-track-drag-handle {
    cursor: grab;
    color: #64748b;
    font-size: 16px;
    padding: 0 4px;
    user-select: none;
    line-height: 1;
}

.acm-track-drag-handle:hover {
    color: #38bdf8;
}

.acm-btn-trim {
    background: rgba(244, 63, 94, 0.12) !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    color: #fb7185 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.acm-btn-trim:hover {
    background: rgba(244, 63, 94, 0.25) !important;
    color: #ffffff !important;
}

.acm-inline-trimmer {
    animation: acmFadeDown 0.2s ease-out;
}

@keyframes acmFadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
    align-items: center;
    gap: 6px;
}

.acm-btn-track-action {
    width: 28px;
    height: 28px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 11px;
}

.acm-btn-track-action:hover:not(:disabled) {
    background: #334155;
    color: #ffffff;
}

.acm-btn-track-action.delete:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.acm-track-cf-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #a78bfa;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px dashed rgba(167, 139, 250, 0.3);
    border-radius: 6px;
    margin: -3px auto;
    width: fit-content;
}

/* ── Merger Drop Target ── */
.acm-merger-drop-target {
    border: 2px dashed rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
    background: rgba(56, 189, 248, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: all 0.2s;
}

.acm-merger-drop-target:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-1px);
}

.acm-merger-drop-target.drag-over {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.acm-merger-drop-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── COLUMN 2: FORMAT CONTROLS & EXPORT SIDEBAR ── */
.acm-sidebar-column {
    min-width: 0;
}

.acm-sidebar-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.acm-section-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acm-label-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.acm-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Format Toggle Buttons */
.acm-format-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.acm-format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.acm-format-btn strong {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.acm-format-btn span {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}

.acm-format-btn.active {
    background: rgba(244, 63, 94, 0.12);
    border-color: #f43f5e;
}

.acm-format-btn.active strong {
    color: #fb7185;
}

.acm-format-btn.active span {
    color: #cbd5e1;
}

.acm-field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acm-select,
.acm-input-text {
    width: 100%;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #f1f5f9;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.acm-select:focus,
.acm-input-text:focus {
    border-color: #f43f5e;
}

/* Slider Rows */
.acm-slider-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acm-slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acm-slider-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fb7185;
}

.acm-range {
    width: 100%;
    -webkit-appearance: none;
    background: #1e293b;
    height: 5px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.acm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fb7185;
    cursor: pointer;
}

/* Curve Grid */
.acm-curve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.acm-radio-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #94a3b8;
}

.acm-radio-pill.active {
    border-color: #f43f5e;
    color: #fb7185;
    background: rgba(244, 63, 94, 0.08);
}

.acm-radio-pill input {
    accent-color: #f43f5e;
}

/* ID3 Inputs */
.acm-id3-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Action CTAs */
.acm-action-stack {
    margin-top: 4px;
}

.acm-btn-export-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.35);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.acm-btn-export-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(244, 63, 94, 0.5);
}

/* ── Modals & Backdrop ── */
.acm-modal-backdrop {
    position: static;
    top: auto; left: auto; right: auto; bottom: auto;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    display: block;
    z-index: 10;
    padding: 0;
    margin-top: 16px;
    width: 100%;
}

.acm-modal-dialog {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acm-modal-success {
    max-width: 520px;
}

.acm-modal-icon-glow {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acm-success-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acm-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.acm-modal-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.acm-progress-track {
    width: 100%;
    height: 10px;
    background: #1e293b;
    border-radius: 5px;
    overflow: hidden;
}

.acm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e, #38bdf8);
    transition: width 0.15s ease-out;
}

.acm-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-family: monospace;
}

.acm-result-audio-wrap {
    width: 100%;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
}

.acm-success-audio {
    width: 100%;
    display: block;
}

.acm-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acm-btn-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px !important;
    border-radius: 10px !important;
}

/* ── SEO Section Wrapper ── */
.acm-seo-section-wrapper {
    margin-top: 48px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS (<992px)
   Enforces Strict 1-Column Mobile Layout
   ══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .acm-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .acm-quick-badges {
        justify-content: flex-start;
    }

    .acm-top-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .acm-toolbar-actions {
        justify-content: flex-end;
    }

    /* Strict 1-Column on Mobile & Tablets */
    .acm-studio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .acm-transport-main {
        flex-wrap: wrap;
    }

    .acm-scrubber-wrap {
        order: 5;
        width: 100%;
        margin-top: 6px;
    }

    .acm-slicing-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .acm-preset-strip {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}


/* ── In-Field Processing & Success Cards (Zero Popups) ── */
.acm-infield-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 12px);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    animation: acmInfieldFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@keyframes acmInfieldFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acm-processing-card {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.04);
}

.acm-success-card {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.04);
}

.acm-infield-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acm-pulse-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(244, 63, 94, 0.2);
    border-top-color: #f43f5e;
    border-radius: 50%;
    animation: acmSpin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes acmSpin {
    to { transform: rotate(360deg); }
}

.acm-infield-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.acm-infield-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

.acm-success-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acm-success-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acm-btn-infield-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.acm-btn-infield-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.acm-infield-player-wrap {
    width: 100%;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
}

.acm-infield-audio {
    width: 100%;
    height: 36px;
    display: block;
}

.acm-btn-download-infield {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.acm-btn-download-infield:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
