/* GoFrag Comments — Стили (тёмная тема, UIkit 3) */

.gf-comments {
    margin-top: 24px;
    padding: 16px 0;
}

/* ==============================
   Форма комментария
   ============================== */

.gf-comment-form {
    margin-bottom: 24px;
    padding: 12px 14px;
    background: var(--gfp-bg, #1c1c24);
    border: 1px solid var(--gfp-border, rgba(255, 255, 255, 0.07));
    border-radius: var(--gfp-radius, 10px);
}

/* Сшивка с presence-strip сверху: убираем верхний border (у presence уже dashed снизу) */
.gf-presence + .gf-comment-form {
    border-top: 0;
    margin-top: 0;
}

.gf-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.gf-premod-notice {
    color: #888;
    font-size: 0.8em;
}

.gf-premod-notice a {
    color: #40ed70;
}

.gf-premod-notice a:hover {
    text-decoration: underline;
}

.gf-login-btn {
    background: #4caf50;
    border: none;
    color: #fff;
    padding: 5px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.gf-login-btn:hover {
    background: #45a049;
}

.gf-comment-form .uk-textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    resize: none;
    min-height: 80px;
    overflow: hidden;
    font-size: 0.95em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gf-comment-form .uk-textarea:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
    outline: none;
}

.gf-comment-form .uk-textarea::placeholder {
    color: #999;
}

.gf-comment-form .uk-textarea.gf-textarea--hint {
    min-height: 96px;
}

@media (max-width: 640px) {
    .gf-comment-form .uk-textarea.gf-textarea--hint {
        min-height: 140px;
    }
}

.gf-comment-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gf-comment-form-status {
    color: #999;
    font-size: 0.85em;
}

.gf-beta-notice {
    margin-top: 8px;
    color: #666;
    font-size: 0.8em;
}

.gf-beta-notice a {
    color: #4caf50;
    text-decoration: none;
}

.gf-beta-notice a:hover {
    text-decoration: underline;
}

.gf-submit-comment {
    background: #4caf50;
    border: none;
    color: #fff;
}

.gf-submit-comment:hover {
    background: #45a049;
}

.gf-submit-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Авторизация — плашка для гостей */
.gf-comment-login {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #aaa;
}

.gf-login-prompt-text {
    font-size: 0.95em;
}

.gf-login-prompt-btn {
    background: #4caf50 !important;
    border: none !important;
    color: #fff !important;
    background-image: none !important;
    white-space: nowrap;
}

.gf-login-prompt-btn:hover {
    background: #45a049 !important;
    color: #fff !important;
}

.gf-comment-login a {
    color: #4caf50;
}

/* ==============================
   UIkit Comment — тёмная тема
   ============================== */

.gf-comment {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: background 0.2s;
    position: relative;
}

.gf-comment:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* UIkit comment header/body/meta — тёмная тема */
.gf-comment .uk-comment-header {
    margin-bottom: 10px;
}

/* Выравнивание аватара и ника по центру */
.gf-comment .uk-comment-header > [uk-grid] {
    align-items: center !important;
}
.gf-comment .uk-comment-header > [uk-grid] > * {
    margin-top: 0 !important;
}

.gf-comment .uk-comment-title {
    color: #e0e0e0;
    font-size: 1em;
    margin-top: 0 !important;
}

.gf-comment .uk-comment-meta {
    color: #666;
    font-size: 0.75em;
    margin-top: 2px !important;
}

.gf-comment .uk-comment-meta time {
    color: #666;
}

.gf-comment .uk-comment-body {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    background: rgba(0, 0, 0, 0.12);
    padding: 10px 10px;
    border-radius: 4px;
}

.gf-comment .uk-comment-body a {
    color: #4caf50;
}

.gf-comment .uk-comment-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

.gf-comment .uk-comment-body pre {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
}

/* Вложенные комментарии — линия слева */
.gf-comment-nested {
    border-left: 2px solid rgba(64, 237, 112, 0.35);
}

/* ==============================
   Аватарки — закруглённый квадрат
   ============================== */

.gf-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: block;
}

.gf-avatar-root {
    width: 46px;
    height: 46px;
}

/* Дефолтная аватарка с инициалами */
.gf-avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    user-select: none;
    border-radius: 50%;
}

/* ==============================
   Ник и роль
   ============================== */

.gf-username {
    color: #e0e0e0;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 1.1em;
}

.gf-username:hover {
    color: #4caf50;
}

/* Кастомный цвет ника (магазин) — статичный цвет */
a.gf-username.gf-nick-colored {
    -webkit-text-fill-color: var(--gf-nick-color) !important;
    text-shadow: var(--gf-nick-shadow, none) !important;
}
a.gf-username.gf-nick-colored:hover {
    filter: brightness(1.25);
}

/* Бейджи рядом с ником */
.gf-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 10px;
    line-height: 1.75;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    vertical-align: middle;
    margin-left: 6px;
    border-radius: 4px;
}

.gf-badge-admin {
    background: #fb3f3f;
    color: #000;
}

.gf-badge-verified {
    background: #40ed70;
    color: #000;
}

.gf-badge-critic {
    background: #38bdf8;
    color: #000;
}

.gf-badge-repacker {
    background: #22c55e;
    color: #000;
}

.gf-badge-hacker {
    background: #d4b896;
    color: #000;
}

.gf-badge-advisor {
    background: #a78bfa;
    color: #000;
}

.gf-badge-lottery {
    background: #eab308;
    color: #000;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}

.gf-badge-guild {
    background: linear-gradient(135deg, #22c55e 0%, #fbbf24 100%);
    color: #000;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
}

.gf-badge-joke {
    background: #fdba74;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.gf-badge-soulful {
    background: #d6cfc7;
    color: #3d3a36;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

/* Клик по дате — копирование ссылки */
.gf-comment .uk-comment-meta time {
    cursor: pointer;
}

.gf-comment .uk-comment-meta time:hover {
    color: #4caf50;
}

.gf-copy-notice {
    color: #4caf50;
    font-size: 0.75em;
    margin-left: 6px;
    animation: gf-fadein 0.3s ease-in;
}

.gf-edited {
    color: #666;
    font-size: 1em;
    font-style: italic;
}

/* "в ответ @Ник" в meta-строке */
.gf-reply-info {
    color: #999;
}
.gf-reply-to {
    color: #4caf50;
    font-weight: 600;
    text-decoration: none;
}
.gf-reply-to:hover {
    text-decoration: underline;
    color: #66bb6a;
}

/* ==============================
   Админ-кнопки — hover-reveal
   ============================== */

.gf-reply-hover {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.gf-comment:hover .gf-reply-hover,
.gf-comment:focus-within .gf-reply-hover {
    opacity: 1;
    pointer-events: auto;
}

/* Pending-комменты (видны только админу) */
.gf-comment-pending {
    border-left: 3px solid #ff9800;
    background: rgba(255, 152, 0, 0.06);
}
.gf-badge-pending {
    background: #ff9800;
    color: #000;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

/* Кнопки админа в hover-зоне */
.gf-approve-btn,
.gf-delete-btn,
.gf-pin-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 4px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1;
}
.gf-approve-btn {
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.4);
}
.gf-approve-btn:hover {
    color: #66bb6a;
    border-color: #66bb6a;
}
.gf-delete-btn {
    color: #e53935;
    border-color: rgba(229, 57, 53, 0.3);
}
.gf-delete-btn:hover {
    color: #ef5350;
    border-color: #ef5350;
}

.gf-copy-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.5);
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 6px;
    transition: color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}
.gf-copy-btn:hover {
    color: #40ed70;
    border-color: #40ed70;
}
.gf-copy-btn.gf-copy-ready {
    color: #40ed70;
    border-color: #40ed70;
    animation: gf-pulse 1s ease-in-out infinite;
}
@keyframes gf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.gf-reply-btn {
    background: none;
    border: none;
    color: #4caf50;
    cursor: pointer;
    font-size: 0.9em;
    padding: 4px 0;
    position: relative;
    display: inline-block;
}

.gf-reply-btn-text {
    position: relative;
    display: inline-block;
}

/* Underline-анимация: полоска проезжает слева направо */
.gf-reply-btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 0;
    background: #4caf50;
    transition: width 0.3s ease;
}

.gf-comment:hover .gf-reply-btn-text::after {
    width: 100%;
}

.gf-reply-btn:hover {
    color: #66bb6a;
}

.gf-reply-btn:hover .gf-reply-btn-text::after {
    background: #66bb6a;
}

/* ==============================
   Кнопки редактирования/удаления
   ============================== */

.gf-edit-btn,
.gf-user-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    color: #666;
}

.gf-edit-btn {
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.gf-edit-btn:hover {
    color: #b0bec5;
    background: rgba(255,255,255,0.06);
}

.gf-user-delete-btn:hover {
    color: #ef5350;
    background: rgba(239,83,80,0.1);
}

/* Inline-редактирование */
.gf-edit-area {
    width: 100%;
}

.gf-edit-textarea {
    width: 100%;
    min-height: 60px;
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(76,175,80,0.3) !important;
    color: #e0e0e0 !important;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.95em;
    resize: vertical;
}

.gf-edit-textarea:focus {
    border-color: #4caf50 !important;
    outline: none;
}

.gf-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.gf-edit-save {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s;
}
.gf-edit-save:hover {
    background: #66bb6a;
}
.gf-edit-save:disabled {
    opacity: 0.6;
    cursor: default;
}

.gf-edit-cancel {
    background: none;
    color: #999;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: color 0.2s, border-color 0.2s;
}
.gf-edit-cancel:hover {
    color: #ccc;
    border-color: rgba(255,255,255,0.2);
}

/* ==============================
   Футер: награды
   ============================== */

.gf-comment-footer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gf-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ==============================
   Награды (рыбы 🐟)
   ============================== */

.gf-rewards-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
}

.gf-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 12px;
    color: #ffc107;
    font-size: 0.8em;
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
    transition: background 0.2s;
}

.gf-reward-badge:hover {
    background: rgba(255, 193, 7, 0.25);
}

.gf-reward-new {
    animation: gf-fadein 0.3s ease-in;
}

.gf-reward-remove {
    background: none;
    border: none;
    color: rgba(255, 193, 7, 0.5);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 0 0 3px;
    transition: color 0.2s;
}

.gf-reward-remove:hover {
    color: #f44336;
}

.gf-award-btn {
    background: none;
    border: 1px dashed rgba(255, 193, 7, 0.3);
    color: rgba(255, 193, 7, 0.5);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    transition: all 0.2s;
    white-space: nowrap;
}

.gf-award-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

/* Попап выбора количества рыбов */
.gf-award-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    left: auto;
    margin-bottom: 6px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    padding: 8px 10px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    animation: gf-fadein 0.15s ease-out;
    max-width: calc(100vw - 24px);
}

.gf-award-popup .gf-award-options {
    flex-wrap: wrap;
}

.gf-award-popup-title {
    color: #ffc107;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
    white-space: nowrap;
}

.gf-award-popup-balance {
    color: #e0e0e0;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
    white-space: nowrap;
}

.gf-award-options {
    display: flex;
    gap: 4px;
}

.gf-award-option {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.15s;
    white-space: nowrap;
}

.gf-award-option:hover {
    background: rgba(255, 193, 7, 0.25);
    border-color: #ffc107;
}

.gf-award-option:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Голосование убрано — заменено на рыбов */

/* ==============================
   Inline форма ответа
   ============================== */

.gf-reply-form {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gf-reply-form .uk-textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    resize: none;
    min-height: 50px;
    overflow: hidden;
    font-size: 0.9em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gf-reply-form .uk-textarea:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
    outline: none;
}

.gf-reply-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.gf-reply-cancel {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

/* ==============================
   Сворачивание веток
   ============================== */

/* "Показать ещё" — линия с текстом по центру (как uk-heading-line) */
.gf-show-more-replies,
.gf-expand-branch {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #4caf50;
    cursor: pointer;
    font-size: 0.85em;
    padding: 8px 0;
    margin: 4px 0;
}

.gf-show-more-replies::before,
.gf-show-more-replies::after,
.gf-expand-branch::before,
.gf-expand-branch::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(76, 175, 80, 0.3);
}

.gf-show-more-replies::before,
.gf-expand-branch::before {
    margin-right: 12px;
}

.gf-show-more-replies::after,
.gf-expand-branch::after {
    margin-left: 12px;
}

.gf-show-more-replies:hover,
.gf-expand-branch:hover {
    color: #66bb6a;
}

.gf-show-more-replies:hover::before,
.gf-show-more-replies:hover::after,
.gf-expand-branch:hover::before,
.gf-expand-branch:hover::after {
    background: rgba(102, 187, 106, 0.5);
}

/* ==============================
   Загрузить ещё
   ============================== */

.gf-load-more-wrap {
    padding: 12px 0;
}

.gf-load-more {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #40ed70;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
}

.gf-load-more:hover {
    border-color: #40ed70;
    color: #40ed70;
}

.gf-load-more:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ==============================
   Ошибки и уведомления
   ============================== */

.gf-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 0.9em;
}

.gf-pending-notice {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 0.9em;
}

.gf-loading {
    text-align: center;
    padding: 16px;
    color: #777;
}

/* ==============================
   Анимация нового комментария
   ============================== */

.gf-comment-new {
    animation: gf-fadein 0.3s ease-in;
}

@keyframes gf-fadein {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==============================
   Адаптив: мобильные (<768px)
   ============================== */

@media (max-width: 768px) {
    .gf-comments {
        padding: 8px 0;
    }

    .gf-comment {
        padding: 8px;
    }

    .gf-comment-nested {
        margin-left: 16px !important;
    }

    .gf-avatar {
        width: 34px;
        height: 34px;
    }

    .gf-avatar-root {
        width: 38px;
        height: 38px;
    }

    .gf-show-more-replies,
    .gf-expand-branch {
        padding-left: 18px;
    }
}

/* ==============================
   Аттачменты (изображения)
   ============================== */

.gf-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
    white-space: normal;
}

/* Картинки внутри body — без лишнего отступа если текста нет */
.uk-comment-body .gf-attachments:first-child {
    margin-top: 0;
}

.gf-attach-img {
    border-radius: 6px;
    max-width: 378px;
    cursor: pointer;
    transition: opacity 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumb внутри lightbox-ссылки — обрезаем по высоте */
.gf-attachments a .gf-attach-img {
    max-height: 200px;
    object-fit: cover;
}

.gf-attach-img:hover {
    opacity: 0.85;
    border-color: #4caf50;
}

/* Превью загружаемых файлов */
.gf-attach-area {
    margin: 6px 0;
}

.gf-attach-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gf-attach-previews:empty {
    display: none;
}

.gf-attach-preview {
    position: relative;
    display: inline-block;
}

.gf-attach-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gf-attach-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gf-attach-remove:hover {
    background: #d32f2f;
}

/* Кнопка прикрепления */
.gf-attach-btn {
    padding: 0 8px !important;
    height: 30px;
    line-height: 28px;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    min-width: auto !important;
    vertical-align: middle;
}

.gf-attach-btn:hover {
    color: #4caf50;
    border-color: #4caf50;
}

.gf-attach-btn svg {
    display: block;
}

/* Drag over */
.gf-comment-form.gf-dragover,
.gf-reply-form.gf-dragover {
    border: 2px dashed #4caf50 !important;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 6px;
}

/* Спиннер загрузки изображений */
.gf-upload-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #555;
}
.gf-spinner-circle {
    width: 28px;
    height: 28px;
    border: 3px solid #444;
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: gf-spin 0.8s linear infinite;
}
@keyframes gf-spin {
    to { transform: rotate(360deg); }
}

/* ==============================
   Бейдж «Новые комментарии» (polling)
   ============================== */

.gf-new-comments-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 6px;
    color: #4caf50;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
    animation: gf-fadein 0.3s ease-in;
}

.gf-new-comments-badge:hover {
    background: rgba(76, 175, 80, 0.22);
    border-color: #4caf50;
    color: #66bb6a;
}

.gf-new-comments-badge:disabled {
    opacity: 0.6;
    cursor: wait;
}

.gf-new-comments-icon {
    flex-shrink: 0;
}

.gf-new-comments-text {
    white-space: nowrap;
}

@keyframes gf-fadein {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==============================
   Оптимистичный submit — призрак на модерации
   ============================== */

.gf-comment-optimistic {
    opacity: 0.55;
    pointer-events: none;
    position: relative;
}

.gf-comment-optimistic .gf-optimistic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 15px;
    background: rgba(255, 152, 0, 0.85);
    color: #fff;
    font-size: 0.8em;
    border-radius: 4px 4px 0 0;
    z-index: 2;
}

.gf-optimistic-overlay a {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
    pointer-events: auto;
}

/* Когда сервер подтвердил pending — оставляем видимым но чуть приглушённым */
.gf-comment-optimistic-confirmed {
    opacity: 0.7;
    pointer-events: auto;
}

.gf-comment-optimistic-confirmed .gf-optimistic-overlay {
    background: rgba(255, 152, 0, 0.7);
    pointer-events: auto;
}

/* ==============================
   Подсветка новых с последнего визита
   ============================== */

.gf-comment-since-last {
    box-shadow: inset 3px 0 0 #40ed70;
}

/* ==============================
   Skeleton-экраны загрузки
   ============================== */

.gf-skeleton {
    padding: 14px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    overflow: hidden;
}

.gf-skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gf-skeleton-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.gf-skeleton-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gf-skeleton-line {
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gf-skeleton-line-short { width: 35%; }
.gf-skeleton-line-xs { width: 20%; }
.gf-skeleton-line-medium { width: 70%; }

.gf-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 52px;
}

/* Shimmer анимация */
.gf-skeleton-avatar::after,
.gf-skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    animation: gf-shimmer 1.5s ease-in-out infinite;
}

@keyframes gf-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    .gf-comment-login {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .gf-attach-img {
        max-width: 150px !important;
        max-height: 120px !important;
    }

    .gf-attach-preview img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ==============================
   SEO-блок (Schema.org/Comment)
   ============================== */

.gf-seo-comments {
    margin: 12px 0 0 0;
}

.gf-seo-comments > summary {
    cursor: pointer;
}

.gf-seo-list {
    margin: 8px 0 0 0;
    padding-left: 16px;
    list-style: none;
}

.gf-seo-item {
    margin: 6px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.gf-seo-reply {
    margin-left: 24px;
    padding-left: 12px;
    border-left: 2px solid #444;
}

.gf-seo-author {
    font-weight: 600;
}

.gf-seo-footer {
    margin: 8px 0 0 16px;
    color: #888;
    font-size: 0.9em;
}

/* Торрент-вложения */
.gf-torrent-attach {
    margin-top: 10px;
}
.gf-torrent-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(64, 237, 112, 0.08) 0%, rgba(64, 237, 112, 0.03) 100%);
    border: 1px solid rgba(64, 237, 112, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 0.88em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    position: relative;
    overflow: hidden;
}
.gf-torrent-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(64, 237, 112, 0.12) 0%, transparent 70%);
    transition: opacity 0.3s;
}
.gf-torrent-link:hover::before {
    opacity: 1;
}
.gf-torrent-link:hover {
    border-color: rgba(64, 237, 112, 0.45);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(64, 237, 112, 0.1);
    transform: translateY(-1px);
}
.gf-torrent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(64, 237, 112, 0.12);
    flex-shrink: 0;
    transition: background 0.3s;
}
.gf-torrent-link:hover .gf-torrent-icon {
    background: rgba(64, 237, 112, 0.22);
}
.gf-torrent-icon svg {
    color: #40ed70;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gf-torrent-link:hover .gf-torrent-icon svg {
    transform: translateY(2px);
}
.gf-torrent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    position: relative;
}
.gf-torrent-label {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #40ed70;
    line-height: 1;
}
.gf-torrent-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    line-height: 1.3;
}
/* Превью торрента в форме */
.gf-torrent-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(64, 237, 112, 0.08);
    border: 1px solid rgba(64, 237, 112, 0.25);
    border-radius: 4px;
    font-size: 0.85em;
    color: #ccc;
    margin: 4px 0;
}
.gf-torrent-preview svg {
    color: #40ed70;
    flex-shrink: 0;
}
.gf-torrent-preview .gf-attach-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 2px;
    line-height: 1;
}

/* === Комментарии закрыты === */
.gf-comments-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 68, 68, 0.25);
    border-radius: 8px;
    background: rgba(255, 68, 68, 0.06);
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    letter-spacing: 0.3px;
}
.gf-closed-icon {
    color: #ff4444;
    flex-shrink: 0;
    opacity: 0.8;
}
.gf-closed-text {
    font-weight: 600;
}
/* === Закреплённый комментарий === */
.gf-comment-pinned {
    border: 1px solid rgba(64, 237, 112, 0.2);
    border-radius: 10px;
    padding: 14px 16px 10px;
    margin-bottom: 12px;
    background: rgba(64, 237, 112, 0.05);
    box-shadow: 0 0 18px rgba(64, 237, 112, 0.08), 0 0 4px rgba(64, 237, 112, 0.04);
}
.gf-pinned-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #40ed70;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    opacity: 0.85;
}
.gf-pinned-label svg {
    flex-shrink: 0;
}
.gf-pin-btn {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}
.gf-pin-btn:hover {
    color: #40ed70;
    border-color: rgba(64, 237, 112, 0.4);
}

/* Скрыть кнопку ответа когда закрыто */
.gf-comments--closed .gf-reply-btn {
    display: none !important;
}

/* === @упоминания === */
.gf-mention {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    padding: 0 2px;
    transition: background 0.15s, color 0.15s;
}
.gf-mention:hover,
.gf-mention:focus {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    text-decoration: none;
}

/* Dropdown автокомплита @ */
.gf-mention-dropdown {
    position: absolute;
    z-index: 9999;
    background: #1c1c24;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.08);
    padding: 4px;
    max-width: 320px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 14px;
}
.gf-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #e5e5e5;
    transition: background 0.1s;
}
.gf-mention-item:hover,
.gf-mention-item--active {
    background: rgba(34, 197, 94, 0.15);
}
.gf-mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #2a2a35;
}
.gf-mention-avatar--empty {
    background: linear-gradient(135deg, #2a2a35, #3a3a45);
}
.gf-mention-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.gf-mention-slug {
    flex-shrink: 0;
    color: #22c55e;
    font-size: 12px;
    opacity: 0.85;
}

/* ====================================================================
   Mini-reviews v1.3: toolbar редактора, превью скринов, edit-кнопка
   ==================================================================== */

.gf-rev-form__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    margin: 0;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.08);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}
.gf-rev-form__toolbar + .gf-rev-form__textarea {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.gf-rev-form__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255,255,255,.65);
    cursor: pointer;
    line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gf-rev-form__tool:hover {
    background: rgba(34,197,94,.10);
    color: #22c55e;
}
.gf-rev-form__tool:active,
.gf-rev-form__tool.is-active {
    background: rgba(34,197,94,.18);
    color: #22c55e;
    border-color: rgba(34,197,94,.35);
}
.gf-rev-form__tool:focus-visible {
    outline: 2px solid rgba(34,197,94,.55);
    outline-offset: 1px;
}
.gf-rev-form__tool[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.gf-rev-form__tool svg {
    width: 16px;
    height: 16px;
    display: block;
}
.gf-rev-form__tool--char {
    font: 700 14px/1 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.gf-rev-form__tool--char b,
.gf-rev-form__tool--char i {
    font-weight: 700;
    font-style: normal;
}
.gf-rev-form__tool--italic i {
    font-style: italic;
}
.gf-rev-form__tool-sep {
    flex: 0 0 auto;
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: rgba(255,255,255,.10);
}

.gf-rev-form__images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 0;
}
.gf-rev-form__images:empty {
    display: none;
}
.gf-rev-form__image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    overflow: hidden;
}
.gf-rev-form__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gf-rev-form__image--uploading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28,28,36,.55);
}
.gf-rev-form__image-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 2px solid rgba(255,255,255,.18);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: gfRevSpin .9s linear infinite;
}
@keyframes gfRevSpin { to { transform: rotate(360deg); } }
.gf-rev-form__image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background .15s ease, border-color .15s ease;
}
.gf-rev-form__image-remove:hover {
    background: #ef4444;
    border-color: #ef4444;
}
.gf-rev-form__image-remove svg {
    width: 12px;
    height: 12px;
    display: block;
}

.gf-rev-card { position: relative; }
.gf-rev-card__edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px 0 7px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    color: rgba(255,255,255,.55);
    font: 600 12px/1 'Nunito', -apple-system, sans-serif;
    cursor: pointer;
    z-index: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gf-rev-card__edit-btn:hover {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
    color: #22c55e;
}
.gf-rev-card__edit-btn svg {
    width: 13px;
    height: 13px;
    display: block;
}
.gf-rev-card__edited {
    margin-left: 6px;
    color: rgba(255,255,255,.40);
    font-size: 12px;
    cursor: help;
}

.gf-rev-card__body p { margin: 0 0 8px; }
.gf-rev-card__body p:last-child { margin-bottom: 0; }
.gf-rev-card__body blockquote {
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 3px solid #22c55e;
    background: rgba(34,197,94,.06);
    color: rgba(255,255,255,.85);
    border-radius: 0 6px 6px 0;
}
.gf-rev-card__body ul,
.gf-rev-card__body ol {
    margin: 6px 0 8px 22px;
    padding: 0;
}
.gf-rev-card__body li { margin: 2px 0; }
.gf-rev-card__body a {
    color: #22c55e;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.gf-rev-card__body a:hover { text-decoration-thickness: 2px; }
.gf-rev-card__body b,
.gf-rev-card__body strong { font-weight: 700; }

.gf-rev-h {
    font: 700 16px/1.35 'Nunito', -apple-system, sans-serif;
    color: #22c55e;
    margin: 14px 0 4px;
}

.gf-spoiler {
    background: #0d0d11;
    color: #0d0d11;
    padding: 0 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    user-select: none;
}
.gf-spoiler:hover { background: #16161c; }
.gf-spoiler.is-revealed {
    background: rgba(34,197,94,.10);
    color: inherit;
    cursor: default;
    user-select: text;
}

.gf-rev-card__images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
}
.gf-rev-card__image {
    display: block;
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 640px) {
    .gf-rev-card__image { flex-basis: 140px; width: 140px; }
}
.gf-rev-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.gf-rev-card__image:hover img { transform: scale(1.05); }

@media (max-width: 640px) {
    .gf-rev-card__edit-btn span { display: none; }
    .gf-rev-card__edit-btn { padding: 0 6px; }
    .gf-rev-form__tool { width: 30px; height: 30px; }
    .gf-rev-form__images { gap: 6px; }
}

/* === PREVIEW (предпросмотр обзора перед отправкой) === */
.gf-rev-form__preview-btn {
    height: 38px;
    padding: 0 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: rgba(255,255,255,.85);
    font: 600 13px/1 'Nunito', -apple-system, sans-serif;
    cursor: pointer;
    margin: 0 6px 0 0;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gf-rev-form__preview-btn:hover {
    background: rgba(34,197,94,.10);
    border-color: rgba(34,197,94,.35);
    color: #22c55e;
}
.gf-rev-form__preview-btn:disabled {
    opacity: .5;
    cursor: wait;
}

.gf-rev-form.is-preview .gf-rev-form__toolbar,
.gf-rev-form.is-preview .gf-rev-form__textarea,
.gf-rev-form.is-preview .gf-rev-form__images,
.gf-rev-form.is-preview .gf-rev-form__hint,
.gf-rev-form.is-preview .gf-rev-form__counter,
.gf-rev-form.is-preview .gf-rev-form__preview-btn {
    display: none !important;
}

.gf-rev-form__preview-pane {
    margin: 12px 0 0;
    padding: 14px;
    background: rgba(255,255,255,.02);
    border: 1px dashed rgba(34,197,94,.35);
    border-radius: 10px;
}
.gf-rev-form__preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.gf-rev-form__preview-title {
    font: 600 13px/1.3 'Nunito', -apple-system, sans-serif;
    color: rgba(255,255,255,.55);
}
.gf-rev-form__preview-back {
    flex-shrink: 0;
    height: 28px;
    padding: 0 12px;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 6px;
    color: #22c55e;
    font: 600 12px/1 'Nunito', -apple-system, sans-serif;
    cursor: pointer;
    transition: background .15s ease;
}
.gf-rev-form__preview-back:hover {
    background: rgba(34,197,94,.20);
}
.gf-rev-card--preview {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.gf-rev-card--preview .gf-rev-card__paws {
    margin: 0 0 10px;
}

/* ============================================================
   GoFrag Emoji Panel v1.0 - continuum strip
   Эмбедится снизу .gf-comment-form / под textarea обзора.
   Использует --gfp-* токены из presence.css
   ============================================================ */

/* Кнопка-триггер в form-actions комментария */
.gf-emo-btn {
    width: 32px;
    height: 32px;
    background: var(--gfp-bg-soft, #25252f);
    border: 1px solid var(--gfp-border, rgba(255,255,255,0.07));
    border-radius: 7px;
    color: var(--gfp-text-dim, #8a8a92);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}
.gf-emo-btn:hover {
    color: var(--gfp-accent, #22c55e);
    border-color: var(--gfp-accent-line, rgba(34,197,94,0.32));
    background: var(--gfp-accent-soft, rgba(34,197,94,0.14));
}

/* Активное состояние - через data-emoji-open (универсально для обеих кнопок) */
[data-emoji-trigger][data-emoji-open] {
    color: var(--gfp-accent, #22c55e) !important;
    border-color: var(--gfp-accent, #22c55e);
    background: var(--gfp-accent-soft, rgba(34,197,94,0.14));
    box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}

/* На тач-устройствах кнопку не показываем - там нативная клава с эмодзи */
@media (hover: none) {
    .gf-emo-btn,
    .gf-emo-btn-rev {
        display: none !important;
    }
}

/* Сама панель */
.gf-emo-strip {
    background: var(--gfp-bg, #1c1c24);
    border: 1px solid var(--gfp-border, rgba(255,255,255,0.07));
    border-top: 1px dashed var(--gfp-border, rgba(255,255,255,0.07));
    border-radius: var(--gfp-radius, 10px);
    margin-top: 8px;
    overflow: hidden;
    animation: gf-emo-in 0.22s ease;
    font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.gf-emo-strip[hidden] { display: none; }

@keyframes gf-emo-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gf-emo-strip__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px dashed var(--gfp-border, rgba(255,255,255,0.07));
    flex-wrap: wrap;
}

.gf-emo-strip__label {
    color: var(--gfp-text-dim, #8a8a92);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.gf-emo-strip__label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--gfp-accent, #22c55e);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.gf-emo-strip__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gf-emo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    background: transparent;
    border: 1px solid var(--gfp-border, rgba(255,255,255,0.07));
    border-radius: 999px;
    color: var(--gfp-text-dim, #8a8a92);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    line-height: 1;
}
.gf-emo-chip:hover {
    color: var(--gfp-text, #d6d6db);
    border-color: rgba(255,255,255,0.12);
    background: var(--gfp-bg-soft, #25252f);
}
.gf-emo-chip.is-on {
    background: var(--gfp-accent-soft, rgba(34,197,94,0.14));
    border-color: var(--gfp-accent-line, rgba(34,197,94,0.32));
    color: var(--gfp-accent, #22c55e);
}
.gf-emo-chip__ico {
    font-family: Nunito, sans-serif;
    font-size: 13px;
    line-height: 1;
}

.gf-emo-strip__close {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: var(--gfp-text-muted, #5e5e68);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10px;
    cursor: pointer;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    line-height: 1;
}
.gf-emo-strip__close:hover { color: var(--gfp-text, #d6d6db); }
.gf-emo-strip__close kbd {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    background: var(--gfp-bg-soft, #25252f);
    border: 1px solid var(--gfp-border, rgba(255,255,255,0.07));
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--gfp-text-dim, #8a8a92);
    font-size: 9px;
    margin-right: 4px;
}

.gf-emo-strip__grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    padding: 10px 12px 14px;
}

.gf-emo-cell {
    aspect-ratio: 1;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, transform 0.12s ease;
    padding: 0;
    line-height: 1;
}
.gf-emo-cell:hover {
    background: rgba(255,255,255,0.06);
    transform: scale(1.18);
}

@media (max-width: 640px) {
    .gf-emo-strip__grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1px;
        padding: 8px 10px 10px;
    }
    .gf-emo-cell { font-size: 18px; }
    .gf-emo-strip__head { padding: 7px 10px; }
}

/* === Баннер "Комментарий не загружен" (переход по уведомлению) ===
   Концепция: "входящая трансмиссия" - радар-кольца, шиммер,
   3 быстрых пульса для привлечения внимания, потом плавное дыхание */
.gf-ctx-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    margin: 4px 0 22px;
    background:
        radial-gradient(circle at 18% 50%, rgba(34, 197, 94, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.04) 100%),
        #15151d;
    border: 1.5px solid rgba(34, 197, 94, 0.55);
    border-radius: 12px;
    color: #e8e8ef;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.18),
        0 10px 36px -10px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    scroll-margin-top: 90px;
    animation:
        gf-ctx-banner-enter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        gf-ctx-banner-attention 1.1s ease-out 0.55s 3 both;
}
/* Сканирующая полоса по верху баннера */
.gf-ctx-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.15) 50%, transparent 100%);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: gf-ctx-banner-scan 3.2s ease-in-out 0.9s infinite;
}
/* Иконка-локатор с радар-кольцами */
.gf-ctx-banner-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 50%;
}
.gf-ctx-banner-icon svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 2;
}
.gf-ctx-banner-icon::before,
.gf-ctx-banner-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid #22c55e;
    pointer-events: none;
    animation: gf-ctx-radar-pulse 2.4s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
}
.gf-ctx-banner-icon::after {
    animation-delay: 1.2s;
}
@keyframes gf-ctx-radar-pulse {
    0%   { transform: scale(1);   opacity: 0.75; }
    80%  { opacity: 0; }
    100% { transform: scale(2.3); opacity: 0; }
}
/* Текст: 2 уровня - заголовок + сабтекст */
.gf-ctx-banner-text {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.35;
}
.gf-ctx-banner-text strong {
    font-size: 15.5px;
    font-weight: 700;
    color: #f3f3f7;
    letter-spacing: -0.01em;
}
.gf-ctx-banner-text small {
    font-size: 12.5px;
    color: #a8a8b8;
    font-weight: 400;
}
/* CTA кнопка */
.gf-ctx-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #0a0a0f;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 4px 16px -2px rgba(34, 197, 94, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.gf-ctx-banner-btn::after {
    content: '→';
    font-weight: 800;
    transition: transform 0.18s ease;
}
.gf-ctx-banner-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px -2px rgba(34, 197, 94, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.gf-ctx-banner-btn:hover:not(:disabled)::after {
    transform: translateX(3px);
}
.gf-ctx-banner-btn:active:not(:disabled) {
    transform: translateY(0);
}
.gf-ctx-banner-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.gf-ctx-banner-error {
    flex-basis: 100%;
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
}
@keyframes gf-ctx-banner-enter {
    0%   { opacity: 0; transform: translateY(-14px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* 3 быстрых "разбуди-меня" пульса */
@keyframes gf-ctx-banner-attention {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.18),
            0 10px 36px -10px rgba(34, 197, 94, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(34, 197, 94, 0.95),
            0 0 44px 8px rgba(34, 197, 94, 0.55),
            0 10px 36px -8px rgba(34, 197, 94, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}
/* Спокойное "дыхание" после трёх пульсов */
@keyframes gf-ctx-banner-breathe {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.18),
            0 10px 36px -10px rgba(34, 197, 94, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.4),
            0 12px 42px -8px rgba(34, 197, 94, 0.65),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}
@keyframes gf-ctx-banner-scan {
    0%   { transform: translate3d(0, 0, 0); }
    55%  { transform: translate3d(340%, 0, 0); }
    100% { transform: translate3d(340%, 0, 0); }
}
/* Респект reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gf-ctx-banner {
        animation: gf-ctx-banner-enter 0.3s ease both;
    }
    .gf-ctx-banner::before,
    .gf-ctx-banner-icon::before,
    .gf-ctx-banner-icon::after {
        animation: none;
        display: none;
    }
}
@media (max-width: 640px) {
    .gf-ctx-banner {
        padding: 14px 16px;
        gap: 12px;
    }
    .gf-ctx-banner-icon {
        width: 38px;
        height: 38px;
    }
    .gf-ctx-banner-icon svg {
        width: 18px;
        height: 18px;
    }
    .gf-ctx-banner-text {
        min-width: 0;
        flex: 1 1 calc(100% - 50px);
    }
    .gf-ctx-banner-text strong { font-size: 14.5px; }
    .gf-ctx-banner-text small { font-size: 12px; }
    .gf-ctx-banner-btn {
        flex: 1 1 100%;
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }
}

/* Контейнер с подгруженным деревом коммента */
.gf-ctx-loaded {
    margin: 0 0 16px;
    padding: 14px 14px 8px;
    background: rgba(34, 197, 94, 0.04);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
}
.gf-ctx-loaded-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #22c55e;
    margin-bottom: 10px;
    padding-left: 4px;
}
.gf-ctx-loaded .gf-comment {
    margin-bottom: 8px;
}

/* Подсветка целевого коммента (вместо инлайн outline) */
@keyframes gf-comment-target-flash {
    0%   { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.9), 0 0 24px 4px rgba(34, 197, 94, 0.5); }
    50%  { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5), 0 0 16px 2px rgba(34, 197, 94, 0.25); }
    100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0); }
}
.gf-comment-target-flash {
    animation: gf-comment-target-flash 3s ease-out;
    border-radius: 8px;
}
