/**
 * Tool: MOV / MKV / WebM to MP4 Instant Converter
 * Stylesheet: mov-mkv-webm-to-mp4.css
 * Strict 2-Column Desktop / 1-Column Mobile Responsive Grid
 */

/* ── Workspace Root & Global Containers ── */
.mmc-workspace {
    position: relative;
    width: 100%;
    margin: 0 auto;
    color: #f1f5f9;
    font-family: inherit;
}

/* ── Top Header & Privacy Banner ── */
.mmc-header-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mmc-badge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 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;
}

.mmc-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;
}

.mmc-title-gradient {
    background: linear-gradient(135deg, #34d399 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mmc-studio-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #94a3b8;
    max-width: 760px;
    margin: 0;
}

.mmc-quick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.mmc-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;
}

.mmc-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

/* ── Upload Stage ── */
.mmc-upload-stage {
    width: 100%;
    margin-bottom: 30px;
}

.mmc-dropzone {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 80%);
    border: 2px dashed rgba(16, 185, 129, 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);
}

.mmc-dropzone:hover,
.mmc-dropzone.drag-over {
    border-color: #10b981;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.16) 0%, rgba(15, 23, 42, 0.8) 80%);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.mmc-hidden-file-input {
    display: none;
}

.mmc-drop-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #064e3b;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 22px;
    color: #34d399;
}

.mmc-drop-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.mmc-drop-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.mmc-drop-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.mmc-drop-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.mmc-drop-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Main Spatial Studio Stage (Strict Single-Column Flex Container) ── */
.mmc-studio-stage {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

/* ── Top Studio Toolbar (Full Width Horizontal Bar) ── */
.mmc-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;
}

.mmc-toolbar-file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-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;
}

.mmc-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;
}

.mmc-toolbar-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
}

.mmc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mmc-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
}

.mmc-btn-top-convert {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════
   STRICT 2-COLUMN STUDIO GRID
   Desktop: 1.4fr (Left Batch Queue) : 400px (Right Settings)
   Mobile (<992px): 1fr (Stacked)
   ══════════════════════════════════════════════════════════ */
.mmc-studio-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(380px, 420px) !important;
    gap: 24px !important;
    width: 100% !important;
    align-items: start;
}

/* ── COLUMN 1: BATCH QUEUE CARDS TABLE ── */
.mmc-stage-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.mmc-queue-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);
}

.mmc-queue-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mmc-queue-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-queue-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mmc-queue-count-badge {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.mmc-queue-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Batch Files List */
.mmc-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.mmc-file-item {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mmc-file-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: #131c31;
}

.mmc-file-item.converting {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.mmc-file-item.converted {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.mmc-file-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.mmc-ext-badge {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 8px;
    border-radius: 6px;
    background: #1e293b;
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.mmc-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mmc-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mmc-file-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.mmc-mode-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.mmc-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mmc-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e293b;
    color: #cbd5e1;
    transition: all 0.15s;
}

.mmc-btn-action:hover {
    background: #334155;
    color: #ffffff;
}

.mmc-btn-action-primary {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.mmc-btn-action-primary:hover {
    background: #059669;
}

.mmc-btn-action-download {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.mmc-btn-action-del {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 6px;
}

.mmc-btn-action-del:hover {
    color: #f43f5e;
}

/* Batch Progress Bar */
.mmc-batch-progress-wrap {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmc-batch-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.mmc-progress-track {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.mmc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #38bdf8);
    transition: width 0.2s ease-out;
}

.mmc-trust-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    padding: 0 4px;
}

.mmc-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── COLUMN 2: CONVERSION CONTROLS SIDEBAR ── */
.mmc-sidebar-column {
    min-width: 0;
}

.mmc-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);
}

.mmc-sidebar-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mmc-sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mmc-sidebar-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

.mmc-field-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmc-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mmc-slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mmc-slider-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
}

.mmc-select {
    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;
}

.mmc-select:focus {
    border-color: #10b981;
}

/* Mode Cards */
.mmc-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmc-mode-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mmc-mode-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: #06101c;
}

.mmc-mode-card.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
}

.mmc-mode-card input {
    margin-top: 3px;
}

.mmc-mode-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mmc-mode-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mmc-mode-title-row strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.mmc-mode-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.mmc-mode-content p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

/* Checkbox Card */
.mmc-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.mmc-checkbox-card input {
    margin-top: 3px;
}

.mmc-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mmc-checkbox-text strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.mmc-checkbox-text span {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Action Stack */
.mmc-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.mmc-btn-convert-all {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.mmc-btn-convert-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.mmc-btn-zip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Modals & Backdrop ── */
.mmc-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(3, 7, 18, 0.85) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.mmc-modal-backdrop.active,
.mmc-modal-backdrop[style*="display: flex"] {
    display: flex !important;
}

@keyframes mmcModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mmc-modal-dialog {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 540px;
    width: 100%;
    animation: mmcModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mmc-modal-preview {
    max-width: 680px;
}

.mmc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mmc-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mmc-modal-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.mmc-btn-close-modal {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.mmc-btn-close-modal:hover {
    color: #ffffff;
}

.mmc-preview-player-wrap,
.mmc-result-preview-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mmc-preview-video,
.mmc-success-video {
    width: 100%;
    max-height: 380px;
    display: block;
}

.mmc-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;
}

.mmc-modal-success {
    text-align: center;
}

.mmc-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmc-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 ── */
.mmc-seo-section-wrapper {
    margin-top: 48px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS (<992px)
   Enforces Strict 1-Column Mobile Layout
   ══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .mmc-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .mmc-quick-badges {
        justify-content: flex-start;
    }

    .mmc-top-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mmc-toolbar-actions {
        justify-content: flex-end;
    }

    /* Strict 1-Column on Mobile & Tablets */
    .mmc-studio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .mmc-file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mmc-file-actions {
        justify-content: flex-end;
    }
}
