/* Yer6 Editorial Chat - final, flat message list */
#show_chat li.ch_logs.modern_chat_row,
#show_chat li.ch_logs.modern_chat_row.own_log,
#show_chat li.ch_logs.modern_chat_row.other_log {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0px !important;
    width: 100% !important;
    /* min-height: 70px !important; */
    margin: 0 !important;
    /* padding: 11px 15px 11px 8px !important; */
    float: none !important;
    clear: both !important;
    border: 13px !important;
    border-bottom: 1px solid rgba(37, 104, 138, .14) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, .96) !important;
    overflow: visible !important;
    text-align: left !important;
    content-visibility: auto;
    /* contain-intrinsic-size: auto 70px; */
}

#show_chat li.ch_logs.modern_chat_row:nth-child(even),
#show_chat li.ch_logs.modern_chat_row.own_log:nth-child(even) {
    background: rgb(191, 205, 212) !important;
}

#show_chat li.ch_logs.modern_chat_row > .chat_avatar,
#show_chat li.ch_logs.modern_chat_row.own_log > .chat_avatar {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
    align-self: start !important;
    z-index: 1 !important;
}

#show_chat li.ch_logs.modern_chat_row > .chat_avatar img,
#show_chat li.ch_logs.modern_chat_row.own_log > .chat_avatar img {
    display: block !important;
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: fill !important;
    border: 2px solid #4d9ec7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(10, 40, 56, .15) !important;
}

#show_chat li.ch_logs.modern_chat_row > .my_text,
#show_chat li.ch_logs.modern_chat_row.own_log > .my_text {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: left !important;
}

#show_chat .modern_message_card,
#show_chat li.ch_logs.modern_chat_row.own_log .modern_message_card,
#show_chat li.ch_logs.modern_chat_row.other_log .modern_message_card {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    grid-template-rows: auto auto auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    color: #252525 !important;
    text-align: left !important;
}

#show_chat .modern_message_card::before,
#show_chat .modern_message_card::after { display: none !important; }

#show_chat .modern_message_head {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    min-height: 31px !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: left !important;
    font-size: 27px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
}

/* Keep the rank badge inside the row and completely stable on hover. */
#show_chat li.ch_logs.modern_chat_row .modern_rank_slot {
    position: static !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

#show_chat li.ch_logs.modern_chat_row .modern_rank_slot .chat_rank,
#show_chat li.ch_logs.modern_chat_row:hover .modern_rank_slot .chat_rank,
#show_chat li.ch_logs.modern_chat_row .modern_rank_slot .chat_rank:hover {
    position: static !important;
    display: block !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 2px !important;
    border-radius: 50% !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    box-sizing: border-box !important;
}

#show_chat .modern_message_head .normal_nick_header,
#show_chat .modern_message_head .normal_nick_value {
    display: inline-block !important;
    max-width: 100% !important;
    font-size: 27px !important;
    line-height: 1.1 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

#show_chat .modern_message_head .flash_nick_wrap {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: min(400px, 100%) !important;
    height: 34px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

#show_chat .modern_message_head .flash_nick_img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
}

#show_chat .modern_message_body {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 32px 0 0 !important;
    /* font-size: 19px !important; */
    line-height: 1.35 !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
}

#show_chat .modern_message_meta,
#show_chat li.ch_logs.modern_chat_row.own_log .modern_message_meta,
#show_chat .modern_message_meta:hover,
#show_chat li.ch_logs.modern_chat_row:hover .modern_message_meta {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #171717 !important;
    text-align: right !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    contain: layout style !important;
    box-sizing: border-box !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: end !important;
}

#show_chat .modern_message_meta .cdate,
#show_chat .modern_message_meta .cdate:hover {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: #171717 !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
}

#show_chat .modern_message_meta .cclear,
#show_chat .modern_message_meta .cclear:hover,
#show_chat .modern_message_meta .cclear:focus,
#show_chat .modern_message_meta .cclear:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: rgba(24, 68, 90, .08) !important;
    opacity: .9 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    box-sizing: border-box !important;
}

#show_chat .modern_message_meta .cclear i,
#show_chat .modern_message_meta .cclear:hover i {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 12px !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
}

#show_chat .modern_reply {
    margin: 4px 0 5px !important;
    padding: 3px 8px !important;
    border: 0 !important;
    border-left: 3px solid #3798c8 !important;
    border-radius: 0 !important;
    background: rgba(63, 152, 197, .08) !important;
    box-shadow: none !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}

@media (max-width: 700px) {
    #show_chat li.ch_logs.modern_chat_row,
    #show_chat li.ch_logs.modern_chat_row.own_log,
    #show_chat li.ch_logs.modern_chat_row.other_log {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        gap: 8px !important;
        min-height: 74px !important;
        padding: 8px 7px 8px 5px !important;
        contain-intrinsic-size: auto 74px;
    }

    #show_chat li.ch_logs.modern_chat_row > .chat_avatar,
    #show_chat li.ch_logs.modern_chat_row.own_log > .chat_avatar,
    #show_chat li.ch_logs.modern_chat_row > .chat_avatar img,
    #show_chat li.ch_logs.modern_chat_row.own_log > .chat_avatar img {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }

    #show_chat .modern_message_card,
    #show_chat li.ch_logs.modern_chat_row.own_log .modern_message_card,
    #show_chat li.ch_logs.modern_chat_row.other_log .modern_message_card {
        grid-template-columns: minmax(0, 1fr) 118px !important;
    }

    #show_chat .modern_message_head,
    #show_chat .modern_message_head .normal_nick_header,
    #show_chat .modern_message_head .normal_nick_value {
        min-height: 27px !important;
        font-size: 22px !important;
        line-height: 1.1 !important;
    }

    #show_chat .modern_message_head .flash_nick_wrap,
    #show_chat .modern_message_head .flash_nick_img {
        height: 28px !important;
        max-height: 28px !important;
    }

    #show_chat li.ch_logs.modern_chat_row .modern_rank_slot .chat_rank,
    #show_chat li.ch_logs.modern_chat_row:hover .modern_rank_slot .chat_rank,
    #show_chat li.ch_logs.modern_chat_row .modern_rank_slot .chat_rank:hover {
        flex-basis: 26px !important;
        width: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
    }

    #show_chat .modern_message_body {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    #show_chat .modern_message_meta,
    #show_chat li.ch_logs.modern_chat_row.own_log .modern_message_meta,
    #show_chat .modern_message_meta:hover,
    #show_chat li.ch_logs.modern_chat_row:hover .modern_message_meta {
        top: auto !important;
        right: auto !important;
        gap: 4px !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
    }

    #show_chat .modern_message_meta .cdate {
        flex-basis: 62px !important;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        font-size: 9px !important;
    }
}

@media (prefers-reduced-motion: reduce), (max-width: 700px) {
    #show_chat li.modern_chat_row,
    #show_chat li.modern_chat_row * {
        animation: none !important;
        transition: none !important;
    }
}

/* Text uses the full row; reserve room for the rank badge on the last line only. */
#show_chat li.ch_logs.modern_chat_row .modern_message_body{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    padding:0 !important;
}
#show_chat li.ch_logs.modern_chat_row .modern_message_body::after{content:"";display:inline-block;width:34px;height:1em;vertical-align:bottom;}
#show_chat li.ch_logs.modern_chat_row .modern_rank_slot{align-self:end!important;min-height:0!important;padding:0!important;pointer-events:none;}

/* Keep the radio and open-conversation launchers inside the footer. */
#my_menu{display:flex;align-items:center;gap:3px;width:100%;height:46px;padding:0 6px;box-sizing:border-box;}
#my_menu>.chat_footer_empty{display:block;flex:1 1 0;min-width:0;overflow:hidden;}
#my_menu .chat_player{display:flex;align-items:center;width:100%;min-width:0;}
#my_menu .player_menu{display:block;flex:0 0 30px;width:30px;}
#my_menu .player_button{display:block;flex:0 0 32px;width:32px;}
#my_menu .player_current{display:block;flex:1 1 0;width:auto;min-width:0;max-width:180px;overflow:hidden;}
#my_menu .player_current p{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#my_menu>.chat_footer_item{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 42px;width:42px;max-width:none;min-width:0;height:42px;box-sizing:border-box;}
#my_menu>#dpriv,#my_menu>#gchath,#my_menu>#gchath_ask{flex-basis:34px;width:34px;}
#my_menu #dpriv_av{display:block;width:28px;height:28px;max-width:100%;object-fit:cover;border-radius:50%;}
#my_menu>.privhide{display:none!important;}
#games_toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:42px;padding:0;border:0;border-radius:9px;background:transparent;color:#fff;cursor:pointer;}
#games_toggle>.fa{font-size:21px;line-height:1;}
#games_toggle>span{font-size:8px;font-weight:800;line-height:1.2;letter-spacing:.2px;}
#games_toggle:hover,#games_toggle[aria-expanded=true]{background:rgba(13,53,73,.22);}
#games_toggle:focus-visible{outline:2px solid #eaf6fb;outline-offset:-2px;}
#games_menu[hidden]{display:none!important;}
#games_menu{position:fixed;z-index:450;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:276px;max-width:calc(100vw - 20px);padding:13px;border:1px solid #81b5cf;border-radius:17px;background:linear-gradient(145deg,#ffffff,#ebf4f8);box-shadow:0 12px 34px #38240040,inset 0 1px 0 #fff;color:#1b4153;box-sizing:border-box;text-align:left;}
#games_menu .games_menu_title{grid-column:1 / -1;display:flex;align-items:center;gap:7px;margin:0 0 2px;font-size:12px;font-weight:800;letter-spacing:.2px;color:#286989;}
#games_menu .games_choice{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:14px 8px 11px;border:1px solid #b0ccda;border-radius:12px;background:#ffffff;color:#153d50;cursor:pointer;box-shadow:0 3px 7px #5e40000c;}
#games_menu .games_choice:hover,#games_menu .games_choice:focus-visible{background:#f7fbfe;border-color:#3181a9;outline:2px solid #6fabca;outline-offset:1px;}
#games_menu .games_choice strong{font-size:14px;line-height:1.2;}
#games_menu .games_choice small{font-size:10px;color:#588093;line-height:1.2;}
#games_menu .games_art{display:flex;align-items:center;justify-content:center;gap:3px;height:39px;font-size:25px;}
#games_menu .games_art b{display:grid;place-items:center;width:25px;height:34px;border:1px solid #bad2de;border-radius:5px;background:#fff;box-shadow:0 2px 3px #553b0017;font-size:20px;}
#games_menu .games_art b:first-child{color:#ba2e34;transform:rotate(-8deg);}
#games_menu .games_art b:last-child{color:#263354;transform:rotate(8deg);}
@media(max-width:768px){
    #chat_font_controls{top:48px !important;}
    #soz_id.yer6_soz_panel{display:flex!important;align-items:center!important;height:44px;min-height:44px;box-sizing:border-box;}
    #soz_id #sozgecis_text{position:static!important;display:flex!important;align-items:center!important;align-self:stretch;height:auto!important;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;line-height:normal!important;}
    #soz_id #soz_track{display:flex!important;align-items:center!important;height:100%;margin-top:0!important;margin-bottom:0!important;}
    #soz_id #soz_track>span{display:inline-flex;align-items:center;flex:0 0 auto;height:100%;margin:0!important;line-height:1.15;}
    #soz_id .soz_item{align-items:center;box-sizing:border-box;max-height:40px;line-height:1.15;}
    #soz_id .soz_user,#soz_id .soz_mesaj{margin-top:0!important;margin-bottom:0!important;line-height:1.15;}
    #my_menu{gap:1px;padding:0 4px;}
    #my_menu>.chat_footer_item{flex-basis:38px;width:38px;}
    #my_menu>#dpriv,#my_menu>#gchath,#my_menu>#gchath_ask{flex-basis:30px;width:30px;}
    #my_menu .player_menu{flex-basis:24px;width:24px;font-size:16px;}
    #my_menu .player_button{flex-basis:27px;width:27px;font-size:26px;}
    #my_menu .player_current p{font-size:10px;}
}
