/* Das Video belegt exakt dieselbe Fläche wie das Avatarfoto. */
.avatar-hud-image .sun-live-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #071523;
    opacity: 0;
    pointer-events: none;
}
.avatar-hud-image.is-live .sun-live-video { opacity: 1; transition: opacity .3s ease; }
.avatar-hud-image .sun-live-badge {
    position: absolute;
    left: 50%;
    top: 13%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid #ff6476;
    border-radius: 999px;
    background: #190a11dd;
    color: #fff;
    font: 700 10px/1.2 system-ui, sans-serif;
    letter-spacing: .12em;
    white-space: nowrap;
    box-shadow: 0 0 10px #ff405655;
    pointer-events: none;
}
.avatar-hud-image .sun-live-badge[hidden] { display: none; }
.sun-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5269;
    box-shadow: 0 0 6px #ff5269;
    animation: sunLivePulse 2.4s ease-in-out infinite;
}
@keyframes sunLivePulse { 50% { opacity: .48; } }
.avatar-identity:has(.avatar-hud-image.is-live) { --hud-color: #ff5269; }
@media (prefers-reduced-motion: reduce) {
    .sun-live-badge::before { animation: none; }
    .avatar-hud-image.is-live .sun-live-video { transition: none; }
}
