:root {
    --emoji-bg: #050913;
    --emoji-bg-2: #090f1d;
    --emoji-panel: rgba(13, 20, 35, .92);
    --emoji-panel-2: rgba(16, 25, 43, .96);
    --emoji-line: rgba(125, 145, 210, .18);
    --emoji-line-strong: rgba(132, 92, 255, .42);
    --emoji-ink: #f4f7ff;
    --emoji-soft: #c9d2ee;
    --emoji-muted: #8490ad;
    --emoji-purple: #7b4dff;
    --emoji-cyan: #24c8dc;
    --emoji-pink: #ee3f8f;
    --emoji-red: #e94d63;
    --emoji-shadow: 0 20px 55px rgba(0, 0, 0, .34);
}

body.emojis-page {
    color: var(--emoji-ink);
    background:
        linear-gradient(180deg, #050913 0%, #09101e 42%, #050913 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

body.emojis-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 44px 44px;
}

html.theme-light {
    background: #f5f7fd;
}

html.theme-light body.emojis-page {
    --emoji-bg: #f8faff;
    --emoji-bg-2: #eef3fb;
    --emoji-panel: rgba(255, 255, 255, .88);
    --emoji-panel-2: rgba(255, 255, 255, .94);
    --emoji-line: rgba(26, 37, 65, .09);
    --emoji-line-strong: rgba(124, 44, 255, .22);
    --emoji-ink: #101728;
    --emoji-soft: #52607a;
    --emoji-muted: #667085;
    --emoji-purple: #8b35ff;
    --emoji-cyan: #2dadff;
    --emoji-pink: #e64b82;
    --emoji-red: #df4057;
    --emoji-shadow: 0 16px 38px rgba(43, 56, 92, .12);
    color: var(--emoji-ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(141, 80, 255, .12), transparent 26%),
        radial-gradient(circle at 92% 16%, rgba(45, 173, 255, .1), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

html.theme-light body.emojis-page::before {
    background-image:
        linear-gradient(rgba(54, 68, 104, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 68, 104, .035) 1px, transparent 1px);
}

.emoji-shell {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 16px 0 42px;
}

.emojis-page .theater-nav {
    margin: 0;
}

.emojis-page .nav-links a[href="/emojis.html"] {
    color: #dc9bff;
}

.emojis-page .nav-links a[href="/emojis.html"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #d437ff, #8b35ff);
}

.emojis-page .search-wrap input {
    font-size: 13px;
}

.emoji-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
    color: #7f8ba6;
    font-size: 13px;
}

.emoji-breadcrumb a,
.emoji-breadcrumb strong {
    color: #c7d0eb;
    text-decoration: none;
    font-weight: 700;
}

.emoji-breadcrumb span::before,
.emoji-breadcrumb strong::before {
    content: ">";
    margin-right: 10px;
    color: #4e5a74;
}

.emoji-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}

.emoji-main-column,
.emoji-side-column {
    display: grid;
    gap: 12px;
}

.emoji-hero,
.emoji-search-panel,
.emoji-entry-section,
.emoji-filter-panel,
.emoji-section-head,
.emoji-card,
.emoji-bottom-panels > *,
.emoji-side-panel,
.emoji-upload-panel,
.emoji-empty {
    border: 1px solid var(--emoji-line);
    background: var(--emoji-panel);
    box-shadow: var(--emoji-shadow);
    backdrop-filter: blur(14px);
    border-radius: 8px;
}

.emoji-hero {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: center;
    padding: 30px 34px;
    background:
        linear-gradient(105deg, rgba(15, 24, 43, .98) 0%, rgba(21, 23, 58, .98) 58%, rgba(63, 35, 128, .92) 100%);
}

.emoji-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(123, 77, 255, .08), transparent 42%),
        linear-gradient(180deg, transparent, rgba(5, 9, 19, .28));
}

.emoji-hero-copy,
.emoji-hero-visual {
    position: relative;
    z-index: 1;
}

.emoji-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 50px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 900;
}

.emoji-hero h1::first-letter {
    color: #a06dff;
}

.emoji-hero h1 span {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(166, 130, 255, .52);
    color: #d9ccff;
    background: rgba(92, 60, 190, .18);
    font-size: 13px;
    font-weight: 800;
}

.emoji-hero p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--emoji-soft);
    font-size: 16px;
    line-height: 1.8;
}

.emoji-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.emoji-hero-stats span {
    min-width: 0;
}

.emoji-hero-stats strong {
    display: block;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.emoji-hero-stats small {
    display: block;
    margin-top: 7px;
    color: #93a0bd;
    font-size: 13px;
}

.emoji-hero-visual {
    justify-self: stretch;
    align-self: stretch;
    display: grid;
    place-items: center;
    min-height: 200px;
}

.emoji-hero-visual img {
    width: min(230px, 82%);
    height: min(230px, 82%);
    object-fit: contain;
    filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .38));
}

.emoji-search-panel {
    padding: 14px 18px 12px;
    background: rgba(9, 15, 28, .94);
}

.emoji-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 112px;
    gap: 10px;
}

.emoji-search {
    position: relative;
    display: block;
}

.emoji-search span,
.emoji-filter-group label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.emoji-search input,
.emoji-filter-group select {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(136, 157, 222, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    color: #edf2ff;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.emoji-search input::placeholder {
    color: #6f7b96;
}

.emoji-filter-group select option {
    color: #162033;
}

.emoji-search-row button,
.emoji-panel-head button,
.emoji-filter-pill,
.emoji-static-pills button,
.emoji-hot-row button,
.emoji-entry-card,
.emoji-view-tabs button,
.emoji-actions button,
.emoji-actions a {
    cursor: pointer;
    font: inherit;
}

.emoji-search-row button {
    height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #7a4cff, #a12cff);
}

.emoji-search-row .emoji-random-button {
    color: #d9cbff;
    border: 1px solid rgba(145, 105, 255, .28);
    background: rgba(92, 58, 176, .22);
}

.emoji-hot-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #8190ad;
    font-size: 13px;
}

.emoji-hot-row button,
.emoji-static-pills button,
.emoji-filter-pill {
    min-height: 28px;
    border: 1px solid rgba(139, 158, 214, .14);
    border-radius: 6px;
    padding: 0 10px;
    color: #aab5d0;
    background: rgba(255, 255, 255, .055);
    font-size: 12px;
    font-weight: 800;
}

.emoji-entry-section {
    padding: 18px;
}

.emoji-entry-section h2,
.emoji-filter-group h2,
.emoji-section-head h2,
.emoji-panel-head h2,
.emoji-side-panel h2,
.emoji-upload-panel h2 {
    margin: 0;
    color: #eef3ff;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
}

.emoji-entry-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.emoji-entry-card {
    position: relative;
    overflow: hidden;
    min-height: 84px;
    border: 0;
    border-radius: 8px;
    padding: 13px 12px;
    text-align: left;
    color: #fff;
}

.emoji-entry-card strong,
.emoji-entry-card span {
    position: relative;
    z-index: 1;
    display: block;
}

.emoji-entry-card strong {
    max-width: 100px;
    font-size: 14px;
    line-height: 1.25;
}

.emoji-entry-card span {
    margin-top: 5px;
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
}

.emoji-entry-card img {
    position: absolute;
    right: -10px;
    bottom: -14px;
    width: 74px;
    height: 74px;
    object-fit: contain;
    opacity: .9;
}

.entry-pink { background: linear-gradient(135deg, #d02f8f, #6a38d8); }
.entry-cyan { background: linear-gradient(135deg, #1697a4, #3b65db); }
.entry-violet { background: linear-gradient(135deg, #7449e8, #b24dff); }
.entry-purple { background: linear-gradient(135deg, #5b44d7, #7d3be9); }
.entry-red { background: linear-gradient(135deg, #d43d57, #bb2d7a); }
.entry-blue { background: linear-gradient(135deg, #473dcf, #2c77d5); }

.emoji-filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: rgba(9, 15, 28, .92);
}

.emoji-filter-group {
    padding: 18px;
}

.emoji-filter-group + .emoji-filter-group {
    border-left: 1px solid var(--emoji-line);
}

.emoji-category-strip,
.emoji-static-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.emoji-filter-pill.is-active {
    color: #fff;
    border-color: rgba(123, 77, 255, .55);
    background: linear-gradient(135deg, #6f48ff, #8f38ff);
}

.emoji-filter-group label {
    position: relative;
    display: block;
    margin-top: 12px;
}

.emoji-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(9, 15, 28, .92);
}

.emoji-section-head p {
    margin: 6px 0 0;
    color: var(--emoji-muted);
    font-size: 13px;
}

.emoji-view-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.emoji-view-tabs button {
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    padding: 0 10px;
    color: #8f9bb6;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.emoji-view-tabs button.is-active {
    color: #fff;
    background: rgba(123, 77, 255, .18);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.emoji-card {
    overflow: hidden;
    background: rgba(10, 17, 31, .96);
}

.emoji-preview {
    aspect-ratio: 1.2;
    display: grid;
    place-items: center;
    background-color: #f4f6fb;
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, .06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, .06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, .06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, .06) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.emoji-preview img {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.emoji-card-body {
    padding: 10px 10px 12px;
}

.emoji-card h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emoji-card-meta {
    margin-top: 6px;
    color: #8c99b6;
    font-size: 12px;
}

.emoji-card-desc {
    display: none;
}

.emoji-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.emoji-card-tags span {
    border-radius: 5px;
    padding: 3px 6px;
    color: #b7c3df;
    background: rgba(255, 255, 255, .055);
    font-size: 11px;
}

.emoji-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.emoji-actions a,
.emoji-actions button {
    flex: 1 1 0;
    min-height: 28px;
    border: 1px solid rgba(138, 159, 222, .16);
    border-radius: 6px;
    color: #c5cff0;
    background: rgba(255, 255, 255, .052);
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.emoji-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emoji-empty {
    display: none;
    padding: 28px;
    color: #a5b0cb;
    text-align: center;
}

.emoji-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 2px;
}

.emoji-pagination[hidden] {
    display: none;
}

.emoji-pagination button {
    min-width: 42px;
    height: 38px;
    border: 1px solid var(--emoji-line);
    border-radius: 8px;
    color: var(--emoji-soft);
    background: rgba(255, 255, 255, .055);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.emoji-pagination .emoji-page-prev,
.emoji-pagination .emoji-page-next {
    min-width: 74px;
    padding: 0 12px;
}

.emoji-pagination button.is-active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--emoji-purple), var(--emoji-pink));
    box-shadow: 0 10px 22px rgba(123, 77, 255, .26);
}

.emoji-pagination button:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: var(--emoji-line-strong);
    color: var(--emoji-ink);
    background: rgba(255, 255, 255, .1);
}

.emoji-pagination button:disabled {
    cursor: default;
    opacity: .45;
}

.emoji-bottom-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
}

.emoji-collection-panel,
.emoji-guide-panel,
.emoji-side-panel,
.emoji-upload-panel {
    padding: 18px;
}

.emoji-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.emoji-panel-head a,
.emoji-panel-head button {
    border: 0;
    color: #9da9c4;
    background: transparent;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.emoji-collection-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.emoji-collection-card {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(113, 78, 238, .9), rgba(31, 151, 157, .78));
}

.emoji-collection-card strong,
.emoji-collection-card span {
    position: relative;
    z-index: 1;
    display: block;
}

.emoji-collection-card strong {
    color: #fff;
    font-size: 14px;
}

.emoji-collection-card span {
    margin-top: 7px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.emoji-collection-card img {
    position: absolute;
    right: -10px;
    bottom: -16px;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.emoji-guide-panel {
    display: grid;
    gap: 10px;
}

.emoji-guide-panel > a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #d6def5;
    text-decoration: none;
    font-size: 13px;
}

.emoji-guide-panel a span {
    flex: 0 0 auto;
    color: #7e8aa4;
}

.emoji-side-column {
    position: sticky;
    top: 16px;
}

.emoji-side-panel {
    background: rgba(10, 17, 31, .95);
}

.emoji-rank-list,
.emoji-mini-list,
.emoji-random-grid,
.emoji-tag-cloud {
    margin-top: 14px;
}

.emoji-rank-item,
.emoji-mini-item {
    display: grid;
    grid-template-columns: 24px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
}

.emoji-rank-index {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 900;
}

.emoji-rank-item:nth-child(1) .emoji-rank-index,
.emoji-rank-item:nth-child(2) .emoji-rank-index,
.emoji-rank-item:nth-child(3) .emoji-rank-index {
    background: linear-gradient(135deg, #ff563f, #ff9a2e);
}

.emoji-rank-item img,
.emoji-mini-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: #f4f6fb;
}

.emoji-rank-item strong,
.emoji-mini-item strong {
    min-width: 0;
    color: #eef3ff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emoji-rank-item span,
.emoji-mini-item span {
    color: #8793af;
    font-size: 12px;
}

.emoji-random-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.emoji-random-grid a {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f4f6fb;
}

.emoji-random-grid img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.emoji-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-tag-cloud button {
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    color: #c9d3ef;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.emoji-upload-panel {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    background:
        linear-gradient(135deg, rgba(81, 48, 177, .9), rgba(20, 31, 55, .96));
}

.emoji-upload-panel p {
    max-width: 170px;
    margin: 8px 0 16px;
    color: #bfc9e4;
    font-size: 13px;
    line-height: 1.5;
}

.emoji-upload-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 7px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #7b4dff, #a12cff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.emoji-upload-panel img {
    position: absolute;
    right: 10px;
    bottom: -4px;
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.emoji-side-ad-panel {
    padding: 10px;
}

.emoji-side-ad-slot {
    display: grid;
    place-items: center;
    min-height: 250px;
    overflow: hidden;
}

html.theme-light .emoji-breadcrumb {
    color: #7b8498;
}

html.theme-light .emoji-breadcrumb a,
html.theme-light .emoji-breadcrumb strong {
    color: #374151;
}

html.theme-light .emoji-hero,
html.theme-light .emoji-search-panel,
html.theme-light .emoji-entry-section,
html.theme-light .emoji-filter-panel,
html.theme-light .emoji-section-head,
html.theme-light .emoji-card,
html.theme-light .emoji-bottom-panels > *,
html.theme-light .emoji-side-panel,
html.theme-light .emoji-upload-panel,
html.theme-light .emoji-empty {
    border-color: var(--emoji-line);
    background: var(--emoji-panel);
    box-shadow: var(--emoji-shadow);
}

html.theme-light .emoji-hero {
    background:
        linear-gradient(105deg, rgba(255, 255, 255, .94) 0%, rgba(246, 248, 255, .94) 52%, rgba(235, 226, 255, .92) 100%);
}

html.theme-light .emoji-hero::after {
    background:
        linear-gradient(90deg, rgba(124, 44, 255, .06), transparent 48%),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, .24));
}

html.theme-light .emoji-hero h1,
html.theme-light .emoji-entry-section h2,
html.theme-light .emoji-filter-group h2,
html.theme-light .emoji-section-head h2,
html.theme-light .emoji-panel-head h2,
html.theme-light .emoji-side-panel h2,
html.theme-light .emoji-upload-panel h2,
html.theme-light .emoji-card h3,
html.theme-light .emoji-rank-item strong,
html.theme-light .emoji-mini-item strong {
    color: #101728;
}

html.theme-light .emoji-hero h1::first-letter {
    color: #8b35ff;
}

html.theme-light .emoji-hero h1 span {
    color: #7432d9;
    border-color: rgba(124, 44, 255, .2);
    background: rgba(124, 44, 255, .08);
}

html.theme-light .emoji-hero p,
html.theme-light .emoji-hero-stats small,
html.theme-light .emoji-section-head p,
html.theme-light .emoji-card-meta,
html.theme-light .emoji-rank-item span,
html.theme-light .emoji-mini-item span,
html.theme-light .emoji-panel-head a,
html.theme-light .emoji-panel-head button,
html.theme-light .emoji-guide-panel a span,
html.theme-light .emoji-upload-panel p {
    color: #667085;
}

html.theme-light .emoji-hero-stats strong {
    color: #101728;
}

html.theme-light .emoji-search-panel,
html.theme-light .emoji-filter-panel,
html.theme-light .emoji-section-head,
html.theme-light .emoji-side-panel,
html.theme-light .emoji-card {
    background: rgba(255, 255, 255, .88);
}

html.theme-light .emoji-search input,
html.theme-light .emoji-filter-group select {
    color: #101728;
    border-color: rgba(27, 39, 68, .12);
    background: rgba(244, 247, 252, .92);
}

html.theme-light .emoji-search input::placeholder {
    color: #8a94a8;
}

html.theme-light .emoji-hot-row,
html.theme-light .emoji-card-tags span,
html.theme-light .emoji-actions a,
html.theme-light .emoji-actions button,
html.theme-light .emoji-tag-cloud button,
html.theme-light .emoji-filter-pill,
html.theme-light .emoji-static-pills button,
html.theme-light .emoji-hot-row button {
    color: #667085;
}

html.theme-light .emoji-filter-pill,
html.theme-light .emoji-static-pills button,
html.theme-light .emoji-hot-row button,
html.theme-light .emoji-card-tags span,
html.theme-light .emoji-actions a,
html.theme-light .emoji-actions button,
html.theme-light .emoji-tag-cloud button {
    border-color: rgba(27, 39, 68, .1);
    background: rgba(244, 247, 252, .9);
}

html.theme-light .emoji-filter-pill.is-active,
html.theme-light .emoji-search-row button {
    color: #fff;
    background: linear-gradient(135deg, #8b35ff, #a32dff);
}

html.theme-light .emoji-search-row .emoji-random-button {
    color: #7c2cff;
    border-color: rgba(124, 44, 255, .2);
    background: rgba(124, 44, 255, .08);
}

html.theme-light .emoji-filter-group + .emoji-filter-group {
    border-color: rgba(26, 37, 65, .08);
}

html.theme-light .emoji-view-tabs button {
    color: #667085;
}

html.theme-light .emoji-view-tabs button.is-active {
    color: #7c2cff;
    background: rgba(124, 44, 255, .08);
}

html.theme-light .emoji-preview,
html.theme-light .emoji-rank-item img,
html.theme-light .emoji-mini-item img,
html.theme-light .emoji-random-grid a {
    background-color: #f7f9fe;
}

html.theme-light .emoji-guide-panel > a {
    color: #263348;
}

html.theme-light .emoji-upload-panel {
    background:
        linear-gradient(135deg, rgba(245, 240, 255, .96), rgba(255, 255, 255, .94));
}

@media (max-width: 1040px) {
    .emoji-layout {
        grid-template-columns: 1fr;
    }

    .emoji-side-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emoji-entry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .emoji-shell {
        width: min(100% - 22px, 1380px);
        padding-top: 8px;
    }

    .emoji-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .emoji-hero-stats,
    .emoji-filter-panel,
    .emoji-bottom-panels,
    .emoji-side-column {
        grid-template-columns: 1fr;
    }

    .emoji-filter-group + .emoji-filter-group {
        border-left: 0;
        border-top: 1px solid var(--emoji-line);
    }

    .emoji-search-row {
        grid-template-columns: 1fr;
    }

    .emoji-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emoji-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emoji-collection-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 460px) {
    .emoji-grid,
    .emoji-entry-grid,
    .emoji-collection-row {
        grid-template-columns: 1fr;
    }
}
