/* 视频图床 / 音频图床 共用上传区（与图床上传区视觉一致） */

.mh-zone {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(17, 24, 39, .04);
}

.mh-zone-head {
    padding-bottom: .7rem;
    border-bottom: 1px dashed #eef2f0;
    margin-bottom: .85rem;
}

.mh-zone-hint {
    font-size: .74rem;
    color: #6b7280;
    line-height: 1.5;
}

.mh-dropzone {
    position: relative;
    border: 1.5px dashed #d1d5db;
    border-radius: 12px;
    background: #fbfcfb;
    padding: 1.15rem 1rem;
    text-align: center;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.mh-dropzone:hover,
.mh-dropzone:focus-within {
    border-color: #34d399;
    background: #f4fdf8;
}

.mh-dropzone.is-drag {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 3px rgba(5, 150, 105, .08);
}

.mh-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mh-file-pick-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    margin: 0;
    width: 100%;
    cursor: pointer;
}

.mh-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.15rem;
    margin-bottom: .15rem;
}

.mh-dropzone-title {
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.mh-dropzone-title .mh-link-strong { color: #059669; }

.mh-dropzone-sub {
    font-size: .74rem;
    color: #9ca3af;
    line-height: 1.4;
}

.mh-file-name {
    font-size: .76rem;
    color: #059669;
    background: #ecfdf5;
    border-radius: 999px;
    padding: .12rem .6rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-file-name:empty { display: none; }
.mh-file-name.has-file { color: #047857; }

.mh-pending {
    margin-top: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    padding: .55rem .7rem .6rem;
    background: #fbfcfb;
}

.mh-pending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .4rem;
}

.mh-pending-count {
    font-size: .74rem;
    font-weight: 600;
    color: #065f46;
    font-variant-numeric: tabular-nums;
}

.mh-pending-clear {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: .74rem;
    color: #9ca3af;
    cursor: pointer;
}

.mh-pending-clear:hover { color: #dc2626; }

.mh-pending-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    max-height: 92px;
    overflow-y: auto;
}

.mh-pending-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: 100%;
    padding: .18rem .3rem .18rem .55rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    font-size: .72rem;
    color: #047857;
}

.mh-pending-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-pending-del {
    border: 0;
    background: transparent;
    color: #10b981;
    font-size: .9rem;
    line-height: 1;
    padding: 0 .15rem;
    cursor: pointer;
}

.mh-pending-del:hover { color: #dc2626; }

.mh-zone-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-top: .85rem;
}

.mh-zone-actions-hint {
    font-size: .74rem;
    color: #6b7280;
    line-height: 1.4;
}

.mh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 132px;
    min-height: 40px;
    padding: .5rem 1.5rem;
    background: #059669;
    border: none;
    color: #fff !important;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 10px;
    cursor: pointer;
}

.mh-btn-primary:hover { background: #047857; color: #fff !important; }

.mh-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: .85;
}

.mh-upload-result {
    display: none;
    margin-top: .8rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.5;
    word-break: break-all;
}

.mh-upload-result.is-ok {
    display: block;
    border: 1px solid #a7f3d0;
    background: #f0fdf4;
    color: #065f46;
}

.mh-upload-result.is-err {
    display: block;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.mh-upload-result.is-busy {
    display: block;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
}

@media (max-width: 576px) {
    .mh-zone { padding: .9rem; }
    .mh-dropzone { padding: 1rem .75rem; }
    .mh-zone-actions { flex-direction: column; align-items: stretch; }
    .mh-zone-actions-hint { text-align: center; }
    .mh-btn-primary { width: 100%; min-height: 44px; font-size: .9rem; }
}
