
/* Внешний контейнер */
.ntl_holder {
    position: relative;
    width: 900px;
    margin: 60px auto 0;
    box-sizing: border-box;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 20px;
}

/* Основная область заголовка */
.ntl_block {
    position: relative;
    width: 100%;
    height: 600px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;

    grid-template-areas:
        "lang session"
        "name season"
        ". .";

    column-gap: 10px;
    row-gap: 5px;

    overflow: visible;
}


/* Языковые флаги */
.ntl_languages {
    grid-area: lang;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Кнопка сессии */
.ntl_session {
    grid-area: session;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Название */
.ntl_name {
    grid-area: name;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;

    overflow: hidden;
    font-family: var(--font);
    border-radius: 15px;
    padding: 15px 55px;
    background-color: #616161;
    color: #ffffff;

    position: relative;
    z-index: 2;
}


/* Блок выбора сезона и сессии */
.ntl_season_session {
    grid-area: season;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Выбор сезона */
.ntl_season {
    min-width: 0;
}

/* Выбор сессии */
.ntl_session_selector {
    min-width: 0;
}

/* Чат */
.ntl_chat {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 400px; /* нужная высота чата */
    min-width: 0;
    min-height: 0;

    box-sizing: border-box;
    z-index: 1;
}

/* Кнопка показа чата */
.ntl_chat_show {
    width: 100%;

    display: flex;
    justify-content: center;
}

/* Предупреждение AdBlock */
.ntl_adblock_warning {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Список пользователей прижат к низу */
.ntl_chat_users > :first-child {
    margin-top: auto;
}

/* Область сообщений занимает всё свободное пространство */
.ntl_chat_content {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
}

/*.ntl_chat .ncl_messages {
    justify-content: flex-end;
}*/
.ntl_chat .ncl_messages {
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    min-height: 0;
}

.ntl_background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.5;
}

.ntl_background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
