.wp-block-video--custom-controls {
    position: relative;
}

.wp-block-video--toggle {
    position: absolute;
    inset: 0;
    appearance: none;
    background-color: rgba(0,0,0,0.25);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease-out, justify-content 0.5s ease-out, bottom 0.2s ease-out;
}

.wp-block-video--toggle-icon {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    border-radius: 50vw;
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    font-size: 1.5rem;
    justify-content: center;
    align-items: center;
    transition: width 0.3s ease, height 0.3s ease;
}

.wp-block-video--toggle-icon::after {
    content: "\25B6";
    line-height: 1;
    padding-left: 0.125em;
    padding-top: 0.125em;
}

.wp-block-video--toggle-label {
    color: var(--wp--preset--color--base);
    font-weight: 600;
    font-size: var(--wp--preset--font-size--medium);
    transition: opacity 0.25s ease-out;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle {
    background-color: transparent;
    justify-content: flex-start;
    bottom: 80%;
    transition: background-color 0.3s ease-out, justify-content 0.5s ease-out, bottom 0.2s ease-out 0.3s;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-icon {
    width: 2.25rem;
    height: 2.25rem;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-label {
    opacity: 0;
}

.wp-block-video--custom-controls.playing .wp-block-video--toggle-icon::after {
    content: "\00d7";
    padding: 0;
}