/* V4: GIF arama ve kategoriyi ust emoji cubuguna tasir. */
#main_emoticon .emo_head:has(.gif-chat-controls-v3),
#private_emoticon .emo_head:has(.gif-chat-controls-v3){display:flex;align-items:center;box-sizing:border-box;overflow:hidden;gap:0;}
#main_emoticon .emo_head .emo_menu,
#private_emoticon .emo_head .emo_menu{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;}
#main_emoticon .emo_head .empty_emo,
#private_emoticon .emo_head .empty_emo{display:none;}
#main_emoticon .emo_head .gif-chat-controls-v3,
#private_emoticon .emo_head .gif-chat-controls-v3{display:flex;flex:1 1 auto;min-width:0;width:0;height:40px;align-items:center;gap:6px;margin:0;padding:3px 5px;background:transparent;box-sizing:border-box;z-index:1;}
#main_emoticon .emo_head .gif-chat-controls-v3 input,
#private_emoticon .emo_head .gif-chat-controls-v3 input{flex:1 1 54%;width:54%;min-width:0;height:32px;padding:0 8px;font-size:12px;border:1px solid #666;border-radius:5px;color:#222;background:#fff;box-sizing:border-box;}
#main_emoticon .emo_head .gif-chat-controls-v3 select,
#private_emoticon .emo_head .gif-chat-controls-v3 select{flex:1 1 46%;width:46%;min-width:0;height:32px;padding:0 4px;font-size:12px;border:1px solid #666;border-radius:5px;color:#222;background:#fff;box-sizing:border-box;}
.gif-chat-empty-v3{padding:18px 10px;text-align:center;color:#999;font-size:13px;}
@media(max-width:440px){#main_emoticon .emo_head .gif-chat-controls-v3,#private_emoticon .emo_head .gif-chat-controls-v3{gap:3px;padding:2px 3px;}#main_emoticon .emo_head .gif-chat-controls-v3 input,#main_emoticon .emo_head .gif-chat-controls-v3 select,#private_emoticon .emo_head .gif-chat-controls-v3 input,#private_emoticon .emo_head .gif-chat-controls-v3 select{font-size:11px;padding-left:4px;padding-right:3px;}}

/* V6: 5 sutun + arama genis/kategori dar. */
#main_emoticon .emo_head .gif-chat-controls-v3 input,
#private_emoticon .emo_head .gif-chat-controls-v3 input {
  flex: 1 1 68% !important; width: 68% !important;
}
#main_emoticon .emo_head .gif-chat-controls-v3 select,
#private_emoticon .emo_head .gif-chat-controls-v3 select {
  flex: 0 1 32% !important; width: 32% !important;
}
#main_emoticon #main_emo,
#private_emoticon #private_emo {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 7px !important;
  align-content: start !important;
  justify-items: stretch !important;
  box-sizing: border-box !important;
}
#main_emoticon #main_emo > .emoticon,
#private_emoticon #private_emo > .emoticon {
  float: none !important; display:flex !important;
  width:100% !important; height:62px !important;
  min-width:0 !important; margin:0 !important;
  align-items:center !important;justify-content:center !important;
}
#main_emoticon #main_emo > .emoticon > img,
#private_emoticon #private_emo > .emoticon > img {
  width:100% !important;height:100% !important;
  max-width:100% !important;object-fit:contain !important;
}
#main_emoticon #main_emo > .gif-chat-empty-v3,
#private_emoticon #private_emo > .gif-chat-empty-v3 {grid-column:1/-1;}
@media(max-width:480px) {
  #main_emoticon #main_emo,#private_emoticon #private_emo {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:5px !important;
  }
  #main_emoticon #main_emo > .emoticon,#private_emoticon #private_emo > .emoticon {height:54px !important;}
}

/* HakanFM layout: keep the main smiley opener, hide legacy category icons. */
.main_emo_head > .emo_menu_item:not([data="base_emo"]),
.private_emo_head > .emo_menu_item_priv:not([data="base_emo"]) { display:none !important; }
