

    .placeholder-icon {
        display: flex; align-items: center; justify-content: center;
        background: #F1F5F9; border-radius: 8px;
    }
    .placeholder-icon svg { flex-shrink: 0; }
    [data-theme="dark"] .placeholder-icon { background: #1E293B; }

    .footer {
        --kx-footer-bg: var(--bg-hover, #F1F5F9);
        --kx-footer-ink: var(--text-primary, #0F172A);
        --kx-footer-muted: var(--text-secondary, #475569);
        --kx-footer-line: var(--border, #E2E8F0);
        background: var(--kx-footer-bg); color: var(--kx-footer-muted);
        padding: 28px 0 20px; margin-top: 32px;
    }
    .footer-inner { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 20px; container-type: inline-size; }
    .footer-logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary, #2563EB); margin-bottom: 8px; }
    .footer-intro { font-size: .85rem; line-height: 1.7; margin: 0 0 14px; }
    .footer-description { border-top: 1px solid var(--kx-footer-line); border-bottom: 1px solid var(--kx-footer-line); margin-bottom: 20px; padding: 6px 0; }
    .footer-description summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 36px; font-size: .8rem; list-style: none; }
    .footer-description summary::-webkit-details-marker { display: none; }
    .footer-description summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
    .footer-description[open] summary::after { transform: rotate(225deg); }
    .footer-tagline { font-size: .8rem; margin: 10px 0 6px; line-height: 1.85; }
    .footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; margin-bottom: 20px; }
    .footer-nav-section { min-width: 0; border-top: 1px solid var(--kx-footer-line); padding-top: 14px; }
    .footer-nav-section h4 { color: var(--kx-footer-ink); font-size: .9rem; font-weight: 700; margin: 0 0 8px; }
    .footer-section-toggle { font: inherit; color: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; background: transparent; }
    .footer-section-toggle:disabled { opacity: 1; cursor: default; }
    .footer-section-toggle:not(:disabled) { cursor: pointer; min-height: 48px; }
    .footer-section-toggle:not(:disabled)::after { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
    .footer-section-toggle[aria-expanded="true"]:not(:disabled)::after { transform: rotate(225deg); }
    .footer-section-toggle:focus-visible, .footer a:focus-visible, .footer summary:focus-visible { outline: 2px solid var(--primary, #2563EB); outline-offset: 4px; border-radius: 3px; }
    .footer-nav-section ul { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; }
    .footer-nav-section ul li { min-width: 0; }
    .footer-nav-section ul li a { display: block; padding: 3px 0; color: var(--kx-footer-muted); text-decoration: none; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
    .footer-nav-section ul li a:hover, .footer-links a:hover { color: var(--primary, #2563EB); text-decoration: underline; text-underline-offset: 4px; }
    .footer-group-content[hidden] { display: none !important; }
    .footer-split > ul { column-count: 2; column-gap: 20px; display: block; }
    .footer-split > ul li { break-inside: avoid; }
    .footer-split .footer-col-break { break-before: column; }
    .footer-category-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .footer-category-columns > ul { display: flex; }
    .footer-popular { min-width: 0; }
    .footer-bottom { border-top: 1px solid var(--kx-footer-line); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
    .footer-copyright { font-size: .75rem; color: var(--kx-footer-muted); }
    .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
    .footer-links a { color: var(--kx-footer-muted); text-decoration: none; font-size: .8rem; }
    @media (max-width: 768px) {
        .footer-inner { padding-inline: 12px; }
    }
    @container (max-width: 999px) {
        .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
        .footer-nav-section { padding: 8px 0; }
        .footer-nav-section h4 { margin-bottom: 0; }
        .footer-group-content { padding-bottom: 14px !important; }
        .footer-nav-section ul li a { min-height: 42px; display: flex; align-items: center; }
    }
    @container (max-width: 599px) {
        .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 0; }
        .footer-bottom { flex-direction: column; align-items: flex-start; }
        .footer-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0 18px; }
        .footer-links a { min-height: 40px; display: flex; align-items: center; }
    }


.back-nav { max-width: 1200px; margin: 32px auto 0; padding: 0 20px; }
    .back-nav a {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 12px 24px;
        background: var(--bg-card);
        border: 1px solid var(--border); border-radius: 12px;
        color: var(--text-secondary); text-decoration: none;
        font-size: 0.9rem; font-weight: 600;
        transition: all 0.25s ease;
        box-shadow: var(--shadow-sm);
    }
    .back-nav a:hover {
        border-color: var(--primary); color: var(--primary);
        box-shadow: 0 2px 8px rgba(37,99,235,0.15);
        transform: translateX(-3px);
    }
    .back-nav a svg { transition: transform 0.25s ease; }
    .back-nav a:hover svg { transform: translateX(-2px); }


html.hide-discord-fab .discord-fab,html.hide-discord-fab .x-fab{display:none!important;}


.kx-top-btn {
    position: fixed; bottom: 24px; left: max(16px, calc(50% - 600px)); z-index: 998;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border, #E2E8F0);
    background: var(--bg-card, #fff); color: var(--text-secondary, #475569);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 10px rgba(15,23,42,0.14);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, bottom 0.3s ease;
}
.kx-top-btn.kx-top-visible { opacity: 0.92; visibility: visible; transform: translateY(0); }
.kx-top-btn:hover { opacity: 1; color: var(--primary, #2563EB); border-color: var(--primary, #2563EB); }

@media (max-width: 780px) { .kx-top-btn { width: 44px; height: 44px; } }
[data-theme="dark"] .kx-top-btn { background: #1E293B; border-color: #334155; color: #CBD5E1; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
@media (max-width: 768px) {
    body.has-matome-bar .kx-top-btn { bottom: 80px; }
    body.kx-has-tabbar .kx-top-btn { bottom: calc(var(--kx-tabbar-h, 56px) + 12px); }
    body.kx-has-tabbar.has-matome-bar .kx-top-btn { bottom: calc(var(--kx-tabbar-h, 56px) + 82px); }
}
@media (prefers-reduced-motion: reduce) { .kx-top-btn { transition: none; } }

