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

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

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

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

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

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

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

.friend-menu-btn.active,
.post-menu-btn.active {
    background: var(--sidebar-bg);
    color: var(--accent-color);
}

.community-actions .btn {
    transition: all 0.2s ease;
}

.community-actions .btn-secondary {
    background: var(--button-secondary);
    color: var(--text-primary);
}

.community-actions .btn-secondary:hover {
    background: var(--button-secondary-bg);
    color: white;
    transform: translateY(-2px);
}

.post-preview-poll {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--sidebar-bg);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--accent-color);
}   

.shared-post-deleted {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--sidebar-bg);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    gap: 0.75rem;
}

.shared-post-deleted svg {
    width: 24px;
    height: 24px;
    color: var(--error-color);
}

.show-all-friends-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border-top: 1px solid var(--post-border);
    transition: background 0.2s ease;
}

.show-all-friends-btn:hover {
    background: var(--sidebar-bg);
}

.show-all-friends-btn svg {
    width: 16px;
    height: 16px;
}

.poll-duration-dropdown {
    position: relative;
    flex: 1; 
}

.poll-duration-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%; 
}

.poll-duration-button:hover {
    background: var(--sidebar-bg);
    border-color: var(--accent-color);
}

.poll-duration-button svg {
    width: 16px;
    height: 16px;
}

.poll-duration-button .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.poll-duration-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.poll-duration-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    right: 0; 
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 12px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
    display: none;
}

.poll-duration-menu.show {
    display: block;
}

.poll-duration-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.poll-duration-option:hover {
    background: var(--sidebar-bg);
}

.poll-duration-option.selected {
    background: var(--sidebar-bg);
    color: var(--accent-color);
}

.duration-option-text {
    flex: 1;
}

.duration-option-label {
    font-weight: 500;
    display: block;
}

.more-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; 
}

.more-media-overlay span {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

.media-item.more-media::after {
    display: none;
}

.media-item.more-media {
    position: relative;
    cursor: pointer;
}

/* ========== СОВРЕМЕННЫЙ АУДИОПЛЕЕР ========== */
.post-audio-files {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-audio-player {
    background: var(--sidebar-bg);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modern-audio-player:hover {
    background: var(--input-bg);
}

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

/* Кнопка Play/Pause */
.audio-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-play-btn svg {
    width: 18px;
    height: 18px;
}

.audio-play-btn .play-icon {
    margin-left: 2px;
}

/* Основная секция плеера */
.audio-main-section {
    flex: 1;
    min-width: 0;
}

/* Название трека */
.audio-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Контролы */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Таймкоды */
.audio-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    user-select: none;
}

.audio-time.current-time {
    text-align: right;
}

/* Контейнер прогресс-бара */
.audio-progress-container {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 0 4px;
}

/* Основа прогресс-бара */
.audio-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--post-border);
    border-radius: 2px;
    overflow: visible;
}

/* Буферизация */
.audio-buffer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 2px;
    width: 0%;
    z-index: 1;
}

/* Заполнение прогресса */
.audio-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0%;
    z-index: 2;
}

/* Ручка прогресс-бара */
.audio-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border: 2px solid var(--post-bg);
    border-radius: 50%;
    left: 0%;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: grab;
}

.audio-progress-handle:active {
    cursor: grabbing;
}

.audio-progress-container:hover .audio-progress-handle,
.audio-progress-container.dragging .audio-progress-handle {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Контроль громкости */
.audio-volume-control {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 0.5rem;
}

/* Кнопка громкости с круглым фоном */
.volume-btn {
    width: 32px;
    height: 32px;
    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.2s ease;
}

.volume-btn:hover {
    background: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

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

/* Обертка слайдера громкости с невидимым мостом */
.volume-slider-wrapper {
    position: absolute;
    right: 100%; 
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 32px;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding-right: 8px;
}

/* Создаем невидимый мост между кнопкой и слайдером */
.volume-slider-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 100%;
    z-index: -1;
}

/* Показываем при наведении на контейнер */
.audio-volume-control:hover .volume-slider-wrapper {
    opacity: 1;
    pointer-events: all;
}

/* Контейнер слайдера */
.volume-slider-container {
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 16px;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: calc(100% - 8px);
}

/* Слайдер громкости */
.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, 
        var(--accent-color) 0%, 
        var(--accent-color) 70%, 
        var(--post-border) 70%, 
        var(--post-border) 100%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

.volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--post-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--post-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Состояние воспроизведения */
.modern-audio-player.playing {
    background: var(--input-bg);
}

.modern-audio-player.playing .audio-play-btn {
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 2px 12px rgba(52, 152, 219, 0.3);
    }
}

/* Аудиоплеер в лайтбоксе */
.lightbox-audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    min-width: 500px;
    max-width: 90vw;
}

.lightbox-audio-container .modern-audio-player {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lightbox-audio-container .modern-audio-player:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-audio-container .audio-title {
    color: white;
    font-size: 1rem;
    text-align: center;
}

.lightbox-audio-container .audio-time {
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-audio-container .volume-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-audio-container .volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lightbox-audio-container .volume-slider-container {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.audio-visualization {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--button-primary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.lightbox-audio-container.playing .audio-visualization {
    animation: pulse 1s infinite;
}

.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;
    min-height: 36px;
}

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

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

.post-media {
    margin: 0.75rem 0;
    display: grid;
    gap: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.media-item {
    position: relative;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.media-item video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Специальные стили для одиночного медиа */
.post-media.media-1 {
    grid-template-columns: 1fr;
    max-height: 500px;
    min-height: 280px;
}

.post-media.media-1 .media-item {
    height: 100%;
    max-height: 500px;
    min-height: 280px;
}

/* Для вертикальных видео */
.post-media.media-1 .media-item.vertical-video {
    max-height: 450px;
    background: #000;
}

.media-item.vertical-image img,
.post-media.media-1.single-vertical-image .media-item img,
.post-media.media-1.single-vertical-video .media-item video {
    object-fit: contain;
    background: #000;
}

.post-media.media-1.single-vertical-image,
.post-media.media-1.single-vertical-video {
    height: clamp(320px, 78vh, 960px);
    max-height: clamp(320px, 78vh, 960px);
    min-height: clamp(320px, 78vh, 960px);
}

.post-media.media-1.single-vertical-image .media-item,
.post-media.media-1.single-vertical-video .media-item {
    height: 100%;
    max-height: none;
    min-height: 100%;
}

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

/* Клипы в медиа-галерее */
.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;
}

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

.clip-viewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 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;
    margin: 0 auto;
    background: #000;
}

.clip-player-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 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 .clip-info {
    position: absolute;
    bottom: 10px;
    left: 16px;
    right: 70px;
    z-index: 10;
    pointer-events: auto;
    transition: bottom 0.3s ease; 
}

.clip-player-container.show-controls .clip-info {
    bottom: 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-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%;
    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;
}
