/* SCOREBOOK_CHAT_MESSAGE_INLINE_V4_BEGIN
 * 채팅 글 작성 시간은 숨기고 닉네임과 본문을 실제 한 문장 흐름으로 표시합니다.
 * 레거시 .name/.msg 열 구조를 사용하지 않는 V4 전용 클래스가 우선합니다.
 */

html body #sl-chat-msgs .sl-chat-time,
html body .sl-chat-msgs .sl-chat-time,
html body .sl-chat-widget .sl-chat-time,
html body .live-chat-messages time,
html body .chat-dock-messages time,
html body .chat-messages article time,
html body .scoretalk-chat-messages time,
html body .scorebook-chat-messages time,
html body [data-chat-messages] time {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* V4로 재구성한 실제 메시지 행 */
html body #sl-chat-msgs > .sb-chat-v4-row,
html body .sl-chat-msgs > .sb-chat-v4-row,
html body .sl-chat-widget #sl-chat-msgs > .sb-chat-v4-row,
html body #sl-chat-msgs > [data-msg-id].sb-chat-v4-row {
  position: relative !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  grid-template-columns: none !important;
  grid-auto-columns: auto !important;
  flex: none !important;
  flex-flow: initial !important;
  align-items: initial !important;
  justify-content: initial !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: left !important;
  text-indent: 0 !important;
  white-space: normal !important;
  line-height: 1.48 !important;
}

html body #sl-chat-msgs .sb-chat-v4-name,
html body .sl-chat-msgs .sb-chat-v4-name,
html body .sl-chat-widget .sb-chat-v4-name {
  position: static !important;
  display: inline !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  color: #07517f !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html body #sl-chat-msgs .sb-chat-v4-message,
html body .sl-chat-msgs .sb-chat-v4-message,
html body .sl-chat-widget .sb-chat-v4-message {
  position: static !important;
  display: inline !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-wrap: break-word !important;
  word-break: keep-all !important;
  vertical-align: baseline !important;
  color: #202b33 !important;
  font-weight: 400 !important;
}

/* JavaScript 실행 전에도 기존 3열 레이아웃을 최대한 무력화 */
html body #sl-chat-msgs > [data-msg-id],
html body #sl-chat-msgs > .sl-chat-line,
html body .sl-chat-msgs > .sl-chat-line {
  grid-template-columns: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html body #sl-chat-msgs > [data-msg-id] > .name,
html body #sl-chat-msgs > .sl-chat-line > .name,
html body .sl-chat-msgs > .sl-chat-line > .name,
html body #sl-chat-msgs > [data-msg-id] > .msg,
html body #sl-chat-msgs > .sl-chat-line > .msg,
html body .sl-chat-msgs > .sl-chat-line > .msg {
  display: inline !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body #sl-chat-msgs > [data-msg-id] > .name,
html body #sl-chat-msgs > .sl-chat-line > .name,
html body .sl-chat-msgs > .sl-chat-line > .name {
  white-space: nowrap !important;
}

/* 다른 SCOREBOOK 채팅 화면의 시간도 계속 숨김 */
html body .classic-sports-chat .classic-chat-log time,
html body .chat-dock-messages article time,
html body .page[data-view="scoretalk"] .chat-messages article time {
  display: none !important;
}
/* SCOREBOOK_CHAT_MESSAGE_INLINE_V4_END */
