.profile-video-preview {
    position: relative;
    width: 130px;
    height: 130px;
    overflow: visible !important;
}

.profile-video-preview > a,
.profile-video-preview > a > img,
.profile-video-preview > img,
.profile-video-preview > video {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-video-preview > iframe {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    background: #111;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.profile-video-preview > video {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #111;
    visibility: hidden;
    opacity: 0;
}

.profile-video-preview.is-previewing > video {
    visibility: visible;
    opacity: 1;
}

.profile-video-preview.is-previewing > iframe {
    visibility: visible;
    opacity: 1;
}

.profile-video-badge {
    position: absolute;
    z-index: 3;
    right: -5px;
    bottom: -5px;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 5px 9px;
    background: #2185d0;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .25);
}

.profile-video-badge:focus {
    outline: 3px solid #fbbd08;
    outline-offset: 2px;
}

.profile-video-hero {
    position: relative;
    display: inline-block;
}

.profile-video-hero-preview.profile-video-preview {
    width: 250px;
    height: 250px;
    margin-left: 15px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.51);
    background: url('/assets/images/weauditionmask800800.png') no-repeat center center !important;
    background-size: 100% 100% !important;
    box-sizing: border-box;
    overflow: visible;
}

.profile-video-hero-preview > .bigprofileimage {
    margin-left: 0;
    box-shadow: none;
    background: none !important;
    padding: 3px;
    box-sizing: border-box;
}

.profile-video-hero-preview > video {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
    z-index: 1;
    background: #000;
}

/* Bunny's iframe player contains its media inside a square viewport. Zoom and
   crop that viewport so common landscape and portrait videos fill the circle. */
.profile-video-hero-preview > iframe {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    z-index: 1;
    background: #000;
    transform: scale(1.7778);
    transform-origin: 50% 50%;
    clip-path: circle(28.125% at 50% 50%);
}

.profile-video-hero-preview.is-previewing {
    cursor: pointer;
}

.profile-video-hero .profile-video-badge {
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.95;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.profile-video-hero .profile-video-badge .icon {
    margin: 0 !important;
    line-height: 1;
}

.profile-video-hero:hover .profile-video-badge,
.profile-video-hero:focus-within .profile-video-badge,
.profile-video-hero .profile-video-badge:focus {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-video-hero .profile-video-badge:hover {
    transform: scale(1.08);
}

.profile-video-badge .icon.volume-muted,
.profile-video-badge.is-muted .icon {
    position: relative;
    display: inline-block;
}

.profile-video-badge .icon.volume-muted::after,
.profile-video-badge.is-muted .icon::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: #fff;
    transform: translateY(-50%) rotate(-45deg);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.profile-video-badge.is-active .icon.volume-muted::after,
.profile-video-badge:not(.is-muted) .icon::after,
.profile-video-badge .video.play.icon::after,
.profile-video-preview:not(.profile-video-hero-preview) .profile-video-badge .icon::after {
    display: none !important;
    content: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .profile-video-preview > video {
        transition: none;
    }
}

/* Keep media rendering behind the profile photo while autoplay starts. */
.profile-video-hero-preview.is-video-loading > video,
.profile-video-hero-preview.is-video-loading > iframe {
    visibility: visible;
    opacity: 0;
}
