/* Общие стили */
body {
    padding-top: 44px;
	overflow-x: hidden;
}

/* Кастомные размеры контейнера */
.container {
    max-width: 100%;
    padding-left: 10px; /* Уменьшенные отступы для мобильных */
    padding-right: 10px;
}
@media (min-width: 576px) {
    .container {
        max-width: 648px; /* 540px * 1.2 */
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 864px; /* 720px * 1.2 */
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 1152px; /* 960px * 1.2 */
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1368px; /* 1140px * 1.2 */
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1584px; /* 1320px * 1.2 */
    }
}

/* Навигационная панель */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.5rem 0.5rem;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Добавлена тень */
}
@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0.25rem; /* Компактные горизонтальные отступы на мобильных */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Тень сохранена для мобильных */
    }
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Логотип */
.logo {
    max-height: 25px;
    max-width: 100%;
}

/* Поиск */
.search-form {
    max-width: 500px;
    width: 100%;
    margin: 0 0.5rem; /* Уменьшен margin для компактности */
}
.search-form .input-group {
    border: 1px solid #e5e5e5;
    border-radius: 2rem;
    overflow: hidden;
}
.search-form .form-control {
    border: none;
    box-shadow: none;
    border-radius: 2rem 0 0 2rem;
}
.search-form .btn {
    border: none;
    background-color: #f8f8f8;
    border-left: 1px solid #e5e5e5;
    border-radius: 0 2rem 2rem 0;
}

/* Иконки навигации */
.navbar-icons {
    margin-left: auto; /* Позиционирует кнопки справа */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Отступы как при fs-4 */
}
.navbar-icons .btn {
    color: #606060;
    padding: 0.5rem; /* Отступы как при fs-4 */
    line-height: 1;
}
.navbar-icons .btn:hover {
    color: #000;
}
.navbar-icons .search-icon {
    padding: 0.5rem;
}
.navbar-icons .menu-btn {
    padding: 0.5rem; /* Отступы как при fs-4 */
    background-color: rgba(51, 51, 51, 0.05); /* Ещё более светлый тёмно-серый фон */
    border: 1px solid #333; /* Тёмно-серая обводка */
    border-radius: 0.5rem; /* Скруглённые углы */
    transition: transform 0.2s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px; /* Увеличен для fs-2 */
    height: 35px; /* Увеличен для fs-2 */
}
.navbar-icons .menu-btn:hover {
    background-color: rgba(51, 51, 51, 0.1); /* Чуть темнее, но всё ещё светлый при наведении */
    transform: scale(1.05); /* Уменьшенный зум */
}
.navbar-icons .menu-btn i {
    font-size: 2rem; /* Размер fs-2 */
    color: #333; /* Тёмно-серая иконка */
    line-height: 1;
}

/* Боковое меню */
.offcanvas-end {
    width: 320px !important; /* Увеличено с 280px */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Добавлена тень */
}

.sidebar .nav-link {
    color: #333;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem; /* Увеличено с 1rem */
    font-weight: 600; /* Увеличено с 400 для большей "толщины" */
    overflow-wrap: break-word;
    hyphens: auto;
    /* font-family: 'Roboto', sans-serif; */ /* Раскомментируйте для смены шрифта */
    /* text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2); */ /* Раскомментируйте для тени */
    /* letter-spacing: -0.02em; */ /* Раскомментируйте для уменьшения интервала */
}

.sidebar .nav-link:hover {
    background-color: #f8f8f8;
    color: #000;
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.3rem; /* Увеличено с 1.1rem */
}

.sidebar .nav-link.active {
    background-color: #e5e5e5;
    font-weight: 700; /* Увеличено с bold для консистентности */
    color: #000;
}

.sidebar .collapse {
    background-color: #f8f8f8;
}

.sidebar .sub-menu .nav-link {
    padding-left: 2rem;
    font-size: 1.1rem; /* Увеличено с 0.9rem */
    font-weight: 500; /* Увеличено с 400 */
    /* font-family: 'Roboto', sans-serif; */ /* Раскомментируйте для смены шрифта */
    /* text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2); */ /* Раскомментируйте для тени */
    /* letter-spacing: -0.02em; */ /* Раскомментируйте для уменьшения интервала */
}

.sidebar .sub-menu .nav-link i {
    font-size: 1.2rem; /* Увеличено с 1rem */
}

.sidebar .nav-item + .nav-item {
    border-top: 1px solid #e5e5e5;
}

/* Коррекция переноса слов для навигации и заголовков */
.navbar .search-form input,
.navbar .search-form button,
.offcanvas-title {
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: normal;
    font-weight: 400; /* Уменьшено с 600 для нормальной толщины */
}

/* Стили для формы поиска */
.search-form .form-control {
    font-size: 0.9rem; /* Уменьшенный размер шрифта */
    font-weight: 400; /* Нормальная толщина */
}
.search-form .form-control::placeholder {
    font-size: 0.9rem; /* Уменьшенный размер для placeholder */
    font-weight: 400; /* Нормальная толщина для placeholder */
}

/* Уменьшение шрифта на мобильных */
@media (max-width: 576px) {
    .sidebar .nav-link {
        font-size: 1rem; /* Увеличено с 0.9rem */
        font-weight: 600; /* Увеличено с 400 */
    }
    .sidebar .sub-menu .nav-link {
        font-size: 0.95rem; /* Увеличено с 0.9rem */
        font-weight: 500; /* Увеличено с 400 */
    }
    .sidebar .nav-link i {
        font-size: 1.1rem;
    }
    .sidebar .sub-menu .nav-link i {
        font-size: 1rem;
    }
    .offcanvas-title {
        font-size: 1.2rem; /* Увеличено с 1.1rem */
        font-weight: 600; /* Увеличено с 400 */
    }
    .search-form {
        display: none;
    }
    .navbar-icons .search-icon {
        display: block !important;
    }
    #searchCollapse .search-form {
        display: block;
        margin: 0.5rem 0; /* Исправлено с ???0.5rem 0 */
    }
    .search-form .form-control {
        font-size: 0.85rem; /* Ещё меньше для мобильных */
        font-weight: 400;
    }
    .search-form .form-control::placeholder {
        font-size: 0.85rem;
        font-weight: 400;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .row > * {
        padding-left: 0; /* Убрано, так как .container уже даёт отступы */
        padding-right: 0;
    }	
}

/* Контейнер для стрима */
.stream-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.stream-container iframe.code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 576px) {
    .stream-container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Видео */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.blur-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    display: none;
    z-index: 0;
}
video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.video-vertical .blur-bg {
    display: block;
}
.video-vertical video {
    object-fit: contain;
    max-width: 50%;
    left: 25%;
    position: absolute;
}

/* Оффлайн-заглушка */
.offline-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.offline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.offline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 20px;
}
.offline-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    overflow-wrap: break-word;
    hyphens: auto;
}
.offline-time {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    overflow-wrap: break-word;
    hyphens: auto;
}
@media (max-width: 576px) {
    .offline-text {
        font-size: 1.2rem;
    }
    .offline-time {
        font-size: 1rem;
    }
}

/* Кнопки */
.stream-buttons {
    width: 100%;
    margin: 10px 0;
    display: flex;
    gap: 10px;
}
.stream-buttons .btn {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.stream-buttons .btn-signup {
    background-color: #007bff;
    color: #fff;
}
.stream-buttons .btn-signup:hover {
    background-color: #0056b3;
}
.stream-buttons .btn-chat {
    background-color: #28a745;
    color: #fff;
}
.stream-buttons .btn-chat:hover {
    background-color: #218838;
}
@media (max-width: 576px) {
    .stream-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .stream-buttons .btn {
        font-size: 0.9rem;
    }
}

/* Информация о модели */
.model-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
.model-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}
.model-details {
    display: flex;
    flex-direction: column;
}
.model-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.model-nickname {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    overflow-wrap: break-word;
    hyphens: auto;
}
.model-info .viewers {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}
.model-info .viewers i {
    font-size: 1rem;
}
@media (max-width: 576px) {
    .model-avatar {
        width: 40px;
        height: 40px;
    }
    .model-nickname {
        font-size: 0.9rem;
    }
    .model-info .viewers {
        font-size: 0.75rem;
    }
    .model-info .viewers i {
        font-size: 0.9rem;
    }
}

/* Хлебные крошки */
.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0.85rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 5px;
}
.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    overflow-wrap: break-word;
    hyphens: auto;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #666;
}
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.75rem;
    }
}

/* Описание стрима */
.stream-description {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    color: #333;
    line-height: 1.4;
}
.stream-description h1,
.stream-description h2,
.stream-description h3,
.stream-description h4,
.stream-description h5,
.stream-description h6 {
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    hyphens: auto;
}
.stream-description h1 { font-size: 1.4rem; }
.stream-description h2 { font-size: 1.3rem; }
.stream-description h3 { font-size: 1.2rem; }
.stream-description h4 { font-size: 1.1rem; }
.stream-description h5 { font-size: 1rem; }
.stream-description h6 { font-size: 0.9rem; }
.stream-description p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    hyphens: auto;
}
.stream-description ul,
.stream-description ol {
    margin-bottom: 15px;
    padding-left: 20px;
}
.stream-description ul li,
.stream-description ol li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    hyphens: auto;
}
.stream-description ul li {
    list-style-type: disc;
}
.stream-description ol li {
    list-style-type: decimal;
}
.stream-description a {
    color: #007bff;
    text-decoration: none;
}
.stream-description a:hover {
    text-decoration: underline;
}
@media (max-width: 576px) {
    .stream-description {
        padding: 15px;
    }
    .stream-description h1 { font-size: 1.3rem; }
    .stream-description h2 { font-size: 1.2rem; }
    .stream-description h3 { font-size: 1.1rem; }
    .stream-description h4 { font-size: 1rem; }
    .stream-description h5 { font-size: 0.9rem; }
    .stream-description h6 { font-size: 0.85rem; }
    .stream-description p,
    .stream-description ul li,
    .stream-description ol li {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Рекомендуемые видео */
.recommended-videos {
    margin-top: 0px; /* Без отступа для всех устройств по умолчанию */
    padding-left: 0px;
    padding-right: 0px;
}

/* Отступ сверху 10px для мобильных и планшетов (ширина до 991px) */
@media (max-width: 991px) {
    .recommended-videos {
        margin-top: 10px;
    }
}
.recommended-videos h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.recommended-videos p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    hyphens: auto;
}
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.recommended-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}
.recommended-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.recommended-item:hover img {
    transform: scale(1.05);
}
.recommended-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.recommended-item .overlay .name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recommended-item .overlay .viewers {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.recommended-item .overlay .viewers i {
    font-size: 1rem;
}
@media (max-width: 576px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .recommended-item .overlay .name {
        font-size: 0.85rem;
    }
    .recommended-item .overlay .viewers {
        font-size: 0.8rem;
    }
}
@media (min-width: 992px) {
    .recommended-item {
        padding-bottom: 56.25%;
    }
    .recommended-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Заголовок и описание стрима */
.stream-title {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    hyphens: auto;
}
.stream-intro {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    overflow-wrap: break-word;
    hyphens: auto;
}
.stream-header {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}
@media (max-width: 576px) {
    .stream-title {
        font-size: 1.2rem;
    }
    .stream-intro {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    .stream-header {
        padding: 15px;
    }
}

/* Стили для контейнера live-model */
.live-model {
    margin-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

/* Отступ сверху для мобильных и планшетов */
@media (max-width: 991px) {
    .live-model {
        margin-top: 10px;
    }
}

/* Стили для сетки live-grid */
.live-grid {
    display: grid;
    gap: 8px; /* Изменено: расстояние между моделями по умолчанию */
}

/* Адаптивное количество колонок */
@media (max-width: 575.98px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на маленьких экранах */
        gap: 6px; /* Изменено: расстояние между моделями на маленьких экранах */
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .live-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на средних экранах */
        gap: 8px; /* Можно настроить отдельное значение для этого диапазона, если нужно */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .live-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на больших экранах */
        gap: 8px; /* Можно настроить отдельное значение для этого диапазона, если нужно */
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .live-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 колонки на очень больших экранах */
        gap: 8px; /* Можно настроить отдельное значение для этого диапазона, если нужно */
    }
}

@media (min-width: 1200px) {
    .live-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 колонок на максимальном размере */
        gap: 8px; /* Можно настроить отдельное значение для этого диапазона, если нужно */
    }
}

/* Стили для элементов live-item */
.live-item {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    display: block;
    text-decoration: none;
}

.live-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.live-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-item .overlay .name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-item .overlay .viewers {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-item .overlay .viewers i {
    font-size: 1rem;
}

/* Адаптация текста для маленьких экранов */
@media (max-width: 576px) {
    .live-item .overlay .name {
        font-size: 0.85rem;
    }
    .live-item .overlay .viewers {
        font-size: 0.8rem;
    }
}
/* Ссылка на чат */
.js-chat-link {
    cursor: pointer;
}
.stream-description p strong {
    font-weight: 600;
}