.minefun-emoji-trigger {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 17px;
    line-height: 1;
    transition: all 0.2s ease;
}

.minefun-emoji-trigger:hover,
.minefun-emoji-trigger.active {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    transform: translateY(-1px);
}

.minefun-emoji-trigger.compact {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.post-input-main {
    position: relative;
}

.post-input-textarea {
    padding-right: 44px;
}

.post-inline-emoji {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-color: rgba(251, 191, 36, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 14px;
    z-index: 4;
}

.post-inline-emoji:hover,
.post-inline-emoji.active {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.32);
    transform: translateY(-1px) scale(1.03);
}

.post-option-text-icon {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.post-option-btn:hover .post-option-text-icon,
.post-option-btn.active .post-option-text-icon {
    color: #fbbf24;
    transform: scale(1.05);
}

.minefun-emoji-picker {
    position: fixed;
    z-index: 10080;
    display: none;
    max-height: min(360px, calc(100dvh - 24px));
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, #202329 0%, #171a1f 100%);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.minefun-emoji-picker.active {
    display: block;
    animation: minefunEmojiIn 0.16s ease both;
}

@keyframes minefunEmojiIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.minefun-emoji-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.minefun-emoji-picker-head strong {
    color: #fbbf24;
    font-size: 13px;
}

.minefun-emoji-picker-head span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 700;
}

.minefun-emoji-group + .minefun-emoji-group {
    margin-top: 10px;
}

.minefun-emoji-group-title {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.minefun-emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
}

.minefun-emoji-option {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.15s ease;
}

.minefun-emoji-option:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    transform: translateY(-1px);
}

.comment-input-box .minefun-emoji-trigger.compact,
.reply-input-wrap .minefun-emoji-trigger.compact {
    order: 3;
}

@media (max-width: 520px) {
    .post-input-options {
        flex-wrap: wrap;
    }

    .minefun-emoji-picker {
        left: 8px !important;
        right: 8px;
        width: auto !important;
        max-height: min(330px, calc(100dvh - 24px));
    }

    .minefun-emoji-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .comment-input-box,
    .reply-input-wrap {
        gap: 6px;
    }

    .minefun-emoji-trigger.compact {
        width: 32px;
        height: 32px;
    }
}
