.social-stat-link {
    appearance: none;
    background: transparent;
    border: 0;
    color: #65676B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: inherit;
    padding: 0;
    white-space: nowrap;
}

.social-stat-link:hover {
    color: #F15A2B;
    text-decoration: underline;
}

.social-reaction-mini {
    width: 23px;
    height: 23px;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
    margin-right: -5px;
    border: 2px solid #fff;
    line-height: 1;
}

.social-reaction-wrap {
    isolation: isolate;
    position: relative;
}

.social-reaction-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
    display: none;
    z-index: 39;
}

.social-reaction-picker {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%) translateY(4px);
    display: none;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.94);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    padding: 9px 12px 8px;
    z-index: 40;
    -webkit-overflow-scrolling: touch;
}

.social-reaction-picker::-webkit-scrollbar {
    display: none;
}

.social-reaction-wrap:hover .social-reaction-picker,
.social-reaction-wrap.is-open .social-reaction-picker {
    display: flex;
}

.social-reaction-wrap:hover::before,
.social-reaction-wrap.is-open::before {
    display: block;
}

.social-reaction-choice {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 54px;
    padding: 3px 4px 2px;
    transition: transform 0.16s ease, background 0.16s ease;
    touch-action: manipulation;
}

.social-reaction-orb {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: inset 0 -2px 4px rgba(15, 23, 42, 0.14), 0 2px 5px rgba(15, 23, 42, 0.14);
    line-height: 1;
}

.social-reaction-orb--haha,
.social-reaction-orb--yay,
.social-reaction-orb--wow,
.social-reaction-orb--sad,
.social-reaction-orb--angry {
    color: inherit;
}

.social-reaction-choice small {
    color: #9CA3AF;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.social-reaction-choice:hover,
.social-reaction-choice.is-selected {
    background: transparent;
    transform: translateY(-3px);
}

.social-action-reaction-icon {
    font-size: 1rem;
    line-height: 1;
}

.social-audience-modal.hidden {
    display: none;
}

.social-audience-modal {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.social-audience-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
}

.social-audience-panel {
    position: relative;
    width: min(92vw, 520px);
    max-height: min(82vh, 620px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.social-audience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #EEF2F7;
}

.social-audience-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
}

.social-audience-header button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #F3F4F6;
    color: #4B5563;
    cursor: pointer;
}

.social-audience-content {
    padding: 10px;
    overflow-y: auto;
}

.social-audience-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 13px;
}

.social-audience-row:hover {
    background: #F9FAFB;
}

.social-audience-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.social-audience-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-audience-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-audience-main strong {
    color: #111827;
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-audience-main span,
.social-audience-meta,
.social-audience-note {
    color: #6B7280;
    font-size: 0.78rem;
}

.social-audience-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-weight: 700;
    min-width: 104px;
    white-space: nowrap;
}

.social-audience-reaction-badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.78rem;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.social-audience-reaction-badge--like {
    background: linear-gradient(135deg, #2D88FF, #1877F2);
}

.social-audience-reaction-badge--love {
    background: linear-gradient(135deg, #FF6680, #F3425F);
}

.social-audience-reaction-badge--haha,
.social-audience-reaction-badge--yay,
.social-audience-reaction-badge--wow,
.social-audience-reaction-badge--sad {
    background: linear-gradient(135deg, #FFE082, #F7B928);
}

.social-audience-reaction-badge--angry {
    background: linear-gradient(180deg, #FF6B57, #F59E0B 58%, #F7B928);
}

.social-audience-empty,
.social-audience-note {
    padding: 18px 14px;
    text-align: center;
}

.social-audience-note {
    border-top: 1px dashed #E5E7EB;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .social-audience-panel {
        width: min(92vw, 460px);
        border-radius: 18px;
    }

    .social-audience-row {
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
    }

    .social-audience-meta {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }

    .social-reaction-picker {
        gap: 3px;
        padding: 8px 9px 7px;
    }

    .social-reaction-wrap:hover .social-reaction-picker {
        display: none;
    }

    .social-reaction-wrap:hover::before {
        display: none;
    }

    .social-reaction-wrap.is-open .social-reaction-picker {
        display: flex;
    }

    .social-reaction-wrap.is-open::before {
        display: block;
    }

    .social-reaction-choice {
        min-width: 48px;
    }

    .social-reaction-orb {
        width: 39px;
        height: 39px;
        font-size: 1.24rem;
    }

    .social-reaction-choice small {
        font-size: 0.62rem;
    }
}
