*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    touch-action: manipulation;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.logo {
    font-weight: 700;
    margin-right: 8px;
    white-space: nowrap;
}

.search-form {
    flex: 1;
}

.search-form input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border-color: #d1d5db;
    background: #fff;
}

.user-menu {
    position: relative;
    font-size: 13px;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    min-width: 150px;
    padding: 6px 0;
}

.user-menu-dropdown a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
}

.user-menu-dropdown a:hover {
    background: #f3f4f6;
}

.layout {
    display: flex;
    gap: 16px;
    padding: 12px;
}

.main-feed {
    flex: 1;
    margin: 0;
    padding: 0 4px;
}

@media (min-width: 900px) {
    .main-feed {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 8px;
    }
}

.sidebar {
    width: 280px;
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
}

.post-votes {
    width: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.vote-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.vote-btn.active {
    color: #2563eb;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.post-body-snippet {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 6px;
}

.post-footer {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 12px;
}

.community-header {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.community-header h1 {
    font-size: 18px;
    margin: 0 0 4px;
}

.community-header p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

/* limit card width on larger screens, but full width on mobile */
@media (min-width: 900px) {
    .form-card {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 120px;
}

.comments {
    margin-top: 16px;
}

.comment {
    background: #f9fafb;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 6px;
}

.comment-meta {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.comment-body {
    font-size: 13px;
    margin-bottom: 4px;
}

.comment-children {
    margin-left: 14px;
    border-left: 2px solid #e5e7eb;
    padding-left: 8px;
}

.site-footer {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

@media (min-width: 960px) {
    .layout {
        max-width: 1100px;
        margin: 0 auto;
        align-items: flex-start;
    }
    .sidebar {
        display: block;
    }
}

@media (max-width: 959px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .post-card {
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 0;
    }
}

/* === Mobile profile menu === */

.desktop-only {
    display: inline-flex;
}
.mobile-only {
    display: none;
}

.mobile-avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #4ade80;
    object-fit: cover;
}

/* Overlay & Panel */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
    z-index: 900;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82%;
    max-width: 420px;
    background: #ffffff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    z-index: 901;
    display: flex;
    flex-direction: column;
}

/* Offen-Zustand */
.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
}

/* Panel-Inhalt */
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px 0 16px;
}
.mobile-menu-close {
    font-size: 28px;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-profile {
    padding: 8px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.mobile-menu-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 3px solid #4ade80;
    object-fit: cover;
    margin-bottom: 8px;
}
.mobile-menu-username {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}
.mobile-menu-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
}

/* Menu lists */
.mobile-menu-section {
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
}
.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #111827;
    font-size: 15px;
}
.mobile-menu-item:hover {
    background: #f3f4f6;
}
.mobile-menu-icon {
    width: 26px;
    display: inline-flex;
    justify-content: center;
    margin-right: 10px;
}

/* Responsiv */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: inline-flex;
    }
}

/* Logo Image + Text im Header */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}
.logo-image {
    height: 28px;
    max-height: 28px;
    width: auto;
    max-width: 140px;
    border-radius: 4px;
    object-fit: contain;
}
.logo-text {
    display: inline-block;
}


@media (max-width: 768px) {
    .site-header {
        padding: 6px 10px;
    }
}


.community-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    text-decoration: none;
}

.community-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.community-badge-public {
    background: #dbeafe;
    color: #1d4ed8;
}

.community-badge-restricted {
    background: #fef3c7;
    color: #b45309;
}

.community-badge-private {
    background: #e5e7eb;
    color: #4b5563;
}

.community-badge-nsfw {
    background: #fee2e2;
    color: #b91c1c;
}

.topic-filter-pill {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
}

.topic-filter-pill-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}


.mobile-menu-profile.has-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 24px;
    padding-bottom: 16px;
}













/* Search autocomplete dropdown */
.search-form {
    position: relative;
}

.search-autocomplete {
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 6px 0;
    z-index: 50;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.search-autocomplete-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
}

.search-autocomplete-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.search-autocomplete-item:hover {
    background: #f3f4f6;
}

.search-autocomplete-item-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-autocomplete-item-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
}

.search-autocomplete-item-sub {
    font-size: 11px;
    color: #6b7280;
}

.search-autocomplete-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
}

/* Theme toggle button */
.btn-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
}
.btn-icon:hover {
    background: #e5e7eb;
}

/* Dark mode base */
body.dark-mode {
    background-color: #0f172a;
    color: #e5e7eb;
}
body.dark-mode .post-card {
    background:#020617;
    border-color:#1f2933;
}
body.dark-mode .sidebar-card {
    background:#020617;
    border-color:#1f2937;
}
body.dark-mode .header,
body.dark-mode header {
    background:#020617;
    border-color:#1f2937;
}
body.dark-mode a {
    color:#93c5fd;
}
body.dark-mode .btn-primary {
    background:#2563eb;
    border-color:#1d4ed8;
}
body.dark-mode .search-autocomplete {
    background:#020617;
    border-color:#1f2937;
}


/* === Ultra minimal flat UI override ================================= */
/* Fokus: maximal übersichtlich, flach, kaum Deko, klare Struktur */

/* Farben & Abstände */
:root {
    --color-bg-page: #f5f5f5;
    --color-bg-surface: #ffffff;
    --color-border: #e5e5e5;
    --color-border-strong: #d4d4d4;
    --color-text-main: #111827;
    --color-text-muted: #6b7280;
    --color-accent: #2563eb;
}

/* Seite */
body {
    background: var(--color-bg-page);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Grundlayout */
.layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-feed {
    flex: 1 1 auto;
}

.sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 72px;
}

/* Karten (Posts, Forms, Sidebar) */
.post-card,
.form-card,
.sidebar-card {
    background: var(--color-bg-surface);
    border-radius: 8px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    padding: 12px 14px;
}

/* Header sehr schlicht */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 16px;
}

.header-left {
    gap: 10px;
}

.logo-text {
    font-weight: 700;
}

/* Suche im Header */
.search-form {
    max-width: 360px;
    flex: 1;
}

.search-form input {
    border-radius: 3px;
    border: 1px solid var(--color-border);
    background: #f9fafb;
    padding-inline: 36px 12px;
    font-size: 14px;
}

/* Buttons */
.btn,
.btn-primary,
.btn-outline {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-width: 1px;
    box-shadow: none;
}

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border-strong);
    color: var(--color-text-main);
}

.btn-primary:hover,
.btn-outline:hover {
    filter: brightness(0.97);
}

/* Posts */
.post-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.post-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 32px;
}

.post-votes button {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f3f4f6;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 0;
}

.post-votes button:hover {
    background: #e5e7eb;
    border-color: var(--color-border);
}

.post-content {
    width: 100%;
}

/* Meta / Titel / Aktionen */
.post-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.post-title,
.post-title a {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Formulare */
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--color-bg-surface);
    border-radius: 6px;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Sidebar Überschriften */
.sidebar h3,
.sidebar h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Mobile Menü sehr schlicht */
.mobile-menu-overlay {
    background: rgba(0,0,0,0.25);
}

.mobile-menu-panel {
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: none;
    width: 80%;
    max-width: 360px;
}

.mobile-menu-item {
    border-radius: 6px;
    padding: 9px 4px;
    margin-inline: 6px;
}

.mobile-menu-item:hover {
    background: #f3f4f6;
}

/* Community- & Kategorie-Listen */
#mobile-mycom-submenu,
#mobile-cat-submenu {
    max-height: 220px;
    overflow-y: auto;
}

/* Mobile Layout */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
        padding: 10px 8px;
        gap: 10px;
    }

    .sidebar {
        position: static;
        width: 100%;
        order: 2;
    }

    .main-feed {
        order: 1;
    }

    .site-header {
        padding: 6px 10px;
    }

    .search-form {
        display: block;
    }

    .post-card {
        padding: 10px 10px;
    }
}

@media (max-width: 480px) {
    .post-title,
    .post-title a {
        font-size: 15px;
    }
}



/* === 9GAG-like layout & theme ====================================== */
/* Ziel: einfache, klare 3-Spalten-Optik wie im Screenshot            */
/* Light = weißer Content, Dark = dunkler Content                     */

/* Grundlayout: zentriert, Feed + rechte Sidebar */
.layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Feed-Spalte */
.main-feed {
    flex: 0 0 650px;
}

/* Rechte Sidebar mit Empfehlungen */
.sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 76px;
}

/* Header: schwarzer Balken wie 9GAG */
.site-header {
    background: #000000;
    color: #ffffff;
    border-bottom: none;
    padding: 8px 16px;
}

.site-header a {
    color: #ffffff;
}

.logo-text {
    font-weight: 700;
}

/* Body light */
body {
    background: #fff;
    color: #111111;
}

/* Karten / Posts im Light-Mode */
.post-card,
.form-card,
.sidebar-card {
    background: #ffffff;
    border-radius: 3px;
    border#bottom: 1px solid #dadada;
    box-shadow: none;
    padding: 12px 14px;
}

/* Post-Layout: links Votes, rechts Inhalt */
.post-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.post-votes {
    min-width: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.post-votes button {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
    font-size: 13px;
    padding: 0;
}

/* Meta / Titel / Footer */
.post-meta {
    font-size: 12px;
    color: #777777;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.post-title,
.post-title a {
    font-size: 17px;
    font-weight: 700;
    margin-top: 4px;
}

.post-footer {
    margin-top: 6px;
    font-size: 12px;
    color: #777777;
}

/* Buttons wie Upload-Button */
.btn-primary {
    background: #00a2ff;
    border-color: #0090e0;
    color: #ffffff;
    border-radius: 3px;
    font-weight: 600;
}

.btn-outline {
    border-radius: 3px;
}

/* Sidebar-Titel */
.sidebar h3,
.sidebar h4 {
    font-size: 13px;
    font-weight: 600;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Dark-Mode: wie unteres 9GAG-Image */
body.dark-mode {
    background: #111111;
    color: #e5e5e5;
}

body.dark-mode .site-header {
    background: #000000;
    color: #ffffff;
}

body.dark-mode .site-header a {
    color: #ffffff;
}

body.dark-mode .post-card,
body.dark-mode .form-card,
body.dark-mode .sidebar-card {
    background: #1f1f1f;
    border-color: #343434;
}

body.dark-mode .post-meta,
body.dark-mode .post-footer {
    color: #a3a3a3;
}

/* Mobile: zwei Spalten auflösen, nur Feed, Sidebar darunter */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
        padding: 8px 8px 16px;
    }

    .main-feed,
    .sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

    .sidebar {
        position: static;
    }
}



/* Dual sidebar layout (9GAG style) */
.sidebar-left {
    width: 220px;
}

.sidebar-right {
    width: 300px;
}

/* hide left sidebar on small screens */
.desktop-only {
    display: none;
}

@media (min-width: 900px) {
    .desktop-only {
        display: block;
    }

    .main-feed {
        max-width: 640px;
    }
}



/* Mobile search icon + overlay search field */
.mobile-search-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 900px) {
    .mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 8px;
    }

    /* Header search form becomes hidden until opened, then fixed über dem Feed */
    .search-form {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 56px; /* ungefähr Headerhöhe */
        padding: 8px 12px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        z-index: 45;
    }

    .search-form.search-form-open {
        display: block;
    }
}


@media (max-width: 900px) {
    .layout {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 8px;
        flex-direction: column;
    }

    .main-feed {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .sidebar {
        width: 100%;
    }

    .search-form {
        max-width: 100%;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
    }
}

    .main-feed {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .sidebar {
        width: 100%;
    }
}
\n

\n
.search-autocomplete-thumb {
    flex: 0 0 12px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-autocomplete-thumb img {
    width: 38px;
    height: 100%;
    object-fit: cover;
}



.feed-tabs-row {
    font-size: 16px;
    margin-top: 2px;
	@font-weight: 600;
}

.feed-tabs-label {
    font-weight: 600;
    margin-right: 6px;
}

.feed-tabs-row a {
    text-decoration: none;
    color: #4b5563;
}

.feed-tabs-row a.active-tab {
    font-weight: 600;
    color: #111827;
}

.active-tab {
    font-weight: 600;
}



/* Admin layout */
.admin-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.admin-sidebar {
    width: 220px;
    max-width: 40%;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.admin-sidebar-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 15px;
}

.admin-nav-section-label {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.admin-nav-link {
    display: block;
    padding: 4px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
}

.admin-nav-link:hover {
    background: #e5e7eb;
}

.admin-nav-link.is-active {
    background: #2563eb;
    color: #ffffff;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Mobile: Sidebar oben, Content darunter */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        max-width: 100%;
    }
}


/* Simple per-post NSFW blur */
.nsfw-blur-wrapper {
    position: relative;
}
.nsfw-blur-target {
    filter: blur(18px);
    pointer-events: none;
    user-select: none;
}
.nsfw-blur-overlay {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,23,42,0.70);
    color:#f9fafb;
    font-size:14px;
    font-weight:500;
    text-align:center;
    padding:12px;
    border-radius:8px;
    z-index:5;
}


/* Click-to-reveal NSFW */
.nsfw-blur-wrapper.nsfw-unblurred .nsfw-blur-target {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

.nsfw-blur-wrapper.nsfw-unblurred .nsfw-blur-overlay {
    display: none;
}

.nsfw-blur-overlay{pointer-events:auto;}


/* inline post votes in footer */
.post-votes-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    font-size: 14px;
}

.post-votes-inline .vote-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}
