/* ===== FRONTEND ===== */
.e1-mc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 1024px) {
    .e1-mc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .e1-mc-grid { grid-template-columns: 1fr; }
}

.e1-mc-card {
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--base, #fff);
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.e1-mc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.e1-mc-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}
.e1-mc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.e1-mc-card:hover .e1-mc-thumb img { transform: scale(1.04); }

.e1-mc-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.e1-mc-play svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

.e1-mc-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.e1-mc-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}
.e1-mc-desc {
    margin: 0;
    font-size: .9rem;
    opacity: .8;
    line-height: 1.45;
}

/* ===== EDITOR ===== */
.e1-mc-editor .e1-mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.e1-mc-editor .e1-mc-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: .5rem;
    background: #fff;
    box-shadow: none;
    transform: none;
}
.e1-mc-editor .e1-mc-card:hover { transform: none; box-shadow: none; }
.e1-mc-editor .e1-mc-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.e1-mc-editor .e1-mc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.e1-mc-editor .e1-mc-thumb-placeholder { color: #888; font-size: .85rem; }
.e1-mc-editor .e1-mc-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.e1-mc-editor .e1-mc-body { padding: .5rem 0; }
.e1-mc-editor .e1-mc-body strong { display: block; font-size: .95rem; }
.e1-mc-editor .e1-mc-body p { margin: .25rem 0 0; font-size: .8rem; color: #666; }
.e1-mc-editor .e1-mc-actions {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}
.e1-mc-editor .e1-mc-edit-panel {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed #ccc;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.e1-mc-editor .e1-mc-empty {
    padding: 2rem;
    text-align: center;
    background: #f8f8f8;
    border: 1px dashed #ccc;
    border-radius: 8px;
}