.emma-card-video {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #6948bd;
    color: #fff;
    box-shadow: 0 5px 14px rgba(53, 37, 84, .22);
    cursor: pointer;
    transition: background .16s, transform .16s;
}
.emma-card-video:hover { background: #f36f2f; transform: scale(1.06); }
.emma-card-video svg { width: 18px; height: 18px; }
.emma-card-video--archive { bottom: 12px; }

.emma-card-video-modal[hidden] { display: none; }
.emma-card-video-modal {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(22, 18, 29, .86);
    backdrop-filter: blur(8px);
}
.emma-card-video-modal__panel {
    position: relative;
    width: min(880px, 94vw);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: #111;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
}
.emma-card-video-modal video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 5 / 3; object-fit: contain; background: #111; }
.emma-card-video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 540px) {
    .emma-card-video { right: 8px; bottom: 8px; width: 32px; height: 32px; }
    .emma-card-video svg { width: 16px; height: 16px; }
    .emma-card-video-modal { padding: 12px; }
    .emma-card-video-modal__panel { width: 100%; }
}
