.media-crossfade {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.media-crossfade .media-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    opacity: 1;
    filter: blur(0px);
    transition: opacity 3s ease, filter 3s ease;
}

.media-crossfade .media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 3s ease, filter 3s ease;
}

/* ── Controls overlay ─────────────────────────────────────── */

.mc-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 14px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.52));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.media-crossfade.video-active:hover .mc-controls {
    opacity: 1;
    pointer-events: auto;
}

/* Play / Pause button */
.mc-playpause {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.mc-playpause:hover {
    background: rgba(255, 255, 255, 0.32);
}

.mc-playpause svg {
    width: 13px;
    height: 13px;
    fill: #fff;
    display: block;
}

/* Seek bar */
.mc-seekbar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

/* Expand the click target without enlarging the visible bar */
.mc-seekbar::before {
    content: '';
    position: absolute;
    top: -9px;
    bottom: -9px;
    left: 0;
    right: 0;
}

.mc-progress {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    pointer-events: none;
}
