* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
        .video-card { transition: transform 0.3s ease; }
        .video-card:hover { transform: scale(1.05); }
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        .modal { display: none; }
        .modal.active { display: flex; }
        .player-container { 
            position: fixed; 
            inset: 0; 
            background: black; 
            z-index: 9999;
            display: flex;
            flex-direction: column;
        }
        @media (max-width: 1023px) {
    .player-container { flex-direction: column; }
    .player-video-container { 
        height: 100vh !important;
        position: relative;
    }
    .player-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        z-index: 10000;
        transform: translateY(calc(100% - 80px));
        transition: transform 0.3s ease;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
    .player-sidebar.expanded {
        transform: translateY(0);
    }
    .player-sidebar::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
}
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .fade-in { animation: fadeIn 0.3s ease-in-out; }
        .loader {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 3px solid #8b5cf6;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .episode-card {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}
.episode-card:hover { 
    transform: scale(1.05); 
    background: #4B5563;
    border-color: #8b5cf6;
}
.episode-card.playing {
    background: #8b5cf6;
    border-color: #8b5cf6;
}
.episode-card img {
    display: none;
}
.episode-number {
    position: static;
    transform: none;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-shadow: none;
}
.episode-duration {
    display: none;
}
.playing-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Адаптивная сетка */
@media (min-width: 1024px) {
    #episodesList {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1023px) and (min-width: 640px) {
    #episodesList {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 639px) {
    #episodesList {
        grid-template-columns: repeat(4, 1fr);
    }
}
		
/* Контейнер плеера - всегда по центру */
#videoFullscreenWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Video.js плеер - вертикальный формат (9:16) */
.video-js {
    width: 56.25vh !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: calc(100vh - 80px) !important;
    position: relative !important;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
}

/* Само видео - сохраняем вертикальные пропорции */
.video-js .vjs-tech {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Контролы Video.js внизу */
.video-js .vjs-control-bar {
    display: flex !important;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Большая кнопка Play по центру */
.video-js .vjs-big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    border-radius: 50%;
    background-color: rgba(139, 92, 246, 0.9);
    border: none;
}

.video-js .vjs-big-play-button:hover {
    background-color: rgba(139, 92, 246, 1);
}

/* Loader поверх плеера */
#videoLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

/* Fullscreen режим */
#videoFullscreenWrapper:fullscreen .video-js,
#videoFullscreenWrapper:-webkit-full-screen .video-js {
    width: auto !important;
    height: 100vh !important;
    max-width: calc(100vh * 9 / 16) !important; /* Сохраняем 9:16 */
}

#videoFullscreenWrapper:fullscreen .video-js .vjs-tech,
#videoFullscreenWrapper:-webkit-full-screen .video-js .vjs-tech {
    object-fit: contain;
}

/* ✅ Контролы всегда видны на паузе */
.video-js.vjs-paused .vjs-control-bar,
.video-js.vjs-user-inactive.vjs-paused .vjs-control-bar {
    opacity: 1 !important;
    display: flex !important;
}

/* ✅ При наведении контролы видны */
.video-js:hover .vjs-control-bar {
    opacity: 1 !important;
}

/* Мобильные устройства */
@media (max-width: 1024px) {
    .video-js {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
    }
}
	
/* Анимации для страницы подписок */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Карточки тарифных планов */
.subscription-plan-card {
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.subscription-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.subscription-plan-card:hover::before {
    left: 100%;
}

/* Стили для сообщения о необходимости авторизации */
.auth-required-message svg {
    animation: pulse 2s ease-in-out infinite;
}

/* Улучшенная кнопка выбора плана */
.subscription-plan-card button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.subscription-plan-card button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.subscription-plan-card button:hover::before {
    width: 300px;
    height: 300px;
}

/* Плавное появление списка планов */
#plansContainer > div {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

#plansContainer > div:nth-child(1) { animation-delay: 0.1s; }
#plansContainer > div:nth-child(2) { animation-delay: 0.2s; }
#plansContainer > div:nth-child(3) { animation-delay: 0.3s; }
#plansContainer > div:nth-child(4) { animation-delay: 0.4s; }

/* Улучшенный список преимуществ */
.subscription-plan-card ul li {
    transition: transform 0.2s, color 0.2s;
}

.subscription-plan-card ul li:hover {
    transform: translateX(5px);
    color: #fff;
}

/* Респонсивность */
@media (max-width: 768px) {
    .subscription-plan-card {
        transform: none !important;
    }
    
    .subscription-plan-card:hover {
        transform: translateY(-4px) !important;
    }
}	
	
@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Выпадающий список результатов поиска */
        .search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 8px;
            background: #1f2937;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            max-height: 500px;
            overflow-y: auto;
            z-index: 1000;
        }
        
        .search-dropdown.hidden {
            display: none;
        }
        
        .search-result-item {
            display: flex;
            align-items: center;
            padding: 12px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #374151;
        }
        
        .search-result-item:last-child {
            border-bottom: none;
        }
        
        .search-result-item:hover {
            background: #374151;
        }
        
        .search-result-thumbnail {
            width: 48px;
            height: 72px;
            object-fit: cover;
            border-radius: 6px;
            flex-shrink: 0;
        }
        
        .search-result-info {
            margin-left: 12px;
            flex: 1;
            min-width: 0;
        }
        
        .search-result-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .search-result-meta {
            font-size: 12px;
            color: #9ca3af;
        }
        
        .search-no-results {
            padding: 24px;
            text-align: center;
            color: #9ca3af;
        }
        
        .search-loading {
            padding: 24px;
            text-align: center;
            color: #9ca3af;
        }
	
	/* ========== СОЦИАЛЬНЫЕ ФУНКЦИИ: КОММЕНТАРИИ, ЛАЙКИ, РЕЙТИНГИ ========== */

/* Секция комментариев */
.comments-section {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.comment-form {
    background: rgba(31, 41, 55, 0.6);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.comment-textarea::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-counter {
    font-size: 12px;
    color: #9ca3af;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

/* Комментарий */
.comment {
    background: rgba(31, 41, 55, 0.4);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.comment:hover {
    background: rgba(31, 41, 55, 0.6);
}

.comment.reply {
    margin-left: 32px;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    padding-left: 12px;
}

.comment.reply.level-0 { margin-left: 0px; }
.comment.reply.level-1 { margin-left: 32px; }
.comment.reply.level-2 { margin-left: 64px; }
.comment.reply.level-3 { margin-left: 96px; }
.comment.reply.level-4 { margin-left: 128px; }
.comment.reply.level-5 { margin-left: 160px; }

/* Мобильная версия - меньший отступ */
@media (max-width: 640px) {
    .comment.reply.level-1 { margin-left: 20px; }
    .comment.reply.level-2 { margin-left: 40px; }
    .comment.reply.level-3 { margin-left: 60px; }
    .comment.reply.level-4 { margin-left: 80px; }
    .comment.reply.level-5 { margin-left: 100px; }
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    flex: 1;
}

.comment-username {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.comment-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.comment-content {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.comment-content.deleted {
    color: #6b7280;
    font-style: italic;
}

.comment-edited {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.comment-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-btn:hover {
    color: white;
    background: rgba(139, 92, 246, 0.1);
}

.comment-btn.liked {
    color: #ef4444;
}

.comment-btn.liked:hover {
    color: #dc2626;
}

.comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопка "Показать ответы" */
.show-replies-btn {
    color: #8b5cf6;
    font-size: 13px;
    margin-top: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.show-replies-btn:hover {
    text-decoration: underline;
}

/* Форма ответа на комментарий */
.reply-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

/* Пагинация комментариев */
.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-btn {
    background: rgba(55, 65, 81, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: #9ca3af;
    font-size: 14px;
}

/* Сортировка комментариев */
.comments-sort {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sort-btn {
    background: rgba(55, 65, 81, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    color: white;
}

.sort-btn:hover {
    color: white;
    border-color: #8b5cf6;
}

/* Лайки на карточках */
.like-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.like-button:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    transform: scale(1.05);
}

.like-button.liked {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.like-button .heart-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.like-button.liked .heart-icon {
    color: #ef4444;
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.like-count {
    color: white;
    font-size: 13px;
    font-weight: 600;
}


/* Компактный рейтинг */
.rating-stars-compact {
    display: flex;
    gap: 2px;
}

.star-compact {
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4b5563;
}

.star-compact.filled {
    color: #fbbf24;
}

.star-compact:hover,
.star-compact.hover {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Модальное окно комментариев */
.comments-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.comments-modal.active {
    display: flex;
}

.comments-modal-content {
    background: #111827;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.comments-modal-header {
    padding: 20px;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.comments-auth-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

/* Стили для кнопки лайка сериала */
#seriesLikeBtn.liked #seriesLikeIcon {
    fill: #ef4444;
    stroke: #ef4444;
}

#seriesLikeBtn.liked {
    background: rgba(239, 68, 68, 0.2);
}

/* Иконка комментариев на карточках */
.comment-icon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: white;
    z-index: 9;
}

.comment-icon-badge svg {
    width: 14px;
    height: 14px;
}

/* Модальное окно жалобы */
.report-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100003;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.report-modal.active {
    display: flex;
}

.report-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.report-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.report-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.report-reason-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
}

.report-reason-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.report-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
}

/* Loader для комментариев */
.comments-loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

/* Адаптивность */
@media (max-width: 640px) {
    .comment.reply {
        margin-left: 20px;
    }
    
    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .rating-stars .star {
        font-size: 20px;
    }
    
    .like-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}
/* Стили подтверждения email */
.spinner {
    border: 4px solid rgba(139, 92, 246, 0.1);
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ffffff;
}

 /* Стили для всплывающего окна с cookies */
        .cookie-popup {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            padding: 20px;
            max-width: 600px;
            width: 90%;
            z-index: 10000;
            font-family: Arial, sans-serif;
            font-size: 14px;
            line-height: 1.5;
            display: none;
        }

        .cookie-popup.show {
            display: block;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateX(-50%) translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }

        .cookie-popup-content {
            margin-bottom: 15px;
            color: #333;
        }

        .cookie-popup-button {
            background: #007bff;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        .cookie-popup-button:hover {
            background: #0056b3;
        }

        .cookie-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.1);
            z-index: 9999;
            display: none;
        }

        .cookie-popup-overlay.show {
            display: block;
        }

.cookie-popup a {
    color: #3498db;          /* фирменный синий цвет, как на privacy.html */
    text-decoration: underline;
    font-weight: 500;
}

.cookie-popup a:hover {
    color: #2176c7;
    text-decoration: none;
}


        /* Адаптивность для мобильных устройств */
        @media (max-width: 768px) {
            .cookie-popup {
                bottom: 10px;
                padding: 15px;
                font-size: 13px;
            }
            
            .cookie-popup-button {
                padding: 8px 16px;
                font-size: 13px;
            }
        }
	
	
 /* ============================================ */
/* ПОЛНОСТЬЮ ИСПРАВЛЕННЫЙ HERO SLIDER          */
/* ============================================ */

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100vh !important;
    min-height: 500px;
    overflow: hidden;
}

/* Слайды */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-slide.active { opacity: 1; }

.hero-slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}
.hero-slide-text {
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}
.hero-slide h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.hero-slide-button {
    display: inline-block;
    background: #8b5cf6;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}
.hero-slide-button:hover {
    background: #7c3aed;
    transform: scale(1.07);
}

/* Стрелки навигации */
#prevSlide,
#nextSlide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
#prevSlide { left: 16px; }
#nextSlide { right: 16px; }

/* Десктоп: показ при наведении */
.hero-slider-container:hover #prevSlide,
.hero-slider-container:hover #nextSlide {
    opacity: 1;
}

/* Мобильные: скрыть стрелки */
@media (max-width: 768px) {
    #prevSlide,
    #nextSlide {
        display: none !important;
    }
}

/* Точки-индикаторы */
#sliderDots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background: #8b5cf6;
    width: 36px;
    border-radius: 8px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    /* Уменьшить высоту контейнера на мобильных */
    .hero-slider-container {
        height: 70vh !important;
        min-height: 400px;
    }
    
    /* Оптимизация фона для мобильных */
    .hero-slide {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    /* Улучшить читаемость текста */
    .hero-slide-content {
        background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    }
    
    .hero-slide h2 { 
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-slide-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    #sliderDots {
        bottom: 36px;
        gap: 16px;
    }
    
    .slider-dot.active { width: 40px; }
}
@media (max-width: 480px) {
    /* Еще меньше высота на маленьких экранах */
    .hero-slider-container {
        height: 60vh !important;
        min-height: 350px;
    }
    
    .hero-slide h2 { 
        font-size: 1.9rem !important;
        line-height: 1.1;
    }
    
    .hero-slide-text {
        padding: 0 0.75rem;
    }
    
    .hero-slide-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    #sliderDots {
        bottom: 24px;
    }
}

/* Если слайд только один — убираем стрелки */
.hero-slider-container.single-slide #prevSlide,
.hero-slider-container.single-slide #nextSlide {
    display: none !important;
}

/* Бургер-меню */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* Мобильный поиск */
.mobile-search-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.mobile-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.mobile-search-dropdown::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 3px;
}

.mobile-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.mobile-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Личный кабинет — мобильная адаптация */
@media (max-width: 640px) {
    #profileSection h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    #profileSection .bg-gray-900.rounded-2xl {
        padding: 1.25rem;
    }
}

/* Стили для badge непрочитанных сообщений */
.profile-tab {
    position: relative;
}

#unreadBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid #111827; /* border цвета фона */
    pointer-events: none; /* Не блокирует клик на кнопку */
}

#unreadBadge.hidden {
    display: none !important;
}

/* Анимация появления */
@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#unreadBadge:not(.hidden) {
    animation: badge-bounce 0.5s ease;
}


/* Скрытие контента визуально, но доступного для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}