/* Shared by post cards, TV previews and Single Video. Content comes from the post policy. */
.epiic-plyr-jukebox-badge,
.epiic-single-plyr-jukebox-badge {
    --epiic-badge-reach: 64px;
    --epiic-badge-offset-x: 0px;
    --epiic-badge-offset-y: 0px;
    --epiic-badge-font-size: 12px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: var(--epiic-badge-reach);
    height: var(--epiic-badge-reach);
    /* Clip at the actual card/TV screen, not at this sizing square. Otherwise
       the ribbon gets visible vertical/horizontal cut-off ends. */
    overflow: visible;
    pointer-events: none;
    transform: translate(var(--epiic-badge-offset-x), var(--epiic-badge-offset-y));
    z-index: 5;
}

.epiic-plyr-jukebox-badge > span,
.epiic-single-plyr-jukebox-badge > span {
    align-items: center;
    background: var(--epiic-plyr-accent-color, var(--epiic-single-plyr-accent-color, #4BB9FB));
    color: #fff;
    display: flex;
    font-family: Oswald, Arial, sans-serif;
    font-size: var(--epiic-badge-effective-font-size, var(--epiic-badge-font-size));
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.7px;
    line-height: 1.15;
    position: absolute;
    left: 50%;
    top: 50%;
    min-height: 28px;
    height: auto;
    width: calc(var(--epiic-badge-reach) * 1.414214 + 28px);
    padding: 8px 28px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(45deg);
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.epiic-plyr-jukebox-badge > span::before,
.epiic-single-plyr-jukebox-badge > span::before {
    /* Extend only the painted band, keeping the label's wrapping width intact.
       Both ends continue beyond the image edges, even with manual offsets. */
    content: "";
    position: absolute;
    inset: 0 -200%;
    background: inherit;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
    z-index: -1;
}
