.ma-contributors-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.825rem;
}

.ma-avatars-stack {
    display: flex;
    position: relative;
    height: 45px;
}

.ma-avatar-stacked {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #00ff88 0%, #0066ff 100%);
    border: 3px solid #fff;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: bold;
}

/* Second avatar (last one) - Dark grey and red gradient */
.ma-avatar-stacked:nth-child(2) {
    background: linear-gradient(135deg, #ffff00 0%, #ff006e 100%);
}

.ma-avatar-stacked img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cs-meta-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ma-role-badge {
    background: #f0f0f1;
    color: #50575e;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Stack positioning for avatars */
.ma-avatar-stacked:nth-child(1) { left: 0; z-index: 3; }
.ma-avatar-stacked:nth-child(2) { left: 25px; z-index: 2; }
.ma-avatar-stacked:nth-child(3) { left: 50px; z-index: 1; }
.ma-avatar-stacked:nth-child(4) { left: 75px; z-index: 0; }

/* Hover effects */
.ma-avatars-stack:hover .ma-avatar-stacked {
    transform: scale(0.95);
}

.ma-avatar-stacked:hover {
    transform: scale(1.15) !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ma-avatar-stacked:hover img {
    transform: scale(1.1);
}

/* Adjacent avatar hover effects */
.ma-avatar-stacked:hover ~ .ma-avatar-stacked {
    transform: translateX(8px) scale(0.95);
}

/* Adjust container width based on number of avatars */
.ma-avatars-stack[data-count='1'] { width: 45px; }
.ma-avatars-stack[data-count='2'] { width: 70px; }
.ma-avatars-stack[data-count='3'] { width: 95px; }
.ma-avatars-stack[data-count='4'] { width: 120px; }

/* Author archive profile box */
.ma-author-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.ma-author-avatar img,
.ma-author-initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.ma-author-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ff88 0%, #0066ff 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
}

.ma-author-info h2 {
    margin: 0 0 4px;
}

.ma-author-role {
    color: #666;
    margin: 0 0 4px;
}

.ma-author-post-count {
    color: #888;
    font-size: 0.9em;
    margin: 0;
}

.ma-author-bio {
    margin-top: 10px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
}

.ma-author-bio p {
    margin: 0 0 6px;
}

@media (max-width: 768px) {
    .cs-meta-author {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        padding-left: 6px;
        width: 100%;
    }

    .cs-meta-author > * {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .ma-avatar-stacked {
        width: 45px;
        height: 45px;
    }

    .ma-avatars-stack {
        height: 45px;
    }

    .ma-avatar-stacked:nth-child(2) { left: 22px; }
    .ma-avatar-stacked:nth-child(3) { left: 44px; }
    .ma-avatar-stacked:nth-child(4) { left: 66px; }

    .ma-avatars-stack[data-count='2'] { width: 62px; }
    .ma-avatars-stack[data-count='3'] { width: 84px; }
    .ma-avatars-stack[data-count='4'] { width: 106px; }

    /* Reduced hover effects for mobile */
    .ma-avatar-stacked:hover {
        transform: scale(1.1) !important;
    }

    .ma-avatar-stacked:hover ~ .ma-avatar-stacked {
        transform: translateX(5px) scale(0.95);
    }
}
