.emote-gallery{margin:72px 0;padding:40px 0;border-block:1px solid var(--line);scroll-margin-top:88px}
.emote-gallery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}
.emote-gallery h2{font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-.035em;margin:10px 0 12px}
.emote-gallery-head p{color:var(--muted);max-width:610px;margin:0}
.emote-gallery-head .btn{flex:none}
.emote-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin:24px 0}
.emote-filters{display:flex;flex-wrap:wrap;gap:8px}
.emote-filters button,.emote-pagination button,.emote-copy button{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:9px 15px;background:var(--card);color:var(--text);cursor:pointer;transition:background .16s,border-color .16s}
.emote-filters button[aria-pressed=true]{border-color:var(--accent-hi,var(--cyan));background:rgba(var(--accent-rgb,56,189,248),.12)}
.emote-search{display:grid;gap:6px;font-size:14px;flex:1;max-width:340px;min-width:220px}
.emote-search input{font:inherit;font-size:16px;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:var(--bg2);color:var(--text);width:100%}
.emote-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.emote-card{min-width:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--card)}
.emote-media{aspect-ratio:29/30;background:#162234}
.emote-media video{display:block;width:100%;height:100%;object-fit:contain}
.emote-copy{padding:16px}
.emote-kind{font-size:12px;color:var(--muted)}
.emote-copy h3{font-size:17px;line-height:1.3;margin:6px 0 14px;min-height:23px}
.emote-copy button{width:100%;background:var(--card2)}
.emote-copy button:hover,.emote-pagination button:hover:not(:disabled){border-color:var(--accent-hi,var(--cyan))}
.emote-copy button[aria-pressed=true]{background:rgba(var(--accent-rgb,56,189,248),.16);border-color:var(--accent-hi,var(--cyan))}
.emote-copy [data-emote-error]{font-size:13px;line-height:1.4;color:var(--muted);margin:8px 0 0}
.emote-copy [data-emote-error]:empty{display:none}
.emote-pagination{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:20px}
.emote-pagination>span{color:var(--muted);font-size:14px}
.emote-pagination>div{display:flex;gap:8px}
.emote-pagination button:disabled{opacity:.4;cursor:default}
.emote-gallery :is(button,input,a):focus-visible{outline:2px solid var(--accent-hi,var(--cyan));outline-offset:4px}
.emote-empty{color:var(--muted);padding:24px 0}
.emote-note{font-size:14px;color:var(--muted);margin-top:18px}
@media(max-width:900px){.emote-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.emote-gallery-head{flex-direction:column}}
@media(max-width:650px){.emote-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emote-search{max-width:none}.emote-gallery{margin:48px 0;padding:28px 0}.emote-copy{padding:12px}.emote-copy h3{font-size:16px}}
@media(max-width:370px){.emote-grid{grid-template-columns:1fr}.emote-pagination{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.emote-gallery *{scroll-behavior:auto!important;transition:none!important}}
