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

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

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

/* Клипы в медиа-галерее */
.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.fullscreen,
.clip-viewer.maximized {
    position: fixed;
    width: 100vw;
    height: 100vh;
}

.clip-viewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-viewer-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    margin: 0 auto;
    background: #000;
}

.clip-player-container {
    position: relative;
    width: 100%;
    height: 100vh;
    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-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-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);
}

.clip-follow-btn.pending {
    background: rgba(251, 191, 36, 0.2);
    color: rgb(251, 191, 36);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

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

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

.clip-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.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 {
    margin: 0.75rem 0;
    background: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.post-clips .clip-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    max-height: 500px;
    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;
    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;
}
