/* Shared Media Tools UI */
.mt-drop { cursor: pointer; }
.mt-wave-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(91, 140, 255, 0.22);
    touch-action: none;
    user-select: none;
}
.mt-wave {
    display: block;
    width: 100%;
    height: 120px;
    cursor: crosshair;
}
.mt-file-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.mt-rec-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    animation: mtPulse 1s ease infinite;
}
@keyframes mtPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}
body.dark-theme .mt-wave-wrap {
    background: rgba(16, 24, 46, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
}

/* Player transport */
.mt-player,
.vt-preview {
    width: 100%;
    max-width: 100%;
}
.vt-preview {
    max-height: min(52vh, 360px);
    border-radius: 14px;
    background: #0f172a;
    display: block;
    object-fit: contain;
}
.mt-transport {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem 0.75rem;
    align-items: center;
    margin-top: 0.65rem;
}
.mt-transport-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.mt-transport .mt-seek {
    margin: 0;
    min-width: 0;
}
.mt-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}
.mt-rec-timer {
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.mt-file-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(91, 140, 255, 0.06);
    border: 1px solid rgba(91, 140, 255, 0.18);
}
.mt-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.mt-actions-row .form-select {
    max-width: 140px;
    width: auto;
    flex: 1 1 120px;
}

@media (max-width: 576px) {
    .mt-transport {
        grid-template-columns: 1fr;
    }
    .mt-transport-btns {
        width: 100%;
    }
    .mt-transport-btns .btn {
        flex: 1 1 auto;
        min-height: 42px;
    }
    .mt-wave {
        height: 96px;
    }
    .vt-preview {
        max-height: 42vh;
        border-radius: 10px;
    }
    .tool-drop-zone,
    .mt-drop,
    .vt-drop {
        padding: 1.1rem 0.85rem !important;
    }
    .mt-actions-row .form-select,
    .mt-actions-row .btn {
        width: 100%;
        max-width: none;
    }
    main.container.py-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
