.mts-wrapper {
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

#mts-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.mts-search-box input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.mts-tags-box h4 {
    margin: 0 0 10px;
}

.mts-tag-actions {
    margin-bottom: 10px;
}

.mts-tag-actions button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 12px;
    margin-right: 5px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.mts-tag-actions button:hover {
    background: #005177;
}

.mts-tags-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mts-tag-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: background 0.2s;
}

.mts-tag-item:hover {
    background: #eef6fc;
}

.mts-tag-item input {
    margin-right: 6px;
}

.mts-relation-box {
    margin: 15px 0;
}

.mts-relation-box label {
    margin-right: 20px;
    cursor: pointer;
}

.mts-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.mts-submit-btn:hover {
    background: #005177;
}

#mts-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.mts-results-info {
    margin: 20px 0 10px;
    padding: 10px;
    background: #e7f5ee;
    border-left: 4px solid #46b450;
    border-radius: 3px;
}

.mts-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mts-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mts-thumb img {
    width: 120px;
    height: auto;
    border-radius: 4px;
}

.mts-content h3 {
    margin: 0 0 8px;
}

.mts-content h3 a {
    color: #0073aa;
    text-decoration: none;
}

.mts-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.mts-meta span {
    margin-right: 12px;
}

.mts-excerpt {
    color: #333;
    margin-bottom: 8px;
}

.mts-tag-label {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
}

.mts-no-result {
    text-align: center;
    padding: 30px;
    background: #fdf2f2;
    border-left: 4px solid #dc3232;
    border-radius: 3px;
}

.mts-pagination {
    text-align: center;
    margin-top: 20px;
}

.mts-page-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 3px;
}

.mts-page-btn:hover,
.mts-page-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}