.myreactions-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 12px 0;
    gap: 12px;
}

.myreactions-reactions {
    position: relative;
    display: flex;
    align-items: center;
    background: #15131c;
    border-radius: 25px;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    max-height: 40px;
    overflow: hidden;
}

.myreactions-reactions:hover {
    padding: 6px 16px;
}

.myreactions-reaction {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: -12px;
    z-index: 1;
}

.myreactions-reaction:first-child {
    margin-left: 0;
}

.myreactions-reaction:nth-child(2) { z-index: 2; }
.myreactions-reaction:nth-child(3) { z-index: 3; }
.myreactions-reaction:nth-child(4) { z-index: 4; }
.myreactions-reaction:nth-child(5) { z-index: 5; }

.myreactions-reaction img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 3px solid #15131c;
	background: #15131c;
}

.myreactions-reaction strong {
    font-size: 16px;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: absolute;
    left: 100%;
}

.myreactions-reactions:hover .myreactions-reaction {
    margin-left: 8px;
    margin-right: 8px;
    background: #15131c;
    border-radius: 15px;
    padding: 2px 6px;
}

.myreactions-reactions:hover .myreactions-reaction:first-child {
    margin-left: 0;
}

.myreactions-reactions:hover .myreactions-reaction:last-child {
    margin-right: 0;
}

.myreactions-reactions:hover .myreactions-reaction strong {
    opacity: 1;
    transform: translateX(0);
    position: static;
}

.reaction-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
	border: 3px solid #15131c;
	background: #15131c;
}

.reaction-add:hover {
    transform: scale(1.1);
}

.reaction-add i {
    font-size: 16px;
    line-height: 1;
    margin: 0;
    transition: transform 0.3s ease;
}

.reaction-add:hover i {
    transform: rotate(180deg);
}

.myreactions-reacted {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #15131c;
    border-radius: 15px;
}

.myreactions-reacted:empty {
    display: none;
}

.myreactions-reacted img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myreactions-container {
    animation: slideIn 0.5s ease-out;
}

@media (max-width: 900px) {
    .myreactions-container {
        justify-content: center;
    }
    
    .myreactions-reaction {
        margin-left: -8px;
    }
    
    .myreactions-reactions:hover .myreactions-reaction {
        margin-left: 4px;
        margin-right: 4px;
    }
}

.myreactions-react img {
    width: 45px;
    height: 45px;
    padding: 6px;
    transition: transform 0.2s ease;
}

.myreactions-react img:hover {
    transform: scale(1.1);
}

.myreactions-react img.disabled {
    cursor: not-allowed;
    opacity: 0.3;
    filter: grayscale(100%);
}

@media (max-width: 900px) {
    .myreactions-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .myreactions-reactions,
    .reaction-add {
        order: 1;
    }

    .myreactions-reacted {
        order: 2;
    }
}