.gallery-item.clip-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item.clip-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.clip-item .clip-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    pointer-events: none;
}

.gallery-clip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FF0050, #FF4500);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 0, 80, 0.3);
}

.gallery-clip-badge svg {
    width: 12px;
    height: 12px;
}

.gallery-clip-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.gallery-clip-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-clip-stat svg {
    width: 14px;
    height: 14px;
}

/* Универсальный просмотрщик клипов */
.clip-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10000;
    display: none;
}

.clip-viewer.active {
    display: block;
}

.clip-viewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: var(--altn-vh, 100dvh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-viewer-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: var(--altn-vh, 100dvh);
    margin: 0 auto;
    background: #000;
}

.clip-viewer.active.maximized .clip-viewer-wrapper,
.clip-viewer.fullscreen .clip-viewer-wrapper {
    width: min(100vw, 450px);
    width: min(100dvw, 450px);
    max-width: 450px;
    margin: 0 auto;
}

.clip-player-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: var(--altn-vh, 100dvh);
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-viewer .clip-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.clip-viewer.active.maximized .clip-controls,
.clip-viewer.fullscreen .clip-controls {
    padding-left: calc(env(safe-area-inset-left, 0px) + 16px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 16px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.clip-viewer .clip-info {
    position: absolute;
    bottom: 10px;
    left: 16px;
    right: 70px;
    z-index: 10;
    pointer-events: auto;
    transition: bottom 0.3s ease; 
}

.clip-viewer.active.maximized .clip-info,
.clip-viewer.fullscreen .clip-info {
    left: calc(env(safe-area-inset-left, 0px) + 16px);
    right: calc(env(safe-area-inset-right, 0px) + 70px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.clip-player-container.show-controls .clip-info {
    bottom: 80px;
}

.clip-viewer.active.maximized .clip-player-container.show-controls .clip-info,
.clip-viewer.fullscreen .clip-player-container.show-controls .clip-info {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
}

.clip-viewer .clip-volume-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clip-viewer .volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.clip-viewer .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.clip-viewer .volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.post-clips .clip-volume-control {
    position: absolute;
    bottom: 30px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 12;
}

.post-clips .clip-container:hover .clip-volume-control {
    opacity: 1;
}

.post-clips .volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.post-clips .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.post-clips .volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.post-clips .clip-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-clips .clip-control-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.clip-player-container.show-controls .clip-controls,
.clip-player-container:hover .clip-controls {
    opacity: 1;
}

.clip-player-container.show-controls .clip-controls {
    opacity: 1;
}

/* Заголовок */
.clip-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.clip-viewer.active.maximized .clip-viewer-header,
.clip-viewer.fullscreen .clip-viewer-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
    padding-left: calc(env(safe-area-inset-left, 0px) + 20px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 20px);
}

.clip-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clip-header-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.clip-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.clip-close-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
}

.clip-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Оверлей с информацией */
.clip-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Информация об авторе */
.clip-info {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 70px;
    z-index: 10;
    pointer-events: auto;
}

.clip-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.clip-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.clip-author-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.clip-author-details {
    flex: 1;
}

.clip-author-name {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 2px;
}

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

.clip-author-username {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.clip-follow-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #FF0050, #FF4500);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
}

.clip-follow-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
}

.clip-description {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 12px;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.clip-description.expanded {
    max-height: none;
}

.clip-description-more {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

/* Панель действий */
.clip-actions {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.clip-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.clip-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.clip-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

.clip-action-btn.liked {
    background: rgba(255, 0, 80, 0.2); 
    border-color: #FF0050;
}

.clip-action-btn.liked:hover {
    background: rgba(255, 0, 80, 0.3);
}

@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

.clip-action-btn.liked svg {
    fill: #FF0050;
    stroke: #FF0050;
}

.clip-action-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.clip-action-count {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Контролы видео */
.clip-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.clip-player-container.show-controls .clip-controls {
    opacity: 1;
}

.clip-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 12px;
}

.clip-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #FF0050;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.clip-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    left: 0%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clip-progress-bar:hover .clip-progress-handle,
.clip-controls.dragging .clip-progress-handle {
    opacity: 1;
}

.clip-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clip-time {
    color: white;
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
}

.clip-control-buttons {
    display: flex;
    gap: 12px;
}

.clip-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.clip-control-btn:hover {
    background: rgba(52, 152, 219, 0.5);
    border-color: rgba(52, 152, 219, 0.8);
    transform: scale(1.1);
}

.clip-control-btn svg {
    width: 18px;
    height: 18px;
}

.clip-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.clip-play-overlay.show {
    opacity: 1;
    animation: playPulse 0.4s ease;
}

@keyframes playPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.clip-play-overlay svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

/* Навигация между клипами */
.clip-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    z-index: 5;
}

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

.clip-nav-btn:hover {
    background: rgba(52, 152, 219, 0.4); 
    border-color: rgba(52, 152, 219, 0.6);
    transform: scale(1.1);
}

.clip-viewer:hover .clip-nav-btn {
    opacity: 1;
}

.clip-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.clip-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Панель комментариев */
.clip-comments-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    max-height: calc(100% - 60px);
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.clip-comments-panel.show {
    transform: translateY(0);
}

.clip-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clip-comments-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

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

.clip-comments-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clip-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.clip-comments-list::-webkit-scrollbar {
    width: 4px;
}

.clip-comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.clip-comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.clip-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: commentSlideIn 0.3s ease;
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.clip-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.clip-comment-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
}

.clip-comment-content {
    flex: 1;
}

.clip-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.clip-comment-author {
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

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

.clip-comment-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.clip-comment-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.clip-comment-actions {
    display: flex;
    gap: 16px;
}

.clip-comment-action {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.clip-comment-action:hover {
    color: white;
}

/* Ответы на комментарии */
.clip-comment-replies {
    margin-left: 48px;
    margin-top: 12px;
}

.clip-comment-reply {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.clip-comment-reply .clip-comment-avatar {
    width: 28px;
    height: 28px;
}

.clip-comment-reply .clip-comment-avatar-placeholder {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* Поле ввода ответа */
.clip-reply-input-wrapper {
    display: flex;
    gap: 8px;
    margin-left: 48px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.clip-reply-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 13px;
    outline: none;
}

.clip-reply-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF0050;
}

.clip-reply-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FF0050;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.clip-reply-submit:hover {
    transform: scale(1.1);
    background: #FF1744;
}

/* Поле ввода комментария */
.clip-comment-input-wrapper {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.clip-comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    outline: none;
}

.clip-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.clip-comment-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF0050;
}

.clip-comment-submit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.clip-comment-submit:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.clip-comment-submit svg {
    width: 20px;
    height: 20px;
}

.post-clips .clip-stats {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.post-clips .clip-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.post-clips .clip-stat-item svg {
    width: 16px;
    height: 16px;
}

/* Загрузка */
.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;
}

.post-clips {
    margin: 0.75rem 0;
    background: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.post-clips .clip-container {
    position: relative;
    width: 100%;
    max-width: min(350px, 100%);
    margin: 0 auto;
    aspect-ratio: 9/16;
    max-height: min(500px, 80vh);
    background: #000;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-clips .clip-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: #000;
    cursor: pointer;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.clip-viewer .clip-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: #000;
    width: 100%;
    height: 100%;
}

.post-clips .clip-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 10;
}

.post-clips .clip-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-clips .clip-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.post-clips .clip-author-details {
    flex: 1;
}

.post-clips .clip-author-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: block;
    text-decoration: none;
}

.post-clips .clip-author-name:hover {
    text-decoration: underline;
}

.post-clips .clip-author-username {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.post-clips .clip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF0050, #FF4500);
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 11;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 0, 80, 0.3);
}

.post-clips .clip-badge svg {
    width: 14px;
    height: 14px;
}

.post-clips .clip-info {
    position: absolute;
    bottom: 60px;
    left: 12px;
    right: 60px;
    z-index: 10;
}

.post-clips .clip-description {
    color: white;
    font-size: 13px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    max-height: 60px;
    overflow: hidden;
    margin-bottom: 8px;
}

.post-clips .clip-action-btn.liked svg {
    fill: #FF0050;
}

.post-clips .clip-action-btn svg {
    width: 22px;
    height: 22px;
}

.post-clips .clip-action-count {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.post-clips .clip-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
    pointer-events: all;
}

.post-clips .clip-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
}

.post-clips .clip-progress-bar:hover {
    height: 6px;
}

.post-clips .clip-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #FF0050;
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

.post-clips .clip-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-clips .clip-time {
    color: white;
    font-size: 11px;
    font-weight: 500;
}

.post-clips .clip-control-buttons {
    display: flex;
    gap: 8px;
}

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

.post-clips .clip-control-btn:hover {
    background: rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.6);
}

.post-clips .clip-control-btn svg {
    width: 16px;
    height: 16px;
}

.post-clips .clip-play-overlay {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.post-clips .clip-play-overlay:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.7), rgba(41, 128, 185, 0.7));
    transform: translate(-50%, -50%) scale(1.1);
}

.post-clips .clip-play-overlay.show {
    opacity: 1;
}

.post-clips .clip-play-overlay svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 2px;
}

.post-clips .clip-expand-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: transparent;
    border: none;
}

.clip-viewer .clip-player-container {
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: var(--altn-vh, 100dvh);
    max-width: none; 
}

.post-clips .clip-actions {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.post-clips .clip-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.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:nth-child(4) .clip-action-btn {
    cursor: default;
    pointer-events: none;
}

.post-clips .clip-action-item:nth-child(4) .clip-action-btn:hover {
    transform: none;
    background: transparent;
}

.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-follow-btn.following {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.clip-follow-btn.following:hover {
    background-color: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.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;
}

.comment-moderate-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.comment-moderate-approve,
.comment-moderate-reject {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-moderate-approve {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.comment-moderate-approve:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: scale(1.1);
}

.comment-moderate-reject {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.comment-moderate-reject:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.comment-moderate-approve svg,
.comment-moderate-reject svg {
    width: 14px;
    height: 14px;
}

/* ========== МОДАЛЬНОЕ ОКНО РЕПОСТА ========== */

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

/* Лейблы */
.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;
}

/* Hover эффекты */
.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);
}

.shared-post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--post-border);
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.shared-post-header svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

.share-preview .post-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    word-wrap: break-word;
}

.post-preview-poll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.post-preview-poll svg {
    width: 16px;
    height: 16px;
}

/* Футер модального окна */
.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--post-border);
    background: var(--sidebar-bg);
}

.modal-footer .btn {
    min-width: 100px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.friends-list-private {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    min-height: 150px;
}

.friends-list-private svg {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.friends-list-private p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.story-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Адаптация под iOS устройства */
@supports (-webkit-touch-callout: none) {
    .story-modal-content {
        /* Учитываем safe area для iPhone с выемкой */
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .story-modal-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* ========== КОНТРОЛЬ ЗВУКА В ШАПКЕ ПРОСМОТРЩИКА КЛИПОВ ========== */

.clips-header-volume {
    display: none; /* Скрыт по умолчанию */
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.clips-header-volume-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.clips-header-volume-btn:active {
    transform: scale(0.9);
}

.clips-header-volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.clips-header-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.clips-header-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.header-volume-icon {
    flex-shrink: 0;
}

/* Структура заголовка */
.clip-viewer-header .clip-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clip-header-title {
    flex: 1;
}

/* ========== СИСТЕМА ЖАЛОБ ========== */

/* Разделитель в меню поста */
.post-menu-divider {
    height: 1px;
    background: var(--post-border);
    margin: 4px 0;
}

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

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

.comment-report-btn.reported {
    color: var(--warning-color, #f39c12);
}

.comment-report-btn.reported:hover {
    background: rgba(243, 156, 18, 0.1);
}

/* Кнопка меню с активной жалобой - желтая */
.post-menu-btn.has-report,
.clip-menu-btn.has-report,
.post-clip-menu-btn.has-report {
    color: var(--warning-color, #f39c12);
}

/* Dropdown меню клипа */
.clip-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: 8px 0;
    min-width: 180px;
    max-width: calc(100vw - 16px);
    z-index: 1000005;
    animation: fadeIn 0.2s ease;
}

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

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

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

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

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

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

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

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

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

/* Стили для пунктов меню поста */
.post-menu-item-danger {
    color: var(--error-color, #e74c3c) !important;
}

.post-menu-item-danger svg {
    color: var(--error-color, #e74c3c) !important;
}

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

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

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

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

/* Кнопка жалобы на комментарий клипа */
.clip-comment-action[data-action="report-clip-comment"] {
    color: var(--error-color);
}

.clip-comment-action[data-action="report-clip-comment"]:hover {
    background: rgba(231, 76, 60, 0.1);
}

.clip-comment-action[data-action="report-clip-comment"].reported {
    color: var(--warning-color, #f39c12);
}

.clip-comment-action[data-action="report-clip-comment"].reported:hover {
    background: rgba(243, 156, 18, 0.1);
}

.clip-dropdown-menu-fullscreen .clip-menu-item-danger {
    color: var(--error-color, #e74c3c) !important;
}

.clip-dropdown-menu-fullscreen .clip-menu-item-danger svg {
    stroke: var(--error-color, #e74c3c) !important;
    color: var(--error-color, #e74c3c) !important;
}

.clip-dropdown-menu-fullscreen .clip-menu-item-warning {
    color: var(--warning-color, #f39c12) !important;
}

.clip-dropdown-menu-fullscreen .clip-menu-item-warning svg {
    stroke: var(--warning-color, #f39c12) !important;
    color: var(--warning-color, #f39c12) !important;
}

/* Фон меню в fullscreen режиме */
.clip-dropdown-menu-fullscreen {
    background: var(--post-bg, #1a1a2e) !important;
    border: 1px solid var(--post-border, #2a2a4a) !important;
}

.clip-dropdown-menu-fullscreen .clip-menu-item:hover {
    background: var(--sidebar-bg, rgba(255, 255, 255, 0.1)) !important;
}

.clip-dropdown-menu-fullscreen .clip-menu-item {
    color: var(--text-primary);
}

/* Убедимся что меню видно поверх просмотрщика */
#clipViewer .clip-dropdown-menu {
    z-index: 1000005;
}

/* Кнопка жалобы в меню профиля */
.profile-menu-item-danger {
    color: var(--error-color, #e74c3c) !important;
}

.profile-menu-item-danger svg {
    stroke: var(--error-color, #e74c3c) !important;
    color: var(--error-color, #e74c3c) !important;
}

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

/* Разделитель в меню профиля */
.profile-menu-divider {
    height: 1px;
    background: var(--post-border);
    margin: 4px 0;
}

.clip-comments-list .no-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========== ЖАЛОБЫ НА ИСТОРИИ ========== */

/* Кнопка жалобы на историю */
.story-control-btn.story-report-btn {
    background: rgba(255, 69, 0, 0.15);
    border-color: rgba(255, 69, 0, 0.3);
}

.story-control-btn.story-report-btn:hover {
    background: rgba(255, 69, 0, 0.25);
    border-color: rgba(255, 69, 0, 0.5);
}
