/* 치지직 채널 검색 결과 (channel-search.js)
   팝업과 관리자 화면이 함께 쓴다. 색은 각 화면의 토큰을 쓰고, 없으면 기본값으로. */

.cs-panel {
  margin-top: 6px;
  border-radius: var(--radius-sm, 10px);
  background: var(--surface-2, #1f2024);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  overflow: hidden;
}

.cs-head {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3, #6f717a);
}

.cs-list {
  max-height: 264px;
  overflow-y: auto;
  padding: 4px;
}

.cs-list:empty {
  display: none;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.cs-item.active {
  background: var(--surface-3, #292a2f);
}

.cs-item.disabled {
  cursor: default;
  opacity: 0.5;
}

.cs-avatar {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3, #292a2f);
}

.cs-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.cs-avatar img:not([src]) {
  visibility: hidden;
}

.cs-avatar.is-live::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live, #ff3b48);
  border: 2px solid var(--surface-2, #1f2024);
}

.cs-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.cs-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cs-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #ececef);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 인증 마크: 파트너(초록 육각형) · 챌린저(금색 오각형) · 공식(파란 별) */
.cs-mark {
  flex: none;
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.cs-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 검색 목적에 맞춘 덧붙임 정보 */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--surface-3, #292a2f);
  color: var(--text-2, #a4a6ae);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cs-tag-week {
  background: var(--accent-soft, rgba(0, 255, 163, 0.12));
  color: var(--accent, #00ffa3);
}

.cs-tag-group {
  background: rgba(108, 184, 255, 0.12);
  color: #6cb8ff;
}

.cs-meta {
  font-size: 11px;
  color: var(--text-3, #6f717a);
}

.cs-reason {
  flex: none;
  font-size: 11px;
  color: var(--text-3, #6f717a);
}

.cs-status {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2, #a4a6ae);
}

.cs-status.error {
  color: var(--danger, #ff6464);
}
