.mts-frontend-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mts-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mts-card-image {
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
}

.mts-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mts-card-body {
    padding: 15px;
}

.mts-card-body h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.mts-meta {
    font-size: 0.9em;
    color: #666;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    visibility: hidden;
}

.spinner.is-active {
    visibility: visible;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.button-primary:hover {
    background: #005177;
}