/* Стили для отправленной жалобы на историю */
.story-control-btn.story-report-btn.has-report {
    background: rgba(243, 156, 18, 0.25);
    border-color: var(--warning-color, #f39c12);
    color: var(--warning-color, #f39c12);
    animation: reportPulse 2s ease-in-out infinite;
}

.story-control-btn.story-report-btn.has-report svg {
    stroke: var(--warning-color, #f39c12);
    fill: none;
}

.story-control-btn.story-report-btn.has-report:hover {
    background: rgba(243, 156, 18, 0.35);
    border-color: var(--warning-color, #f39c12);
}

/* Анимация пульсации для жалобы */
@keyframes reportPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(243, 156, 18, 0);
    }
}

/* Кнопка жалобы на комментарий истории */
.story-comment-report-btn {
    background: none;
    border: none;
    color: var(--error-color, #e74c3c);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.story-comment-report-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    text-decoration: underline;
}

/* Стили для отправленной жалобы на комментарий */
.story-comment-report-btn.reported {
    color: var(--warning-color, #f39c12);
    background: rgba(243, 156, 18, 0.1);
    font-weight: 600;
}

.story-comment-report-btn.reported:hover {
    background: rgba(243, 156, 18, 0.2);
    text-decoration: none;
}

.story-comment-report-btn.reported::before {
    content: '⚠ ';
    margin-right: 2px;
}

.story-comment-report-btn.small {
    font-size: 11px;
    padding: 3px 6px;
}

.story-comment-report-btn.small.reported::before {
    font-size: 10px;
}

/* ========== ЖАЛОБЫ НА АЛЬБОМЫ ========== */

/* Кнопка меню альбома */
.album-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-album-item:hover .album-menu-btn {
    opacity: 1;
}

.album-menu-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.album-menu-btn.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.album-menu-btn.has-report:hover {
    background: rgba(243, 156, 18, 0.5);
}

.album-menu-btn svg {
    width: 16px;
    height: 16px;
}

@keyframes albumReportPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(243, 156, 18, 0);
    }
}

/* Dropdown меню альбома */
.album-dropdown-menu {
    position: fixed;
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 180px;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.album-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.album-menu-item:hover {
    background: var(--sidebar-bg);
}

.album-menu-item svg {
    flex-shrink: 0;
}

.album-menu-item-danger {
    color: var(--error-color);
}

.album-menu-item-danger svg {
    color: var(--error-color);
}

.album-menu-item-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.album-menu-item-warning {
    color: var(--warning-color, #f39c12);
}

.album-menu-item-warning svg {
    color: var(--warning-color, #f39c12);
}

.album-menu-item-warning:hover {
    background: rgba(243, 156, 18, 0.1);
}

/* Кнопка жалобы в модальном окне просмотра альбома */
.album-modal-report {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 69, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 69, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--error-color);
    transition: all 0.2s ease;
}

.album-modal-report:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.5);
    transform: scale(1.1);
}

.album-modal-report svg {
    width: 20px;
    height: 20px;
}

/* Стили для отправленной жалобы */
.album-modal-report.has-report {
    background: rgba(243, 156, 18, 0.2);
    border-color: var(--warning-color, #f39c12);
    color: var(--warning-color, #f39c12);
    animation: albumReportPulse 2s ease-in-out infinite;
}

.album-modal-report.has-report:hover {
    background: rgba(243, 156, 18, 0.3);
}

.album-modal-delete {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--error-color);
    transition: all 0.2s ease;
}

.album-modal-delete:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.album-modal-delete svg {
    width: 20px;
    height: 20px;
}

.gallery-album-item .album-info {
    display: none;
}

/* Альбом занимает всю высоту */
.gallery-album-item {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    background: var(--post-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--post-border);
}

/* Обложка занимает всю площадь */
.gallery-album-cover {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--sidebar-bg);
}

/* Новый hover overlay для альбома */
.album-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-album-item:hover .album-hover-info {
    opacity: 1;
}

.album-hover-info .album-title {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-hover-info .album-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.album-menu-btn.has-report {
    color: var(--warning-color, #f39c12);
}

/* Жёлтый пункт меню если жалоба отправлена */
.album-menu-item-reported {
    color: var(--warning-color, #f39c12) !important;
}

.album-menu-item-reported:hover {
    background: rgba(243, 156, 18, 0.1) !important;
}

.album-menu-item-reported svg {
    color: var(--warning-color, #f39c12) !important;
}

.album-menu-divider {
    height: 1px;
    background: var(--post-border);
    margin: 4px 0;
}

.gallery-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.gallery-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--post-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.gallery-loading span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.album-photo-cover {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 2;
}

.album-photo-item:hover .album-photo-cover {
    opacity: 1;
}

.album-photo-cover svg {
    color: #fff;
    transition: all 0.2s ease;
}

.album-photo-cover:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.album-photo-cover.active {
    opacity: 1;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.album-photo-cover.active svg {
    color: #000;
}

.album-photo-cover.active:hover {
    background: linear-gradient(135deg, #ffc700 0%, #ffe34e 100%);
}

/* ========== ПОДСВЕТКА КНОПОК ВЛОЖЕНИЙ ========== */

/* Базовые стили для всех кнопок вложений */
.attachment-btn,
.create-clip-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--post-border);
    background: var(--sidebar-bg);
}

.create-clip-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.create-clip-btn.disabled::before {
    left: -100%;
}

.create-clip-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.attachment-btn::before,
.create-clip-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.attachment-btn:hover::before,
.create-clip-btn:hover::before {
    left: 100%;
}

/* Кнопка Фото/Видео - зелёная подсветка */
#addPhotoVideo {
    border-color: rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(39, 174, 96, 0.05));
}

#addPhotoVideo svg {
    color: #2ecc71;
    filter: drop-shadow(0 0 4px rgba(46, 204, 113, 0.4));
    transition: all 0.3s ease;
}

#addPhotoVideo:hover {
    border-color: rgba(46, 204, 113, 0.6);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.1));
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#addPhotoVideo:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.6));
}

/* Кнопка Файлы - синяя подсветка */
#addFile {
    border-color: rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(41, 128, 185, 0.05));
}

#addFile svg {
    color: #3498db;
    filter: drop-shadow(0 0 4px rgba(52, 152, 219, 0.4));
    transition: all 0.3s ease;
}

#addFile:hover {
    border-color: rgba(52, 152, 219, 0.6);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(41, 128, 185, 0.1));
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#addFile:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.6));
}

/* Кнопка Создать клип - градиентная подсветка */
.create-clip-btn {
    border-color: rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.08));
}

.create-clip-btn svg {
    color: #FF6B6B;
    filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.4));
    transition: all 0.3s ease;
}

.create-clip-btn:hover {
    border-color: rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.18), rgba(255, 142, 83, 0.12));
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.create-clip-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

/* Анимация пульсации для привлечения внимания */
@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(var(--glow-color), 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(var(--glow-color), 0.3);
    }
}

/* Активное состояние (когда выбраны файлы) */
.attachment-btn.has-files,
.create-clip-btn.has-files {
    animation: subtleGlow 2s ease-in-out infinite;
}

#addPhotoVideo.has-files {
    --glow-color: 46, 204, 113;
    border-color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.15));
}

#addFile.has-files {
    --glow-color: 52, 152, 219;
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.15));
}

.create-clip-btn.has-files {
    --glow-color: 255, 107, 107;
    border-color: #FF6B6B;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 83, 0.15));
}

/* Текст кнопок */
.attachment-btn span,
.create-clip-btn span {
    font-weight: 500;
    transition: all 0.3s ease;
}

#addPhotoVideo:hover span {
    color: #2ecc71;
}

#addFile:hover span {
    color: #3498db;
}

.create-clip-btn:hover span {
    color: #FF6B6B;
}

/* ================================================================
   БЛОК АДАПТИВНОСТИ
   ================================================================ */

/* === БОЛЬШОЙ ДЕСКТОП (1200px+) === */
@media (min-width: 992px) {
    .lightbox-media-container {
        max-width: 80vw;
    }
}

/* === ПЛАНШЕТЫ (до 1199px) === */
@media (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr 260px;
        gap: 1.25rem;
    }
    
    .profile-cover {
        height: 300px;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 140px;
        height: 140px;
        font-size: 2.5rem;
    }
    
    .profile-avatar-section {
        margin-top: -4rem;
        gap: 1.5rem;
    }
    
    .profile-details {
        padding-top: 4.5rem;
    }
    
    .profile-actions {
        padding-top: 4.5rem;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .gallery-item,
    .gallery-album-item {
        width: 150px;
        height: 150px;
    }
    
    .gallery-article-item,
    .article-create-button {
        width: 150px;
        height: 200px;
    }
    
    .gallery-item.clip-item {
        width: 140px;
    }

        .create-post-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-attachments {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .post-attachments .attachment-btn,
    .post-attachments .create-clip-btn {
        flex: 1 1 calc(33.333% - 0.333rem);
        min-width: 0;
        justify-content: center;
    }
    
    .post-options {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }
    
    .post-options .visibility-dropdown {
        flex: 1;
    }
    
    .post-options #publishPost {
        flex-shrink: 0;
    }
}

/* === ОДНОКОЛОНОЧНЫЙ (до 991px) === */
@media (max-width: 991px) {
    .content-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profile-sidebar {
        display: none !important;
    }
    
    .profile-sidebar-mobile {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .profile-sidebar-mobile .stories-section,
    .profile-sidebar-mobile .friends-widget {
        margin-bottom: 1rem;
    }
    
    .profile-cover {
        height: 250px;
    }
    
    .profile-info {
        padding: 0 1.5rem 1.5rem;
    }
    
    .profile-stats {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .create-post-card {
        padding: 1rem;
    }
    
    .post-create-options {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .post-option-item {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
        justify-content: center;
    }
    
    .create-post-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .post-attachments {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .post-options {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-options .visibility-dropdown {
        width: 100%;
    }
    
    .post-options #publishPost {
        width: 100%;
    }
    
    .post-attachments .attachment-btn,
    .post-attachments .create-clip-btn {
        flex: 1 1 calc(33.333% - 0.333rem);
        min-width: 0;
        justify-content: center;
    }
    
    .visibility-dropdown,
    .visibility-button,
    #publishPost {
        width: 100%;
    }
    
    /* Лайтбокс аудио */
    .lightbox-audio-container {
        max-width: 95vw;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .lightbox-audio-container .audio-visualization {
        width: 100px;
        height: 100px;
    }
    
    .lightbox-audio-container .audio-title {
        font-size: 0.875rem;
        text-align: center;
    }
    
    /* Story modal */
    .story-modal {
        padding: 0.75rem;
    }
    
    .story-modal-content {
        max-width: 540px;
        max-height: 90vh;
    }
    
    .story-upload-area {
        padding: 2.5rem 1.5rem;
    }
    
    .story-preview-container {
        max-width: 280px;
    }
    
    .story-text-input {
        max-width: 100%;
        min-height: 80px;
        font-size: 0.875rem;
    }
    
    /* Clips header volume */
    .clips-header-volume {
        display: flex !important;
    }
    
    #clipViewer .clip-volume-control,
    .clip-viewer .clip-volume-control {
        display: none !important;
    }

    .clip-navigation {
        display: none !important;
    }
    
    .story-control-btn.story-report-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* === МОБИЛЬНЫЕ (до 767px) === */
@media (max-width: 767px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .profile-page {
        padding-bottom: 2rem;
    }
    
    /* --- Профиль --- */
    .profile-cover {
        height: 180px;
    }
    
    .btn-change-cover {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .profile-info {
        padding: 0 1rem 1.25rem;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
        border-width: 4px;
    }
    
    .btn-change-avatar {
        width: 36px;
        height: 36px;
        bottom: 5px;
        right: 5px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-bio {
        font-size: 0.875rem;
    }
    
    .meta-item {
        font-size: 0.8125rem;
    }
    
    .profile-stats {
        gap: 1.5rem;
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* --- Истории --- */
    .stories-section {
        padding: 0.875rem;
    }
    
    .stories-header h3 {
        font-size: 0.9375rem;
    }
    
    .story-preview-item {
        width: 50px;
        height: 70px;
    }
    
    /* --- Друзья --- */
    .friends-widget {
        border-radius: 12px;
    }
    
    .widget-header {
        padding: 0.875rem 1rem;
    }
    
    .widget-header h3 {
        font-size: 0.9375rem;
    }
    
    .friend-item {
        padding: 0.5rem 0.75rem;
    }
    
    .friend-avatar,
    .friend-avatar-placeholder {
        width: 36px;
        height: 36px;
    }
    
    .friend-name {
        font-size: 0.8125rem;
    }
    
    /* --- Галерея --- */
    .profile-media-gallery {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .gallery-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        mask-image: linear-gradient(to right, black calc(100% - 30px), transparent);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 30px), transparent);
    }
    
    .gallery-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-tab {
        white-space: nowrap;
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .gallery-item,
    .gallery-album-item {
        width: 110px;
        height: 110px;
    }
    
    .gallery-article-item,
    .article-create-button {
        width: 130px;
        height: 180px;
    }
    
    .gallery-item.clip-item {
        width: 120px;
    }
    
    .album-create-button,
    .article-create-button {
        font-size: 0.75rem;
    }
    
    .album-create-button svg,
    .article-create-button svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-nav {
        display: none;
    }
    
    /* --- Форма поста --- */
    .create-post-card {
        border-radius: 12px;
        padding: 0.875rem;
    }
    
    .create-post-avatar,
    .create-post-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .post-input {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
        min-height: 40px;
    }
    
    .post-option-item {
        padding: 0.5rem;
        font-size: 0.75rem;
        flex: 1 1 calc(50% - 0.25rem);
    }
    
    .post-option-item svg {
        width: 16px;
        height: 16px;
    }
    
    .post-option-panel {
        padding: 0.875rem;
    }
    
    .poll-settings-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-add-option {
        width: 100%;
    }
    
    .post-attachments .attachment-btn,
    .post-attachments .create-clip-btn {
        flex: 1 1 calc(33.333% - 0.333rem);
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .attachment-btn span,
    .create-clip-btn span {
        display: none;
    }
    
    .attachment-btn svg,
    .create-clip-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .post-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-options .visibility-dropdown {
        width: 100%;
    }
    
    .visibility-button {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        width: 100%;
    }
    
    #publishPost {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
    }
    
    .attachments-preview {
        gap: 0.5rem;
    }
    
    .attachment-preview {
        width: 100px;
        height: 100px;
    }

    .post-draft-preview-card {
        padding: 0.625rem;
    }

    .post-draft-preview-media {
        max-width: 100%;
    }
    
    /* --- Посты --- */
    .post-card {
        border-radius: 12px;
    }
    
    .post-header {
        padding: 0.875rem 1rem;
    }
    
    .post-author-avatar,
    .post-author-placeholder {
        width: 38px;
        height: 38px;
    }
    
    .post-author-name {
        font-size: 0.875rem;
    }
    
    .post-time {
        font-size: 0.75rem;
    }
    
    .post-content {
        padding: 0 1rem 0.875rem;
    }
    
    .post-text {
        font-size: 0.875rem;
    }
    
    .post-interaction-bar {
        padding: 0.5rem 1rem;
    }
    
    .post-interaction-item svg {
        width: 18px;
        height: 18px;
    }
    
    .interaction-count {
        font-size: 0.8125rem;
    }
    
    /* --- Репосты --- */
    .shared-post-container {
        border-radius: 8px;
    }
    
    .shared-post-header {
        padding: 0.625rem 0.875rem;
        gap: 0.375rem;
    }
    
    .shared-post-header span {
        font-size: 0.75rem;
    }
    
    .shared-post-container .post-text {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .shared-post-deleted {
        padding: 1.5rem;
        font-size: 0.8125rem;
    }
    
    /* --- Комментарии --- */
    .post-comments {
        padding: 0.75rem 1rem;
    }
    
    .comments-list {
        max-height: 300px;
    }
    
    .comment {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .comment-avatar,
    .comment-avatar-placeholder {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .comment-author {
        font-size: 0.75rem;
    }
    
    .comment-time {
        font-size: 0.65rem;
    }
    
    .comment-text {
        font-size: 0.8125rem;
    }
    
    .comment-footer {
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .comment-reply-btn,
    .comment-edit-btn,
    .comment-delete-btn {
        font-size: 0.6875rem;
        padding: 0.25rem 0.375rem;
    }
    
    .comment-replies {
        margin-left: 36px;
    }
    
    .comment-replies .comment-replies {
        margin-left: 20px;
    }
    
    .comment-replies .comment-replies .comment-replies {
        margin-left: 8px;
    }
    
    .comment-replies .comment-replies .comment-replies .comment-replies {
        margin-left: 0;
    }
    
    .comment-reply-input-wrapper {
        gap: 0.375rem;
        padding: 0.375rem;
    }
    
    .comment-reply-input,
    .comment-input {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    .comment-submit,
    .comment-reply-submit {
        width: 34px;
        height: 34px;
    }
    
    .add-comment {
        gap: 0.5rem;
        padding-top: 0.625rem;
    }
    
    .comment-actions {
        display: flex;
        opacity: 0.7;
    }
    
    /* --- Модалки --- */
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content {
        border-radius: 16px;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header {
        padding: 1rem;
        flex-shrink: 0;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .share-modal {
        margin: 0.5rem;
    }
    
    .share-type-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .communities-scroll {
        max-height: 200px;
    }
    
    /* --- Лайтбокс --- */
    .lightbox-header {
        padding: 0.75rem 1rem;
    }
    
    .lightbox-content {
        padding: 50px 8px 80px;
    }
    
    .lightbox-media-container {
        max-width: 100%;
        max-height: calc(100vh - 160px);
    }
    
    .lightbox-image {
        max-height: calc(100vh - 160px);
    }
    
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }
    
    .lightbox-prev {
        left: 4px;
    }
    
    .lightbox-next {
        right: 4px;
    }
    
    .lightbox-thumbnail {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-close {
        width: 36px;
        height: 36px;
    }
    
    .lightbox-counter {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .lightbox-footer {
        padding: 0.75rem 0.5rem;
    }
    
    .lightbox-thumbnails {
        gap: 0.375rem;
    }
    
    /* --- Лайтбокс аудио --- */
    .lightbox-audio-container {
        max-width: 100%;
        width: calc(100vw - 2rem);
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }
    
    .lightbox-audio-container .audio-visualization {
        width: 80px;
        height: 80px;
    }
    
    .lightbox-audio-container .audio-visualization svg {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-audio-container .modern-audio-player {
        width: 100%;
        padding: 0.75rem 0.875rem;
    }
    
    .lightbox-audio-container .audio-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-audio-container .audio-title {
        font-size: 0.8125rem;
        text-align: center;
    }
    
    .lightbox-audio-container .audio-time {
        font-size: 0.65rem;
    }
    
    .lightbox-audio-container .volume-btn {
        width: 28px;
        height: 28px;
    }
    
    .lightbox-audio-container .volume-slider-wrapper {
        width: 100px;
        height: 28px;
    }
    
    .lightbox-audio-container .volume-slider {
        width: 60px;
    }
    
    /* --- Аудиоплеер в постах --- */
    .modern-audio-player {
        padding: 0.625rem 0.75rem;
    }
    
    .audio-player-content {
        gap: 0.625rem;
    }
    
    .audio-play-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .audio-play-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .audio-title {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .audio-controls {
        gap: 0.375rem;
    }
    
    .audio-time {
        font-size: 0.625rem;
        min-width: 26px;
    }
    
    .audio-progress-bar {
        height: 3px;
    }
    
    .audio-progress-handle {
        width: 10px;
        height: 10px;
    }
    
    .volume-btn {
        width: 26px;
        height: 26px;
    }
    
    .volume-btn svg {
        width: 13px;
        height: 13px;
    }
    
    /* --- Клипы в постах --- */
    .post-clips .clip-container {
        max-width: 100%;
        max-height: min(500px, 75vh);
    }

    .clip-viewer.active.maximized .clip-viewer-wrapper,
    .clip-viewer.fullscreen .clip-viewer-wrapper {
        width: 100vw;
        width: 100dvw;
        max-width: 100%;
    }
    
    .post-clips .clip-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .post-clips .clip-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .post-clips .clip-action-count {
        font-size: 0.6875rem;
    }
    
    /* --- Клип-viewer --- */
    .clip-viewer-header {
        padding: 1rem;
    }
    
    .clip-header-title {
        font-size: 1rem;
    }
    
    .clip-close-btn {
        width: 32px;
        height: 32px;
    }
    
    .clip-info {
        bottom: 70px;
        left: 12px;
        right: 60px;
    }
    
    .clip-author {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .clip-author-avatar,
    .clip-author-placeholder {
        width: 38px;
        height: 38px;
    }
    
    .clip-author-name {
        font-size: 14px;
    }
    
    .clip-description {
        font-size: 13px;
        max-height: 60px;
    }
    
    .clip-actions {
        right: 10px;
        bottom: 70px;
        gap: 12px;
    }
    
    .clip-action-btn {
        width: 42px;
        height: 42px;
    }
    
    .clip-action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .clip-action-count {
        font-size: 11px;
    }
    
    .clip-controls {
        padding: 12px;
    }
    
    /* --- Комментарии клипов --- */
    .clip-comments-panel {
        height: 80%;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    .clip-comments-header {
        padding: 16px;
    }
    
    .clip-comments-header h3 {
        font-size: 16px;
    }
    
    .clip-comment {
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .clip-comment-avatar,
    .clip-comment-avatar-placeholder {
        width: 32px;
        height: 32px;
    }
    
    .clip-comment-author {
        font-size: 13px;
    }
    
    .clip-comment-text {
        font-size: 13px;
    }
    
    .clip-comment-input-wrapper {
        padding: 12px;
    }
    
    .clip-comment-input {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .clip-comment-submit {
        width: 36px;
        height: 36px;
    }
    
    .clip-reply-input-wrapper {
        margin-left: 36px;
    }
    
    .clip-reply-input {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .clip-reply-submit {
        width: 28px;
        height: 28px;
    }
    
    /* --- Просмотрщик историй --- */
    .story-viewer-header {
        top: 16px;
        left: 12px;
        right: 12px;
    }
    
    .story-user-avatar,
    .story-user-avatar-placeholder {
        width: 36px;
        height: 36px;
    }
    
    .story-user-name {
        font-size: 13px;
    }
    
    .story-time {
        font-size: 11px;
    }
    
    .story-close-btn {
        width: 32px;
        height: 32px;
    }
    
    .story-control-btn {
        width: 32px;
        height: 32px;
    }
    
    .story-caption-container {
        padding: 10px 12px;
    }
    
    .story-caption {
        font-size: 13px;
    }
    
    .story-action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* --- Story modal --- */
    .story-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .story-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        animation: slideUpMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .story-modal-header {
        padding: 1rem 1.25rem;
        position: relative;
    }
    
    .story-modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .story-modal-header h3 {
        font-size: 0.9375rem;
        margin-top: 8px;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        margin-top: 8px;
    }
    
    .story-modal-body {
        padding: 1.25rem;
        max-height: calc(95vh - 140px);
    }
    
    .story-upload-area {
        padding: 2rem 1.25rem;
    }
    
    .story-upload-area svg {
        width: 40px;
        height: 40px;
    }
    
    .story-upload-area p {
        font-size: 0.875rem;
    }
    
    .story-upload-area span {
        font-size: 0.75rem;
    }
    
    .story-preview-container {
        max-width: 100%;
        width: 100%;
    }
    
    .story-preview-wrapper {
        max-height: 400px;
        padding-bottom: 133.33%;
    }
    
    .story-text-input {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        min-height: 90px;
        border-radius: 14px;
    }
    
    .story-char-counter {
        font-size: 0.6875rem;
    }
    
    .story-options {
        gap: 0.5rem;
        padding: 0.875rem;
        margin-top: 0.875rem;
    }
    
    .story-option-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .story-option-item svg {
        width: 14px;
        height: 14px;
    }
    
    .story-modal-footer {
        padding: 1rem 1.25rem;
        gap: 0.625rem;
    }
    
    .story-modal-footer .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 12px;
    }
    
    .story-format-indicator {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .story-fit-toggle {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.4375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .story-orientation-warning {
        padding: 0.625rem 0.875rem;
        gap: 0.625rem;
        margin-top: 0.875rem;
        border-radius: 10px;
    }
    
    .story-orientation-warning svg {
        width: 18px;
        height: 18px;
    }
    
    .story-orientation-warning p {
        font-size: 0.75rem;
    }
    
    .story-preview-play-btn {
        width: 36px;
        height: 36px;
    }
    
    .story-preview-volume {
        width: 30px;
        height: 30px;
    }
    
    .story-uploading {
        padding: 2rem 1rem;
    }
    
    /* --- Жалобы --- */
    .story-control-btn.story-report-btn {
        width: 32px;
        height: 32px;
    }
    
    .story-control-btn.story-report-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .story-comment-report-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .clip-dropdown-menu {
        min-width: 160px;
        padding: 6px 0;
    }
    
    .clip-menu-item {
        padding: 10px 14px;
        font-size: 14px;
        gap: 10px;
    }
    
    .clip-menu-item svg {
        width: 16px;
        height: 16px;
    }
    
    .comment-report-btn {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .album-menu-btn {
        width: 26px;
        height: 26px;
        opacity: 1;
    }
    
    .album-menu-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .album-dropdown-menu {
        min-width: 160px;
    }
    
    .album-menu-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .album-modal-report {
        width: 36px;
        height: 36px;
    }
    
    .album-modal-report svg {
        width: 18px;
        height: 18px;
    }
    
    /* --- Уведомления --- */
    .notification-container {
        top: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 70px);
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        max-width: 100%;
    }
    
    /* --- Альбомы --- */
    .album-modal-header {
        padding: 1rem;
    }
    
    .album-modal-title {
        font-size: 1.25rem;
    }
    
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .album-create-container {
        max-height: 90vh;
    }
    
    .album-create-header {
        padding: 1rem;
    }
    
    .album-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    /* Touch: показываем скрытые hover-элементы */
    .album-photo-remove,
    .article-menu-btn,
    .album-menu-btn {
        opacity: 1;
    }
    
    /* --- Clips volume --- */
    .clips-header-volume {
        padding: 6px 10px;
    }
    
    .clips-header-volume-btn {
        width: 28px;
        height: 28px;
    }
    
    .clips-header-volume-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .clips-header-volume-slider {
        width: 50px;
    }
    
    /* --- Темы --- */
    [data-theme="dark"] .story-modal {
        background: rgba(0, 0, 0, 0.98);
    }
    
    [data-theme="dark"] .story-modal-header::before {
        background: rgba(255, 255, 255, 0.4);
    }
    
    [data-theme="dark"] .story-upload-area {
        border-color: rgba(52, 152, 219, 0.4);
    }
    
    [data-theme="light"] .story-modal {
        background: rgba(255, 255, 255, 0.98);
    }
    
    [data-theme="light"] .story-modal-header::before {
        background: rgba(0, 0, 0, 0.2);
    }
    
    /* --- Closing animation --- */
    .story-modal.closing .story-modal-content {
        animation: slideDownMobile 0.25s ease-out forwards;
    }
}

@keyframes slideUpMobile {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDownMobile {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* === МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px) === */
