/* ================================== */
/* ПРОФИЛЬ: РАСШИРЕННАЯ АВАТАРКА      */
/* ================================== */

/* Оверлей полноэкранной аватарки */
.avatar-expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 30000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.avatar-expanded-image {
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(min(80vw, 80vh) * 0.3);
    font-weight: 600;
    color: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    cursor: pointer;
}
.avatar-expanded-hint {
    margin-top: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-align: center;
    animation: fadeSlideUp 0.3s ease;
}

/* Расширенный режим аватарки внутри модалки (без искажений) */
.user-profile-avatar-wrapper.expanded {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 16px;
    transition: margin 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.user-profile-avatar-wrapper.expanded .user-profile-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
    font-size: 0;
    background-size: cover;
    background-position: center;
    transition: border-radius 0.2s ease, background-size 0.2s ease;
}