
.topics_container {
    padding-top: 120px;
}
.post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid #4ecdc4;
    
}

.post-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стиль для аватара по умолчанию, если изображение не загрузилось */
.post-avatar img[src="/images/default-avatar.svg"] {
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.reply {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.reply-form-container {
    margin-top: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.reply-form-container h3 {
    color: var(--light);
    margin-bottom: 15px;
}

.post-images {
    margin: 15px 0;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    border-radius: 3px;
}

.btn-small:hover {
    background: #444;
}

/* Основные стили для редактора ответов */
#content-editor {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    color: var(--light);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s;
}

#content-editor:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 150, 255, 0.1);
}

.editor-actions {
    margin: 10px 0;
}

.editor-preview {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    min-height: 100px;
}

.preview-content {
    color: var(--light);
    line-height: 1.5;
}

.preview-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 10px 0;
    padding-left: 15px;
    color: #999;
    font-style: italic;
}

.preview-content code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
}
/* Модальное окно размера шрифта */
.font-size-modal {
    position: absolute;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 150px;
}

.font-size-list {
    display: flex;
    flex-direction: column;
}

.font-size-option {
    padding: 6px 12px;
    color: #ccc;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.font-size-option:hover {
    background: #3a3a3a;
}

/* Модальное окно эмоджи */
.emoticon-modal {
    position: absolute;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: 300px;
}

.emoticon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.emoticon-btn {
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.emoticon-btn:hover {
    background: #4a4a4a;
    transform: scale(1.1);
}
/* Стили для CKEditor-like панели инструментов */
.cke-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 10px;
    padding: 5px;
    background: #2a2a2a;
    border-radius: 3px;
    border: 1px solid #444;
    min-height: 30px;
}

.cke-toolgroup {
    display: flex;
    border: 1px solid #444;
    border-radius: 3px;
    margin: 0 2px;
    background: #3a3a3a;
}

.cke-button {
    background: transparent;
    border: none;
    border-right: 1px solid #444;
    padding: 4px 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    position: relative;
    transition: all 0.2s ease;
}

.cke-button:hover {
    background: #4a4a4a;
}

.cke-button:last-child {
    border-right: none;
}

.cke_button_icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.cke-button__bold .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 7.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E");
}

.cke-button__italic .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M10 5v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V5h-8z'/%3E%3C/svg%3E");
}

.cke-button__underline .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z'/%3E%3C/svg%3E");
}

.cke-button__ipsspoiler .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.cke-button__ipscode .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E");
}

.cke-button__ipslink .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E");
}

.cke-button__ipsemoticon .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z'/%3E%3C/svg%3E");
}

.cke-button__bulletedlist .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z'/%3E%3C/svg%3E");
}

.cke-button__numberedlist .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z'/%3E%3C/svg%3E");
}

.cke-button__justifyleft .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z'/%3E%3C/svg%3E");
}

.cke-button__justifycenter .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z'/%3E%3C/svg%3E");
}

.cke-button__justifyright .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z'/%3E%3C/svg%3E");
}

.cke-button__textcolor .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M18 14v-3h-3V9h3V6h2v3h3v2h-3v3h-2zM2 4h8v3H2zM2 8h8v3H2zM2 12h6v2H2z'/%3E%3C/svg%3E");
}

.cke-button__removeformat .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M6 7v3h5.5v10h3V10H18V7H6z'/%3E%3C/svg%3E");
}

.cke-button__ipspreview .cke_button_icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23ccc' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.cke-button_label {
    display: none;
}

.cke-toolbar_separator {
    width: 1px;
    height: 20px;
    background: #444;
    margin: 3px 2px;
}

.cke-combo {
    position: relative;
    margin: 0 2px;
}

.cke-combo_button {
    background: #3a3a3a;
    border: 1px solid #444;
    border-radius: 3px;
    color: #ccc;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    height: 26px;
    display: flex;
    align-items: center;
    min-width: 60px;
}

.cke-combo_text {
    flex-grow: 1;
}

.cke-combo_open {
    margin-left: 4px;
}

.cke-combo_arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ccc;
}

.cke-button_expandable .cke_button_arrow {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid #ccc;
    margin-left: 4px;
}

/* Модальное окно для выбора цвета */
.color-picker-modal {
    position: absolute;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 24px);
    gap: 4px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option:hover {
    border-color: #fff;
    transform: scale(1.1);
}

/* Активное состояние кнопок */
.cke-button_on {
    background: #4a4a4a;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.cke-button_on .cke_button_icon {
    opacity: 1;
}

/* Анимации */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

/* Стили для текста постов */
.post-text {
    word-wrap: break-word;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Для контента темы */
.topic-content .post-text {
    font-size: 1.1em;
    line-height: 1.7;
}

/* Стили для форматированного текста */
.post-text strong {
    font-weight: bold;
    color: #ff6b6b;
}

.post-text em {
    font-style: italic;
    color: #4ecdc4;
}

.post-text u {
    text-decoration: underline;
    color: #45b7d1;
}

.post-text code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
    font-size: 0.9em;
}

blockquote:hover {
    transform: perspective(500px) rotateX(0deg) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 
                inset 0 0 150px rgba(255,255,255,0.1) !important;
}

/* Стили для редактора редактирования */
.edit-editor-container {
    margin: 15px 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideInEdit 0.4s ease-out;
}

.edit-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.edit-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2), 
                inset 0 2px 4px rgba(0,0,0,0.2);
}

.edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    justify-content: flex-end;
}

/* Кнопка сохранения */
.edit-save-btn {
    background: var(--primary, #2ecc71);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-save-btn:hover {
    background: var(--accent, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Кнопка отмены */
.edit-cancel-btn {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-cancel-btn:hover {
    background: #444;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Кнопки действий темы */
.topic-actions {
    display: flex;
    justify-content: space-between;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .reply-form-container {
        padding: 15px;
    }
    
    .post-actions {
        margin-top: 10px;
    }
    
    .cke-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cke-toolgroup {
        width: 100%;
        flex-wrap: wrap;
        margin: 2px 0;
        justify-content: center;
    }
    
    .cke-button {
        flex: 1;
        min-width: 30px;
        max-width: 45px;
    }
    
    .cke-combo {
        width: 100%;
        margin: 5px 0;
    }
    
    .cke-combo_button {
        width: 100%;
        justify-content: space-between;
    }
    
    .color-picker-grid {
        grid-template-columns: repeat(4, 30px);
    }
    
    #content-editor {
        font-size: 16px;
    }
    
    .edit-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .edit-save-btn,
    .edit-cancel-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 16px;
    }
    
    .edit-editor-container {
        padding: 15px;
    }
    
    .edit-textarea {
        padding: 15px;
        min-height: 150px;
        font-size: 16px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .edit-editor-actions .btn,
    .edit-save-btn,
    .edit-cancel-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .cke-button {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 24px;
        height: 24px;
    }
    
    .cke_button_icon {
        width: 14px;
        height: 14px;
    }
}
#link-modal .modal-content {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
}

#link-modal .form-group {
    margin-bottom: 15px;
}

#link-modal .form-control {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

#link-modal .form-control:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

#link-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}


/*
     FILE ARCHIVED ON 13:54:45 Feb 15, 2026 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 21:01:17 Nov 27, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.607
  exclusion.robots: 0.057
  exclusion.robots.policy: 0.042
  esindex: 0.009
  cdx.remote: 13.748
  LoadShardBlock: 110.623 (3)
  PetaboxLoader3.datanode: 109.788 (4)
  PetaboxLoader3.resolve: 183.228 (2)
  load_resource: 252.763
*/