.mlp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.mlp-modal {
    width: min(920px, 100%);
    max-height: min(85vh, 720px);
    background: linear-gradient(145deg, #1e1e1e 0%, #141414 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mlp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mlp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.mlp-import-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}
.mlp-import-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}
.mlp-import-btn--busy {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}
.mlp-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.mlp-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mlp-header h2 i { color: #ff6b35; }
.mlp-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}
.mlp-close:hover { background: rgba(255, 255, 255, 0.15); }
.mlp-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mlp-search-row {
    flex-shrink: 0;
}
.mlp-search-field {
    position: relative;
}
.mlp-search-field .fa-search {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.85rem;
    pointer-events: none;
}
.mlp-search-input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #f3f4f6;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}
.mlp-search-input::placeholder {
    color: #6b7280;
}
.mlp-search-input:focus {
    border-color: rgba(255, 107, 53, 0.55);
}
.mlp-search-hint {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: #6b7280;
}
.mlp-content {
    flex: 1;
    min-height: 0;
}
.mlp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.mlp-item {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    text-align: left;
    padding: 0;
    color: inherit;
    font: inherit;
}
.mlp-item:hover {
    border-color: rgba(255, 107, 53, 0.55);
    transform: translateY(-2px);
}
.mlp-item--new {
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.35);
}
.mlp-item-preview {
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mlp-item-preview img,
.mlp-item-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mlp-item-preview--audio {
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.15), rgba(0, 0, 0, 0.5));
}
.mlp-item-preview--audio i {
    font-size: 2rem;
    color: #ff6b35;
}
.mlp-item-meta {
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mlp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
}
.mlp-empty a {
    color: #ff6b35;
    text-decoration: underline;
}
.mlp-empty-hint strong {
    color: #e5e7eb;
}
.mlp-loading {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}
