@charset "utf-8";

#sch_result {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

/* ── 검색 폼 (pill 스타일) ── */
#sch_res_detail {
  padding: 14px 20px;
  text-align: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 500px;
}

#sch_result { text-align: center; }
#sch_result > *:not(#sch_res_detail):not(form) { text-align: left; }

#sch_res_detail .frm_input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
  padding: 0;
}

#sch_res_detail .frm_input::placeholder {
  color: rgba(255,255,255,.40);
}

#sch_res_detail .btn_submit {
  padding: 8px 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, rgba(255,204,0,.98), rgba(0,255,209,.88));
  color: #0b0c11;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: filter .15s;
  white-space: nowrap;
}

#sch_res_detail .btn_submit:hover {
  filter: brightness(1.1);
}

/* ── 검색 결과 요약 ── */
#sch_res_ov {
  text-align: center;
  padding: 20px 0 10px;
}

#sch_res_ov h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 900;
}

#sch_res_ov h2 strong {
  color: #ffcc00;
}

.sch_stats {
  display: inline-flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.sch_stats strong {
  color: #fff;
  font-weight: 700;
}

/* ── 게시판 탭 ── */
#sch_res_board {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  margin: 8px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  list-style: none;
}

#sch_res_board li { display: inline-block; }

#sch_res_board a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}

#sch_res_board a:hover {
  border-color: rgba(255,204,0,.30);
  color: #fff;
  background: rgba(255,204,0,.06);
  text-decoration: none;
}

#sch_res_board .cnt_cmt {
  display: inline-block;
  background: rgba(0,255,209,.14);
  border: 1px solid rgba(0,255,209,.22);
  color: #bffdf3;
  border-radius: 999px;
  padding: 0 7px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  font-weight: 800;
}

#sch_res_board .sch_on {
  background: linear-gradient(90deg, rgba(255,204,0,.98), rgba(0,255,209,.88));
  color: #0b0c11;
  font-weight: 900;
  border-color: transparent;
}

#sch_res_board .sch_on:hover {
  background: linear-gradient(90deg, rgba(255,204,0,.98), rgba(0,255,209,.88));
  color: #0b0c11;
}

/* ── 결과 없음 ── */
.empty_list {
  text-align: center;
  padding: 60px 20px;
}

.empty_list p {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.70);
  margin-bottom: 6px;
}

.empty_list span {
  font-size: 13px;
  color: rgba(255,255,255,.40);
}

/* ── 결과 리스트 ── */
.sch_res_list {
  margin: 0 0 10px;
  padding: 0;
}

.sch_board_title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid #ffcc00;
}

.sch_board_title a { color: #fff; text-decoration: none; }
.sch_board_title a:hover { color: #ffcc00; }

/* ── 썸네일 그리드 ── */
.sch_pick_list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

@media (min-width: 769px) {
  .sch_pick_list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 769px) {
  .sch_pick_list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sch_pick_list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.sch_li {
  position: relative;
  display: block;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}

.sch_li:hover {
  border-color: rgba(255,204,0,.22);
  transform: translateY(-2px);
}

.sch_thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.sch_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
  filter: contrast(1.08) saturate(1.08) brightness(1.05);
}

.sch_li:hover .sch_thumb img {
  transform: scale(1.04);
  filter: contrast(1.12) saturate(1.12) brightness(1.07);
}

.sch_thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.32) 100%);
  pointer-events: none;
}

.sch_body { min-width: 0; }

.sch_res_title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.35;
}

.sch_res_title:hover { color: #ffcc00; }

/* ── 더보기 ── */
.sch_more {
  text-align: right;
  margin: 10px 0 28px;
}

.sch_more a {
  color: #ffcc00;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.sch_more a:hover { filter: brightness(1.1); }

/* ── 체크박스 ── */
.sch_chk {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.sch_chk input {
  width: 18px;
  height: 18px;
  accent-color: #ffcc00;
}

/* ── 관리자 액션 ── */
.sch_actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.sch_btns { display: flex; gap: 6px; flex-wrap: wrap; }

.sch_allchk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.70);
  font-weight: 700;
  font-size: 13px;
}

.sch_allchk input { width: 18px; height: 18px; accent-color: #ffcc00; }

.sch_btn_action {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}

.sch_btn_action:hover {
  background: rgba(255,204,0,.14);
  border-color: rgba(255,204,0,.22);
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  #sch_res_detail {
    max-width: 100%;
    padding: 12px 16px;
  }
  .sch_actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .sch_chk { top: 14px; left: 14px; }
}