/* DLE Emote Lite — профиль + рейтинг под плеером (.dle_emote_block--rating) */

.dle_emote_block {
    --emote-surface: rgba(var(--bg-darker-1-rgb, 248, 250, 252), 0.92);
    --emote-surface-2: rgba(var(--bg-rgb, 255, 255, 255), 0.88);
    --emote-border: rgba(var(--bdc-rgb, 203, 213, 225), 0.42);
    --emote-border-strong: rgba(var(--accent-rgb, 196, 138, 46), 0.4);
    --emote-text: rgba(var(--tt-rgb, 26, 31, 46), 0.88);
    --emote-muted: rgba(var(--tt-rgb, 26, 31, 46), 0.52);
    --emote-accent: var(--accent, #c48a2e);
    --emote-radius: 14px;
    --emote-radius-sm: 10px;
    --emote-one: #3b8cff;
    --emote-six: #e24b4b;
    --emote-two: #e6a817;
    --emote-five: #e86a2c;
    --emote-three: #3db85a;
    --emote-four: #7b5cc8;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    vertical-align: top;
    box-sizing: border-box;
}

.dt .dle_emote_block {
    --emote-surface: rgba(255, 255, 255, 0.05);
    --emote-surface-2: rgba(255, 255, 255, 0.03);
    --emote-border: rgba(255, 255, 255, 0.1);
    --emote-border-strong: rgba(var(--accent-rgb, 196, 138, 46), 0.45);
    --emote-text: rgba(var(--tt-rgb, 228, 231, 239), 0.92);
    --emote-muted: rgba(var(--tt-rgb, 228, 231, 239), 0.5);
}

.dle_emote_shell {
    background: var(--emote-surface);
    border: 1px solid var(--emote-border);
    border-radius: var(--emote-radius);
    overflow: hidden;
}

.dle_emote_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--emote-border);
}

.dle_emote_header_main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 12rem;
}

.dle_emote_kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emote-accent);
    line-height: 1.2;
}

.dle_emote_header_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    max-width: 100%;
    flex-shrink: 0;
}

.dle_emote_title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--emote-text);
    line-height: 1.3;
}

.dle_emote_prompt {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--emote-muted);
}

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_prompt,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_track {
    display: none;
}

.dle_emote_stat {
    font-size: 12px;
    font-weight: 500;
    color: var(--emote-muted);
    min-height: 1.2em;
}

.dle_emote_stat strong {
    color: var(--emote-text);
    font-weight: 800;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.dle_emote_lead {
    font-size: 11px;
    font-weight: 600;
    color: var(--emote-muted);
    line-height: 1.35;
    max-width: 18rem;
}

.dle_emote_toast {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 11px;
    color: var(--green, #44b839);
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dle_emote_toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dle_emote_distribution {
    display: flex;
    align-items: stretch;
    height: 4px;
    margin: 0;
    background: rgba(var(--bdc-rgb, 203, 213, 225), 0.22);
    overflow: hidden;
}

.dt .dle_emote_distribution {
    background: rgba(255, 255, 255, 0.08);
}

.dle_emote_distribution.is-empty {
    opacity: 0.35;
}

.dle_emote_dist-seg {
    flex: 0 0 auto;
    width: 0;
    min-width: 0;
    opacity: 0;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.dle_emote_dist-one { background: var(--emote-one); }
.dle_emote_dist-six { background: var(--emote-six); }
.dle_emote_dist-two { background: var(--emote-two); }
.dle_emote_dist-five { background: var(--emote-five); }
.dle_emote_dist-three { background: var(--emote-three); }
.dle_emote_dist-four { background: var(--emote-four); }

.dle_emote_block2 {
    padding: 12px 10px 14px;
}

.dle_emote_list_block {
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    gap: 6px;
    background: transparent;
    box-sizing: border-box;
    min-width: 0;
}

/* ——— Рейтинг: опросные ряды с полосой доли ——— */
.dle_emote_block--rating .dle_emote_shell {
    background: transparent;
    border: none;
    border-radius: 0;
}

.dle_emote_block--rating .dle_emote_header {
    align-items: flex-end;
    align-content: flex-start;
    justify-content: flex-start;
    padding: 12px 14px 10px;
    border-bottom: none;
    gap: 10px 20px;
}

.dle_emote_block--rating .dle_emote_header_main {
    flex: 1 1 auto;
    min-width: 0;
}

.dle_emote_block--rating .dle_emote_header_meta {
    position: relative;
    margin-left: auto;
    flex: 0 0 auto;
}

.dle_emote_block--rating .dle_emote_title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dle_emote_block--rating .dle_emote_prompt {
    max-width: 36rem;
}

.dle_emote_block--rating .dle_emote_distribution {
    height: 5px;
    margin: 0 14px;
    border-radius: 999px;
    overflow: hidden;
}

.dle_emote_block--rating .dle_emote_block2 {
    padding: 10px 12px 14px;
}

.dle_emote_block--rating .dle_emote_list_block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 720px) {
    .dle_emote_block--rating .dle_emote_list_block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }
}

.dle_emote_block--rating .dle_emote_item {
    --emote-tint: var(--emote-accent);
    /* Сброс глобальных button из common.css (height:42px, inline-flex, nowrap) */
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    justify-content: stretch;
    justify-items: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px 12px;
    width: 100%;
    max-width: none;
    height: auto !important;
    min-height: 56px;
    margin: 0;
    padding: 10px 12px !important;
    border-radius: 12px;
    text-align: left;
    text-transform: none;
    white-space: normal;
    font: inherit;
    font-size: 14px;
    font-weight: inherit;
    line-height: 1.2;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: rgba(var(--tt-rgb, 26, 31, 46), 0.03);
    background-color: rgba(var(--tt-rgb, 26, 31, 46), 0.03);
    border: 1px solid var(--emote-border);
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
    position: relative;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.dt .dle_emote_block--rating .dle_emote_item,
.qapo__player-emote .dle_emote_block--rating .dle_emote_item {
    display: grid !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.045);
    background-color: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.1);
    color: inherit;
    white-space: normal;
    box-shadow: none;
}

.dle_emote_block--rating .dle_emote_one { --emote-tint: var(--emote-one); }
.dle_emote_block--rating .dle_emote_six { --emote-tint: var(--emote-six); }
.dle_emote_block--rating .dle_emote_two { --emote-tint: var(--emote-two); }
.dle_emote_block--rating .dle_emote_five { --emote-tint: var(--emote-five); }
.dle_emote_block--rating .dle_emote_three { --emote-tint: var(--emote-three); }
.dle_emote_block--rating .dle_emote_four { --emote-tint: var(--emote-four); }

.dle_emote_block--rating .dle_emote_emoji {
    display: grid !important;
    place-items: center;
    align-self: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 11px;
    font-size: 22px;
    line-height: 1;
    flex: none;
    background: color-mix(in srgb, var(--emote-tint) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--emote-tint) 28%, transparent);
    transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.2s ease;
}

.dle_emote_block--rating .dle_emote_body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    align-self: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.dle_emote_block--rating .dle_emote_label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--emote-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dle_emote_block--rating .dle_emote_track {
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(var(--tt-rgb, 26, 31, 46), 0.08);
    overflow: hidden;
}

.dt .dle_emote_block--rating .dle_emote_track,
.qapo__player-emote .dle_emote_block--rating .dle_emote_track {
    background: rgba(255, 255, 255, 0.1);
}

.dle_emote_block--rating .dle_emote_track-fill {
    display: block;
    height: 100%;
    width: var(--dle-emote-pct, 0%);
    border-radius: inherit;
    background: var(--emote-tint);
    opacity: 0.85;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dle_emote_block--rating .dle_emote_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    align-self: center;
    gap: 2px;
    min-width: 3.2rem;
    flex-shrink: 0;
}

.dle_emote_block--rating .dle_emote_vote {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--emote-text);
    line-height: 1.1;
    padding: 0;
    background: none;
}

.dle_emote_block--rating .dle_emote_pct {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--emote-muted);
    line-height: 1.1;
}

.dle_emote_block--rating .dle_emote_item::after {
    display: none !important;
}

.dle_emote_block--rating .dle_emote_item.dle_emote_item--leader:not(.voted_emote) {
    border-color: color-mix(in srgb, var(--emote-tint) 45%, var(--emote-border));
    background: color-mix(in srgb, var(--emote-tint) 10%, transparent);
}

.dle_emote_block--rating .dle_emote_item.is-busy {
    pointer-events: none;
    opacity: 0.72;
}

.dle_emote_block--rating .dle_emote_vote.is-pulse {
    animation: dle_emote_vote_pulse 0.52s ease;
}

@keyframes dle_emote_vote_pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.16); color: var(--emote-tint); }
    100% { transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
    .dle_emote_block--rating .dle_emote_item:hover:not(.voted_emote):not(.is-busy) {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--emote-tint) 55%, transparent);
        background: color-mix(in srgb, var(--emote-tint) 12%, transparent);
        z-index: 2;
    }

    .dle_emote_block--rating .dle_emote_item:hover .dle_emote_emoji {
        transform: scale(1.06);
        background: color-mix(in srgb, var(--emote-tint) 28%, transparent);
    }
}

.dle_emote_block--rating .dle_emote_item:active:not(.is-busy) {
    transform: translateY(0) scale(0.99);
}

.dle_emote_block--rating .dle_emote_item.voted_emote {
    color: inherit;
    border-color: color-mix(in srgb, var(--emote-tint) 65%, transparent) !important;
    background: color-mix(in srgb, var(--emote-tint) 18%, transparent) !important;
    box-shadow:
        inset 3px 0 0 var(--emote-tint),
        0 8px 22px color-mix(in srgb, var(--emote-tint) 18%, transparent) !important;
    transform: none;
    z-index: 3;
}

.dle_emote_block--rating .dle_emote_item.voted_emote .dle_emote_label,
.dle_emote_block--rating .dle_emote_item.voted_emote .dle_emote_vote,
.dle_emote_block--rating .dle_emote_item.voted_emote .dle_emote_pct {
    color: var(--emote-text);
}

.dle_emote_block--rating .dle_emote_item.voted_emote .dle_emote_emoji {
    background: color-mix(in srgb, var(--emote-tint) 32%, transparent);
    border-color: color-mix(in srgb, var(--emote-tint) 50%, transparent);
}

.dle_emote_block--rating .dle_emote_item.voted_emote .dle_emote_track-fill {
    opacity: 1;
}

.dle_emote_block--rating .dle_emote_item:focus-visible {
    outline: 2px solid var(--emote-tint);
    outline-offset: 2px;
}

/* ——— Классический режим (профиль) ——— */
.dle_emote_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 72px;
    padding: 8px 3px 6px;
    border-radius: var(--emote-radius-sm);
    text-align: center;
    text-decoration: none;
    color: var(--emote-muted);
    background: var(--emote-surface-2);
    border: 1px solid var(--emote-border);
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_emoji,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_label,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_pct,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_kicker,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_lead,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_distribution,
.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_title-text {
    display: none;
}

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--emote-accent);
    vertical-align: middle;
}

.dle_emote_item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: var(--dle-emote-pct, 0%);
    max-width: 100%;
    background: var(--emote-accent);
    opacity: 0.35;
    border-radius: 0 3px 0 0;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.dle_emote_item.dle_emote_one::after { background: var(--emote-one); opacity: 0.55; }
.dle_emote_item.dle_emote_two::after { background: var(--emote-two); opacity: 0.55; }
.dle_emote_item.dle_emote_three::after { background: var(--emote-three); opacity: 0.55; }
.dle_emote_item.dle_emote_four::after { background: var(--emote-four); opacity: 0.55; }
.dle_emote_item.dle_emote_five::after { background: var(--emote-five); opacity: 0.55; }
.dle_emote_item.dle_emote_six::after { background: var(--emote-six); opacity: 0.55; }

@media (hover: hover) and (pointer: fine) {
    .dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item:hover {
        transform: translateY(-2px);
        border-color: var(--emote-border-strong);
        color: var(--emote-text);
        z-index: 2;
    }

    .dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item:hover::before {
        content: attr(data-title);
        position: absolute;
        z-index: 4;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        color: #fff;
        background: rgba(24, 24, 31, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        pointer-events: none;
    }
}

.dle_emote_item:active {
    transform: translateY(0) scale(0.97);
}

.dle_emote_item:focus-visible {
    outline: 2px solid var(--emote-accent);
    outline-offset: 2px;
}

.dle_emote_item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 5vw, 38px);
    height: clamp(28px, 5vw, 38px);
    margin: 0 auto 4px;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.dle_emote_block--rating .dle_emote_item i {
    display: none;
}

.dle_emote_item .svg-icon {
    width: 100%;
    height: 100%;
    fill: rgba(var(--tt-rgb, 26, 31, 46), 0.28);
    transition: fill 0.2s ease;
}

.dt .dle_emote_item .svg-icon {
    fill: rgba(255, 255, 255, 0.78);
}

.dt .dle_emote_item.dle_emote_one .svg-icon { fill: url(#emote_fill_1); }
.dt .dle_emote_item.dle_emote_two .svg-icon { fill: url(#emote_fill_2); }
.dt .dle_emote_item.dle_emote_three .svg-icon { fill: url(#emote_fill_3); }
.dt .dle_emote_item.dle_emote_four .svg-icon { fill: url(#emote_fill_4); }
.dt .dle_emote_item.dle_emote_five .svg-icon { fill: url(#emote_fill_5); }
.dt .dle_emote_item.dle_emote_six .svg-icon { fill: url(#emote_fill_6); }

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item .dle_emote_vote {
    position: relative;
    z-index: 1;
    display: inline-block;
    min-width: 1.2em;
    max-width: 100%;
    padding: 1px 6px;
    font-size: clamp(9px, 2.4vw, 11px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    border-radius: 999px;
    background: rgba(var(--bdc-rgb, 203, 213, 225), 0.25);
    color: var(--emote-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt .dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item .dle_emote_vote {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.78);
}

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item.voted_emote {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.22),
        0 10px 26px rgba(0, 0, 0, 0.38);
    transform: translateY(-2px);
    z-index: 4;
}

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item.voted_emote .svg-icon {
    fill: #fff !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item.voted_emote .dle_emote_vote {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.32) !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .voted_emote_one {
    background: linear-gradient(165deg, #3b8cff 0%, #1f5fd6 100%) !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .voted_emote_two {
    background: linear-gradient(165deg, #fed108 0%, #f7ad00 100%) !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .voted_emote_three {
    background: linear-gradient(165deg, #77e534 0%, #44b839 100%) !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .voted_emote_four {
    background: linear-gradient(165deg, #8740bf 0%, #5351a1 100%) !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .voted_emote_five {
    background: linear-gradient(165deg, #fb852f 0%, #f72f2f 100%) !important;
}

.dle_emote_block:not(.dle_emote_block--rating) .voted_emote_six {
    background: linear-gradient(165deg, #ff0a0a 0%, #c10909 100%) !important;
}

.dle_emote_item.dle_emote_have_vote {
    color: var(--emote-text);
}

.dle_emote_list_block > div.dle_emote_item {
    cursor: default;
}

.emoji__gradients {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

@media only screen and (max-width: 719px) {
    .dle_emote_block--rating .dle_emote_header,
    .qapo__player-emote .dle_emote_block--rating .dle_emote_header {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        align-content: flex-start;
        gap: 8px;
        padding: 8px 10px 6px;
    }

    .dle_emote_block--rating .dle_emote_header_main,
    .qapo__player-emote .dle_emote_block--rating .dle_emote_header_main {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .dle_emote_block--rating .dle_emote_header_meta,
    .qapo__player-emote .dle_emote_block--rating .dle_emote_header_meta {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
        margin-left: 0;
        margin-top: 2px;
        padding-top: 8px;
        width: 100%;
        max-width: 100%;
        border-top: 1px solid var(--emote-border, rgba(255, 255, 255, 0.12));
    }

    .dle_emote_block--rating .dle_emote_stat,
    .qapo__player-emote .dle_emote_block--rating .dle_emote_stat {
        display: block;
        line-height: 1.4;
    }

    .dle_emote_block--rating .dle_emote_lead,
    .qapo__player-emote .dle_emote_block--rating .dle_emote_lead {
        display: block;
        margin: 0;
        padding: 0;
        max-width: none;
        line-height: 1.4;
        opacity: 0.85;
    }

    .dle_emote_block--rating .dle_emote_toast {
        position: absolute;
        right: auto;
        left: 0;
        top: 8px;
    }

    .dle_emote_block--rating .dle_emote_title {
        font-size: 15px;
    }

    .dle_emote_block--rating .dle_emote_prompt {
        font-size: 11px;
        margin: 0;
        line-height: 1.3;
    }

    .dle_emote_block--rating .dle_emote_distribution {
        margin: 0 10px;
    }

    .dle_emote_block--rating .dle_emote_block2 {
        padding: 6px 10px 10px;
    }

    .dle_emote_block--rating .dle_emote_item {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        min-height: 52px;
        height: auto !important;
        padding: 8px 10px !important;
        gap: 8px 10px;
    }

    .dle_emote_block--rating .dle_emote_emoji {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
    }

    .dle_emote_block--rating .dle_emote_label {
        font-size: 13px;
    }

    .dle_emote_block--rating .dle_emote_vote {
        font-size: 14px;
    }
}

@media only screen and (max-width: 520px) {
    .dle_emote_header {
        padding: 12px 12px 8px;
    }

    .dle_emote_block2 {
        padding: 12px 8px 14px;
    }

    .dle_emote_block:not(.dle_emote_block--rating) .dle_emote_list_block {
        gap: 5px;
    }

    .dle_emote_block:not(.dle_emote_block--rating) .dle_emote_item {
        min-height: 82px;
        padding: 9px 4px 8px;
        border-radius: 10px;
    }
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .dle_emote_block--rating .dle_emote_emoji {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .dle_emote_block--rating .dle_emote_item.voted_emote {
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: inset 3px 0 0 var(--emote-tint) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dle_emote_item,
    .dle_emote_item i,
    .dle_emote_item .svg-icon,
    .dle_emote_item .dle_emote_vote,
    .dle_emote_item::after,
    .dle_emote_dist-seg,
    .dle_emote_toast,
    .dle_emote_emoji,
    .dle_emote_track-fill {
        transition: none;
        animation: none;
    }

    .dle_emote_item:hover,
    .dle_emote_block--rating .dle_emote_item:hover {
        transform: none;
    }
}

/* Компактный опрос под плеером — чипы, без «дашборда» до первого голоса */
.dle_emote_block--rating.dle_emote_block--compact .dle_emote_header {
    padding: 10px 12px 6px;
    gap: 6px 12px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_title {
    font-size: 15px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_prompt {
    font-size: 11.5px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_distribution {
    height: 3px;
    margin: 0 12px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_block2 {
    padding: 8px 10px 12px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_list_block {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 6px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_item {
    display: inline-flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px !important;
    border-radius: 10px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_emoji {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_body {
    gap: 0;
    flex: 1 1 auto;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_label {
    font-size: 12.5px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_meta {
    min-width: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_vote {
    font-size: 13px;
}

.dle_emote_block--rating.dle_emote_block--compact .dle_emote_pct {
    font-size: 10.5px;
}

.dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_track,
.dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_pct,
.dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_distribution,
.dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_lead {
    display: none;
}

.dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_vote {
    opacity: 0.35;
}

@media (min-width: 720px) {
    /* Десктоп: 2 колонки × 3 ряда — оппозитные пары, крупные цели, не «лента чипов» */
    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_list_block {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_item {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        flex: none;
        width: 100%;
        min-height: 58px;
        padding: 10px 12px !important;
        gap: 10px 12px;
        border-radius: 12px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_emoji {
        width: 44px;
        height: 44px;
        border-radius: 11px;
        font-size: 22px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_body {
        gap: 6px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_label {
        font-size: 14px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_meta {
        flex-direction: column;
        align-items: flex-end;
        min-width: 3.2rem;
        gap: 2px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_vote {
        font-size: 15px;
    }

    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_pct {
        font-size: 11px;
    }

    .dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_track {
        display: block;
    }

    .dle_emote_block--rating.dle_emote_block--compact:has(.dle_emote_distribution.is-empty) .dle_emote_pct {
        display: block;
        opacity: 0.45;
    }
}

@media (max-width: 719px) {
    .dle_emote_block--rating.dle_emote_block--compact .dle_emote_item {
        flex: 1 1 calc(50% - 6px);
    }
}
