.vm-grid {
    display: grid;
    grid-template-columns: repeat(var(--vm-columns, 3), 1fr);
    gap: 20px;
    --vm-primary: #007d77;
}

.vm-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vm-card__image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #e8e8e8;
    overflow: hidden;
}

.vm-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-card:hover .vm-card__image img {
    transform: scale(1.05);
}

.vm-card__no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background: #f0f0f0;
}

.vm-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vm-card:hover .vm-card__play-icon {
    opacity: 1;
}

.vm-card__content {
    padding: 14px 16px 16px;
}

.vm-card__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.vm-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

.vm-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vm-badge-youtube {
    background: rgba(204, 0, 0, 0.85);
}

.vm-badge-vimeo {
    background: rgba(26, 180, 234, 0.85);
}

.vm-badge-noticia {
    background: rgba(0, 125, 119, 0.85);
}

.vm-badge-otro {
    background: rgba(100, 100, 100, 0.75);
}

.vm-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* List view */
.vm-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.vm-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.vm-list-item:hover {
    background: #f8f9fa;
}

.vm-list-item__image {
    position: relative;
    width: 80px;
    min-width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.vm-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vm-list-item__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.vm-list-item__image .vm-badge {
    font-size: 9px;
    padding: 2px 5px;
    top: 4px;
    right: 4px;
}

.vm-list-item__content {
    flex: 1;
    min-width: 0;
}

.vm-list-item__title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-list-item__desc {
    margin: 0 0 2px;
    font-size: 12px;
    line-height: 1.3;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-list-item__host {
    font-size: 11px;
    color: #999;
}

.vm-list-item__arrow {
    color: #ccc;
    flex-shrink: 0;
}

.vm-list-item:hover .vm-list-item__arrow {
    color: #666;
}

@media (max-width: 768px) {
    .vm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-card,
    .vm-card__image img,
    .vm-list-item {
        transition: none;
    }
}
