.ying-pc-reaction-trigger {
    position: relative;
    cursor: pointer;
}

.ying-pc-reaction-trigger.is-reacted {
    color: var(--ls-theme-color, #ff5f72);
}

.ying-pc-reaction-trigger-image {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.ying-pc-reaction-count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    color: #fff;
    background: #ff5f72;
    font-size: 10px;
    font-style: normal;
    line-height: 16px;
    text-align: center;
}

.ying-pc-reaction-menu {
    position: fixed;
    z-index: 10020;
    display: flex;
    align-items: stretch;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 12px 14px;
    border: 1px solid rgba(20, 25, 36, 0.035);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 34px rgba(26, 31, 44, 0.12);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transform-origin: right bottom;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ying-pc-reaction-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ying-pc-reaction-menu-items {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ying-pc-reaction-menu-items::-webkit-scrollbar { display: none; }

.ying-pc-reaction-option,
.ying-pc-reaction-stats-entry,
.ying-pc-reaction-close {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.ying-pc-reaction-option {
    display: flex;
    flex: 0 0 60px;
    min-width: 0;
    height: 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px;
    border-radius: 7px;
    color: var(--ls-text, #202124);
    background: transparent;
    transition: background 0.16s ease, transform 0.16s ease;
}

.ying-pc-reaction-option:hover {
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-3px);
}

.ying-pc-reaction-option img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ying-pc-reaction-option > i { font-size: 30px; color: #ff697a; }

.ying-pc-reaction-option span {
    display: block;
    max-width: 56px;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ying-pc-reaction-stats-entry {
    display: flex;
    flex: 0 0 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 0 2px;
    border-left: 1px solid #edf0f5;
    color: #3378ff;
    background: transparent;
    font-size: 13px;
    line-height: 19px;
}

.ying-pc-reaction-stats-entry i { display: none; }
.ying-pc-reaction-menu.is-loading { pointer-events: none; opacity: 0.62; }

.ying-pc-reaction-overlay {
    position: fixed;
    z-index: 10030;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.ying-pc-reaction-overlay.is-open { opacity: 1; }

.ying-pc-reaction-stats {
    position: fixed;
    width: min(360px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 32px));
    overflow: hidden auto;
    border: 1px solid rgba(20, 25, 36, 0.035);
    border-radius: 14px;
    color: var(--ls-text, #202124);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 34px rgba(26, 31, 44, 0.12);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    pointer-events: auto;
    transition: transform 0.18s ease;
}

.ying-pc-reaction-overlay.is-open .ying-pc-reaction-stats { transform: translateY(0) scale(1); }

.ying-pc-reaction-stats > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 10px;
}

.ying-pc-reaction-stats h3 { margin: 0; font-size: 16px; line-height: 24px; }
.ying-pc-reaction-stats header p { margin: 0; color: #999da5; font-size: 13px; }
.ying-pc-reaction-stat-list { padding: 2px 18px 16px; }

.ying-pc-reaction-stat-row {
    display: grid;
    grid-template-columns: 40px 54px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
}

.ying-pc-reaction-stat-media {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
}

.ying-pc-reaction-stat-media img { width: 36px; height: 36px; object-fit: contain; }
.ying-pc-reaction-stat-media i { color: #ff697a; font-size: 30px; }
.ying-pc-reaction-stat-name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ying-pc-reaction-stat-track { height: 18px; overflow: hidden; border-radius: 9px; background: #f0f3f8; }
.ying-pc-reaction-stat-track span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: #6f9df4; }
.ying-pc-reaction-stat-row > strong { color: #999da5; font-size: 13px; font-weight: 400; text-align: right; }

.ying-pc-reaction-empty {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ls-text-secondary, #838a96);
    font-size: 13px;
}

.ying-pc-reaction-empty i { font-size: 34px; color: #ff7887; }
