/* AMTake media tools — shared UI (light-styled; theme inverts for dark mode). */
.amedia-tool { max-width: 680px; margin: 0 auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937; }
.amedia-lead { color: #4b5563; margin: 0 0 18px; line-height: 1.6; }
.amedia-drop {
    position: relative; border: 2px dashed #94a3b8; border-radius: 14px;
    background: #f7f9fc; padding: 40px 20px; text-align: center;
    transition: border-color .2s ease, background .2s ease; cursor: pointer;
}
.amedia-drop.is-over, .amedia-drop:hover { border-color: #7c3aed; background: #f3efff; }
.amedia-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.amedia-drop-icon { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #7c3aed, #2e6bf0); color: #fff; }
.amedia-drop p { margin: 0; color: #4b5563; }
.amedia-drop p strong { color: #1f2937; }
.amedia-file { display: none; justify-content: space-between; gap: 12px; align-items: center; background: #eef2f9; border: 1px solid #dbe3f0; border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: 14px; }
.amedia-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amedia-file-size { color: #4b5563; flex: none; }
.amedia-opts { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 4px; font-size: 14px; }
.amedia-opts label { display: flex; flex-direction: column; gap: 5px; color: #374151; font-weight: 500; }
.amedia-opts input, .amedia-opts select { padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1f2937; font: inherit; min-width: 130px; }
.amedia-opts .amedia-hint { font-weight: 400; color: #6b7280; font-size: 12px; }
.amedia-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.amedia-btn { border: 0; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.amedia-btn:disabled { opacity: .5; cursor: not-allowed; }
.amedia-run { background: linear-gradient(135deg, #7c3aed, #2e6bf0); color: #fff; }
.amedia-run:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, .4); }
.amedia-reset { background: #eef2f9; color: #374151; }
.amedia-progress { display: none; height: 8px; background: #e5eaf2; border-radius: 99px; overflow: hidden; margin-top: 18px; }
.amedia-bar { height: 100%; width: 0; background: linear-gradient(90deg, #7c3aed, #2e6bf0); transition: width .3s ease; }
.amedia-status { margin-top: 10px; font-size: 13.5px; color: #4b5563; min-height: 18px; line-height: 1.5; }
.amedia-result { display: none; margin-top: 16px; padding: 14px; border-radius: 10px; background: #e9f9f1; border: 1px solid #b5e8cd; font-size: 14px; color: #14532d; }
.amedia-result-name { display: block; font-weight: 600; }
.amedia-note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #eef4ff; border: 1px solid #cfe0ff; color: #1e3a8a; font-size: 13px; line-height: 1.55; }
