/* Стикеры (static/js/stickers.js): картинка в ленте/чате и окно выбора. */
.stk { display: inline-block; width: 96px; height: 96px; vertical-align: middle; user-select: none; }
.stk.sm { width: 1.9em; height: 1.9em; }
.stk.md { width: 64px; height: 64px; }

.stk-btn { font-size: 18px; line-height: 1; }

.stk-pop {
    position: fixed; z-index: 3000; padding: 10px; border-radius: 18px;
    background: #0c0c0c; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
    color: #fff; font: 13px var(--font-base, sans-serif);
    animation: stk-in .18s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes stk-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
/* Слева список аниме (вертикальный, с видимой прокруткой), справа стикеры */
.stk-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.stk-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .08); }
.stk-cap { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-q { width: 100%; box-sizing: border-box; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; }
.stk-tabs { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.stk-tabs button { flex-shrink: 0; padding: 7px 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .8); font: inherit; text-align: left; cursor: pointer; line-height: 1.25; overflow-wrap: anywhere; }
.stk-tabs button:hover { background: rgba(255, 255, 255, .1); }
.stk-tabs button[aria-selected="true"] { background: var(--color-accent, #d82d7e); color: #fff; }
.stk-tabs button[hidden] { display: none; }
.stk-tabs small { display: block; font-size: 10px; opacity: .75; }
.stk-tabs button:focus-visible, .stk-grid button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.stk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (max-width: 460px) {
    .stk-body { grid-template-columns: minmax(0, 1fr); }
    .stk-side { padding: 0 0 8px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .stk-tabs { flex-direction: row; flex-wrap: wrap; max-height: 104px; }
}
.stk-grid button, .stk-grid span { display: flex; justify-content: center; padding: 4px; border: 0; border-radius: 12px; background: none; cursor: pointer; transition: background .15s, transform .15s; }
.stk-grid button:hover { background: rgba(255, 255, 255, .07); transform: scale(1.06); }
.stk-grid button:active { transform: scale(.94); }
.stk-grid button:disabled { opacity: .35; cursor: default; transform: none; }
.stk-grid .stk { width: 100%; max-width: 92px; height: auto; aspect-ratio: 1; }
.stk-grid.locked span { cursor: default; filter: grayscale(.85) brightness(.6); }
.stk-buy { display: block; margin-top: 8px; padding: 9px; border-radius: 12px; text-align: center; background: linear-gradient(110deg, #d82d7e, #7a2cff); color: #fff; text-decoration: none; font-weight: 700; }
.stk-uses { margin-top: 8px; color: rgba(255, 255, 255, .55); font-size: 12px; text-align: center; }
.stk-uses b { color: #fff; }
.stk-hint { padding: 20px; text-align: center; color: rgba(255, 255, 255, .55); }

/* стикер поверх плеера (rare-reactions.js → play) */
.stk-fly { position: absolute; right: 6%; bottom: 16%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.stk-fly .stk { width: clamp(84px, 14vw, 150px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.stk-fly span { padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font: 600 12px var(--font-base, sans-serif); }
@media (prefers-reduced-motion: reduce) { .stk-pop { animation: none; } }
