.coauthor-suggestion-info {
    flex: 1;
}

.coauthor-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.coauthor-username {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.selected-coauthors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.coauthor-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8125rem;
}

.coauthor-chip-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.coauthor-chip-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
}

.remove-coauthor {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.remove-coauthor:hover {
    color: white;
}

.load-more-coauthors {
    width: 100%;
    padding: 0.75rem;
    background: var(--sidebar-bg);
    border: none;
    color: var(--accent-color);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.load-more-coauthors:hover {
    background: var(--input-bg);
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-coauthors {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.coauthors-label {
    margin-right: 0.25rem;
}

.coauthor-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.coauthor-link:hover {
    text-decoration: underline;
    color: var(--button-primary-bg);
}

.coauthor-link:not(:last-child)::after {
    content: ',';
    margin-right: 0.25rem;
    color: var(--text-secondary);
}

.stories-section {
    background: var(--post-bg);
    border-radius: 16px;
    border: 1px solid var(--post-border);
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stories-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stories-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

/* Компактные превью историй */
.story-preview-item {
    flex-shrink: 0;
    width: 56px;
    height: 80px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--sidebar-bg);
}

.story-preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.story-preview-item img,
.story-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Индикатор непросмотренной истории */
.story-preview-item.unviewed {
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Индикатор видео */
.story-video-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.story-video-indicator svg {
    margin-left: 1px;
}

/* Если нет историй */
.no-stories {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Кнопка добавления истории */
.add-story-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.add-story-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.add-story-btn svg {
    width: 16px;
    height: 16px;
}

.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.story-modal-content {
    background: linear-gradient(145deg, var(--post-bg), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.story-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.story-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg) scale(1.1);
    color: var(--text-primary);
}

.story-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-modal-body::-webkit-scrollbar {
    width: 6px;
}

.story-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.story-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.story-upload-area {
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 2px dashed rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: 
        radial-gradient(circle at 30% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(155, 89, 182, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.story-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(52, 152, 219, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.story-upload-area:hover {
    border-color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
}

.story-upload-area:hover::before {
    animation: shimmer 2s infinite;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.story-upload-area svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--accent-color);
    filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.25));
}

.story-upload-area p {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.story-upload-area span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

#storyPreview {
    position: relative;
    margin-bottom: 1rem;
    animation: fadeIn 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.story-preview-container {
    position: relative;
    width: 100%;
    max-width: 320px; 
    margin: 0 auto;
}

.story-preview-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; 
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.story-preview.story-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 16px;
}

.story-preview.story-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    border-radius: 16px;
}

.story-preview.story-preview-video.contain-mode {
    object-fit: contain;
}

.story-text-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-top: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.story-text-input:focus {
    border-color: var(--accent-color);
    background: rgba(52, 152, 219, 0.05);
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.1),
        0 4px 12px rgba(52, 152, 219, 0.1);
    outline: none;
}

.story-text-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.story-char-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: right;
    transition: color 0.2s ease;
}

.story-char-counter.warning {
    color: var(--warning-color);
    font-weight: 500;
}

.story-char-counter.error {
    color: var(--error-color);
    font-weight: 600;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Дополнительные опции */
.story-options {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.story-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.story-option-item:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.story-option-item.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.story-option-item svg {
    width: 16px;
    height: 16px;
}

.story-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.03), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.story-modal-footer .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.story-modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.story-modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    color: white;
    border: none;
    box-shadow: 
        0 4px 12px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.story-modal-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.story-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.story-modal-footer .btn-primary:active::before {
    width: 300px;
    height: 300px;
}

/* Индикатор загрузки */
.story-uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.story-upload-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.story-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--button-primary-bg));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.story-format-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.story-format-indicator svg {
    width: 14px;
    height: 14px;
}

.story-fit-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.875rem;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-fit-toggle:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.story-fit-toggle svg {
    width: 16px;
    height: 16px;
}

.story-orientation-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-orientation-warning svg {
    width: 20px;
    height: 20px;
    color: #ffc107;
    flex-shrink: 0;
}

.story-orientation-warning p {
    color: var(--text-primary);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

.story-orientation-warning strong {
    color: #ffc107;
}

.story-preview-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.story-preview-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.story-preview-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

.story-preview-volume:hover {
    background: rgba(255, 255, 255, 0.3);
}

.comment-replies {
    margin-left: 48px;
    margin-top: 0.75rem;
}

.comment-reply {
    position: relative;
    padding-left: 1rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.375rem;
}

.comment-reply-btn,
.comment-edit-btn,
.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-reply-btn:hover {
    background: var(--sidebar-bg);
    color: var(--accent-color);
}

.comment-edit-btn:hover {
    background: var(--sidebar-bg);
    color: var(--text-primary);
}

.comment-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Поле ввода ответа */
.comment-reply-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--sidebar-bg);
    border-radius: 8px;
}

.comment-reply-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    outline: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.comment-reply-input:focus {
    border-color: var(--accent-color);
    background: var(--post-bg);
}

.comment-reply-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-reply-submit:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.comment-replies .comment-replies {
    margin-left: 32px;
}

.comment-replies .comment-replies .comment-reply-btn {
    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-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.gallery-album-cover {
    width: 100%;
    height: 126px;
    position: relative;
    overflow: hidden;
    background: var(--sidebar-bg);
}

.album-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 100%;
    gap: 1px;
    background: var(--post-border);
}

.album-cover-img-container {
    overflow: hidden;
    background: var(--sidebar-bg);
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-album-item:hover .album-cover-img {
    transform: scale(1.05);
}

.album-empty-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sidebar-bg), var(--input-bg));
    color: var(--text-secondary);
    opacity: 0.5;
}

.album-info {
    padding: 12px;
    height: 54px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--post-bg);
}

.album-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.album-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Кнопка создания альбома */
.album-create-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 2px dashed var(--post-border);
    background: var(--sidebar-bg);
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.album-create-button:hover {
    background: var(--input-bg);
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

.album-create-button svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.album-create-button:hover svg {
    transform: scale(1.1);
}

.album-create-button span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== МОДАЛЬНОЕ ОКНО ПРОСМОТРА АЛЬБОМА ========== */
.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.album-modal.active {
    display: flex;
}

.album-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    position: relative;
    z-index: 5;
}

.album-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.album-modal-title svg {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
}

/* Кнопки действий в модальном окне альбома */
.album-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.album-modal-edit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    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;
}

.album-modal-edit:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

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

.album-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    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;
}

.album-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.album-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.album-modal-content::-webkit-scrollbar {
    width: 8px;
}

.album-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.album-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.album-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.album-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.album-grid:has(.album-loading) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.album-grid-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.album-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-grid-item:hover img {
    transform: scale(1.1);
}

.album-grid-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-grid-item:hover::after {
    opacity: 1;
}

.album-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    width: 100%;
}

.album-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.album-loading span {
    display: block;
    width: 100%;
}

.album-no-photos {
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* ========== МОДАЛЬНОЕ ОКНО СОЗДАНИЯ/РЕДАКТИРОВАНИЯ АЛЬБОМА ========== */
.album-create-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.album-create-modal.active {
    display: flex;
}

.album-create-container {
    background: var(--post-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: albumModalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes albumModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.album-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--sidebar-bg), transparent);
    border-bottom: 1px solid var(--post-border);
    flex-shrink: 0;
}

.album-create-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.album-create-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sidebar-bg);
    border: 1px solid var(--post-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.album-create-close:hover {
    background: var(--input-bg);
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--accent-color);
}

.album-create-close svg {
    width: 18px;
    height: 18px;
}

.album-create-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.album-create-body::-webkit-scrollbar {
    width: 6px;
}

.album-create-body::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.album-create-body::-webkit-scrollbar-thumb {
    background: var(--post-border);
    border-radius: 3px;
}

.album-form-group {
    margin-bottom: 1.5rem;
}

.album-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.album-form-input,
.album-form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.album-form-input:focus,
.album-form-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
    background: var(--post-bg);
}

.album-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.album-char-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    text-align: right;
    transition: color 0.2s ease;
}

.album-char-counter.warning {
    color: var(--warning-color);
    font-weight: 500;
}

.album-char-counter.error {
    color: var(--error-color);
    font-weight: 600;
}

/* Секция фотографий */
.album-photos-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--post-border);
}

.album-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.album-photos-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.album-upload-actions {
    display: flex;
    gap: 0.75rem;
}

.album-upload-btn,
.album-add-existing-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.album-upload-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.album-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
}

.album-add-existing-btn {
    background: var(--sidebar-bg);
    border: 1px solid var(--post-border);
    color: var(--text-primary);
}

.album-add-existing-btn:hover {
    background: var(--input-bg);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.album-upload-btn svg,
.album-add-existing-btn svg {
    width: 18px;
    height: 18px;
}

/* Сетка фотографий */
.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.875rem;
}

.album-photo-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--sidebar-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.album-photo-item:hover {
    transform: scale(1.03);
}

.album-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-photo-remove {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    opacity: 0;
}

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

.album-photo-remove:hover {
    background: var(--error-color);
    transform: scale(1.15);
}

.album-photo-remove svg {
    width: 14px;
    height: 14px;
}

.album-photo-upload-placeholder {
    aspect-ratio: 1/1;
    border-radius: 10px;
    border: 2px dashed var(--post-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: var(--sidebar-bg);
}

.album-photo-upload-placeholder:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--input-bg);
    transform: scale(1.03);
}

.album-photo-upload-placeholder svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0.5rem;
}

.album-photo-upload-placeholder span {
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
}

/* Футер модального окна создания */
.album-create-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.875rem;
    padding: 1.5rem;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--post-border);
    flex-shrink: 0;
}

.album-cancel-btn,
.album-save-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.album-cancel-btn {
    background: var(--sidebar-bg);
    border: 1px solid var(--post-border);
    color: var(--text-primary);
}

.album-cancel-btn:hover {
    background: var(--input-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.album-save-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
    min-width: 120px;
}

.album-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
}

.album-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== МОДАЛЬНОЕ ОКНО ВЫБОРА СУЩЕСТВУЮЩИХ ФОТО ========== */
.album-select-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.album-select-modal.active {
    display: flex;
}

.album-select-container {
    background: var(--post-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: albumModalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.album-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--sidebar-bg), transparent);
    border-bottom: 1px solid var(--post-border);
    flex-shrink: 0;
}

.album-select-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.album-select-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.album-select-body::-webkit-scrollbar {
    width: 6px;
}

.album-select-body::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.album-select-body::-webkit-scrollbar-thumb {
    background: var(--post-border);
    border-radius: 3px;
}

.album-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.875rem;
}

.album-select-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--sidebar-bg);
    border: 2px solid transparent;
}

.album-select-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.album-select-item:hover img {
    transform: scale(1.05);
}

.album-select-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.album-select-item:hover::after {
    opacity: 1;
}

.album-select-item.selected {
    border-color: var(--accent-color);
}

.album-select-item.selected::after {
    background: rgba(52, 152, 219, 0.3);
    opacity: 1;
}

.album-select-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.album-select-item.selected .album-select-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.album-select-check svg {
    width: 20px;
    height: 20px;
}

.album-select-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--post-border);
    flex-shrink: 0;
}

.album-select-count {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.album-select-count span {
    font-weight: 600;
    color: var(--accent-color);
}

.album-select-buttons {
    display: flex;
    gap: 0.875rem;
}

/* Состояние когда нет фотографий */
.album-no-photos {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.album-no-photos svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.3;
}

.album-no-photos p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.album-no-photos span {
    font-size: 0.9375rem;
    display: block;
    color: var(--text-secondary);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== СТАТЬИ В МЕДИА-ГАЛЕРЕЕ ========== */
.gallery-article-item {
    position: relative;
    width: 180px;
    height: 240px;
    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);
    display: flex;
    flex-direction: column;
}

.gallery-article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.article-cover {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    background: var(--sidebar-bg);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-article-item:hover .article-cover img {
    transform: scale(1.05);
}

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

.article-cover-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.article-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.75rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta svg {
    width: 12px;
    height: 12px;
}

/* Кнопка создания статьи */
.article-create-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 240px;
    border-radius: 12px;
    border: 2px dashed var(--post-border);
    background: var(--sidebar-bg);
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.article-create-button:hover {
    background: var(--input-bg);
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

.article-create-button svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.article-create-button:hover svg {
    transform: scale(1.1);
}

.article-create-button span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Меню действий статьи */
.article-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.article-menu-btn {
    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;
    transition: all 0.2s ease;
    opacity: 0;
}

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

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

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

.article-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 100;
    overflow: hidden;
    margin-top: 4px;
}

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

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

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

.article-menu-item svg {
    width: 16px;
    height: 16px;
}

/* ========== СИСТЕМА КЛИПОВ ========== */

/* Клипы в медиа-галерее */
.gallery-item.clip-item {
    aspect-ratio: 9/16;
    width: 160px;
    height: 284px;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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