/* ============================================================
   Maxforum — стили страниц форума и тем
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--muted);
    transition: .2s;
    text-decoration: none;
}

.breadcrumb a:hover { 
    color: var(--pink); 
}

.breadcrumb span { 
    color: var(--muted-2); 
}

.breadcrumb span:last-child,
.breadcrumb .active,
.breadcrumb span.active {
    color: var(--text);
    font-weight: 800;
}

.reply-btn-inline {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-decoration: none;
    transition: .2s;
}
.reply-btn-inline:hover { color: var(--green); }
.reply-btn-inline.danger { color: var(--red); opacity: 0.7; }
.reply-btn-inline.danger:hover { opacity: 1; }

.breadcrumb span { color: var(--muted-2); }

.board-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    margin-bottom: 24px;
    border-radius: 28px;
    border: 1px solid var(--border-strong, rgba(255, 45, 85, 0.22));
    background: rgba(12, 12, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.board-head::before {
    display: none !important;
}

.board-head h1 {
    font-family: "Unbounded", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text, #ffffff);
    margin: 0;
}

.board-head p {
    margin-top: 5px;
    color: var(--muted, #9fa4b8);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Topic table */
.topic-board { margin-top: 4px; }

.topic-table {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(14, 16, 28, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.topic-table-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) 130px 90px 100px 170px;
    gap: 12px;
    padding: 13px 22px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #7d86aa;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.topic-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 130px 90px 100px 170px;
    gap: 12px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: .2s ease;
    cursor: pointer;
}

.topic-row:last-child { border-bottom: 0; }

.topic-row:hover { background: rgba(0, 204, 82, 0.05); }

.topic-title-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.topic-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 6px;
    vertical-align: middle;
}

.topic-prefix {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 6px;
    vertical-align: middle;
}

.topic-badge.pin  { background: rgba(255,211,106,.1); color: var(--gold);  border: 1px solid rgba(255,211,106,.2); }
.topic-badge.lock { background: rgba(255,92,122,.1);  color: var(--red);   border: 1px solid rgba(255,92,122,.2); }

.topic-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    line-height: 1.4;
    word-break: break-word;
}

.topic-row:hover .topic-name { 
    color: var(--pink); 
    text-shadow: none;
    transform: translateX(4px);
}

.topic-name:active {
    transform: translateX(6px) scale(0.97) !important;
    color: var(--pink) !important;
    text-shadow: none !important;
}

.topic-meta-col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.topic-meta-col span {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    transition: color .2s;
}

.topic-meta-col:hover span {
    color: var(--pink);
}

.topic-last-col a:hover b {
    color: var(--pink);
}

.topic-last-col b {
    transition: color .2s;
}

.topic-num-col {
    text-align: center;
}

.topic-num-col b {
    display: block;
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    letter-spacing: -0.04em;
    color: var(--text);
}

.topic-last-col {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.mobile-views-badge {
    display: none;
}

.topic-last-col b {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-last-col span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted-2);
    margin-top: 2px;
}

/* Avatar sizes — forum-specific overrides */
.avatar-wrapper {
    border-radius: 50% !important;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.avatar-container.size-sm,
.avatar-wrapper.sm {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    font-size: 11px;
}

.avatar-container.size-sm > .avatar-wrapper {
    width: 100% !important;
    height: 100% !important;
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.055);
    color: #c8cde8;
    font-size: 14px;
    font-weight: 900;
    transition: .2s ease;
}

.page-btn:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--pink), var(--violet));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(124,92,255,.36);
}

/* ── Topic view (posts) ──────────────────────────────────────── */

.topic-header {
    padding: 28px 32px;
    margin-bottom: 20px;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    background:
        linear-gradient(135deg, rgba(255,62,165,.12), rgba(124,92,255,.10) 50%, rgba(52,213,255,.08)),
        rgba(10, 13, 30, 0.82);
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.topic-header h1 {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    letter-spacing: -0.05em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.topic-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topic-header-meta .avatar-container,
.topic-header-info .avatar-container,
.meta-author .avatar-container { 
    width: 44px !important; 
    height: 44px !important; 
    flex: 0 0 44px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important; 
}

.topic-header-meta .avatar-wrapper,
.topic-header-info .avatar-wrapper,
.meta-author .avatar-wrapper { 
    width: 100% !important; 
    height: 100% !important; 
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important; 
    font-size: 16px;
}

.topic-header-meta .meta-info b {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: #eef1ff;
}

.topic-header-meta .meta-info span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.topic-tags {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.post {
    display: grid;
    grid-template-columns: 140px minmax(0,1fr);
    border-radius: 28px;
    border: 1px solid var(--border-strong, rgba(255, 45, 85, 0.22));
    overflow: hidden;
    background: linear-gradient(145deg, rgba(16, 18, 32, 0.88), rgba(10, 12, 22, 0.92));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.post:hover {
    border-color: rgba(255, 45, 85, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 45, 85, 0.1);
}

.post-author {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 9, 16, 0.65);
}

.post-author .avatar-container,
.post-author-avatar-link .avatar-container {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
}

.post-author .avatar-wrapper,
.post-author-avatar-link .avatar-wrapper {
    width: 100% !important;
    height: 100% !important;
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 18px;
    border-radius: 50% !important;
}

.post-author-name {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.post-author-role {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.post-author-role.admin     { background: rgba(0, 204, 82, 0.1); color: var(--green); border: 1px solid rgba(0, 204, 82, 0.25); box-shadow: 0 4px 12px rgba(0, 204, 82, 0.1); }
.post-author-role.moderator { background: rgba(52,213,255,.1); color: var(--cyan); border: 1px solid rgba(52,213,255,.2); }
.post-author-role.user      { background: rgba(255, 255, 255, 0.06); color: #9fa4b8; border: 1px solid rgba(255, 255, 255, 0.08); }

.post-author-ptag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #9fa4b8;
    font-size: 10px;
    font-weight: 750;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.post-author-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.post-author-stat {
    font-size: 11px;
    font-weight: 700;
    color: #9fa4b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.post-body {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.post-date {
    color: #9fa4b8;
    font-size: 12px;
    font-weight: 700;
}

.post-num {
    color: #9fa4b8;
    font-size: 11px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 8px;
}

.post-content {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

.post-content .mention {
    transition: opacity 0.2s ease;
}

.post-content .mention:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Reply form */
.reply-box {
    border-radius: 28px;
    border: 1px solid var(--border-strong, rgba(255, 45, 85, 0.22));
    padding: 28px 32px;
    background: linear-gradient(145deg, rgba(16, 18, 32, 0.9), rgba(10, 12, 22, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.reply-box h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.reply-box textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    background: rgba(20, 22, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: .2s;
}

.reply-box textarea:focus {
    border-color: rgba(0, 204, 82, 0.5);
    background: rgba(24, 26, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 204, 82, 0.15);
}

.reply-box textarea::placeholder { color: #5a6287; }

.reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* Locked notice */
.locked-notice {
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255,92,122,.10);
    border: 1px solid rgba(255,92,122,.20);
    color: #ff8fa3;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .topic-table-head {
        display: none !important;
    }

    .topic-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "title title"
            "author last" !important;
        gap: 10px 12px !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .topic-title-col {
        grid-area: title !important;
        width: 100% !important;
    }

    .topic-name {
        font-size: 15px !important;
        line-height: 1.45 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .topic-meta-col {
        grid-area: author !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .topic-meta-col .avatar-container {
        width: 22px !important;
        height: 22px !important;
    }

    .topic-meta-col span {
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .topic-num-col {
        display: none !important;
    }

    .mobile-views-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        font-size: 11px !important;
        color: #9fa4b8 !important;
        font-weight: 600 !important;
    }

    .topic-last-col {
        grid-area: last !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        justify-self: end !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .topic-last-col .last-user-avatar {
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }

    .topic-last-col .last-user-avatar .avatar-container,
    .topic-last-col .last-user-avatar .avatar-wrapper {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
    }

    .topic-last-col div {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .topic-last-col b {
        font-size: 11px !important;
        font-weight: 700 !important;
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .topic-last-col span {
        font-size: 11px !important;
        color: #9fa4b8 !important;
        margin-top: 0 !important;
    }

    .post { grid-template-columns: 140px minmax(0,1fr); }
    .post-author { padding: 16px 10px; }
}

@media (max-width: 560px) {
    .post { grid-template-columns: 1fr; }
    .post-author {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
        padding: 16px 20px;
        gap: 14px;
        flex-wrap: wrap;
    }
    .post-author-name { width: auto; justify-content: flex-start; }
    .post-author-stats {
        flex-direction: row;
        width: 100%;
        gap: 14px;
        margin-top: 6px;
        padding-top: 10px;
        justify-content: flex-start;
    }
    .post-body { padding: 16px 18px; }
    .board-head { flex-wrap: wrap; padding: 20px; gap: 12px; }
}

.post-content a { text-decoration: none; color: var(--cyan); transition: .2s; }
.post-content a:hover { color: #fff; text-shadow: 0 0 10px rgba(52,213,255,.5); }

.meta-author { text-decoration: none; display: flex; align-items: center; gap: 12px; transition: .2s; }
.meta-author:hover .meta-info b { color: var(--cyan); }

/* ── Avatar container sizes for Forum/Topic list and post views ── */

/* 1. Topic list author (meta-col) and last poster: 30px */
.topic-meta-col .avatar-container,
.topic-last-col .avatar-container {
    width: 30px;
    height: 30px;
    --frame-inset: -1.8px;
    --frame-width: 1.8px;
}

/* 2. Topic details header author: 44px */
.topic-header-meta .avatar-container,
.topic-header-info .avatar-container {
    width: 44px;
    height: 44px;
    --frame-inset: -2.2px;
    --frame-width: 2.2px;
}

/* 3. Post author avatar: 52px */
.post-author .avatar-container {
    width: 52px;
    height: 52px;
    --frame-inset: -2.5px;
    --frame-width: 2.5px;
}

/* 4. Responsive post author avatar at small screens */
@media (max-width: 820px) {
    .post-author .avatar-container {
        width: 42px;
        height: 42px;
        --frame-inset: -2px;
        --frame-width: 2px;
}
}

/* ── Post Reactions ── */

/* ── Кнопка лайка и список лайкнувших под сообщением ── */
.post-reactions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    border-top: 1px solid var(--border-strong);
    padding-top: 12px;
}

.reaction-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    padding: 6px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.reaction-like-btn:hover:not(.disabled) {
    background: #ffffff;
    border-color: rgba(0, 204, 82, 0.3);
    color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 204, 82, 0.05);
}

.reaction-like-btn.active {
    background: rgba(0, 204, 82, 0.1);
    border-color: rgba(0, 204, 82, 0.3);
    color: var(--green) !important;
}

.reactions-list-text {
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    transition: color 0.2s;
    user-select: none;
}

.reactions-list-text:hover {
    color: #fff;
    text-decoration: underline;
}

.reactions-list-text .reactor-name {
    font-weight: 800;
}

/* ── Модалка для списка лайкнувших ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: rgba(14, 16, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideUp 0.2s ease-out;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 22, 0.8);
}

.modal-head h3 {
    margin: 0;
    font-size: 15px;
    font-family: 'Unbounded', sans-serif;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9fa4b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-reactor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-reactor-item:hover {
    background: rgba(0, 204, 82, 0.08);
    border-color: rgba(0, 204, 82, 0.3);
}

.modal-reactor-item .reactor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-reactor-item .reactor-name {
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: opacity 0.2s;
}

.modal-reactor-item .reactor-name:hover {
    opacity: 0.8;
}

.modal-reactor-item .reactor-role {
    font-size: 11px;
    color: var(--muted-2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Lock horizontal panning/swiping in topic view and forum pages */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
}

.page, .topic-wrap, .forum-board, .content-grid, .topic-header-main, .topic-header-info, .posts-list, .post, .post-body, .post-content, .reply-box, .board-head, .topic-table, .topic-row {
    max-width: 100% !important;
    overflow-x: hidden;
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
}

.post-content {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.post-content img, .post-content video, .post-content iframe {
    max-width: 100% !important;
    height: auto !important;
}

.post-content pre, .post-content code, .post-content table {
    max-width: 100% !important;
    overflow-x: auto !important;
    touch-action: pan-x pan-y !important;
}

.header-actions {
    flex-wrap: wrap !important;
}
