#bitmovin-player {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    margin-bottom: 1rem;
    position: relative;
    overflow: visible;
}

.bmpui-ui-controlbar .bmpui-container-wrapper {
    width: 100% !important;
}

@media (max-width: 768px) {
    .story__content.flow {
        overflow: visible;
    }
}

/* Custom Overlay */
#bitmovin-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    z-index: 99998;
    pointer-events: none;
}

/* Custom Audio Button */
#bitmovin-audio-btn {
    position: absolute;
    bottom: 35px;
    left: 12px;
    width: 36px;
    height: 36px;
    color: #fff;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    /* z-index: 9999; */
    z-index: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* Custom Close Button */
#bitmovin-close-btn {
    position: absolute;
    top: -16px;
    right: -14px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 23px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#bitmovin-close-btn:hover {
    background: rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
    #bitmovin-player .bmpui-ui-settings-panel-item {
        padding: 10px !important;
    }
}

/* only on phones (and not tablets) */
@media (max-width: 480px) {
    #bitmovin-player .bmpui-ui-settings-panel-item {
        padding: 10px !important;
    }

    #bitmovin-player .bmpui-ui-controlbar {
        padding-block: 5px !important;
    }

    #bitmovin-player .bmpui-ui-smallcenteredplaybacktogglebutton {
        height: 3rem !important;
        width: 3rem !important;
    }

    #bitmovin-player .bmpui-ui-smallcenteredplaybacktogglebutton .bmpui-ui-icon {
        background-size: 2rem !important;
    }
}