.post-clips .clip-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.post-clips .clip-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.post-clips .clip-action-btn.liked {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.3), rgba(255, 69, 0, 0.3));
    border-color: #FF0050;
    color: #FF0050;
}

.post-clips .clip-action-btn.liked:hover {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.4), rgba(255, 69, 0, 0.4));
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.5);
}

.post-clips .clip-action-item:last-child .clip-action-btn {
    background: rgba(255, 255, 255, 0.1);
}

.post-clips .clip-action-item:last-child .clip-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.post-clips .clip-action-item:last-child .clip-action-count {
    display: none;
}

.post-clips .clip-badge,
.clip-viewer .clip-badge {
    display: none !important;
}

/* Загрузка клипов */
.clip-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.clip-loader-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FF0050;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========== ЛАЙТБОКС ДЛЯ ПРОСМОТРА МЕДИА ========== */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.media-lightbox.active {
    display: flex;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 60px 140px;
}

.lightbox-media-container {
    max-width: 70vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-video {
    max-width: min(90vw, 1200px);
    max-height: 80vh;
    border-radius: 8px;
    background: black;
    object-fit: contain;
}

.lightbox-image-container {
    max-width: 90vw;
    max-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-audio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.lightbox-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-counter {
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    z-index: 5;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    justify-content: center;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lightbox-thumbnail {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.lightbox-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-thumbnail.active {
    border-color: var(--accent-color);
    opacity: 1;
}

.lightbox-thumbnail img,
.lightbox-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-audio {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.thumbnail-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== МОДАЛЬНОЕ ОКНО РЕПОСТА ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    max-width: 600px;
    margin: 5% auto;
}

.modal-content {
    background: var(--post-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.share-modal {
    max-width: 600px;
    width: 100%;
    margin: 50px auto;
    max-height: 90vh; 
    display: flex; 
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--post-border);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--sidebar-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.share-input {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    outline: none;
    margin-bottom: 1rem;
}

.share-post-preview {
    border: 1px solid var(--post-border);
    border-radius: 12px;
    padding: 1rem;
    background: var(--sidebar-bg);
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--post-border);
}

/* Лейблы */
.share-modal-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

/* Секция выбора места */
.share-destination {
    margin-bottom: 1.5rem;
}

/* Опции типа репоста */
.share-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-type-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.share-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.share-type-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--post-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--sidebar-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.share-type-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.share-type-option:hover .share-type-content::before {
    opacity: 1;
}

.share-type-content svg {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}

.share-type-content span {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.share-type-option input[type="radio"]:checked + .share-type-content {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(41, 128, 185, 0.05));
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15),
        0 0 0 1px var(--accent-color);
}

.share-type-option input[type="radio"]:checked + .share-type-content svg {
    color: var(--accent-color);
    transform: scale(1.1);
}

.share-type-option input[type="radio"]:checked + .share-type-content span {
    color: var(--accent-color);
    font-weight: 600;
}

.share-type-option:hover .share-type-content {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Список сообществ */
.share-communities-list {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.communities-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 2px solid var(--post-border);
    border-radius: 12px;
    background: var(--post-bg);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.communities-scroll::-webkit-scrollbar {
    width: 8px;
}

.communities-scroll::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
    border-radius: 4px;
    margin: 4px 0;
}

.communities-scroll::-webkit-scrollbar-thumb {
    background: var(--post-border);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.communities-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.community-option {
    display: block;
    cursor: pointer;
    margin: 0;
    border-bottom: 1px solid var(--post-border);
    transition: all 0.2s ease;
}

.community-option:last-child {
    border-bottom: none;
}

.community-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.community-option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.community-option-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.community-option input[type="radio"]:checked + .community-option-content::before {
    opacity: 1;
}

.community-option-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.community-option-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.community-option-info {
    flex: 1;
    min-width: 0;
}

.community-option-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.community-option-members {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.community-option:hover .community-option-content {
    background: var(--sidebar-bg);
}

.community-option:hover .community-option-avatar,
.community-option:hover .community-option-placeholder {
    transform: scale(1.05);
}

.community-option input[type="radio"]:checked + .community-option-content {
    background: linear-gradient(90deg,
        rgba(52, 152, 219, 0.08) 0%,
        transparent 100%);
}

.community-option input[type="radio"]:checked + .community-option-content .community-option-name {
    color: var(--accent-color);
    font-weight: 600;
}

.community-option input[type="radio"]:checked + .community-option-content .community-option-avatar,
.community-option input[type="radio"]:checked + .community-option-content .community-option-placeholder {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Поле ввода комментария */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group .form-control:hover {
    border-color: var(--post-border);
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--post-bg);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Превью оригинального поста */
.share-preview {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 2px solid var(--post-border);
    border-radius: 12px;
    background: var(--sidebar-bg);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.share-preview:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Уведомления */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification {
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 320px;
    max-width: 420px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.notification-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-success .notification-icon {
    color: #44b700;
}

.notification-error .notification-icon {
    color: var(--error-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-info .notification-icon {
    color: var(--accent-color);
}

/* Спиннер */
.spinner-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

/* Загрузка постов */
.posts-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* ========== АДАПТИВНЫЙ ДИЗАЙН ========== */

/* Планшеты */
@media (max-width: 1199px) {
    .post-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

/* Планшеты и мобильные */
@media (max-width: 991px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .container {
        max-width: 720px;
    }
}

/* Мобильные */
@media (max-width: 767px) {
    .post-page {
        padding: 1.5rem 0 2rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .post-layout {
        gap: 1.25rem;
    }

    .post-content-wrapper {
        border-radius: 12px;
    }

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

    .community-sidebar-avatar,
    .community-sidebar-avatar-placeholder,
    .author-sidebar-avatar,
    .author-sidebar-avatar-placeholder {
        width: 64px;
        height: 64px;
    }

    .community-sidebar-avatar-placeholder,
    .author-sidebar-avatar-placeholder {
        font-size: 1.5rem;
    }

    .community-sidebar-name,
    .author-sidebar-name {
        font-size: 1rem;
    }

    .author-sidebar-stats {
        gap: 1.5rem;
    }

    .author-stat-value {
        font-size: 1.125rem;
    }

    .related-post-item {
        padding: 0.625rem;
    }

    .related-post-image {
        width: 50px;
        height: 50px;
    }

    .post-content-wrapper .comment {
        padding: 0.75rem;
    }

    .post-content-wrapper .comment-avatar,
    .post-content-wrapper .comment-avatar-placeholder {
        width: 36px;
        height: 36px;
    }

    .comment-replies {
        margin-left: 32px;
        margin-top: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .comment-reply {
        padding-left: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Вложенные ответы (второй уровень) */
    .comment-replies .comment-replies {
        margin-left: 24px;
        padding-left: 0.375rem;
    }
    
    /* Аватары в ответах */
    .comment-reply .comment-avatar,
    .comment-reply .comment-avatar-placeholder {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    /* ПОЛЕ ВВОДА ОТВЕТА */
    .comment-reply-input-wrapper {
        margin-top: 0.5rem;
        padding: 0.375rem;
        gap: 0.375rem;
        border-radius: 8px;
    }
    
    .comment-reply-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 18px;
        min-height: 34px;
    }
    
    .comment-reply-input::placeholder {
        font-size: 0.75rem;
    }
    
    .comment-reply-submit {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
    
    .comment-reply-submit svg {
        width: 14px;
        height: 14px;
    }
    
    /* Форма добавления комментария */
    .add-comment {
        gap: 0.5rem;
        padding-top: 0.625rem;
    }
    
    .comment-input {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 36px;
    }
    
    .comment-input::placeholder {
        font-size: 0.75rem;
    }
    
    .comment-submit {
        width: 34px;
        height: 34px;
    }
    
    .comment-submit svg {
        width: 14px;
        height: 14px;
    }
    
    /* Редактирование комментария */
    .comment-edit-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Модерация комментариев */
    .comment-moderate-actions {
        margin-left: 0.375rem;
        gap: 0.25rem;
    }
    
    .comment-moderate-approve,
    .comment-moderate-reject {
        width: 26px;
        height: 26px;
    }
    
    .comment-moderate-approve svg,
    .comment-moderate-reject svg {
        width: 12px;
        height: 12px;
    }
    
    .comment-moderation-badge {
        padding: 2px 5px;
        font-size: 0.625rem;
        margin-left: 0.375rem;
    }
    
    .comment-moderation-badge svg {
        width: 10px;
        height: 10px;
    }

    .share-modal {
        max-height: 100vh; 
        display: flex; 
        flex-direction: column;
    }
}

/* Малые мобильные */
@media (max-width: 575px) {
    .container {
        padding: 0 0.5rem;
    }

    .post-page {
        padding: 1rem 0 1.5rem;
    }

    .community-sidebar-card,
    .author-sidebar-card {
        padding: 1.25rem;
    }

    .community-sidebar-avatar,
    .community-sidebar-avatar-placeholder,
    .author-sidebar-avatar,
    .author-sidebar-avatar-placeholder {
        width: 56px;
        height: 56px;
    }

    .community-sidebar-avatar-placeholder,
    .author-sidebar-avatar-placeholder {
        font-size: 1.25rem;
    }

    .related-post-item {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .related-post-image {
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }

    .related-post-text {
        font-size: 0.8125rem;
    }

    .share-type-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .share-type-content {
        justify-content: center;
        padding: 1rem;
    }

    .communities-scroll {
        max-height: 180px;
    }

    .community-option-avatar,
    .community-option-placeholder {
        width: 36px;
        height: 36px;
    }

    .community-option-name {
        font-size: 0.8125rem;
    }

    .community-option-members {
        font-size: 0.6875rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }

    .comment-avatar,
    .comment-avatar-placeholder {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    .comment-author {
        font-size: 0.75rem;
    }
    
    .comment-time {
        font-size: 0.65rem;
    }
    
    .comment-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .comment-footer {
        gap: 0.375rem;
        margin-top: 0.25rem;
    }
    
    .comment-reply-btn,
    .comment-edit-btn,
    .comment-delete-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
    }
    
    /* ОТВЕТЫ */
    .comment-replies {
        margin-left: 24px;
        margin-top: 0.375rem;
        padding-left: 0.375rem;
    }
    
    .comment-replies .comment-replies {
        margin-left: 18px;
        padding-left: 0.25rem;
    }
    
    /* Скрываем кнопку ответа на третьем уровне */
    .comment-replies .comment-replies .comment-reply-btn {
        display: none;
    }
    
    /* Аватары в ответах */
    .comment-reply .comment-avatar,
    .comment-reply .comment-avatar-placeholder {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    /* Поле ввода ответа */
    .comment-reply-input-wrapper {
        padding: 0.25rem;
        gap: 0.25rem;
        margin-top: 0.375rem;
    }
    
    .comment-reply-input {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        min-height: 30px;
        border-radius: 15px;
    }
    
    .comment-reply-input::placeholder {
        font-size: 0.7rem;
    }
    
    .comment-reply-submit {
        width: 30px;
        height: 30px;
    }
    
    .comment-reply-submit svg {
        width: 12px;
        height: 12px;
    }
    
    /* Форма добавления комментария */
    .add-comment {
        gap: 0.375rem;
        padding-top: 0.5rem;
    }
    
    .comment-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 32px;
        border-radius: 16px;
    }
    
    .comment-input::placeholder {
        font-size: 0.7rem;
    }
    
    .comment-submit {
        width: 32px;
        height: 32px;
    }
    
    .comment-submit svg {
        width: 12px;
        height: 12px;
    }
    
    /* Редактирование */
    .comment-edit-input {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    /* Действия комментария */
    .comment-action-btn {
        width: 24px;
        height: 24px;
    }
    
    .comment-action-btn svg {
        width: 10px;
        height: 10px;
    }

    .share-modal {
        max-height: 100vh; 
        display: flex; 
        flex-direction: column;
    }
}

/* Улучшения для больших экранов */
@media (min-width: 1400px) {
    .post-layout {
        grid-template-columns: 1fr 400px;
        gap: 2.5rem;
    }

    .container {
        max-width: 1320px;
    }
}

/* Печать */
@media print {
    .post-sidebar,
    .post-interaction-bar,
    .add-comment {
        display: none !important;
    }

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

    .post-page {
        background: white !important;
    }

    .post-content-wrapper {
        border: 1px solid #eee !important;
    }
}

.related-post-clip {
    width: 45px;
    height: 80px;
    border-radius: 10px;
    flex-shrink: 0;
    background: #000;
    border: 1px solid var(--post-border);
    overflow: hidden;
    position: relative;
}

.related-post-clip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-clip-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ========== ОЧЕНЬ МАЛЫЕ ЭКРАНЫ ========== */
@media (max-width: 374px) {
    .post-comments {
        padding: 0.375rem 0.5rem 0.5rem;
    }
    
    .comment {
        padding: 0.375rem 0.125rem;
    }
    
    .comment-avatar,
    .comment-avatar-placeholder {
        width: 26px;
        height: 26px;
    }
    
    .comment-author {
        font-size: 0.7rem;
    }
    
    .comment-text {
        font-size: 0.7rem;
    }
    
    .comment-replies {
        margin-left: 20px;
    }
    
    .comment-replies .comment-replies {
        margin-left: 16px;
    }
    
    .comment-reply-input {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .comment-input {
        font-size: 0.7rem;
        padding: 0.375rem 0.625rem;
    }

    .share-modal {
        max-height: 100vh; 
        display: flex; 
        flex-direction: column;
    }
}

/* ========== СЕНСОРНЫЕ ЭКРАНЫ ========== */
@media (hover: none) and (pointer: coarse) {
    .comment-reply-btn,
    .comment-edit-btn,
    .comment-delete-btn {
        min-height: 32px;
        min-width: 48px;
        padding: 0.375rem 0.5rem;
    }
    
    .comment-action-btn {
        min-width: 32px;
        min-height: 32px;
    }
    
    .comment-submit,
    .comment-reply-submit {
        min-width: 36px;
        min-height: 36px;
    }
    
    .comment-actions {
        display: flex;
    }
}

/* ========== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ МОБИЛЬНЫХ ========== */
@media (max-width: 767px) and (orientation: landscape) {
    .comments-list {
        max-height: 200px;
    }
    
    .comment-replies {
        margin-left: 28px;
    }
    
    .comment-replies .comment-replies {
        margin-left: 20px;
    }
    
    .share-modal {
        max-height: 100vh; 
        display: flex; 
        flex-direction: column;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .share-modal {
        margin: 20px auto;
        max-width: 95%;
    }

    .share-type-options {
        gap: 0.5rem;
    }

    .share-type-content {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .share-type-content span {
        font-size: 0.8125rem;
    }

    .communities-scroll {
        max-height: 200px;
    }

    .community-option-content {
        padding: 0.75rem;
    }

    .community-option-avatar,
    .community-option-placeholder {
        width: 40px;
        height: 40px;
    }

    .form-group .form-control {
        min-height: 80px;
        padding: 0.75rem;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .share-modal {
        margin: 10px auto;
        max-width: calc(100% - 20px);
    }

    .share-type-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .share-type-content {
        justify-content: center;
        padding: 1rem;
    }

    .communities-scroll {
        max-height: 180px;
    }

    .community-option-avatar,
    .community-option-placeholder {
        width: 36px;
        height: 36px;
    }

    .community-option-name {
        font-size: 0.8125rem;
    }

    .community-option-members {
        font-size: 0.6875rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ========== АДАПТАЦИЯ АУДИО В ЛАЙТБОКСЕ ========== */

/* Планшеты и ниже */
@media (max-width: 991px) {
    .lightbox-audio-container {
        min-width: auto;
        max-width: 95vw;
        width: 100%;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .lightbox-audio-container .audio-visualization {
        width: 100px;
        height: 100px;
    }
    
    .lightbox-audio-container .audio-visualization svg {
        width: 60px;
        height: 60px;
    }
    
    .lightbox-audio-container .modern-audio-player {
        width: 100%;
        max-width: 100%;
    }
    
    .lightbox-audio-container .audio-title {
        font-size: 0.875rem;
        text-align: center;
    }
    
    .lightbox-audio-container .audio-controls {
        gap: 0.5rem;
    }
    
    .lightbox-audio-container .audio-time {
        font-size: 0.7rem;
        min-width: 28px;
    }
}

/* Мобильные устройства */
