/* CANOPY PROFILE MEDIA V20.7.51
   Scoped profile-image and stream-thumbnail integration. Existing account-avatar
   dimensions are intentionally untouched. */

.cf-account-avatar > .canopy-account-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.canopy-profile-image-panel {
    width: min(100%, 760px);
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.canopy-profile-image-copy {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.canopy-profile-image-copy h2 {
    margin: 2px 0 4px;
    font-size: 1.05rem;
}

.canopy-profile-image-copy p {
    margin: 0;
    max-width: 620px;
}

.canopy-profile-image-preview {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.canopy-profile-image-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.canopy-profile-image-fallback {
    font-size: 1.1rem;
    font-weight: 700;
}

.canopy-profile-image-form {
    margin-top: 16px;
}

.canopy-profile-image-form > label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
}

.canopy-profile-image-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.canopy-profile-image-actions input[type="file"] {
    min-width: 240px;
    max-width: 100%;
}

.canopy-profile-image-form small {
    display: block;
    margin-top: 7px;
}

.canopy-stream-profile-image {
    object-fit: cover;
}

video.canopy-profile-stream-poster {
    background-size: cover;
    background-position: center;
}

@media (max-width: 640px) {
    .canopy-profile-image-panel {
        padding: 14px;
    }

    .canopy-profile-image-copy {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .canopy-profile-image-preview {
        width: 52px;
        height: 52px;
    }

    .canopy-profile-image-actions {
        align-items: stretch;
    }

    .canopy-profile-image-actions input[type="file"],
    .canopy-profile-image-actions .button {
        width: 100%;
    }
}