/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #121212;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Блок чата */
.chat {
    height: calc(100vh - 48px - 48px); /* Учитываем высоту header */
    display: flex;
    flex-direction: column;
}

/* Шапка чата */
.chat__header {

}

body.light-theme .chat__header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(138, 137, 137, 0.986);
}

.chat__tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    align-items: center;
}

.chat__tab-btn {
    background-color: #99a2ad;
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat__tab-btn.active {
    background-color: #99a2ad;
    color: white;
}

.chat__tab-btn:hover {
    background-color: #99a2ad;
}

.chat-tab {
    display: none;
    height: 100%;
    flex-direction: column;
}

.chat-tab.active {
    display: flex;
}

/* Область ввода сообщений */
.chat__input-area {
    position: sticky;
    bottom: 0;
    background-color: #000;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    z-index: 1;
    border-top: 1px solid #333;
}

/* Добавьте обертку для поля ввода с кнопками */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    gap: 5px;
}


.chat__title {
    font-size: 1.5rem;
    font-weight: bold;
}

.chat__interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Область ввода сообщения */
.chat__input {
    flex: 1;
    min-height: 36px;
    max-height: 36px;
    padding: 8px 40px 8px 12px; /* Добавляем отступ справа для кнопки */
    font-size: 13px;
    border: 1px solid #d3d9de;
    border-radius: 20px;
    background-color: #000;
    color: #fff;
}

.chat__input::placeholder {
    color: #8a8a8a;
}

/* Кнопка отправки сообщений */
.chat__button {
    min-width: 36px;
    height: 36px;
    padding: 0;
    background: #99a2ad;
    color: white;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat__button:hover {
    background: #99a2ad;
}

/* Стили для блока стоимости сообщений */
.chat-cost-info {
    background: #99a2ad;
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 13px;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.chat__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 80px; /* Высота футера + отступ */
}

.chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.private-chat-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.private-chat-item:hover {
    background-color: #2a2a2a;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.chat-info {
    flex: 1;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.chat-nickname {
    font-weight: bold;
    color: #fff;
}

.chat-age-gender {
    color: #888;
    font-size: 0.9em;
}

.last-message {
    color: #8a8a8a;
    font-size: 13px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    color: #8a8a8a;
    font-size: 12px;
    text-align: right;
}



.private-chat-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.private-chat-header {
    padding: 15px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    color: white;
}

.username {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.online-status {
    font-size: 14px;
    color: #888;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    gap: 0 !important;
}

.chat-input-area {
    padding: 15px;
    background: #2a2a2a;
    display: flex;
    gap: 10px;
    align-items: center;
}

.attach-file {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 20px;
}

.private-message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 20px;
    background: #1a1a1a;
    color: white;
}

.emoji-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: all 0.3s;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.emoji-button:hover {
    transform: scale(1.2);
}

/* Стили для вкладок */
.tab-content {
    display: none;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 15px;
    background-color: #1a1a1a;
}

.tab-content h3 {
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.no-messages {
    color: #888;
    text-align: center;
    padding: 20px;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.send-private-message {
    padding: 8px 15px;
    background: #99a2ad;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.private-message {
    margin: 10px 0;
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.private-message.sent {
    margin-left: auto;

    align-items: flex-end;

}

.private-message.received {
    margin-right: auto;

    align-items: flex-start;
}

.message-content {
    padding: 10px;
    border-radius: 10px;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}


/* Блок регистрации */
.register {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center; /* Надпись по центру */
}

.register__title {
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.register__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.register__input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.register__button {
    width: 100%;
    padding: 10px;
    background-color: #99a2ad;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.register__button:hover {
    background-color: #99a2ad;
}

.register__link {
    width: 100%;
    padding: 10px;
    background-color: #99a2ad;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.register__link:hover {
    text-decoration: underline;
}

.register__error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* Блок логина */
.login {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center; /* Надпись по центру */
}

.login_hidden {
    display: none;
}

.login__title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.login__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.login__input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login__error {
    color:red;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.login__button {
    width: 100%;
    padding: 10px;
    background-color: #99a2ad;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.login__button:hover {
    background-color: #99a2ad;
}

/* Сообщения */
.chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    gap: 0px;
    margin-bottom: 0;
}

.message__default {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    background-color: #3a3a3a;
    color: #12ac71;
    word-wrap: break-word;
    position: relative;
    flex-direction: row; /* Сообщения выравниваются по горизонтали */ 
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 10px;
    border-radius: 8px;
    background-color: #000;
    color: #e0e0e0;
    word-wrap: break-word;
    position: relative;
    flex-direction: row; /* Сообщения выравниваются по горизонтали */
    border-top: 1px solid #333; /* Разделительная линия сверху */
    border-bottom: 1px solid #333; /* Разделительная линия снизу */
    transition: background-color 0.2s ease;
}

.message:not(.current-user):hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.message.current-user {
    cursor: default !important;
}

.message.current-user:hover {
    cursor: default !important;
}

/* Стили для элементов сообщения */
.message__avatar,
.message__username {
    cursor: pointer;
}

.message__avatar:hover,
.message__username:hover {
    opacity: 0.8;
}

.message__username__default {
    font-weight: bold;
    color: #1025e1;
    margin-bottom: 5px;
}

.message__username {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--username-color, #ffcc00); /* Цвет задается через переменную */
    cursor: pointer; /* Устанавливаем курсор "палец" */
}

.message__username:hover {
    text-decoration: underline;
}

.message__text__default {
    color: #ffffff !important; 
    background-color: transparent !important; 
}


.message__text {
    color: var(--message-color, #e0e0e0); /* Цвет задается через переменную */
    font-size: 16px;
    line-height: 1.5;
}

.message__timestamp {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 3px;
    text-align: right;
}

/* Аватарка */
.message__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    cursor: pointer;
}

.message__user-info {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
}

.message__user-details {
    margin-left: 8px;
    color: #888;
    font-size: 0.9em;
}

/* Контент сообщения */
.message__content {
    flex: 1;
    margin-left: 10px;
}

.message__top-line {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 5px;
}

/* Добавляем курсор-указатель для аватара */
.message__avatar {
    cursor: pointer;
}

/* Личные сообщения */
.messages-header {
    background-color: #4a89dc;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #000;
}

.messages-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

#messages-tab {
    height: calc(100vh - 140px);
    padding: 20px;
    background: #1a1a1a;
}

.messages-list {
    height: calc(100% - 60px);
    overflow-y: auto;
    top: 60px;
    bottom: 48px;
}

.private-chat-item {
    background: #2a2a2a;
    margin-bottom: 10px;
    border-radius: 5px;
}


/* Системные сообщения */
.system-message {
    text-align: center; /* Выравнивание по центру */
    color: #ff6b6b;
    background-color: transparent;
    margin: 10px 0;
}

/* Стиль для скрытия/показа смайликов */

.emoji-picker-hidden {
    display: none; /* Скрывает список смайлов */
}

.emoji-area {
    position: relative; /* Для позиционирования */
}
.chat__emoji-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #8a8a8a;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Применение светлой темы к окну смайликов */
body.light-theme #emoji-picker {
    background-color: #ffffff;
    border-color: #dddddd;
    box-shadow: 0 2px 10px rgba(255, 254, 254, 0.1);
}

/* Стили для смайликов внутри окна */
#emoji-picker .emoji-item img {
    width: 32px; /* Увеличиваем размер смайликов */
    height: 32px;
    vertical-align: middle;
}

#emoji-picker button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 40px; /* Размера шрифта для смайлов можно изменить */
}

/* Стили для двойных широких смайликов */
#emoji-picker .emoji-item img[src*="/emojis/bed.gif"],
#emoji-picker .emoji-item img[src*="/emojis/beer.gif"],
#emoji-picker .emoji-item img[src*="/emojis/duel.gif"],
#emoji-picker .emoji-item img[src*="/emojis/blabla.gif"],
#emoji-picker .emoji-item img[src*="/emojis/kapyt.gif"],
#emoji-picker .emoji-item img[src*="/emojis/close.gif"],
#emoji-picker .emoji-item img[src*="/emojis/drink.gif"],
#emoji-picker .emoji-item img[src*="/emojis/family.gif"],
#emoji-picker .emoji-item img[src*="/emojis/frends.gif"],
#emoji-picker .emoji-item img[src*="/emojis/party.gif"],
#emoji-picker .emoji-item img[src*="/emojis/kiss1.gif"] {
    width: 48px; /* Делаем широкие смайлики шире */
    height: 32px;
}

#emoji-picker::-webkit-scrollbar {
    width: 8px;
}

#emoji-picker::-webkit-scrollbar-track {
    background: #1a1a1a;
}

#emoji-picker::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

#emoji-picker::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.emoji-item {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 20px;
}

.emoji-item:hover {
    background-color: #444;
}
.emoji-library-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.emoji-library-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.emoji-library-btn.active {
    background-color: #444;
}

.emoji-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 5px;
}

@keyframes emojiAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.emoji-img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

.emoji-img:hover {
    transform: scale(1.2);
}



/*Стиль главного блока */

.main-block {
    width: 100%; /* Растягиваем на всю ширину */
    height: 100vh; /* Растягиваем на всю высоту viewport */
    max-width: none; /* Убираем ограничение максимальной ширины */
    position: fixed; /* Фиксируем блок */
    top: 0;
    left: 0;
    transform: none; /* Убираем transform, так как используем fixed позиционирование */
    border-radius: 0; /* Убираем скругление углов */
    display: flex;
    flex-direction: column;
}


.main-block_hidden {
    display: none;
}

.main-block__header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #000; /* Синий цвет ВК */
    color: white;
    position: relative;
    height: 48px;
}

body.light-theme .main-block__header {
    background: #fff;
    color:#000;
}

.main-block__title {
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-block__footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #000000;
    border-top: 1px solid #333;
    padding: 10px 0;
    z-index: 1000;
}

/* Подключение Font Awesome для иконок */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #f5f5f5;
    padding: 10px 5px;
    border-top: 1px solid #e7e7e7;
}

.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #99a2ad;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 20%;
}

.icon-container {
    background-color: #f0f2f5;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.footer-btn i {
    font-size: 20px;
}

.footer-btn span {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.footer-btn:hover {
    color: #2688eb;
}

.footer-btn:hover .icon-container {
    background-color: #e3ebf5;
}

.footer-btn.active {
    color: #2688eb;
}

.footer-btn.active .icon-container {
    background-color: #e3ebf5;
}

/* Для мобильных устройств */
@media (max-width: 480px) {
    .icon-container {
        width: 40px;
        height: 40px;
    }
    
    .footer-btn span {
        font-size: 10px;
    }
    .emoji-picker {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .emoji-btn {
        right: 45px !important;
    }
}

/* Кнопка гамбургер */
.hamburger-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 10px;
    align-items: center;
}

body.light-theme .hamburger-btn {
    color: #444;
}

/* Меню */
.menu {
    position: absolute;
    top: 0;
    left: 0;
    height: 150 px; /* Занимает всю высоту главного блока */
    width: 30%; /* Занимает 10% ширины главного блока */
    background-color: #000000;
    color: white;
    display: flex; /* Скрыто по умолчанию */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
}

.menu.menu_visible {
    display: flex; /* Показываем меню */
}
.menu_hidden {
    display: none;
}

.menu__item {
    padding: 15px;
    background: none;
    border: none;
    color: white;
    text-align: center;
    width: 100%;
    cursor: pointer;
}

.menu__item:hover {
    background-color: #4a89dc;
}


/* Профили */
.profile {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
}

.profile__header {
    color: white;
    padding: 12px 15px;
    position: sticky;
    top: 0;
    background-color: #000000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.profile__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.profile__photos {
    position: relative;
    width: 100%;
    max-width: 600px; /* Ограничиваем ширину блока */
    margin: 0 auto; /* Центрируем блок */
    overflow: hidden; /* Скрываем содержимое за пределами блока */
}

.profile__photos img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.profile__form {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile__form label {
    width: 100%;
    display: block;
    margin-bottom: 8px;
    color: white;
}

/* Автоматическое изменение высоты поля "О себе" */
.profile__form textarea {
    min-height: 100px;
    max-height: 300px;
    resize: vertical;
    overflow: auto;
}

.profile__form input,
.profile__form select,
.profile__form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

/* Стили для кнопок в профиле */
.profile__form button[type="submit"],
.back-button {
    margin: 20px 10px;
    padding: 10px 20px;
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    min-width: 120px;
    display: inline-block;
    text-align: center;
}

/* Контейнер для кнопок */
.profile__buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

/* Исправление позиции кнопки назад */
.back-button {
    position: static;
    transform: none;
}

.back-button:hover {
    color: #4a89dc;
}

#photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#photo-gallery img {
    height: auto;
    object-fit: cover;
}


   /* Стили для слайдера */
/* В style.css добавьте/измените следующие стили: */

.swiper-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slide-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 4px;
    z-index: 10;
}

.slide-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.make-main-btn,
.delete-photo-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.swiper-button-next,
.swiper-button-prev {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
    opacity: 1;
}

/* Стили для случая когда фото только одно */
.swiper-container.single-slide .swiper-button-next,
.swiper-container.single-slide .swiper-button-prev {
    display: none;
}

.profile__photos {
    width: 100%;
    height: auto;
}

/* Адаптивные стили для чата на мобильных устройствах */
@media screen and (max-width: 480px) {
    /* Уменьшаем размер текста сообщений */
    .message__text {
        font-size: 14px; /* Уменьшенный размер шрифта */
        line-height: 1.3; /* Уменьшенная высота строки */
    }

    /* Уменьшаем размер имени пользователя */
    .message__username {
        font-size: 13px;
        margin-bottom: 2px;
    }

    /* Уменьшаем временную метку */
    .message__timestamp {
        font-size: 11px;
    }

    /* Уменьшаем отступы в сообщениях */
    .message {
        padding: 5px;
        margin-bottom: 0px;
    }

    /* Уменьшаем аватар */
    .message__avatar {
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }

    /* Оптимизируем область ввода */
    .chat {
        height: calc(100vh - 90px); /* Уменьшаем высоту чата */
        margin-bottom: 90px; /* Увеличиваем отступ для футера */
    }

    .chat__header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .chat__messages {
        height: calc(100vh - 200px);
        gap: 0px;
        margin-bottom: 0;
        padding-bottom: 0px; /* Отступ для видимости последнего сообщения */
    }

    .chat__input-area {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #1e1e1e;
        padding: 5px;
        height: 45px;
        z-index: 1000;
    }

    .chat__input {
        height: 36px;
        min-height: 36px;
        font-size: 14px;
    }

    .chat__button {
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
        min-width: 60px;
    }

    .chat__messages {
        max-height: calc(100vh - 180px); /* Ограничиваем высоту сообщений */
        overflow-y: auto;
        gap: 0px;
        margin-bottom: 0;
    }
}


/* Для Redmi 12C и похожих устройств (720 x 1650) */
@media (max-width: 720px) and (min-height: 1600px) {
    .chat {
        height: calc(140vh - 140px); /* Корректировка для длинного экрана */
        margin-bottom: 110px;
    }
    
    .chat__messages {
        height: calc(100vh - 220px); /* Больше места под высокий экран */
        gap: 0px;
        margin-bottom: 0;
    }
}



/* Адаптивные стили для профиля на мобильных устройствах */
@media screen and (max-width: 480px) {
    .profile {
        padding: 10px;
    }

    .profile__content {
        padding: 10px;
    }

    .profile__header {
        padding: 5px;
    }

    .profile__header h1 {
        font-size: 18px;
    }

    /* Оптимизация слайдера */

    .swiper-container {
        height: 250px !important;
        margin: 10px 0;
    }

    /* Стили для кнопок управления фото */
    .slide-controls {
        top: 5px;
        right: 5px;
        gap: 5px;
    }

    .make-main-btn,
    .delete-photo-btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Оптимизация формы */
    .profile__form {
        margin-top: 10px;
    }


    .profile__form label {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .profile__form input,
    .profile__form select,
    .profile__form textarea {
        height: 40px; /* Сохраняем одинаковую высоту на мобильных */
        font-size: 16px; /* Увеличиваем размер шрифта для лучшей читаемости */
    }

    /* Кнопка сохранения */
    .profile__form button {
        margin-top: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Общие улучшения для мобильной версии */
@media screen and (max-width: 480px) {
    /* Запрещаем масштабирование на мобильных устройствах */
    html, body {
        touch-action: manipulation;
        -webkit-text-size-adjust: none;
    }

    /* Оптимизация прокрутки */
    .chat__messages,
    .profile__form {
        -webkit-overflow-scrolling: touch;
    }
}

/* Медиа-запросы для разных устройств */
@media screen and (min-width: 1024px) {
    /* Стили для ПК */
    .profile__content {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
    }

    .profile__photos {
        width: 100%;
        max-width: 800px;
    }
    
    .chat__input {
        font-size: 16px;
    }

    .chat__button {
        font-size: 16px;
        padding: 8px 15px;
    }

    .message__text {
        font-size: 16px;
        line-height: 1.5;
    }

    .swiper-container {
        height: 450px !important;
    }

    .slide-controls {
        top: 5px;
        right: 5px;
        padding: 4px;
    }

    .make-main-btn,
    .delete-photo-btn {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media screen and (max-width: 768px) {
    /* Стили для планшетов */
    .chat {
      height: calc(120vh - 110px);
    }

    .chat__messages {
        padding: 8px;
        gap: 0px;
        margin-bottom: 0;
    }

    .message__text {
        font-size: 15px;
    }

    .swiper-container {
        height: 300px !important;
    }
}
/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 480px) {
    .chat__input-area {
        padding: 5px 10px;
        min-height: 45px;
    }
    
    .chat__input {
        padding: 8px 35px 8px 10px; /* Меньше отступы на мобильных */
        font-size: 14px;
    }
    
    .emoji-button {
        width: 25px;
        height: 25px;
        font-size: 18px;
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    /* Стили для мобильных устройств */
    .chat {
        height: calc(100vh - 120px); /* Уменьшаем высоту чата, чтобы поместилась строка ввода */
    }



    .chat__input-area {
        position: fixed;
        bottom: 90px; /* Располагаем над футером */
        left: 0;
        right: 0;
        background-color: #1e1e1e;
        padding: 8px;
        height: auto;
        min-height: 45px;
        z-index: 999;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .chat__input {
        flex: 1;
        height: 36px;
        min-height: 36px;
        padding: 8px;
        font-size: 14px;
        margin: 0;
    }

    .chat__button {
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
        min-width: 70px;
        margin: 0;
    }

    .chat__content {
        margin-bottom: 140px; /* Увеличиваем отступ для футера и строки ввода */
    }

        /* Общие стили для мобильных */
        .chat__tabs {
            padding: 0;
        }
        
        .chat__tab-btn {
            padding: 10px 5px;
            font-size: 13px;
        }

    .message {
        padding: 8px 10px;
    }

    .message__avatar {
        width: 50px;
        height: 50px;
    }

    .message__text {
        font-size: 13px;
        line-height: 0.7;
    }

    .message__username {
        font-size: 12px;
    }

    .message__timestamp {
        font-size: 10px;
    }

    .profile {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
        margin: 0;
        display: flex;
        flex-direction: column;
        background-color: #2c2c2c;
    }

    .profile__form {
        padding: 10px;
    }

    .profile__form label {
        font-size: 12px;
    }

    .profile__form input,
    .profile__form select,
    .profile__form textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .profile__header {
        width: 100%;
        padding: 15px;
        background-color: #2c2c2c;
        color: white;
        text-align: center;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .profile__header h1 {
        font-size: 18px;
    }

    .swiper-container {
        height: 250px !important;
        margin: 10px 0;
    }

    .slide-controls {
        padding: 3px;
        gap: 5px;
    }
    .make-main-btn,
    .delete-photo-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    .main-block__footer {
        height: 80px; /* Фиксированная высота футера */
    }

    /* Стили для регионального чата */
    #chat-interface-regional .chat__input-area {
        position: fixed;
        bottom: 90px;
        left: 0;
        right: 0;
        z-index: 999;
    }

    /* Корректировка высоты контейнера сообщений */
    .chat__messages {
        height: calc(100vh - 230px); /* Учитываем высоту header, footer и input-area */
        padding-bottom: 20px;
    }

    .user-card {
        min-width: 100%;
        max-width: 100%;
    }
        /* Друзья для мобильных */
        .friend-request-item, 
        .friend-item {
            flex-wrap: wrap;
        }
        
        .friend-request-buttons,
        .friend-buttons {
            width: 100%;
            margin-top: 10px;
            justify-content: space-between;
        }
        
        /* Фиксируем отображение 3 фото в ряд для мобильных */
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
        }
        
        .photo-gallery img {
            width: 100%;
            height: auto;
            object-fit: cover;
            aspect-ratio: 1/1;
        }
}

/* Дополнительные улучшения для всех устройств */
.message {
    max-width: 100%;
    word-break: break-word;
}

.profile__form {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.profile__photos {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.profile__form input,
.profile__form select,
.profile__form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

.hidden {
    display: none;
}


/* Фиксированное позиционирование для кнопок в слайдере */
.swiper-slide {
    position: relative;
}

/* Добавляем гибкое масштабирование */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}



/* Стили для блока друзей */
.profile__friends {
    width: 100%;
    max-width: 800px;
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.friends-count {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.friends-count span {
    color: #4a89dc;
}

.friends-avatars {
    display: flex;
    align-items: center;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1e1e1e;
    margin-left: -10px; /* Создаем эффект наложения */
    object-fit: cover;
}

.friend-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.friend-avatar:first-child {
    margin-left: 0;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #2c2c2c;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.friend-item:hover {
    background-color: #3a3a3a;
}

.friends-requests {
    color: #ff6b6b;
    font-size: 14px;
    margin-left: auto;
}

/* Модальное окно для друзей */
.friends-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 1000;
    overflow-y: auto;
}

.friends-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.friends-modal-header {
    background-color: #2c2c2c;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.friends-modal-header h2 {
    color: white;
    margin: 0;
}

.close-friends-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.friends-search {
    padding: 15px;
    background-color: #1e1e1e;
}

.friends-search input {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background-color: #333;
    color: white;
}


.friend-requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-request-item {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 8px;
}

.friend-request-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.friend-request-info {
    flex: 1;
}

.friend-request-name {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.friend-request-buttons {
    display: flex;
    gap: 10px;
}

.accept-friend-btn, .decline-friend-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.accept-friend-btn {
    background-color: #4a89dc;
    color: white;
}

.decline-friend-btn {
    background-color: #ff6b6b;
    color: white;
}

.friends-list-container {
    padding: 15px;
    background-color: #1e1e1e;
    flex: 1;
}

.friends-list-container h3 {
    color: white;
    margin-bottom: 10px;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-item {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 8px;
}

.friend-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}

.friend-details {
    color: #aaa;
    font-size: 0.9em;
}

.friend-buttons {
    display: flex;
    gap: 10px;
}



.message-friend-btn, .remove-friend-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.message-friend-btn {
    background-color: #4a89dc;
    color: white;
}

.remove-friend-btn {
    background-color: #666;
    color: white;
}

.message-friend-btn:hover {
    background-color: #3a79cc;
}

.remove-friend-btn:hover {
    background-color: #e74c3c;
}

/* Кнопка добавить в друзья на чужом профиле */
.add-friend-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 20px 10px;
    min-width: 120px;
    text-align: center;
}

.add-friend-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 480px) {
    .profile__friends {
        padding: 10px;
    }
    
    .friend-avatar {
        width: 30px;
        height: 30px;
    }
    
    .friends-count {
        font-size: 14px;
    }
    
    .friend-request-item, .friend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .friend-request-avatar, .friend-avatar-large {
        width: 40px;
        height: 40px;
    }
    
    .friend-request-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .accept-friend-btn, .decline-friend-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* Анимации и плавные переходы */
    .fade-in {
        animation: fadeIn 0.3s ease-in-out;
    }
    
    .fade-out {
        animation: fadeOut 0.3s ease-in-out;
    }
    
    .slide-in {
        animation: slideIn 0.3s ease-in-out;
    }
    
    .slide-out {
        animation: slideOut 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }
    
    @keyframes slideIn {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    @keyframes slideOut {
        from { transform: translateY(0); opacity: 1; }
        to { transform: translateY(20px); opacity: 0; }
    }
    
    .photo-item, .friend-item, .content-tab {
        transition: all 0.2s ease-in-out;
    }
    
    .photo-item:hover, .friend-item:hover {
        transform: scale(1.03);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    .content-tab:hover {
        filter: brightness(1.1);
    }

    /* Стили для окна поиска */
.search-container {
    position: fixed;
    top: 60px; /* После заголовка */
    left: 0;
    right: 0;
    bottom: 60px; /* До футера */
    height: calc(100vh - 120px); /* Вычитаем высоту header + footer */
    width: 100%;
    overflow-y: auto;
    z-index: 999;
}

.search-header {
    padding: 12px 15px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #333;
    position: relative;
    height: 48px;
    align-items: center;
    justify-content: center;
}

.search-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.search-filter-btn,
.search-action-btn {
    padding: 10px 15px;
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.search-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

.search-empty {
    text-align: center;
    padding: 20px;
    color: #888;
}


/* Стили для самого поиска */
.search-conditions {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #333;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ddd;
}

/* Стили для формы поиска */
.search-form-container {
    padding: 20px;
    background-color: #1a1a1a;
    color: white;
}

.search-form-title {
    text-align: center;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.search-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-form-field label {
    font-weight: bold;
}

.search-form-field input {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
}

.search-submit-btn,
.search-cancel-btn {
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.search-submit-btn {
    background-color: #4a89dc;
    color: white;
}

.search-cancel-btn {
    background-color: #666;
    color: white;
}

/* Стили для фильтра */
.filter-container {
    padding: 20px;
    background-color: #1a1a1a;
    color: white;
}

.filter-title {
    text-align: center;
    margin-bottom: 20px;
}

.filter-block {
    margin-bottom: 20px;
}

.filter-block-title {
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.age-range {
    display: flex;
    gap: 15px;
}

.age-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.age-input-group input {
    width: 60px;
    padding: 8px;
    background-color: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

.region-options select {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.filter-apply-btn,
.filter-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-apply-btn {
    background-color: #4a89dc;
    color: white;
}

.filter-cancel-btn {
    background-color: #666;
    color: white;
}

.search-users-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.user-card {
    flex: 1;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    min-height: 100px;
    max-width: 33.333%;
}

.user-card:hover {
    transform: scale(1.02);
}

.user-avatar-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.user-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.user-nickname {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 5px;
}

.message-user-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(74, 137, 220, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s;
}

.message-user-btn:hover {
    background: rgba(74, 137, 220, 1);
}

.online-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 768px) {
    .user-row {
        flex-wrap: wrap;
    }
    
    .user-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media screen and (max-width: 480px) {
    .user-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Стили для блока с бубликами */
.bubbles-balance-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    max-width: 800px;
    width: 100%;
}

.bubbles-balance-block:hover {
    background-color: #3a3a3a;
}

.bubble-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubbles-amount {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
}

/* Стили для модального окна с бубликами */
.bubbles-modal-content, .referral-modal-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.invite-friend-btn:active, .copy-link-btn:active, .close-referral-btn:active {
    transform: translateY(1px);
}

/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 480px) {
    .bubbles-modal-content, .referral-modal-content {
        padding: 20px 15px;
    }
    
    .bubbles-balance-block {
        padding: 8px 12px;
    }
    
    .bubbles-amount {
        font-size: 16px;
    }
    
    .invite-friend-btn, .copy-link-btn, .close-referral-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.edit-info-modal-content {
    color: white;
    font-size: 16px;
}

.edit-info-modal-content input,
.edit-info-modal-content textarea,
.edit-info-modal-content select {
    color: white;
    font-size: 16px;
    background-color: #333;
    border: 1px solid #444;
}

/* Стили для кнопки поиска */
.search-button {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #3a70b8;
}

/* Стили для кнопки создания канала */
.create-channel-button {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.channel-create-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.channel-create-btn:hover {
    background-color: #3a70b8;
}

/* Стили для строки поиска */
.private-messages-search-container {
    padding: 10px 15px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.private-messages-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 20px;
    background-color: #2a2a2a;
    color: white;
}

/* Стили для заголовков разделов */
.messages-section-header {
    padding: 10px 15px;
    font-weight: bold;
    color: #888;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

/* Стили для элементов каналов */
.channel-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.channel-item:hover {
    background-color: #2a2a2a;
}

.channel-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4a89dc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
    overflow: hidden;
}

.channel-info {
    flex: 1;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.channel-name {
    font-weight: bold;
    color: #fff;
}

.channel-paid-badge {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.channel-description {
    color: #8a8a8a;
    font-size: 13px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-stats {
    color: #666;
    font-size: 12px;
}

/* Стили для окна канала */
.channel-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.channel-header {
    padding: 15px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-details {
    color: white;
}

.channel-actions {
    display: flex;
    gap: 10px;
}

.channel-settings-btn, .channel-subscribe-btn, .channel-unsubscribe-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

.channel-unsubscribe-btn {
    background-color: #e74c3c;
}

.close-channel {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.channel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #000;
}

.channel-description {
    margin-bottom: 20px;
    color: #aaa;
    line-height: 1.5;
}

.channel-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-posts {
    text-align: center;
    color: #888;
    padding: 20px;
}

.channel-input-area {
    padding: 15px;
    background: #2a2a2a;
    border-top: 1px solid #333;
}

.channel-post-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #1a1a1a;
    color: white;
    margin-bottom: 10px;
    resize: vertical;
}

.channel-post-actions {
    display: flex;
    justify-content: space-between;
}

.channel-attach-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.channel-post-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

/* Стили для выделения текста при поиске */
.highlighted-text {
    background-color: #e7b400;
    color: black;
    padding: 0 2px;
    border-radius: 2px;
}


/* Стили для центрированной темы канала */
.channel-topic {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.channel-topic-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.channel-topic-description {
    color: #aaa;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Стили для аватарки канала */
.channel-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.channel-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.change-avatar-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Стили для закрепленных сообщений */
.channel-pinned-container {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 10px 20px;
}

.pinned-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    margin-bottom: 10px;
}

.pinned-header i {
    transform: rotate(45deg);
}

.pinned-post {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.pinned-post-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pinned-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.pinned-author-name {
    font-weight: bold;
    color: white;
}

.pinned-post-content {
    color: #ddd;
    margin-bottom: 10px;
}

.pinned-post-image img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pinned-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
}

.goto-post-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.pinned-post-highlight {
    border-left: 3px solid #4a89dc;
}

.highlighted-post {
    animation: highlight-post 2s ease;
}

@keyframes highlight-post {
    0% { background-color: rgba(74, 137, 220, 0.3); }
    100% { background-color: transparent; }
}

/* Стили для комментариев и ответов */
.comment {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-author-info {
    flex: 1;
}

.comment-author-name {
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.comment-timestamp {
    color: #888;
    font-size: 12px;
}

.comment-actions {
    display: flex;
    gap: 5px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
}

.comment-reply-btn:hover {
    color: #4a89dc;
}

.comment-content {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-replies {
    margin-left: 20px;
    border-left: 2px solid #444;
    padding-left: 15px;
}

.comment-reply {
    background-color: #222;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.reply-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.reply-author-name {
    font-weight: bold;
    color: white;
    font-size: 13px;
}

.reply-timestamp {
    color: #888;
    font-size: 11px;
    margin-left: 5px;
}

.reply-content {
    color: #ddd;
    font-size: 13px;
}

.comment-reply-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reply-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 20px;
    background-color: #222;
    color: white;
    font-size: 13px;
}

.reply-submit-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
}

/* Стили для приглашения друзей */
.invite-link-container {
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.invite-link-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.invite-link {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: white;
    font-size: 14px;
}

.copy-invite-link {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 15px;
    cursor: pointer;
}

.friend-invite-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.invite-friend-btn {
    background-color: #4a89dc;
}

/* Обновленные стили для кнопок в каналах */
/* Дополнительные стили для кнопок и медиа в каналах */
.channel-settings-btn, 
.channel-subscribe-btn, 
.channel-unsubscribe-btn, 
.channel-invite-btn, 
.channel-share-btn,
.channel-post-btn,
.comment-submit-btn,
.reply-submit-btn,
.goto-post-btn,
.filter-apply-btn,
.search-button,
.send-private-message,
.invite-friend-btn,
.copy-invite-link,
.close-invite-modal {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.channel-settings-btn:hover, 
.channel-subscribe-btn:hover, 
.channel-invite-btn:hover, 
.channel-share-btn:hover,
.channel-post-btn:hover,
.comment-submit-btn:hover,
.reply-submit-btn:hover,
.goto-post-btn:hover,
.filter-apply-btn:hover,
.search-button:hover,
.send-private-message:hover,
.invite-friend-btn:hover,
.copy-invite-link:hover,
.close-invite-modal:hover {
    background-color: #3a70b8;
    transform: translateY(-1px);
}

.channel-settings-btn:active, 
.channel-subscribe-btn:active, 
.channel-invite-btn:active, 
.channel-share-btn:active,
.channel-post-btn:active,
.comment-submit-btn:active,
.reply-submit-btn:active,
.goto-post-btn:active,
.filter-apply-btn:active,
.search-button:active,
.send-private-message:active,
.invite-friend-btn:active,
.copy-invite-link:active,
.close-invite-modal:active {
    transform: translateY(1px);
}

/* Стили для кнопки прикрепления файлов */
.channel-attach-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    color: #888;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.channel-attach-btn:hover {
    color: #4a89dc;
    border-color: #4a89dc;
    background-color: rgba(74, 137, 220, 0.1);
}

.channel-attach-btn i {
    font-size: 16px;
}

/* Стили для контейнера предпросмотра медиа */
.channel-media-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: #222;
    border-radius: 8px;
    border: 1px solid #333;
}

.channel-media-preview.hidden {
    display: none;
}

.media-preview-container {
    position: relative;
}

.media-preview-img,
.media-preview-video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.media-preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.media-description-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 20px;
    background-color: #333;
    color: white;
    margin-right: 10px;
}

.media-remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.media-remove-btn:hover {
    background-color: #c0392b;
}

/* Стили для отображения фото в публикациях */
.post-image {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.post-image img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

.post-media-description {
    margin-top: 8px;
    padding: 10px;
    background-color: #222;
    color: #ddd;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    border-top: none;
}

.post-video {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-video video {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Стили для модального окна приглашения друзей */
.invite-friends-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.invite-friends-modal .modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow-y: auto;
}

.invite-friends-modal .modal-header {
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invite-friends-modal .modal-header h2 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.invite-friends-modal .close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.invite-friends-modal .modal-body {
    padding: 15px;
}

.invite-link-container {
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.invite-link-container p {
    margin: 0 0 10px 0;
    color: white;
}

.invite-link-wrapper {
    display: flex;
    gap: 10px;
}

.invite-link {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: white;
    font-size: 14px;
}

.copy-invite-link {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 15px;
    cursor: pointer;
}

.friends-list-container h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.friends-search {
    margin-bottom: 15px;
}

.friends-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 20px;
    background-color: #333;
    color: white;
}

.friend-invite-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.friend-invite-item:last-child {
    border-bottom: none;
}

.friend-invite-item .friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.friend-invite-item .friend-info {
    flex: 1;
}

.friend-invite-item .friend-name {
    color: white;
    font-weight: bold;
}

.invite-friend-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

.invite-friend-btn.invited {
    background-color: #27ae60;
    cursor: default;
}

.invite-friend-btn:disabled {
    background-color: #27ae60;
    cursor: default;
}

.no-friends {
    color: #888;
    text-align: center;
    padding: 20px;
}

.invite-friends-modal .modal-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
}

.close-invite-modal {
    background-color: #666;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

/* Стили для приглашений в каналы */
.channel-invitations-container {
    margin-bottom: 15px;
}

.channel-invitation-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #333;
    background-color: rgba(74, 137, 220, 0.1);
}

.invitation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4a89dc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 16px;
}

.invitation-info {
    flex: 1;
}

.invitation-header {
    margin-bottom: 5px;
}

.invitation-title {
    font-weight: bold;
    color: #4a89dc;
}

.invitation-content {
    color: #ddd;
    margin-bottom: 10px;
}

.invitation-actions {
    display: flex;
    gap: 10px;
}

.accept-invitation-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
}

.decline-invitation-btn {
    background-color: #666;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
}

.accept-invitation-btn:hover {
    background-color: #3a70b8;
}

.decline-invitation-btn:hover {
    background-color: #555;
}

.video-streams-container {
    display: flex;
                flex-direction: column;
                height: 100%;
                width: 100%;
                overflow: hidden;
            }
            
            .video-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px;
                background-color: #333;
                border-bottom: 1px solid #444;
            }
            
            .video-header h2 {
                margin: 0;
                font-size: 18px;
                color: #fff;
            }
            
            .start-stream-btn {
                display: flex;
                align-items: center;
                gap: 8px;
                background-color: #4a89dc;
                color: white;
                border: none;
                border-radius: 5px;
                padding: 8px 12px;
                font-size: 14px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .start-stream-btn:hover {
                background-color: #3a70b8;
            }
            
            .streams-list {
                flex: 1;
                overflow-y: auto;
                padding: 15px;
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 15px;
            }
            
            .stream-item {
                background-color: #2a2a2a;
                border-radius: 8px;
                overflow: hidden;
                cursor: pointer;
                transition: transform 0.2s, box-shadow 0.2s;
            }
            
            .stream-item:hover {
                transform: translateY(-3px);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            }
            
            .stream-thumbnail {
                position: relative;
                width: 100%;
                aspect-ratio: 16/9;
                background-color: #222;
                overflow: hidden;
            }
            
            .stream-thumbnail img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            
            .live-badge {
                position: absolute;
                top: 10px;
                left: 10px;
                background-color: #e74c3c;
                color: white;
                font-size: 12px;
                font-weight: bold;
                padding: 3px 6px;
                border-radius: 3px;
            }
            
            .viewers-count {
                position: absolute;
                bottom: 10px;
                right: 10px;
                background-color: rgba(0, 0, 0, 0.7);
                color: white;
                font-size: 12px;
                padding: 3px 6px;
                border-radius: 3px;
            }
            
            .stream-info {
                padding: 10px;
            }
            
            .stream-title {
                margin: 0 0 5px 0;
                font-size: 16px;
                color: #fff;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .stream-author {
                margin: 0;
                font-size: 14px;
                color: #aaa;
            }
            
            .no-streams {
                grid-column: 1 / -1;
                text-align: center;
                padding: 50px 0;
                color: #888;
                font-size: 16px;
            }
            
            .error-message {
                grid-column: 1 / -1;
                text-align: center;
                padding: 50px 0;
                color: #e74c3c;
                font-size: 16px;
            }
            
            /* Стили для просмотра трансляции */
            .stream-viewer-container {
                display: flex;
                flex-direction: column;
                height: 100%;
                width: 100%;
                overflow: hidden;
            }
            
            .stream-viewer-header {
                display: flex;
                align-items: center;
                gap: 15px;
                padding: 15px;
                background-color: #333;
                border-bottom: 1px solid #444;
            }
            
            .stream-viewer-header h2 {
                margin: 0;
                font-size: 18px;
                color: #fff;
                flex: 1;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .back-to-streams-btn {
                display: flex;
                align-items: center;
                gap: 5px;
                background: none;
                border: none;
                color: #aaa;
                font-size: 14px;
                cursor: pointer;
                padding: 5px;
                transition: color 0.2s;
            }
            
            .back-to-streams-btn:hover {
                color: #fff;
            }
            
            .stream-content {
                display: flex;
                flex: 1;
                overflow: hidden;
            }
            
            .video-container {
position: fixed;
    top: 60px; /* После заголовка */
    left: 0;
    right: 0;
    bottom: 60px; /* До футера */
    height: calc(100vh - 120px); /* Вычитаем высоту header + footer */
    width: 100%;
    overflow-y: auto;
    z-index: 999;
                background-color: #1a1a1a;

            }
            
            .video-placeholder {
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                position: relative;
            }
            
            .video-placeholder img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            
            .stream-overlay {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                padding: 15px;
            }
            
            .stream-author-info {
                display: flex;
                align-items: center;
                gap: 10px;
            }
            
            .author-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                object-fit: cover;
                border: 2px solid #fff;
            }
            
            .author-name {
                color: #fff;
                font-size: 16px;
                font-weight: bold;
            }
            
            .stream-stats {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .stream-stats .viewers {
                color: #fff;
                font-size: 14px;
            }
            
            .stream-stats .live-indicator {
                background-color: #e74c3c;
                color: white;
                font-size: 12px;
                font-weight: bold;
                padding: 3px 6px;
                border-radius: 3px;
            }
            
            .stream-sidebar {
                width: 300px;
                display: flex;
                flex-direction: column;
                border-left: 1px solid #444;
            }
            
            .stream-chat {
                flex: 1;
                display: flex;
                flex-direction: column;
                background-color: #2a2a2a;
                background-color: rgba(0, 0, 0, 0.5) !important; /* Полупрозрачный фон */
            }
            
            .chat-messages {
                flex: 1;
                overflow-y: auto;
                padding: 15px;
                display: flex;
                flex-direction: column;
                gap: 0 !important;
                background-color: transparent !important;
            }
            
            .chat-message {
                font-size: 14px;
                line-height: 1.4;
                word-break: break-word;
                margin-bottom: 0 !important;
                border-radius: 0 !important;
            }
            
            .message-author {
                font-weight: bold;
                color: #4a89dc;
                margin-right: 5px;
            }
            
            .message-author.current-user {
                color: #2ecc71;
            }
            
            .message-author.streamer {
                color: #e74c3c;
            }
            
            .message-text {
                color: #eee;
            }
            
            .system-message {
                color: #aaa;
                font-style: italic;
                text-align: center;
                padding: 5px 0;
            }
            
            .donation-message {
                background-color: rgba(255, 215, 0, 0.1);
                border: 1px solid rgba(255, 215, 0, 0.3);
                border-radius: 5px;
                padding: 8px;
            }
            
            .donation-header {
                display: flex;
                align-items: center;
                gap: 5px;
                color: #FFD700;
                font-weight: bold;
                margin-bottom: 5px;
            }
            
            .donation-content {
                color: #eee;
            }
            
            .donation-author {
                color: #FFD700;
                font-weight: bold;
            }
            
            .donation-amount {
                color: #FFD700;
                font-weight: bold;
            }
            
            .donation-message-text {
                margin-top: 5px;
                color: #eee;
            }
            
            .chat-input-container {
                display: flex;
                padding: 10px;
                border-top: 1px solid #444;
            }
            
            .chat-input-container input {
                flex: 1;
                background-color: #333;
                border: none;
                border-radius: 5px;
                color: #fff;
                padding: 10px;
                font-size: 14px;
            }
            
            .chat-input-container input:focus {
                outline: none;
                background-color: #3a3a3a;
            }
            
            .chat-input-container button {
                background: none;
                border: none;
                color: #4a89dc;
                padding: 0 10px;
                cursor: pointer;
            }
            
            .stream-actions {
                padding: 15px;
                border-top: 1px solid #444;
            }
            
            .send-bubbles-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                background-color: #f39c12;
                color: white;
                border: none;
                border-radius: 5px;
                padding: 10px;
                font-size: 14px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .send-bubbles-btn:hover {
                background-color: #e67e22;
            }
            
            /* Стили для модального окна отправки бубликов */
            .send-bubbles-modal {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.8);
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 2000;
            }
            
            .send-bubbles-content {
                background-color: #2c2c2c;
                border-radius: 10px;
                padding: 20px;
                width: 90%;
                max-width: 400px;
            }
            
            .send-bubbles-content h3 {
                margin-top: 0;
                margin-bottom: 15px;
                color: #fff;
                text-align: center;
            }
            
            .bubbles-balance {
                color: #FFD700;
                font-weight: bold;
            }
            
            .bubbles-amount-selector {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
                margin: 20px 0;
            }
            
            .amount-btn {
                background-color: #333;
                border: 1px solid #444;
                color: #fff;
                padding: 10px;
                border-radius: 5px;
                font-size: 16px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .amount-btn:hover {
                background-color: #3a3a3a;
            }
            
            .amount-btn.selected {
                background-color: #4a89dc;
                border-color: #4a89dc;
            }
            
            .custom-amount-input {
                margin-bottom: 20px;
            }
            
            .custom-amount-input input {
                width: 100%;
                background-color: #333;
                border: 1px solid #444;
                border-radius: 5px;
                color: #fff;
                padding: 10px;
                font-size: 16px;
            }
            
            .custom-amount-input input:focus {
                outline: none;
                border-color: #4a89dc;
            }
            
            .modal-actions {
                display: flex;
                justify-content: space-between;
                gap: 10px;
            }
            
            .modal-actions button {
                flex: 1;
                padding: 10px;
                border-radius: 5px;
                font-size: 16px;
                cursor: pointer;
                border: none;
            }
            
            .cancel-btn {
                background-color: #555;
                color: #fff;
            }
            
            .confirm-btn {
                background-color: #4a89dc;
                color: #fff;
            }
            
            .confirm-btn:disabled {
                background-color: #555;
                cursor: not-allowed;
            }
            
            /* Стили для создания трансляции */
            .stream-creator-container {
                display: flex;
                flex-direction: column;
                height: 100%;
                width: 100%;
                overflow: hidden;
            }
            
            .stream-creator-header {
                display: flex;
                align-items: center;
                gap: 15px;
                padding: 15px;
                background-color: #333;
                border-bottom: 1px solid #444;
            }
            
            .stream-creator-header h2 {
                margin: 0;
                font-size: 18px;
                color: #fff;
            }
            
            .stream-creator-content {
                flex: 1;
                overflow-y: auto;
                padding: 20px;
            }
            
            .stream-settings {
                max-width: 600px;
                margin: 0 auto;
            }
            
            .form-group {
                margin-bottom: 20px;
            }
            
            .form-group label {
                display: block;
                margin-bottom: 8px;
                font-size: 16px;
                color: #ddd;
            }
            
            .form-group input,
            .form-group textarea {
                width: 100%;
                background-color: #333;
                border: 1px solid #444;
                border-radius: 5px;
                color: #fff;
                padding: 12px;
                font-size: 16px;
            }
            
            .form-group input:focus,
            .form-group textarea:focus {
                outline: none;
                border-color: #4a89dc;
            }
            
            .camera-preview {
                width: 100%;
                aspect-ratio: 16/9;
                background-color: #1a1a1a;
                border-radius: 5px;
                overflow: hidden;
                margin-bottom: 15px;
            }
            
            .camera-icon {
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                cursor: pointer;
            }
            
            .camera-icon p {
                margin-top: 10px;
                color: #aaa;
                font-size: 14px;
            }
            
            .camera-placeholder {
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }
            
            .camera-placeholder p {
                margin-top: 10px;
                color: #aaa;
                font-size: 14px;
            }
            
            .camera-controls {
                display: flex;
                justify-content: space-between;
                gap: 10px;
            }
            
            .camera-controls button {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                background-color: #333;
                border: 1px solid #444;
                color: #fff;
                padding: 10px;
                border-radius: 5px;
                font-size: 14px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .camera-controls button:hover {
                background-color: #3a3a3a;
            }
            
            .start-stream-now-btn {
                width: 100%;
                background-color: #4a89dc;
                color: white;
                border: none;
                border-radius: 5px;
                padding: 12px;
                font-size: 16px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .start-stream-now-btn:hover {
                background-color: #3a70b8;
            }
            
            .start-stream-now-btn:disabled {
                background-color: #555;
                cursor: not-allowed;
            }
            
            /* Стили для активной трансляции */
            .live-stream-container {
                display: flex;
                flex-direction: column;
                height: 100%;
                width: 100%;
                overflow: hidden;
            }
            
            .live-stream-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px;
                background-color: #333;
                border-bottom: 1px solid #444;
            }
            
            .stream-status {
                display: flex;
                align-items: center;
                gap: 15px;
            }
            
            .live-indicator {
                background-color: #e74c3c;
                color: white;
                font-size: 12px;
                font-weight: bold;
                padding: 3px 6px;
                border-radius: 3px;
            }
            
            .stream-duration {
                color: #fff;
                font-size: 14px;
                font-family: monospace;
            }
            
            .end-stream-btn {
                background-color: #e74c3c;
                color: white;
                border: none;
                border-radius: 5px;
                padding: 8px 12px;
                font-size: 14px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .end-stream-btn:hover {
                background-color: #c0392b;
            }
            
            .live-stream-content {
                display: flex;
                flex: 1;
                overflow: hidden;
            }
            
            .stream-preview {
                flex: 1;
                display: flex;
                flex-direction: column;
            }
            
            .stream-title-display {
                padding: 10px 15px;
                background-color: #2a2a2a;
                border-bottom: 1px solid #444;
            }
            
            .stream-title-display h3 {
                margin: 0;
                font-size: 16px;
                color: #fff;
            }
            
            .live-chat {
                background-color: #2a2a2a;
            }
            
            .stream-controls {
                display: flex;
                justify-content: space-between;
                padding: 15px;
                border-top: 1px solid #444;
                gap: 10px;
            }
            
            .stream-control-btn {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 5px;
                background-color: #333;
                border: 1px solid #444;
                color: #fff;
                padding: 10px;
                border-radius: 5px;
                font-size: 12px;
                cursor: pointer;
                transition: background-color 0.2s;
            }
            
            .stream-control-btn:hover {
                background-color: #3a3a3a;
            }
            
            .stream-control-btn.disabled {
                color: #e74c3c;
            }
            
            .stream-chat.hidden {
                display: none;
            }
            
            .streamer-message {
                background-color: rgba(231, 76, 60, 0.1);
                border-radius: 5px;
                padding: 5px 8px;
            }

            /* Темы оформления */
:root {
    /* Переменные для темной темы (по умолчанию) */
    --bg-color: #121212;
    --header-bg-color: #4a76a8;
    --menu-bg-color: #000000;
    --content-bg-color: #1a1a1a;
    --secondary-bg-color: #2a2a2a;
    --input-bg-color: #000;
    --border-color: #333;
    --text-color: #e0e0e0;
    --secondary-text-color: #8a8a8a;
    --link-color: #4a89dc;
    --button-color: #4a89dc;
    --button-hover-color: #3a70b8;
  }
  
  /* Светлая тема */
  body.light-theme {
    --bg-color: #f5f5f5;
    --header-bg-color: #4a76a8;
    --menu-bg-color: #ffffff;
    --content-bg-color: #ffffff;
    --secondary-bg-color: #f0f0f0;
    --input-bg-color: #ffffff;
    --border-color: #ddd;
    --text-color: #333333;
    --secondary-text-color: #666666;
    --link-color: #4a76a8;
    --button-color: #4a76a8;
    --button-hover-color: #3a5998;
    
    /* Дополнительные переменные для профиля */
    --profile-bg-color: #ffffff;
    --profile-header-bg: #f0f0f0;
    --profile-form-bg: #ffffff;
    --profile-input-bg: #f5f5f5;
    --profile-input-border: #ddd;
    --profile-card-bg: #f0f0f0;
    --friend-item-bg: #f0f0f0;
    --friend-item-hover: #e5e5e5;
  }
  
  /* Применение переменных темы к элементам */
  body {
    background-color: var(--bg-color);
  }
  

  
  .menu {
    background-color: var(--menu-bg-color);
    color: var(--text-color);
  }
  
  .chat__input {
    background-color: var(--input-bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
  }
  
  .message {
    background-color: var(--content-bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
  }
  
  .message__text {
    color: var(--text-color);
  }
  
  .message__timestamp {
    color: var(--secondary-text-color);
  }
  


  
  /* Стили для окна настроек */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
  
  .settings-modal.active {
    display: flex;
  }
  
  .settings-content {
    width: 90%;
    max-width: 500px;
    background-color: var(--content-bg-color);
    border-radius: 8px;
    overflow: hidden;
  }
  
.settings-header {
    background-color: #808080; /* Серый цвет вместо синего */
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
  .settings-header h2 {
    margin: 0;
    font-size: 18px;
  }
  
.close-settings {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}
  
  .settings-body {
    padding: 20px;
    color: var(--text-color);
  }
  
  .settings-section {
    margin-bottom: 20px;
  }
  
  .settings-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-color);
  }
  
  .theme-selector {
    display: flex;
    gap: 15px;
  }
  
  .theme-option {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
  }
  
  .theme-option:hover {
    transform: translateY(-3px);
  }
  
.theme-option.active {
    border-color: #808080; /* Серый цвет вместо синего */
    background-color: #4a4a4a;
}
  
  .light-option {
    background-color: #f5f5f5;
    color: #333;
  }
  
  .dark-option {
    background-color: #222;
    color: #fff;
  }
  
  .settings-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
  }
  
.save-settings-btn {
    background-color: #808080; /* Серый цвет вместо синего */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
.save-settings-btn:hover {
    background-color: #696969; /* Более темный серый при наведении */
}
  /* Применение переменных темы к элементам профиля */
.profile {
    background-color: var(--profile-bg-color);
    color: var(--text-color);
  }
  
  .profile__header {
    background-color: var(--profile-header-bg);
    color: var(--text-color);
  }
  
  .profile__content {
    background-color: var(--profile-bg-color);
  }
  
  .profile__form input,
  .profile__form select,
  .profile__form textarea {
    background-color: var(--profile-input-bg);
    color: var(--text-color);
    border-color: var(--profile-input-border);
  }
  
  .profile__friends {
    background-color: var(--profile-card-bg);
  }
  
  .friend-item {
    background-color: var(--friend-item-bg);
  }
  
  .friend-item:hover {
    background-color: var(--friend-item-hover);
  }
  

  

  
  .main-block__footer {
    background-color: var(--menu-bg-color);
    border-color: var(--border-color);
  }
  
  .footer-btn {
    color: var(--secondary-text-color);
  }
  
  .footer-btn.active {
    color: var(--link-color);
  }
  
  .chat__input-area {
    background-color: var(--input-bg-color);
    border-color: var(--border-color);
  }
  
  .chat__messages {
    background-color: var(--content-bg-color);
  }
  
  .chat-tab {
    background-color: var(--content-bg-color);
  }
  
  /* Применение к модальным окнам */
  .friends-modal,
  .invite-friends-modal,
  .bubbles-modal-content,
  .referral-modal-content {
    background-color: var(--content-bg-color);
    color: var(--text-color);
  }
  
  .friends-modal-header,
  .invite-friends-modal .modal-header {
    background-color: var(--secondary-bg-color);
  }
  
  /* Применение к кнопкам */
  .profile__form button[type="submit"],
  .back-button,
  .add-friend-btn,
  .message-friend-btn,
  .accept-friend-btn,
  .invite-friend-btn {
    background-color: var(--button-color);
  }
  
  .profile__form button[type="submit"]:hover,
  .back-button:hover,
  .add-friend-btn:hover,
  .message-friend-btn:hover,
  .accept-friend-btn:hover,
  .invite-friend-btn:hover {
    background-color: var(--button-hover-color);
  }

 
/* Дополнительные стили для светлой темы */
body.light-theme .chat__messages {
  background-color: var(--content-bg-color);
}

/* Исправление цвета текста меню при светлой теме */
body.light-theme .menu__item {
  color: #333;
}

/* Стили для новостной ленты в светлой теме */
body.light-theme .news-feed-container {
  background: #fff;
}

body.light-theme .news-feed-header {
    background: #fff;
  border-bottom: 1px solid #ddd;
}

body.light-theme .news-feed-header h2 {
    background: #fff;
  color: #000;
}

body.light-theme .news-item-channel {
    background: #fff;
    border: 1px solid rgba(74, 137, 220, 0.3);
}

body.light-theme .news-feed-content {
    background: #fff;
}

body.light-theme .news-feed-filters {
    background: #fff;
}



body.light-theme .news-item:hover {
    background: #fff;
}

body.light-theme .news-item {
    background: #fff;
}

body.light-theme .news-item-content {
    background: #fff;
}

body.light-theme .filter-btn {
  background-color: #fff;
  color: #fff;
}

body.light-theme .filter-btn.active {
  background-color: #fff;
  color: white;
}

body.light-theme .news-item {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-theme .news-item-content {
  color: #000;
}

body.light-theme .news-feed-empty {
  color: #fff;
}

/* Стили для личных сообщений в светлой теме */
body.light-theme .private-chat-window {
  background: #f5f5f5;
}

body.light-theme .private-chat-header {
  background: #e0e0e0;
  border-bottom: 1px solid #ddd;
}

body.light-theme .user-details {
  color: #333;
}

body.light-theme .online-status {
  color: #666;
}

body.light-theme .chat-messages {
  background-color: #f5f5f5;
}

body.light-theme .chat-input-area {
  background: #e0e0e0;
  border-top: 1px solid #ddd;
}

body.light-theme .private-message-input {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

body.light-theme .private-message.sent {
  background: #4a89dc;
  color: white;
}

body.light-theme .private-message.received {
  background: #e0e0e0;
  color: #333;
}

body.light-theme .close-chat {
  color: #333;
}

/* Стили для каналов в светлой теме */
body.light-theme .channel-window {
  background: #f5f5f5;
}

body.light-theme .channel-header {
  background: #e0e0e0;
  border-bottom: 1px solid #ddd;
}

body.light-theme .channel-details {
  color: #333;
}

body.light-theme .channel-content {
  background-color: #fff;
}

body.light-theme .channel-topic {
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

body.light-theme .channel-topic-title {
  color: #333;
}

body.light-theme .channel-topic-description {
  color: #666;
}

body.light-theme .channel-input-area {
  background: #e0e0e0;
  border-top: 1px solid #ddd;
}

body.light-theme .channel-post-input {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

body.light-theme .channel-post {
  background: #fff;
  border: 1px solid #eee;
}

body.light-theme .post-author-name {
  color: #333;
}

body.light-theme .post-content {
  color: #333;
}

body.light-theme .post-like-btn, 
body.light-theme .post-comment-btn {
  color: #666;
}

body.light-theme .comment {
  background: #f0f0f0;
}

body.light-theme .comment-author-name {
  color: #333;
}

body.light-theme .comment-content {
  color: #333;
}

/* Стили для поиска в светлой теме */
body.light-theme .search-container {
  background-color: #f5f5f5;
  color: #333;
}

body.light-theme .search-header {
  background-color: #e0e0e0;
  border-bottom: 1px solid #ddd;
}

body.light-theme .search-conditions {
  background-color: #fff;
  color: #333;
}

body.light-theme .user-info-overlay {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}

body.light-theme .user-nickname {
  color: #333;
}

body.light-theme .user-details {
  color: #666;
}

/* Стили для списка сообщений в светлой теме */
body.light-theme .messages-list {
  background-color: #fff;
}

body.light-theme .private-chat-item {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

body.light-theme .private-chat-item:hover {
  background-color: #fff;
}

body.light-theme .chat-nickname {
  color: #333;
}

body.light-theme .last-message {
  color: #666;
}

body.light-theme .message-time {
  color: #888;
}

body.light-theme .messages-section-header {
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
  color: #666;
}

/* Стили для каналов в списке в светлой теме */
body.light-theme .channel-item {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

body.light-theme .channel-item:hover {
  background-color: #f0f0f0;
}

body.light-theme .channel-name {
  color: #333;
}

body.light-theme .channel-description {
  color: #666;
}

body.light-theme .channel-stats {
  color: #888;
}

/* Стили для модальных окон в светлой теме */
body.light-theme .modal-content {
  background: #fff;
}

body.light-theme .modal-header {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

body.light-theme .modal-header h2 {
  color: #333;
}

body.light-theme .close-modal {
  color: #333;
}

body.light-theme .modal-body {
  color: #333;
}

body.light-theme .modal-footer {
  border-top: 1px solid #ddd;
}

/* Стили для приглашений в светлой теме */
body.light-theme .channel-invitation-item {
  background-color: rgba(74, 137, 220, 0.1);
  border-bottom: 1px solid #ddd;
}

/* Стили для закрепленных сообщений в светлой теме */
body.light-theme .channel-pinned-container {
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

body.light-theme .pinned-header {
  color: #666;
}

body.light-theme .pinned-post {
  background-color: #fff;
  border: 1px solid #eee;
}

body.light-theme .pinned-author-name {
  color: #333;
}

body.light-theme .pinned-post-content {
  color: #333;
}

body.light-theme .pinned-post-footer {
  color: #666;
}

/* Стили для комментариев в светлой теме */
body.light-theme .comment-reply {
  background-color: #e8e8e8;
}

body.light-theme .reply-content {
  color: #333;
}

body.light-theme .reply-input {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

/* Стили для медиа-превью в светлой теме */
body.light-theme .channel-media-preview {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

body.light-theme .media-description-input {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

/* Дополнительные стили для светлой темы */

/* Профиль */
body.light-theme .profile {
    background-color: #f5f5f5;
  }
  
  body.light-theme .profile__header {
    background-color: #e0e0e0;
    color: #333;
  }
  
  body.light-theme .profile__content {
    background-color: #f5f5f5;
  }
  
  body.light-theme .profile__form input,
  body.light-theme .profile__form select,
  body.light-theme .profile__form textarea {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
  }
  
  /* Видео */
  body.light-theme .video-streams-container {
    background-color: #f5f5f5;
  }
  
  body.light-theme .video-header {
    background-color: #e0e0e0;
    border-bottom: 1px solid #ddd;
  }
  
  body.light-theme .video-header h2 {
    color: #333;
  }
  
  body.light-theme .streams-list {
    background-color: #f5f5f5;
  }
  
  body.light-theme .stream-item {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  body.light-theme .stream-info {
    background-color: #fff;
  }
  
  body.light-theme .stream-title {
    color: #333;
  }
  
  body.light-theme .stream-author {
    color: #666;
  }
  
  body.light-theme .no-streams,
  body.light-theme .error-message {
    color: #666;
  }
  
  /* Личные сообщения - исправление неперекрашенных частей */
  body.light-theme .private-messages-search-container {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
  }
  
  body.light-theme .private-messages-search {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
  }
  
  body.light-theme #messages-tab {
    background: #f5f5f5;
  }
  
  body.light-theme .private-chat-item {
    background: #fff;
    border-bottom: 1px solid #ddd;
  }
  
  body.light-theme .chat-nickname {
    color: #333;
  }
  
  body.light-theme .chat-age-gender {
    color: #666;
  }
  
  body.light-theme .last-message {
    color: #666;
  }
  
  /* Новости */
  body.light-theme .tab-content {
    background-color: #f5f5f5;
    color: #333;
  }
  
  body.light-theme .tab-content h3 {
    color: #333;
  }
  
  body.light-theme .no-messages,
  body.light-theme .error-message {
    color: #666;
  }
  
  /* Меню */
  body.light-theme .menu {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  body.light-theme .menu__item {
    color: #333;
  }
  
  body.light-theme .menu__item:hover {
    background-color: #e0e0e0;
  }
  
  /* Чат и сообщения */
  body.light-theme .message {
    background-color: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    color: #333;
  }
  
  body.light-theme .message__default {
    background-color: #f0f0f0;
    color: #12ac71;
  }
  
  body.light-theme .message__username {
    color: var(--username-color, #4a76a8);
  }
  
  body.light-theme .message__text__default {
    color: #333 !important;
  }
  
  body.light-theme .system-message {
    color: #e74c3c;
  }
  
  /* Emoji picker */
  body.light-theme #emoji-picker {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  body.light-theme .chat__emoji-button {
    color: #666;
  }
  
  /* Футер */
  body.light-theme .main-block__footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
  }
  
  body.light-theme .footer-btn {
    color: #666;
  }
  
  body.light-theme .icon-container {
    background-color: #f0f2f5;
  }
  
  body.light-theme .footer-btn.active {
    color: #4a76a8;
  }
  
  body.light-theme .footer-btn.active .icon-container {
    background-color: #e3ebf5;
  }
  
  /* Область ввода */
  body.light-theme .chat__input-area {
    background-color: #fff;
    border-top: 1px solid #ddd;
  }
  
  body.light-theme .chat__input {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
  }
  
  body.light-theme .chat__input::placeholder {
    color: #999;
  }
  
  /* Исправление для модальных окон */
  body.light-theme .settings-content,
  body.light-theme .friends-modal-content, 
  body.light-theme .edit-info-modal-content {
    background-color: #fff;
    color: #333;
  }
  
  body.light-theme .edit-info-modal-content input,
  body.light-theme .edit-info-modal-content textarea,
  body.light-theme .edit-info-modal-content select {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
  }
  
  /* Исправление для просмотра трансляции */
  body.light-theme .stream-viewer-container {
    background-color: #f5f5f5;
  }
  
  body.light-theme .stream-viewer-header {
    background-color: #e0e0e0;
    border-bottom: 1px solid #ddd;
  }
  
  body.light-theme .stream-viewer-header h2 {
    color: #333;
  }
  
  body.light-theme .video-container {
    background-color: #fff;
  }
  
  body.light-theme .stream-chat {
    background-color: #f0f0f0;
  }
  
  body.light-theme .chat-message {
    color: #333;
  }
  
  body.light-theme .chat-input-container input {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
  }

/* Исправление для блоков в светлой теме */
body.light-theme .info-block {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
}

body.light-theme .content-block-inner {
  background-color: #fff;
}

body.light-theme .content-type-btn {
  background: #e0e0e0;
  color: #333;
}

body.light-theme .content-type-btn.active {
  background: #4a76a8;
  color: white;
}

body.light-theme .photo-container,
body.light-theme .video-container {
  background-color: #f5f5f5;
}

body.light-theme .photo-item,
body.light-theme .video-item {
  background-color: #e0e0e0;
}

body.light-theme .empty-photo-item {
  background-color: #e0e0e0;
  color: #666;
}

body.light-theme .bubbles-balance-block {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

body.light-theme .bubbles-amount {
  color: #f39c12;
}

body.light-theme .user-info {
  background-color: #f0f0f0;
  color: #333;
}

/* Основные оптимизации для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Общие улучшения для мобильной версии */
    html, body {
      touch-action: manipulation;
      -webkit-text-size-adjust: none;
      overflow-x: hidden;
    }
  
    /* Оптимизация прокрутки */
    .chat__messages,
    .profile__form {
      -webkit-overflow-scrolling: touch;
    }
  
    /* Исправление для поиска - 3 анкеты в ряд на мобильных */
    .user-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
    }
  
    .user-card {
      min-width: auto;
      max-width: 100%;
    }
  
    .user-avatar-img {
      min-height: 120px;
    }
  
    .user-info-overlay {
      padding: 5px;
    }
  
    .user-nickname {
      font-size: 14px;
    }
  
    .user-details {
      font-size: 12px;
    }
  }
  
  /* Специальные оптимизации для мобильных устройств */
  @media screen and (max-width: 480px) {
    /* Оптимизация видеотрансляций */
    .video-streams-container {
      height: calc(100vh - 90px);
      overflow-y: auto;
    }
  
    .streams-list {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 10px;
    }
  
    /* Стили для просмотра трансляции */
    .stream-viewer-container {
      flex-direction: column;
      height: 100vh;
    }
  
    .stream-content {
      flex-direction: column;
    }
  
    .video-container {
      width: 100%;
      height: 40vh;
    }
  
    .stream-sidebar {
      width: 100%;
      height: 60vh;
      border-left: none;
      border-top: 1px solid #444;
    }
  
    /* Комментарии внутри трансляции, а не сбоку */
    .stream-chat {
      width: 100%;
      height: 100%;
    }
  
    .chat-messages {
      max-height: calc(60vh - 100px);
      padding-bottom: 0px !important;
      margin-bottom: 0 !important;
      border-radius: 0 !important;
      gap: 0 !important;
    }
    .chat-input-container {
        padding: 5px !important;
      }
  
    /* Отправка бубликов внутри трансляции */
    .stream-actions {
      position: relative;
      bottom: 0;
      width: 100%;
      padding: 10px;
    }
  
    .send-bubbles-btn {
      padding: 8px;
      font-size: 14px;
    }
  
    /* Оптимизация для модального окна отправки бубликов */
    .send-bubbles-content {
      width: 90%;
      padding: 15px;
    }
  
    .bubbles-amount-selector {
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
    }
  
    .amount-btn {
      padding: 8px;
      font-size: 14px;
    }
  
    /* Чат и сообщения */
    .chat {
      height: calc(100vh - 90px);
    }
  
    .chat__messages {
      height: calc(100vh - 180px);
      padding-bottom: 35px !important;
          gap: 0px;
        margin-bottom: 0;
    }
  
    .message {
      padding: 8px;
      margin-bottom: 5px;
    }
  
    .message__text {
      font-size: 14px;
      line-height: 1.3;
    }
  
    .message__username {
      font-size: 13px;
    }
  
    .message__timestamp {
      font-size: 11px;
    }
  
    .chat__input-area {
      position: fixed;
      bottom: 80px;
      left: 0;
      right: 0;
      z-index: 999;
      padding: 8px;
      min-height: 40px;
    }
  
    .chat__input {
      height: 36px;
      min-height: 36px;
      font-size: 14px;
    }
  
    .chat__content {
      margin-bottom: 130px;
    }
  
    /* Стили для поиска - 3 анкеты в ряд */
    .search-results {
      padding: 10px;
    }
  
    .search-users-rows {
      padding: 5px;
    }
  
    .user-row {
      gap: 5px;
      margin-bottom: 5px;
    }
  
    /* Исправление для меню */
    .menu {
      width: 50%;
      z-index: 1001;
    }
  }
  
  /* Специальные исправления для видеотрансляций */
  @media screen and (max-width: 480px) {
    /* Улучшения для создания трансляции */
    .stream-creator-container {
      height: calc(100vh - 90px);
    }
  
    .stream-creator-content {
      padding: 10px;
    }
  
    .form-group {
      margin-bottom: 15px;
    }
  
    .form-group label {
      font-size: 14px;
      margin-bottom: 5px;
    }
  
    .form-group input,
    .form-group textarea {
      padding: 10px;
      font-size: 14px;
    }
  
    .camera-preview {
      aspect-ratio: 16/9;
      margin-bottom: 10px;
    }
  
    .camera-controls {
      flex-wrap: wrap;
    }
  
    .camera-controls button {
      flex: 0 0 48%;
      margin-bottom: 5px;
      padding: 8px;
      font-size: 12px;
    }
  
    .start-stream-now-btn {
      padding: 10px;
      font-size: 14px;
    }
  
    /* Активная трансляция */
    .live-stream-container {
      height: calc(100vh - 90px);
    }
  
    .live-stream-header {
      padding: 10px;
    }
  
    .stream-status {
      gap: 10px;
    }
  
    .stream-duration {
      font-size: 12px;
    }
  
    .end-stream-btn {
      padding: 6px 10px;
      font-size: 12px;
    }
  
    .stream-controls {
      padding: 10px;
      gap: 5px;
      flex-wrap: wrap;
    }
  
    .stream-control-btn {
      flex: 0 0 48%;
      padding: 8px;
      font-size: 10px;
    }
  }
  
  /* Дополнительные улучшения для всех устройств */
  .message {
    max-width: 100%;
    word-break: break-word;
  }
  
  /* Исправление для emoji picker */
  #emoji-picker {
    bottom: 100px;
    right: 10px;
    width: 260px;
    height: 260px;
  }
  
  /* Улучшение для чата внутри трансляции */
  .chat-input-container {
    position: relative;
    z-index: 10;
    padding: 5px !important;
  }
  
  /* Улучшение для отображения видео */
  video {
    max-width: 100%;
    height: auto;
  }

  /* Добавьте в style.css */
.stream-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    background-color: #000;
}

.stream-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-container {
    flex: 1;
    width: 100%;
    position: relative;
}

.stream-sidebar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: transparent;
    border-left: none;
}

.stream-chat {
    background-color: transparent;
}

.chat-messages {
    background-color: transparent;
}

.chat-message {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.chat-input-container {
    background-color: rgba(0, 0, 0, 0.5);
    border-top: none;
}

.chat-input-container input {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.stream-actions {
    background-color: transparent;
    border-top: none;
}

.send-bubbles-btn {
    background-color: rgba(0, 0, 0, 0.5);
}
/* Добавьте в style.css */
.chat-message {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: white;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: blur(5px); /* Добавляет размытие фона */
  }

.donation-message {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.send-bubbles-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
/* Добавьте в style.css */
.user-info-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
}

.user-card {
    flex: 1;
    max-width: 33.333%;
    height: auto;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для отображения 3 карточек в ряд и 2 ряда */
.search-users-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 480px) {
    .user-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .user-card {
        min-width: auto;
        max-width: 100%;
    }
    
    .user-avatar-img {
        min-height: 120px;
    }
}
/* Добавьте в style.css */
@media screen and (max-width: 480px) {

    
    .chat__input-area {
        position: fixed;
        bottom: 80px;
        left: 0;
        right: 0;
        z-index: 999;
    }
    
    .message {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .message__content {
        width: 100%;
    }
}

body.light-theme .private-chat-window {
    background: #f5f5f5;
}

body.light-theme .private-chat-header {
    background: #e0e0e0;
    border-bottom: 1px solid #ddd;
}

body.light-theme .user-details {
    color: #333; /* Делаем текст черным в светлой теме */
}

body.light-theme .username {
    color: #333; /* Делаем имя пользователя черным в светлой теме */
}

body.light-theme .online-status {
    color: #666; /* Делаем статус темно-серым в светлой теме */
}

body.light-theme .chat-messages {
    background-color: #f5f5f5;
}

/* Исправление для блоков сообщений в личных сообщениях */
body.light-theme .private-message {
    border-radius: 12px; /* Округляем края блоков сообщений */
}

body.light-theme .private-message.sent {
    background: #4a89dc;
    color: white;
}

body.light-theme .private-message.received {
    background: #e0e0e0;
    color: #333; /* Делаем текст черным в светлой теме */
}

body.light-theme .message-content {
    color: inherit; /* Наследуем цвет от родительского элемента */
    word-wrap: break-word; /* Разрешаем перенос слов */
    hyphens: auto; /* Включаем автоматические переносы */
}

/* Исправление для окна приглашения друзей */
body.light-theme .invite-friends-modal .modal-content {
    background-color: #fff;
    color: #333;
}

body.light-theme .invite-friends-modal .modal-header {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

body.light-theme .invite-friends-modal .modal-header h2 {
    color: #f0f0f0;
}

body.light-theme .invite-link-container {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

body.light-theme .invite-link {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

body.light-theme .friend-invite-item {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

body.light-theme .friend-name {
    color: #333;
}

/* Исправление для настроек канала */
body.light-theme .channel-settings-modal .modal-content {
    background-color: #fff;
    color: #333;
}

body.light-theme .channel-settings-modal .modal-header {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

body.light-theme .channel-settings-modal .modal-header h2 {
    color: #333;
}

body.light-theme .form-group label {
    color: #333;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* Исправление для верхнего блока в личных сообщениях */
body.light-theme .user-info {
    background-color: #fff;
    color: #333;
    cursor: pointer; /* Делаем блок кликабельным */
}

/* Добавьте в style.css */
@media screen and (max-width: 480px) {
    .private-chat-window {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
    }
    
    .private-chat-header {
        padding: 10px;
    }
    
    .close-chat {
        font-size: 28px;
        padding: 0 10px;
        position: absolute;
        right: 10px;
        top: 10px;
    }
    
    .chat-messages {
        padding: 10px;
        margin-bottom: 60px; /* Увеличиваем отступ снизу для области ввода */
    }
    
    .chat-input-area {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        background: #2a2a2a;
        z-index: 1101;
    }
    
    .private-message-input {
        height: 36px;
    }
    
    /* Уменьшаем размер аватара и информации о пользователе */
    .chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-details {
        font-size: 14px;
    }
    
    .username {
        font-size: 16px;
    }
    
    .online-status {
        font-size: 12px;
    }
    
    /* Исправление для поиска в чате */
    .private-chat-search {
        display: none; /* Скрываем поиск на мобильных устройствах для экономии места */
    }
}

/* ИСПРАВЛЕНИЯ ДЛЯ СВЕТЛОЙ ТЕМЫ */

/* Исправление для блока поиска друзей */
body.light-theme .friends-search {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

body.light-theme .friends-search input {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* Исправление для блока заявок в друзья */
body.light-theme .friend-requests-container {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

body.light-theme .friend-requests-container h3 {
    color: #333 !important;
}

body.light-theme .friend-request-item {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-bottom: 1px solid #ddd !important;
}

body.light-theme .friend-request-name {
    color: #333 !important;
}

/* Исправление для окна "Мои друзья" */
body.light-theme .friends-modal {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .friends-modal-content {
    background-color: #ffffff !important;
    color: #333 !important;
    border: 1px solid #dddddd !important;
}

body.light-theme .friends-modal-header {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-bottom: 1px solid #dddddd !important;
}

body.light-theme .friends-modal-header h2 {
    color: #333 !important;
}

body.light-theme .close-friends-modal {
    color: #333 !important;
}

body.light-theme .friends-list-container {
    background-color: #ffffff !important;
    color: #333 !important;
}

body.light-theme .friends-list-container h3 {
    color: #333 !important;
}

body.light-theme .friends-list {
    background-color: #ffffff !important;
    color: #333 !important;
}

body.light-theme .friend-item {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-bottom: 1px solid #eeeeee !important;
}

body.light-theme .friend-name {
    color: #333 !important;
}

body.light-theme .friend-details {
    color: #666 !important;
}

/* Исправление для кнопок в светлой теме */
body.light-theme .accept-request-btn {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

body.light-theme .decline-request-btn {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

body.light-theme .remove-friend-btn {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

body.light-theme .message-friend-btn {
    background-color: #4a89dc !important;
    color: #ffffff !important;
}


/* Исправление для поиска друзей */
body.light-theme #friends-search {
    background-color: #ffffff !important;
    color: #333 !important;
    border: 1px solid #dddddd !important;
}

/* Исправление для модальных окон в целом */
body.light-theme .modal-content {
    background-color: #fff !important;
    color: #333 !important;
}

body.light-theme .modal-header {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border-bottom: 1px solid #ddd !important;
}

body.light-theme .modal-header h2,
body.light-theme .modal-header h3 {
    color: #333 !important;
}

body.light-theme .close-modal,
body.light-theme .close-friends-modal {
    color: #333 !important;
}


#videoContainer {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.video-controls {
    margin-bottom: 20px;
    text-align: center;
}

.video-controls button {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.video-streams {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.local-stream, .remote-stream {
    flex: 1;
    text-align: center;
}

.local-stream video, .remote-stream video {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #000;
    border-radius: 8px;
}

.active-streams {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.stream-item {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    border: 1px solid #eee;
}

.stream-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stream-user {
    font-weight: bold;
}

.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для окна видеотрансляций */
.video-streams-window {
    position: fixed;
    top: 50px;
    left: 50px;
    width: 800px;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.video-window-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.video-window-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.video-content {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.stream-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.status-indicator {
    font-size: 12px;
}

.video-streams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .video-streams-container {
        grid-template-columns: 1fr;
    }
}

.local-stream-container,
.remote-stream-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.local-stream-container h4,
.remote-stream-container h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #495057;
}

.local-stream-container video,
.remote-stream-container video {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 6px;
    object-fit: cover;
}

.stream-info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.active-streams-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.active-streams-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #495057;
}

.streams-list {
    max-height: 200px;
    overflow-y: auto;
}

.stream-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.stream-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stream-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stream-user {
    font-weight: 500;
    color: #495057;
}

.no-streams {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.quality-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.quality-settings h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
}

.quality-settings select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.video-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}





