.ywbb-article-actions {
    margin: 34px 0 24px;
    padding: 12px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ywbb-action-button {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #555555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    line-height: 1;
    position: relative;
    overflow: visible;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, width 0.18s ease, padding 0.18s ease;
}


.ywbb-vote-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
}

.ywbb-vote-button.has-count {
    width: auto;
    min-width: 52px;
    padding: 0 10px;
}

.ywbb-action-count {
    display: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.ywbb-vote-button.has-count .ywbb-action-count {
    display: inline-block;
}

.ywbb-action-button:hover,
.ywbb-action-button:focus-visible {
    color: #00a7c8;
    background: #f4fbfd;
    border-color: #d8f3f8;
    outline: none;
}

.ywbb-action-button:active {
    transform: scale(0.96);
}

.ywbb-action-button.is-selected {
    width: auto;
    padding: 0 12px;
    color: #00a7c8;
    background: #eefbfe;
    border-color: #bdeff7;
    box-shadow: 0 5px 14px rgba(0, 167, 200, 0.14);
}

.ywbb-action-button.just-clicked {
    animation: ywbb-action-pop 0.42s ease;
}

@keyframes ywbb-action-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

.ywbb-vote-button:disabled {
    cursor: default;
    opacity: 0.72;
}

.ywbb-vote-button:disabled:hover {
    color: #555555;
    background: transparent;
    border-color: transparent;
}

.ywbb-vote-button.is-selected:disabled,
.ywbb-vote-button.is-selected:disabled:hover {
    color: #00a7c8;
    background: #eefbfe;
    border-color: #bdeff7;
}

.ywbb-action-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ywbb-action-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ywbb-action-button.is-selected .ywbb-action-count {
    color: currentColor;
}

.ywbb-action-message {
    margin-left: 8px;
    text-align: right;
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
}

.ywbb-action-message:not(:empty) {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eefbfe;
    color: #087f95;
    border: 1px solid #bdeff7;
    font-weight: 600;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ywbb-action-message.is-visible:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}


.ywbb-action-plus-one {
    position: absolute;
    top: -12px;
    right: -6px;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #00a7c8;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 167, 200, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    animation: ywbb-plus-one-float 0.86s ease forwards;
}

@keyframes ywbb-plus-one-float {
    0% { opacity: 0; transform: translateY(5px) scale(0.82); }
    18% { opacity: 1; transform: translateY(0) scale(1.05); }
    100% { opacity: 0; transform: translateY(-15px) scale(1); }
}

@media (max-width: 640px) {
    .ywbb-article-actions {
        gap: 6px;
    }

    .ywbb-action-button {
        min-width: 36px;
        width: 36px;
        height: 36px;
    }

    .ywbb-vote-button,
    .ywbb-action-button.is-selected {
        width: auto;
        min-width: 68px;
        padding: 0 10px;
    }

    .ywbb-action-message {
        flex-basis: 100%;
        margin-left: 0;
        text-align: right;
        margin-top: 2px;
    }
}
