.jamia-floating-video[hidden] {
    display: none !important;
}

.jamia-floating-video {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1040;
    font-family: Arial, sans-serif;
}

.jamia-video-card {
    width: 190px;
    overflow: hidden;
    border-radius: 10px;
    background: #09291d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
}

.jamia-video-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 3px 5px 3px 10px;
    background: #07633b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.jamia-video-actions {
    display: flex;
}

.jamia-video-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
}

.jamia-video-actions button:hover,
.jamia-video-actions button:focus-visible {
    background: rgba(255, 255, 255, .2);
}

.jamia-video-body {
    position: relative;
    display: flex;
    justify-content: center;
    background: #000;
}

.jamia-video-body video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: min(45vh, 350px);
    object-fit: contain;
    background: #000;
}

.jamia-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 0 0 3px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(7, 99, 59, .9);
    color: #fff;
    font-size: 18px;
}

.jamia-floating-video.is-playing .jamia-video-play {
    display: none;
}

.jamia-floating-video.is-expanded .jamia-video-card {
    width: min(340px, calc(100vw - 24px));
}

.jamia-floating-video.is-expanded .jamia-video-body video {
    max-height: min(68vh, 600px);
}

.jamia-video-launcher {
    display: none;
}

@media (max-width: 575px) {
    .jamia-floating-video {
        left: 12px;
        bottom: 12px;
    }

    .jamia-floating-video.is-expanded {
        bottom: 76px;
    }

    .jamia-video-card {
        display: none;
    }

    .jamia-video-launcher {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        padding: 0 0 0 3px;
        border: 0;
        border-radius: 50%;
        background: #07633b;
        color: #fff;
        font-size: 18px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    }

    .jamia-floating-video.is-expanded .jamia-video-card {
        display: block;
        width: min(240px, calc(100vw - 24px));
    }

    .jamia-floating-video.is-expanded .jamia-video-body video {
        max-height: min(60vh, calc(100vh - 100px));
    }

    .jamia-floating-video.is-expanded .jamia-video-launcher {
        display: none;
    }
}
