/*
======================================================================
 PEA-CMS (Initials: Edgar A P)
======================================================================
 Developer:  Pi0run, ZedanDredal
 Company:    Prolog LLC (ООО "Пролог") — Web Development
 E-mail:     cs-iron@mail.ru
----------------------------------------------------------------------
 © 2008–2026 Edgar A P / Prolog LLC. All rights reserved.
 This code is protected by copyright law.
======================================================================
 File:       wall.css
 Purpose:    Стили публичной стены сообщества.
======================================================================
*/

/* ------------------------------------------------------------------
   Общие переменные
   ------------------------------------------------------------------ */

:root {
    --wall-bg: #0b0f14;
    --wall-card-bg: #11161d;
    --wall-border: #1f2933;
    --wall-text: #e6edf3;
    --wall-muted: #9aa4b2;
    --wall-accent: #58a6ff;
    --wall-success: #3fb950;
    --wall-error: #f85149;
    --wall-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ==========================================================
   Стена сообщества: поддержка светлой и тёмной темы
   ========================================================== */

:root[data-theme="dark"] {
    --wall-bg: #0b0f14;
    --wall-card-bg: #11161d;
    --wall-card-hover: #16202b;
    --wall-input-bg: #0d1219;
    --wall-hero-start: #0d1219;
    --wall-hero-end: #0b0f14;
    --wall-border: #1f2933;
    --wall-border-soft: rgba(148, 163, 184, 0.15);
    --wall-text: #e6edf3;
    --wall-muted: #9aa4b2;
    --wall-accent: #78b5ff;
    --wall-accent-bg: rgba(88, 166, 255, 0.13);
    --wall-success: #3fb950;
    --wall-error: #f85149;
    --wall-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

:root[data-theme="light"] {
    --wall-bg: #eef3f9;
    --wall-card-bg: #ffffff;
    --wall-card-hover: #f7faff;
    --wall-input-bg: #f7faff;
    --wall-hero-start: #ffffff;
    --wall-hero-end: #eaf2fc;
    --wall-border: rgba(15, 23, 42, 0.14);
    --wall-border-soft: rgba(15, 23, 42, 0.10);
    --wall-text: #172033;
    --wall-muted: #596a80;
    --wall-accent: #1f63bd;
    --wall-accent-bg: rgba(37, 99, 235, 0.10);
    --wall-success: #17833b;
    --wall-error: #c72e35;
    --wall-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* ------------------------------------------------------------------
   Шапка стены
   ------------------------------------------------------------------ */

.wall-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 1.25rem 1.5rem;
    background:
        radial-gradient(
            1200px 600px at 10% -20%,
            rgba(88, 166, 255, 0.12),
            transparent 60%
        ),
        linear-gradient(
            to bottom,
            #0d1219,
            var(--wall-bg)
        );
    border-bottom: 1px solid var(--wall-border);
}

.wall-hero-symbol {
    font-size: 5rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.35;
    user-select: none;
}

.wall-hero .eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wall-muted);
}

.wall-hero h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--wall-text);
}

.wall-hero p {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--wall-muted);
    max-width: 60ch;
}

.wall-hero-stats {
}

/* ------------------------------------------------------------------
   Алерты
   ------------------------------------------------------------------ */

.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
}

.profile-alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.35);
    color: #7ee787;
}

.profile-alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.35);
    color: #ff7b72;
}

/* ------------------------------------------------------------------
   Карточка создания публикации
   ------------------------------------------------------------------ */

.wall-create-card {
    margin: 1.5rem 1.25rem;
    padding: 1.25rem;
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 16px;
    box-shadow: var(--wall-shadow);
}

.wall-create-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wall-create-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wall-border);
}

.wall-create-header .eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wall-muted);
}

.wall-create-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wall-text);
}

.wall-create-form {
    display: grid;
    gap: 1rem;
}

.wall-create-text-field {
    display: grid;
    gap: 0.5rem;
}

.wall-create-text-field textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: #0d1219;
    border: 1px solid var(--wall-border);
    border-radius: 12px;
    color: var(--wall-text);
    font: inherit;
    resize: vertical;
    min-height: 6rem;
}

.wall-create-text-field textarea:focus {
    outline: none;
    border-color: var(--wall-accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.wall-create-text-field small {
    font-size: 0.8125rem;
    color: var(--wall-muted);
}

.wall-create-media-fields {
    display: grid;
    gap: 0.75rem;
}

.wall-file-field,
.wall-link-field {
    display: grid;
    gap: 0.375rem;
}

.wall-file-field span,
.wall-link-field span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wall-text);
}

.wall-file-field input[type="file"],
.wall-link-field input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: #0d1219;
    border: 1px solid var(--wall-border);
    border-radius: 10px;
    color: var(--wall-text);
    font-size: 0.875rem;
}

.wall-file-field input[type="file"]::file-selector-button,
.wall-link-field input::file-selector-button {
    padding: 0.375rem 0.625rem;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 8px;
    color: var(--wall-accent);
    font-weight: 600;
    cursor: pointer;
}

.wall-file-field small,
.wall-link-field small {
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-create-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.wall-create-note {
    font-size: 0.8125rem;
    color: var(--wall-muted);
}

.wall-publish-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(
        to bottom right,
        #2f81f7,
        #1f6feb
    );
    border: 1px solid rgba(88, 166, 255, 0.45);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.wall-publish-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(88, 166, 255, 0.25);
    filter: brightness(1.08);
}

.wall-publish-button:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* ------------------------------------------------------------------
   Карточка для неавторизованных
   ------------------------------------------------------------------ */

.wall-login-card {
    margin: 1.5rem 1.25rem;
    padding: 1.5rem;
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    box-shadow: var(--wall-shadow);
}

.wall-login-card-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.6;
}

.wall-login-card h2 {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wall-text);
}

.wall-login-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--wall-muted);
}

.wall-login-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 10px;
    color: var(--wall-accent);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition:
        background 0.12s ease,
        transform 0.12s ease;
}

.wall-login-button:hover {
    background: rgba(88, 166, 255, 0.18);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------
   Лента публикаций
   ------------------------------------------------------------------ */

.wall-feed {
    display: grid;
    gap: 1.25rem;
    padding: 0 1.25rem 1.5rem;
}

.wall-post {
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--wall-shadow);
}

.wall-post.is-pinned {
    border-color: rgba(88, 166, 255, 0.45);
    background:
        linear-gradient(
            to bottom,
            rgba(88, 166, 255, 0.06),
            var(--wall-card-bg)
        );
}

/* ------------------------------------------------------------------
   Шапка публикации
   ------------------------------------------------------------------ */

.wall-post-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.875rem;
}

.wall-post-avatar-link {
    display: block;
}

.wall-post-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wall-border);
}

.wall-post-author {
    min-width: 0;
}

.wall-post-author-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wall-post-author-name {
    font-weight: 700;
    color: var(--wall-text);
    text-decoration: none;
    font-size: 0.9375rem;
}

.wall-post-author-name:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wall-post-staff-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--wall-accent);
}

.wall-post-author-username {
    display: block;
    font-size: 0.8125rem;
    color: var(--wall-muted);
    text-decoration: none;
    margin-top: 0.125rem;
}

.wall-post-author-username:hover {
    color: var(--wall-text);
}

.wall-post-date-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-post-pinned {
    font-weight: 700;
    color: var(--wall-accent);
}

.wall-post-date {
    color: var(--wall-muted);
    text-decoration: none;
}

.wall-post-date:hover {
    text-decoration: underline;
}

.wall-post-edited {
    font-style: italic;
    opacity: 0.8;
}

.wall-post-delete-form {
    margin: 0;
}

.wall-post-delete-button {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--wall-border);
    border-radius: 8px;
    color: var(--wall-muted);
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.12s ease,
        color 0.12s ease;
}

.wall-post-delete-button:hover {
    background: rgba(248, 81, 73, 0.12);
    border-color: rgba(248, 81, 73, 0.35);
    color: #ff7b72;
}

/* ------------------------------------------------------------------
   Текст публикации
   ------------------------------------------------------------------ */

.wall-post-body,
.wall-detail-post-body {
    display: block;

    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.875rem;
    padding: 0.75rem 0.875rem;

    color: var(--wall-text);
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 12px;

    font-size: 0.9375rem;
    line-height: 1.6;
    text-align: left;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ------------------------------------------------------------------
   Вложения: изображения, видео, аудио
   ------------------------------------------------------------------ */

.wall-post-attachments {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 0.875rem;
}

.wall-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wall-border);
}

.wall-post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.wall-post-video,
.wall-post-audio {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--wall-border);
    background: #000;
}

/* ------------------------------------------------------------------
   YouTube
   ------------------------------------------------------------------ */

.wall-youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wall-border);
}

.wall-youtube-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------------------------------------
   Steam-карточки
   ------------------------------------------------------------------ */

.wall-steam-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(23, 30, 40, 0.6);
    border: 1px solid rgba(88, 166, 255, 0.25);
    border-radius: 12px;
    text-decoration: none;
    transition:
        border-color 0.12s ease,
        transform 0.12s ease;
}

.wall-steam-card:hover {
    border-color: rgba(88, 166, 255, 0.55);
    transform: translateY(-1px);
}

.wall-steam-card img {
    width: 120px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.wall-steam-card-content {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wall-steam-card-content strong {
    font-size: 0.9375rem;
    color: var(--wall-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wall-steam-card-content small {
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-steam-card-arrow {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.7;
}

/* ------------------------------------------------------------------
   Внешние ссылки
   ------------------------------------------------------------------ */

.wall-link-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border);
    border-radius: 12px;
    text-decoration: none;
    transition:
        border-color 0.12s ease,
        transform 0.12s ease;
}

.wall-link-card:hover {
    border-color: rgba(88, 166, 255, 0.35);
    transform: translateY(-1px);
}

.wall-link-card-icon {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.8;
}

.wall-link-card-content {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wall-link-card-content strong {
    font-size: 0.9375rem;
    color: var(--wall-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wall-link-card-content small {
    font-size: 0.75rem;
    color: var(--wall-muted);
    word-break: break-all;
}

.wall-link-card-content em {
    font-size: 0.8125rem;
    color: var(--wall-muted);
    font-style: normal;
    opacity: 0.85;
}

/* ------------------------------------------------------------------
   Реакции
   ------------------------------------------------------------------ */

.wall-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--wall-border);
}

.wall-reactions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.wall-reaction-form {
    margin: 0;
}

.wall-reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wall-border);
    border-radius: 999px;
    color: var(--wall-text);
    font-size: 0.9375rem;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.12s ease;
}

.wall-reaction-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(88, 166, 255, 0.35);
    transform: translateY(-1px);
}

.wall-reaction-button.is-active {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.55);
    color: var(--wall-accent);
}

.wall-reaction-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wall-post-footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wall-comments-link,
.wall-post-open-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wall-border);
    border-radius: 999px;
    color: var(--wall-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.wall-comments-link:hover,
.wall-post-open-link:hover {
    background: rgba(88, 166, 255, 0.08);
    border-color: rgba(88, 166, 255, 0.35);
    color: var(--wall-text);
}

.wall-comments-link span:last-child,
.wall-post-open-link span:last-child {
    font-weight: 700;
    color: var(--wall-accent);
}

/* ------------------------------------------------------------------
   Пустая стена
   ------------------------------------------------------------------ */

.wall-empty {
    margin: 2rem 1.25rem;
    padding: 2rem;
    text-align: center;
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 16px;
}

.wall-empty > div {
    font-size: 3rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.wall-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wall-text);
}

.wall-empty p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--wall-muted);
}

/* ------------------------------------------------------------------
   Пагинация и инфо
   ------------------------------------------------------------------ */

.wall-pagination-info {
    padding: 0 1.25rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--wall-muted);
}

/* ------------------------------------------------------------------
   Страница отдельной публикации
   ------------------------------------------------------------------ */

.wall-detail-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 1.25rem 1.5rem;
    background:
        radial-gradient(
            1200px 600px at 10% -20%,
            rgba(88, 166, 255, 0.1),
            transparent 60%
        ),
        linear-gradient(
            to bottom,
            #0d1219,
            var(--wall-bg)
        );
    border-bottom: 1px solid var(--wall-border);
}

.wall-detail-symbol {
    font-size: 4rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.3;
    user-select: none;
}

.wall-detail-hero .eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wall-muted);
}

.wall-detail-hero h1 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--wall-text);
}

.wall-detail-hero p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--wall-muted);
}

.wall-detail-main {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 2rem;
}

.wall-detail-post {
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--wall-shadow);
}

.wall-detail-post-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.875rem;
}

.wall-detail-post-avatar-link {
    display: block;
}

.wall-detail-post-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wall-border);
}

.wall-detail-post-author {
    min-width: 0;
}

.wall-detail-post-author-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wall-detail-post-author-name {
    font-weight: 700;
    color: var(--wall-text);
    text-decoration: none;
    font-size: 1rem;
}

.wall-detail-post-author-name:hover {
    text-decoration: underline;
}

.wall-detail-post-staff-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--wall-accent);
}

.wall-detail-post-author-username {
    display: block;
    font-size: 0.8125rem;
    color: var(--wall-muted);
    text-decoration: none;
    margin-top: 0.125rem;
}

.wall-detail-post-author-username:hover {
    color: var(--wall-text);
}

.wall-detail-post-date-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-detail-post-pinned {
    font-weight: 700;
    color: var(--wall-accent);
}

.wall-detail-post-date {
    color: var(--wall-muted);
}

.wall-detail-post-edited {
    font-style: italic;
    opacity: 0.8;
}

.wall-detail-post-delete-form {
    margin: 0;
}

.wall-detail-post-delete-button {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--wall-border);
    border-radius: 8px;
    color: var(--wall-muted);
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.12s ease,
        color 0.12s ease;
}

.wall-detail-post-delete-button:hover {
    background: rgba(248, 81, 73, 0.12);
    border-color: rgba(248, 81, 73, 0.35);
    color: #ff7b72;
}

.wall-detail-post-attachments {
    display: grid;
    gap: 0.875rem;
    margin: 0 0 1rem;
}

.wall-detail-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wall-border);
}

.wall-detail-post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
}

.wall-detail-post-video,
.wall-detail-post-audio {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--wall-border);
    background: #000;
}

.wall-detail-youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wall-border);
}

.wall-detail-youtube-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wall-detail-steam-card {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 0.875rem;
    align-items: center;
    padding: 0.875rem;
    background: rgba(23, 30, 40, 0.7);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition:
        border-color 0.12s ease,
        transform 0.12s ease;
}

.wall-detail-steam-card:hover {
    border-color: rgba(88, 166, 255, 0.6);
    transform: translateY(-1px);
}

.wall-detail-steam-card img {
    width: 140px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.wall-detail-steam-card-content {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wall-detail-steam-card-content strong {
    font-size: 1rem;
    color: var(--wall-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wall-detail-steam-card-content small {
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-detail-steam-card-arrow {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.7;
}

.wall-detail-link-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border);
    border-radius: 12px;
    text-decoration: none;
    transition:
        border-color 0.12s ease,
        transform 0.12s ease;
}

.wall-detail-link-card:hover {
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-1px);
}

.wall-detail-link-card-icon {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.8;
}

.wall-detail-link-card-content {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.wall-detail-link-card-content strong {
    font-size: 0.9375rem;
    color: var(--wall-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wall-detail-link-card-content small {
    font-size: 0.75rem;
    color: var(--wall-muted);
    word-break: break-all;
}

.wall-detail-link-card-content em {
    font-size: 0.8125rem;
    color: var(--wall-muted);
    font-style: normal;
    opacity: 0.85;
}

.wall-detail-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.875rem;
    border-top: 1px solid var(--wall-border);
}

.wall-detail-reactions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.wall-detail-reaction-form {
    margin: 0;
}

.wall-detail-reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wall-border);
    border-radius: 999px;
    color: var(--wall-text);
    font-size: 1rem;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.12s ease;
}

.wall-detail-reaction-button:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-1px);
}

.wall-detail-reaction-button.is-active {
    background: rgba(88, 166, 255, 0.18);
    border-color: rgba(88, 166, 255, 0.6);
    color: var(--wall-accent);
}

.wall-detail-reaction-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wall-detail-post-footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wall-detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wall-border);
    border-radius: 999px;
    color: var(--wall-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.wall-detail-back-link:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.4);
    color: var(--wall-text);
}

/* ------------------------------------------------------------------
   Комментарии
   ------------------------------------------------------------------ */

.wall-comments {
    background: var(--wall-card-bg);
    border: 1px solid var(--wall-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--wall-shadow);
}

.wall-comments h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wall-text);
}

.wall-comment-form {
    margin: 0 0 1.25rem;
}

.wall-comment-text-field {
    display: grid;
    gap: 0.5rem;
}

.wall-comment-text-field textarea {
    box-sizing: border-box;

    width: 100%;
    min-height: 5rem;
    padding: 0.625rem 0.75rem;

    color: var(--wall-text);
    background: var(--wall-input-bg);
    border: 1px solid var(--wall-border);
    border-radius: 10px;

    font: inherit;
    line-height: 1.5;

    resize: vertical;
    outline: none;

    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.wall-comment-text-field textarea::placeholder {
    color: var(--wall-muted);
    opacity: 0.72;
}

.wall-comment-text-field textarea:hover {
    border-color: var(--wall-accent);
}

.wall-comment-text-field textarea:focus {
    background: var(--wall-card-bg);
    border-color: var(--wall-accent);

    box-shadow:
        0 0 0 3px var(--wall-accent-bg);
}

.wall-comment-text-field textarea:focus {
    outline: none;
    border-color: var(--wall-accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.wall-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.wall-comment-note {
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-comment-submit {
    padding: 0.5rem 0.875rem;
    background: linear-gradient(
        to bottom right,
        #2f81f7,
        #1f6feb
    );
    border: 1px solid rgba(88, 166, 255, 0.45);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.wall-comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(88, 166, 255, 0.25);
    filter: brightness(1.08);
}

.wall-comment-submit:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.wall-comments-login {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border);
    border-radius: 12px;
    margin: 0 0 1.25rem;
}

.wall-comments-login > div:first-child {
    font-size: 2rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.5;
}

.wall-comments-login h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wall-text);
}

.wall-comments-login p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--wall-muted);
}

.wall-comments-login-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 10px;
    color: var(--wall-accent);
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    transition:
        background 0.12s ease,
        transform 0.12s ease;
}

.wall-comments-login-button:hover {
    background: rgba(88, 166, 255, 0.18);
    transform: translateY(-1px);
}

.wall-comments-list {
    display: grid;
    gap: 0.875rem;
}

.wall-comment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border);
    border-radius: 12px;
}

.wall-comment-avatar-link {
    display: block;
}

.wall-comment-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wall-border);
}

.wall-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.375rem;
}

.wall-comment-author-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wall-comment-author-name {
    font-weight: 700;
    color: var(--wall-text);
    text-decoration: none;
    font-size: 0.875rem;
}

.wall-comment-author-name:hover {
    text-decoration: underline;
}

.wall-comment-author-username {
    font-size: 0.75rem;
    color: var(--wall-muted);
    text-decoration: none;
}

.wall-comment-author-username:hover {
    color: var(--wall-text);
}

.wall-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--wall-muted);
}

.wall-comment-date {
    color: var(--wall-muted);
}

.wall-comment-edited {
    font-style: italic;
    opacity: 0.8;
}

.wall-comment-body {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.625rem;

    color: var(--wall-text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border);
    border-radius: 8px;

    font-size: 0.875rem;
    line-height: 1.5;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.wall-comment-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wall-comment-edit-button,
.wall-comment-delete-button {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--wall-border);
    border-radius: 8px;
    color: var(--wall-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.wall-comment-edit-button:hover,
.wall-comment-delete-button:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.35);
    color: var(--wall-text);
}

.wall-comment-delete-form {
    margin: 0;
}

.wall-comments-empty {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border);
    border-radius: 12px;
}

.wall-comments-empty > div {
    font-size: 2rem;
    line-height: 1;
    color: var(--wall-accent);
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

.wall-comments-empty p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--wall-muted);
}

.wall-comments-pagination-info {
    padding: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--wall-muted);
}

/* ------------------------------------------------------------------
   Адаптивность
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
    .wall-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .wall-hero-symbol {
        justify-self: center;
    }

    .wall-login-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wall-login-card-icon {
        justify-self: center;
    }

    .wall-post-header {
        grid-template-columns: auto 1fr;
    }

    .wall-post-delete-form {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .wall-detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wall-detail-symbol {
        justify-self: center;
    }

    .wall-detail-post-header {
        grid-template-columns: auto 1fr;
    }

    .wall-detail-post-delete-form {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .wall-comments-login {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wall-comments-login > div:first-child {
        justify-self: center;
    }
}

/* ------------------------------------------------------------------
   Современный composer публикаций
   ------------------------------------------------------------------ */

.wall-composer {
    position: relative;
    overflow: hidden;
    padding: 1.125rem;
    background:
        radial-gradient(
            600px 280px at 0% 0%,
            rgba(88, 166, 255, 0.08),
            transparent 70%
        ),
        var(--wall-card-bg);
    border-color: rgba(88, 166, 255, 0.22);
}

.wall-composer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(88, 166, 255, 0.7),
        transparent
    );
    opacity: 0.8;
}

.wall-composer-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.wall-composer .wall-create-avatar {
    flex: 0 0 auto;
    width: 3.125rem;
    height: 3.125rem;
    border: 2px solid rgba(88, 166, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.06);
}

.wall-composer-header .eyebrow {
    margin: 0 0 0.2rem;
    color: var(--wall-accent);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.wall-composer-header h2 {
    margin: 0;
    color: var(--wall-text);
    font-size: 1rem;
    font-weight: 700;
}

.wall-composer .wall-create-form {
    gap: 0.75rem;
}

.wall-composer-editor {
    overflow: hidden;
    background: rgba(5, 10, 16, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.wall-composer-editor:focus-within {
    background: rgba(5, 10, 16, 0.68);
    border-color: rgba(88, 166, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.1);
}

.wall-composer-editor textarea {
    display: block;

    box-sizing: border-box;
    width: 100%;
    min-height: 8rem;
    padding: 0.875rem 1rem 0.625rem;

    resize: vertical;

    color: var(--wall-text);
    background: var(--wall-input-bg);
    border: 1px solid var(--wall-border);
    border-radius: 12px;

    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.55;

    outline: none;

    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.wall-composer-editor textarea::placeholder {
    color: var(--wall-muted);
    opacity: 0.72;
}

.wall-composer-editor textarea:hover {
    border-color: var(--wall-accent);
}

.wall-composer-editor textarea:focus {
    background: var(--wall-card-bg);
    border-color: var(--wall-accent);

    box-shadow:
        0 0 0 3px var(--wall-accent-bg);
}

.wall-composer-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    padding: 0.5rem 0.875rem 0.625rem;

    color: var(--wall-muted);
    background: var(--wall-card-bg);
    border-top: 1px solid var(--wall-border);

    font-size: 0.75rem;
}

.wall-character-counter {
    flex: 0 0 auto;
    color: var(--wall-muted);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
}

.wall-character-counter.is-limit {
    color: #ff7b72;
    font-weight: 700;
}

.wall-composer-hint {
    overflow: hidden;
    color: var(--wall-muted);
    font-size: 0.6875rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Composer: ссылка
   ------------------------------------------------------------------ */

.wall-link-composer {
    padding: 0.75rem;
    background:
        linear-gradient(
            135deg,
            rgba(88, 166, 255, 0.1),
            rgba(88, 166, 255, 0.025)
        );
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    animation: wall-composer-open 0.16s ease-out;
}

.wall-link-composer[hidden],
.wall-file-preview[hidden] {
    display: none;
}

.wall-link-composer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.625rem;
    align-items: center;
    margin-bottom: 0.625rem;
}

.wall-link-composer-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    background: rgba(88, 166, 255, 0.14);
    border: 1px solid rgba(88, 166, 255, 0.25);
    border-radius: 9px;
    font-size: 1rem;
}

.wall-link-composer-top > div {
    display: grid;
    min-width: 0;
    gap: 0.125rem;
}

.wall-link-composer-top strong {
    overflow: hidden;
    color: var(--wall-text);
    font-size: 0.8125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wall-link-composer-top small {
    overflow: hidden;
    color: var(--wall-muted);
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wall-link-remove-button {
    display: grid;
    width: 1.875rem;
    height: 1.875rem;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--wall-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.wall-link-remove-button:hover {
    background: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.3);
    color: #ff7b72;
}

.wall-link-composer-input-wrap {
    display: block;
}

.wall-link-composer-input-wrap input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: rgba(5, 10, 16, 0.56);
    border: 1px solid rgba(88, 166, 255, 0.24);
    border-radius: 9px;
    outline: 0;
    color: var(--wall-text);
    font: inherit;
    font-size: 0.8125rem;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease;
}

.wall-link-composer-input-wrap input:focus {
    border-color: rgba(88, 166, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.wall-link-composer-input-wrap input::placeholder {
    color: rgba(154, 164, 178, 0.65);
}

/* ------------------------------------------------------------------
   Composer: предпросмотр файлов
   ------------------------------------------------------------------ */

.wall-file-preview {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    animation: wall-composer-open 0.16s ease-out;
}

.wall-file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    color: var(--wall-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.wall-file-preview-header button {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--wall-muted);
    font: inherit;
    font-size: 0.6875rem;
    cursor: pointer;
    transition: color 0.12s ease;
}

.wall-file-preview-header button:hover {
    color: #ff7b72;
}

.wall-file-preview-list {
    display: grid;
    gap: 0.375rem;
}

.wall-file-preview-item {
    overflow: hidden;
    padding: 0.5rem 0.625rem;
    background: rgba(5, 10, 16, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 8px;
    color: var(--wall-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Composer: панель действий
   ------------------------------------------------------------------ */

.wall-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding-top: 0.25rem;
}

.wall-composer-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.wall-composer-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    color: var(--wall-muted);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease,
        transform 0.12s ease;
}

.wall-composer-tool:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.35);
    color: var(--wall-text);
    transform: translateY(-1px);
}

.wall-composer-tool:active {
    transform: translateY(0);
}

.wall-composer-tool-icon {
    font-size: 1rem;
    line-height: 1;
}

.wall-composer-tool input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.wall-composer .wall-publish-button {
    min-height: 2.375rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(31, 111, 235, 0.18);
}

.wall-composer-rules {
    margin: 0;
    padding-top: 0.125rem;
    color: var(--wall-muted);
    font-size: 0.6875rem;
    line-height: 1.45;
}

/* ------------------------------------------------------------------
   Анимация открытия блоков composer
   ------------------------------------------------------------------ */

@keyframes wall-composer-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------------
   Адаптивность composer
   ------------------------------------------------------------------ */

@media (max-width: 640px) {
    .wall-composer {
        padding: 0.875rem;
    }

    .wall-composer-header {
        gap: 0.75rem;
    }

    .wall-composer .wall-create-avatar {
        width: 2.75rem;
        height: 2.75rem;
    }

    .wall-composer-header h2 {
        font-size: 0.9375rem;
    }

    .wall-composer-editor textarea {
        min-height: 7rem;
        padding: 0.75rem;
    }

    .wall-composer-editor-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
    }

    .wall-composer-hint {
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .wall-composer-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wall-composer-tools {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .wall-composer-tool {
        justify-content: center;
    }

    .wall-composer .wall-publish-button {
        justify-content: center;
        width: 100%;
    }

    .wall-link-composer-top {
        grid-template-columns: auto 1fr auto;
    }

    .wall-link-composer-top small {
        white-space: normal;
        word-break: break-word;
    }
}


/* ==========================================================
   Единая шапка страницы стены
   ========================================================== */

.wall-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    box-sizing: border-box;
    width: 100%;
    min-height: 170px;
    margin: 0 0 24px;
    padding: 30px 34px;

    overflow: hidden;

    color: var(--text-primary, #edf4ff);
    background:
        linear-gradient(
            135deg,
            rgba(39, 87, 145, 0.20),
            rgba(15, 24, 40, 0.75)
        ),
        var(--card-bg, #121b2b);

    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);
}

.wall-hero::before {
    position: absolute;
    top: -120px;
    right: -75px;

    width: 270px;
    height: 270px;

    content: "";

    pointer-events: none;

    background: rgba(59, 130, 246, 0.13);
    border-radius: 50%;

    filter: blur(2px);
}

.wall-hero > div:first-child {
    position: relative;
    z-index: 1;

    max-width: 760px;
}

.wall-hero .eyebrow {
    margin: 0 0 8px;

    color: var(--text-muted, #9aabc3);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.wall-hero h1 {
    margin: 0;

    color: inherit;

    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.wall-hero h1 + p {
    max-width: 680px;
    margin: 12px 0 0;

    color: var(--text-secondary, #b8c5d8);

    font-size: 15px;
    line-height: 1.65;
}

.wall-hero-stats {
    margin-top: 18px;
}

.wall-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    color: var(--text-secondary, #c5d2e5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    font-size: 13px;
}

.wall-hero-stats strong {
    color: var(--text-primary, #ffffff);
    font-size: 15px;
}

.wall-hero-symbol {
    position: relative;
    z-index: 1;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 76px;
    height: 76px;

    color: #b9d6ff;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 18px;

    font-size: 34px;
    line-height: 1;
}

@media (max-width: 700px) {
    .wall-hero {
        align-items: flex-start;
        min-height: auto;
        padding: 24px 20px;
        border-radius: 14px;
    }

    .wall-hero h1 {
        font-size: 27px;
    }

    .wall-hero h1 + p {
        font-size: 14px;
    }

    .wall-hero-symbol {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        font-size: 25px;
    }
}

/* ==========================================================
   Единая ширина и размеры блоков стены
   ========================================================== */

.wall-create-card,
.wall-login-card,
.wall-empty,
.wall-feed,
.wall-post {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Карточка создания новой публикации */

.wall-create-card {
    margin: 0 0 24px;
    padding: 30px 34px;

    background: var(--card-bg, #121b2b);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Контейнер ленты не должен иметь собственный меньший размер */

.wall-feed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;

    margin: 0;
    padding: 0;
}

/* Каждая публикация — той же ширины, что шапка и composer */

article.wall-post {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 28px 34px;

    overflow: hidden;

    background: var(--card-bg, #121b2b);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    border-radius: 18px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Карточка входа и пустая стена */

.wall-login-card,
.wall-empty {
    width: 100%;
    margin: 0 0 24px;
    padding: 30px 34px;

    background: var(--card-bg, #121b2b);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    border-radius: 18px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Убирает возможные старые ограничения ширины */

.wall-create-card,
.wall-feed,
.wall-post,
.wall-login-card,
.wall-empty {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Единый размер верхней части поста */

.wall-post-header {
    margin-bottom: 18px;
}

/* Единая типографика текста публикации */

.wall-post-body,
.wall-post-content {
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
}

/* Медиа внутри записи не должно выходить за карточку */

.wall-post img,
.wall-post video,
.wall-post audio,
.wall-post iframe {
    box-sizing: border-box;
    max-width: 100%;
}

/* Телефон */

@media (max-width: 700px) {
    .wall-create-card,
    article.wall-post,
    .wall-login-card,
    .wall-empty {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .wall-feed {
        gap: 14px;
    }
}


/* ==========================================================
   Страница отдельной публикации: единая шапка
   ========================================================== */

.wall-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    box-sizing: border-box;
    width: 100%;
    min-height: 170px;
    margin: 0 0 24px;
    padding: 30px 34px;

    overflow: hidden;

    color: var(--text-primary, #edf4ff);
    background:
        linear-gradient(
            135deg,
            rgba(39, 87, 145, 0.20),
            rgba(15, 24, 40, 0.75)
        ),
        var(--card-bg, #121b2b);

    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);
}

.wall-detail-hero::before {
    position: absolute;
    top: -120px;
    right: -75px;

    width: 270px;
    height: 270px;

    content: "";

    pointer-events: none;

    background: rgba(59, 130, 246, 0.13);
    border-radius: 50%;

    filter: blur(2px);
}

.wall-detail-hero > div:first-child {
    position: relative;
    z-index: 1;

    max-width: 760px;
}

.wall-detail-hero .eyebrow {
    margin: 0 0 8px;

    color: var(--text-muted, #9aabc3);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.wall-detail-hero h1 {
    margin: 0;

    color: inherit;

    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.wall-detail-hero h1 + p {
    max-width: 680px;
    margin: 12px 0 0;

    color: var(--text-secondary, #b8c5d8);

    font-size: 15px;
    line-height: 1.65;
}

.wall-detail-symbol {
    position: relative;
    z-index: 1;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 76px;
    height: 76px;

    color: #b9d6ff;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 18px;

    font-size: 34px;
    line-height: 1;
}

/* Основной контент публикации — той же ширины, что шапка */

.wall-detail-main,
.wall-detail-post,
.wall-comments {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.wall-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;

    margin: 0;
    padding: 0;
}

.wall-detail-post,
.wall-comments {
    margin: 0;
    padding: 28px 34px;

    overflow: hidden;

    background: var(--card-bg, #121b2b);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    border-radius: 18px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Медиа не выходит за границы карточки */

.wall-detail-post img,
.wall-detail-post video,
.wall-detail-post audio,
.wall-detail-post iframe {
    box-sizing: border-box;
    max-width: 100%;
}

/* Мобильная версия */

@media (max-width: 700px) {
    .wall-detail-hero {
        align-items: flex-start;
        min-height: auto;
        padding: 24px 20px;
        border-radius: 14px;
    }

    .wall-detail-hero h1 {
        font-size: 27px;
    }

    .wall-detail-hero h1 + p {
        font-size: 14px;
    }

    .wall-detail-symbol {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        font-size: 25px;
    }

    .wall-detail-post,
    .wall-comments {
        padding: 22px 20px;
        border-radius: 14px;
    }
}


/* Исправление положения текста комментария */

.wall-comment-body-wrap {
    display: block !important;
    flex: 1 1 auto !important;

    min-width: 0 !important;
    width: 100% !important;

    text-align: left !important;
}

.wall-comment-body {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;

    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* ==========================================================
   Исправление размеров комментария и кнопок управления
   ========================================================== */

.wall-comment {
    align-items: flex-start !important;
}

/* Блок справа от аватарки занимает только свободное место */

.wall-comment-body-wrap {
    display: block !important;

    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;

    text-align: left !important;
}

/* Сам текст сообщения */

.wall-comment-body {
    box-sizing: border-box !important;

    width: auto !important;
    max-width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;

    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* Кнопки владельца комментария располагаются после текста */

.wall-comment-actions-row {
    position: static !important;

    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;

    width: 100% !important;
    margin-top: 10px !important;

    overflow: visible !important;
}

/* Форма удаления не должна быть блочным слоем поверх текста */

.wall-comment-delete-form {
    position: static !important;

    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Сами кнопки остаются в обычном потоке страницы */

.wall-comment-edit-button,
.wall-comment-delete-button {
    position: static !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}



/* ==========================================================
   Комментарии: карточка, текст, редактирование и удаление
   ========================================================== */

.wall-comments-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;

    width: 100%;
    margin-top: 18px;
}

.wall-comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 16px;

    overflow: hidden;

    text-align: left;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
}

.wall-comment-avatar-link {
    display: block;
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    overflow: hidden;

    border-radius: 50%;
}

.wall-comment-avatar {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: cover;
    border-radius: 50%;
}

.wall-comment-body-wrap {
    display: block;
    flex: 1 1 0;

    min-width: 0;
    width: auto;

    text-align: left;
}

.wall-comment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin: 0;
}

.wall-comment-author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    min-width: 0;

    text-align: left;
}

.wall-comment-author-name {
    color: var(--wall-text, #edf4ff);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.wall-comment-author-name:hover {
    color: var(--wall-accent, #8fc3ff);
    text-decoration: underline;
}

.wall-comment-author-username {
    color: var(--wall-muted, #90a0b6);

    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
}

.wall-comment-author-username:hover {
    color: var(--wall-text, #edf4ff);
    text-decoration: underline;
}

.wall-comment-meta {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;

    color: var(--wall-muted, #90a0b6);

    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.wall-comment-date,
.wall-comment-edited {
    white-space: nowrap;
}

.wall-comment-edited {
    color: var(--wall-muted, #90a0b6);
    opacity: 0.8;
}

/*
|--------------------------------------------------------------------------
| Текст комментария
|--------------------------------------------------------------------------
|
| white-space: normal важен:
| PHP уже использует nl2br(), поэтому пользовательские переносы
| превращаются в <br>, а лишние пробелы от PHP-разметки не видны.
|
*/

.wall-comment-body {
    display: block;

    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 8px 10px;

    overflow-wrap: anywhere;
    word-break: normal;

    color: var(--wall-text, #edf4ff);
    text-align: left;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--wall-border, rgba(148, 163, 184, 0.14));
    border-radius: 8px;

    font-size: 14px;
    line-height: 1.6;

    white-space: normal;
}

/*
|--------------------------------------------------------------------------
| Кнопки владельца комментария
|--------------------------------------------------------------------------
*/

.wall-comment-actions-row {
    position: static;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    width: auto;
    margin: 10px 0 0;
    padding: 0;

    overflow: visible;
}

.wall-comment-edit-button,
.wall-comment-delete-button {
    position: static;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    margin: 0;
    padding: 6px 10px;

    cursor: pointer;

    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.wall-comment-edit-button {
    color: var(--wall-text, #edf4ff);
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.wall-comment-edit-button:hover {
    background: rgba(59, 130, 246, 0.20);
    border-color: rgba(96, 165, 250, 0.48);
}

.wall-comment-delete-form {
    position: static;

    display: inline-flex;

    width: auto;
    margin: 0;
    padding: 0;
}

.wall-comment-delete-button {
    color: #ffb4b4;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.wall-comment-delete-button:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.24);
    border-color: rgba(248, 113, 113, 0.52);
}

/*
|--------------------------------------------------------------------------
| Мобильная версия
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {
    .wall-comment {
        gap: 10px;
        padding: 13px;
        border-radius: 12px;
    }

    .wall-comment-avatar-link,
    .wall-comment-avatar {
        width: 36px;
        height: 36px;
    }

    .wall-comment-header {
        display: block;
    }

    .wall-comment-meta {
        justify-content: flex-start;
        margin-top: 4px;

        text-align: left;
    }

    .wall-comment-body {
        margin-top: 8px;
        padding: 8px 9px;

        font-size: 13px;
    }

    .wall-comment-actions-row {
        margin-top: 9px;
    }
}

/* ==========================================================
   Переопределение старых жёстких тёмных цветов стены
   ========================================================== */

.wall-hero,
.wall-detail-hero {
    background:
        radial-gradient(
            1200px 600px at 10% -20%,
            var(--wall-accent-bg),
            transparent 60%
        ),
        linear-gradient(
            to bottom,
            var(--wall-hero-start),
            var(--wall-hero-end)
        ) !important;

    border-color: var(--wall-border) !important;
}

.wall-create-card,
.wall-login-card,
.wall-post,
.wall-detail-post,
.wall-empty,
.wall-comments,
.wall-detail-post-body,
.wall-post-body,
.wall-link-card,
.public-profile-panel {
    background: var(--wall-card-bg) !important;
    border-color: var(--wall-border) !important;
    box-shadow: var(--wall-shadow) !important;
}

.wall-create-text-field textarea,
.wall-file-field input[type="file"],
.wall-link-field input {
    color: var(--wall-text) !important;
    background: var(--wall-input-bg) !important;
    border-color: var(--wall-border) !important;
}

.wall-hero h1,
.wall-detail-hero h1,
.wall-create-header h2,
.wall-login-card h2,
.wall-post-author-name,
.wall-detail-post-author-name,
.wall-empty h2,
.wall-post-body,
.wall-detail-post-body {
    color: var(--wall-text) !important;
}

.wall-hero p,
.wall-detail-hero p,
.wall-create-note,
.wall-login-card p,
.wall-empty p,
.wall-post-author-username,
.wall-detail-post-author-username,
.wall-post-date-row,
.wall-detail-post-date-row,
.wall-file-field small,
.wall-link-field small {
    color: var(--wall-muted) !important;
}

.wall-post-body,
.wall-detail-post-body,
.wall-link-card {
    background: var(--wall-card-bg) !important;
}

.wall-steam-card {
    background: var(--wall-card-bg) !important;
    border-color: var(--wall-border) !important;
}

.wall-reaction-button,
.wall-comments-link,
.wall-post-open-link {
    color: var(--wall-text) !important;
    background: var(--wall-input-bg) !important;
    border-color: var(--wall-border) !important;
}

.wall-reaction-button:hover,
.wall-comments-link:hover,
.wall-post-open-link:hover {
    background: var(--wall-accent-bg) !important;
    border-color: var(--wall-accent) !important;
}

.wall-post.is-pinned {
    background:
        linear-gradient(
            to bottom,
            var(--wall-accent-bg),
            var(--wall-card-bg)
        ) !important;

    border-color: var(--wall-accent) !important;
}