.tg_chat_r {
    max-width: 1055px;
}

.tg_chat_list {
    display: flex;
    flex-wrap: wrap;
    padding: 3px 4px;
}

.tg_chat_item {
    height: 200px;
    background-color: #091c27;
    margin: 1% 1% 1%;
    border-radius: 4px;
    width: 48%;
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
}

@media(min-width: 1024px) {
    .tg_chat_item:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 550px) {
    .tg_chat_item {
        height: 160px;
        width: 100%;
        margin: 2% 5px;
    }
}

.tg_chat_item_in {
    height: 100%;
    position: relative;
    background: linear-gradient( 
0deg,rgb(0 0 0 / 87%) 0,rgb(0 0 0 / 43%) 49%,rgba(20,42,55,0) 100%);
    border-radius: 4px;
}

.tg_chat_item_plus {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tg_chat_item_text {
    position: absolute;
    bottom: 0;
    padding: 12px 20px 18px;
}

@media(max-width: 550px) {
    .tg_chat_item_text {
    padding: 12px 13px 13px;
    }
}

.tg_chat_item_title {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 3px rgb(0 0 0 / 75%);
    font-weight: 500;
}

@media(max-width: 550px) {
    .tg_chat_item_title {
    font-size: 19px;
    margin-bottom: 8px;
    }
}

.tg_chat_item_tags {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #d0e599;
    text-shadow: 0 0 3px rgb(0 0 0 / 75%);
}

.tg_chat_item_speaker {
    position: absolute;
    margin: 12px 0 0 12px;
    padding: 0 0 3px 0px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
}

.tg_chat_item_speaker_im {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    box-shadow: 0 0 3px rgb(0 0 0 / 75%);
    border: 2px solid #ffffff;
}

.tg_chat_item_speaker_im img {
    width: 100%;
}

.tg_chat_item_speaker_name {
    font-size: 14px;
    font-weight: 300;
    text-shadow: 0 0 3px rgb(0 0 0 / 75%);
}

.tg_chat_item_user {
    position: absolute;
    right: 0;
    margin: 17px 12px 0 0;
    padding: 0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tg_chat_item_user_count {
    font-weight: 600;
    font-size: 14px;
    margin-left: 7px;
}

.tg_chat_item_user_icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
}



/*chat_page*/
.tg_chat_count_selelector {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-right: 11px;
}

@media(max-width: 768px) {
    .tg_chat_count_selelector {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

.tg_chat_count_changer {
    padding: 3px 4px;
    cursor: pointer;
}

@media(max-width: 768px) {
    .tg_chat_count_changer {
    padding: 5px 15px;
    }
}

.tg_chat_count_selelector_top {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

@media(max-width: 768px) {
    .tg_chat_count_selelector_top {
    font-size: 23px;
    }
}

.tg_chat_count_selelector_bottom {
    font-size: 12px;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.12em;
}

@media(max-width: 768px) {
    .tg_chat_count_selelector_bottom {
        font-size: 14px;
    }
}

.tg_chat_count_num {
    padding: 0 7px;
}



/**/
.tg_chat_sel {
    display: flex;
    text-align: center;
    margin: 18px 0;
    /* justify-content: end; */
    overflow-x: auto;
    padding-bottom: 7px;
}

@media(max-width: 768px) {
    .tg_chat_sel {
        /* justify-content: center; */
        width: min-content;
        margin-left: auto;
        margin-right: auto;
        overflow: auto;
        max-width: 100%;
    }
}

.tg_chat_sel_item {
    padding: 5px 0 10px 0;
    margin: 0 7px;
    border: 2px solid #4A7C99;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    min-width: 86px;
}

.tg_chat_sel_item:first-child {
    margin-left: 0;
}

.tg_chat_sel_item:last-child {
    margin-right: 0;
}

.tg_chat_sel_item:hover {
    background-color: #13394F;
    border-color: #1D94D9;
}

.tg_chat_sel_item.active {
    background-color: var(--variation-bg-color-active);
    border-color: var(--variation-bg-color-active);
}

.tg_chat_sel_month_count {
    font-size: 23px;
    font-weight: 900;
    margin-bottom: 3px;
}

.tg_chat_sel_month_text {
    font-size: 12px;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
}

.tg_chat_sel_month_price {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

