.forum-page {
    padding-top: 10px;
}

.forum-page .contnet-block-a {
    width: 100%;
}

.forum-page .forum-subtitle {
    color: #979AA0;
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    line-height: 1.5;
}

.forum-section {
    margin-top: 28px;
}

.forum-section-header {
    margin-bottom: 12px;
}

.forum-section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
}

.forum-categories-list {
    display: grid;
    gap: 10px;
}

.forum-category-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 12px;
    background: #1B1B1B;
    border: 1px solid #272727;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.forum-category-row:hover {
    border-color: #F0264B;
    transform: translateY(-1px);
}

.forum-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F0264B;
}

.forum-cat-ico {
    width: 22px;
    height: 22px;
}

.forum-category-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.forum-category-desc {
    color: #979AA0;
    font-size: 12px;
    line-height: 1.4;
}

.forum-category-stats {
    text-align: center;
    min-width: 90px;
}

.forum-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #F0264B;
}

.forum-stat-label {
    font-size: 11px;
    color: #979AA0;
}

.forum-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #979AA0;
    font-size: 13px;
    margin-bottom: 18px;
}

.forum-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.forum-breadcrumb a:hover {
    color: #F0264B;
}

.forum-category-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.forum-new-btn {
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.forum-topics-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #272727;
    background: #1B1B1B;
}

.forum-topics-head,
.forum-topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) minmax(50px, 80px) minmax(100px, 160px);
    gap: 12px;
    padding: 14px 18px;
    align-items: center;
}

.forum-topics-head {
    background: #111;
    color: #979AA0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.forum-topic-row {
    text-decoration: none;
    color: #fff;
    border-top: 1px solid #272727;
    transition: 0.3s;
}

.forum-topic-row:hover {
    background: #222;
}

.forum-topic-title {
    font-weight: 500;
    font-size: 14px;
}

.forum-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 600;
    vertical-align: middle;
}

.forum-badge.pinned {
    background: #F0264B33;
    color: #F0264B;
}

.forum-badge.locked {
    background: #ffffff15;
    color: #979AA0;
}

.col-author,
.col-replies {
    font-size: 13px;
    color: #ccc;
}

.col-last {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.forum-last-user {
    color: #fff;
}

.forum-last-time {
    color: #979AA0;
}

.forum-topics-empty,
.forum-empty {
    padding: 40px 20px;
    text-align: center;
    color: #979AA0;
}

.forum-topic-header {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.forum-topic-mod-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-mod-btn {
    border: 1px solid #3a3a3a;
    background: #242424;
    color: #e8e8e8;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.forum-mod-btn:hover {
    background: #2f2f2f;
    border-color: #F0264B55;
}

.forum-mod-btn.is-active {
    border-color: #F0264B;
    color: #fff;
}

.forum-post-mod-actions {
    margin-left: auto;
}

.forum-exemplary-wrap {
    margin-bottom: 16px;
    border: 1px solid #F0264B44;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(240, 38, 75, 0.08), rgba(240, 38, 75, 0.02));
}

.forum-exemplary-label {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #F0264B;
    border-bottom: 1px solid #F0264B33;
    background: rgba(240, 38, 75, 0.06);
}

.forum-exemplary-wrap .forum-post {
    border: none;
    border-radius: 0;
}

.forum-post--exemplary {
    border-color: #F0264B55;
}

.forum-post-role--exemplary {
    color: #F0264B;
    font-weight: 600;
}

.forum-root--loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.forum-topic-h1 {
    font-size: 26px !important;
}

.forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #979AA0;
    font-size: 13px;
    margin-top: 8px;
}

.forum-posts-list {
    display: grid;
    gap: 14px;
}

.forum-post {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #272727;
    background: #1B1B1B;
}

.forum-post-sidebar {
    background: #111;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.forum-post-avatar img {
    width: 64px;
    border-radius: 8px;
}

.forum-post-author {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.forum-post-author:hover {
    color: #F0264B;
}

.forum-post-author-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.forum-prefix-badge,
.forum-suffix-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    max-width: 100%;
    word-break: break-word;
}

.forum-prefix-badge {
    margin-bottom: 2px;
}

.forum-prefix-badge--default,
.forum-prefix-badge--player {
    background: #ffffff12;
    color: #979AA0;
    border: 1px solid #ffffff18;
}

.forum-prefix-badge--moderator {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.forum-prefix-badge--admin {
    background: rgba(240, 38, 75, 0.2);
    color: #ff9aad;
    border: 1px solid rgba(255, 154, 173, 0.35);
}

.forum-prefix-badge--ga {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(252, 211, 77, 0.35);
}

.forum-suffix-badge {
    margin-top: 2px;
    background: #ffffff0d;
    color: #b6becd;
    border: 1px solid #ffffff14;
}

.forum-post-role {
    font-size: 10px;
    color: #F0264B;
}

.forum-post-role--staff {
    color: #93c5fd;
}

.forum-post-body {
    padding: 18px 22px;
}

.forum-post-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #272727;
    font-size: 12px;
    color: #979AA0;
}

.forum-post-content {
    font-size: 14px;
    line-height: 1.7;
    color: #e8e8e8;
    word-break: break-word;
}

.forum-reply-form,
.forum-new-form {
    margin-top: 28px;
    padding: 24px;
    border-radius: 12px;
    background: #1B1B1B;
    border: 1px solid #272727;
}

.forum-reply-title {
    font-size: 18px;
    margin-bottom: 14px;
}

.forum-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #272727;
    background: #111;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 14px;
}

.forum-textarea:focus {
    outline: none;
    border-color: #F0264B;
}

.forum-form-group {
    margin-bottom: 16px;
}

.forum-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #979AA0;
}

.forum-input {
    width: 100%;
}

.forum-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.forum-submit-btn {
    border: none;
    cursor: pointer;
}

.forum-auth-hint {
    margin-top: 24px;
    padding: 18px;
    border-radius: 8px;
    background: #111;
    text-align: center;
    color: #979AA0;
}

.forum-pagination {
    margin-top: 22px;
}

.forum-recent-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.forum-recent-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #272727;
}

.forum-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.forum-recent-title {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
    transition: 0.3s;
}

.forum-recent-title:hover {
    color: #F0264B;
}

.forum-recent-meta,
.forum-recent-category {
    font-size: 11px;
    color: #979AA0;
}

.forum-recent-count {
    color: #F0264B;
    font-weight: 600;
}

.forum-recent-sep {
    margin: 0 4px;
    opacity: 0.5;
}

@media (max-width: 1100px) {
    .forum-category-row {
        grid-template-columns: 44px 1fr;
    }

    .forum-category-stats {
        grid-column: 1 / -1;
        display: flex;
        gap: 16px;
        text-align: left;
    }

    .forum-topics-head {
        display: none;
    }

    .forum-topic-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .col-author::before { content: 'Автор: '; color: #979AA0; }
    .col-replies::before { content: 'Ответы: '; color: #979AA0; }

    .forum-post {
        grid-template-columns: 1fr;
    }

    .forum-post-sidebar {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .forum-page .contnet-block-a {
        padding: 20px 16px;
    }

    .forum-category-row {
        padding: 16px;
        grid-template-columns: 40px 1fr;
    }

    .forum-category-top {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-new-btn {
        width: 100%;
        justify-content: center;
    }

    .forum-topic-h1 {
        font-size: 20px !important;
    }
}
