.html{
  margin:0;
  padding:0;
  width:100%;
}

body{
  font-family:"맑은 고딕", sans-serif;
  margin:16px auto;
  padding:0 10px;
  line-height:1.5;
  max-width:900px;
  width:100%;
}

*{
  box-sizing:border-box;
}

/* 상단 이미지 */
.header-img-wrap{
  width:100%;
  margin:0 auto 14px;
}

.header-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;
}

/* 제목 */
h2{
  margin:0 0 6px;
  font-size:20px;
}

/* 검색 영역 */
.search-wrap{
  width:100%;
}

/* 비디오 바탕화면 */
.video-wrap{
  width:100%;
  height:210px;
  overflow:hidden;
  border-radius:8px;
}

.video-wrap video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 검색 테이블 */
.search-table{
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}

.search-table td{
  padding:3px;
  vertical-align:middle;
}

.search-table td:nth-child(1){
  width:50%;
}

.search-table td:nth-child(2){
  width:25%;
}

.search-table td:nth-child(3){
  width:25%;
}

.search-table input{
  width:100%;
  height:46px;
  padding:0 10px;
  font-size:16px;
  border:1px solid #bbb;
  border-radius:4px;
}

.search-table button{
  width:100%;
  height:46px;
  font-size:14px;
  font-weight:bold;
  border:1px solid #999;
  border-radius:4px;
  background:#f3f3f3;
  cursor:pointer;
  white-space:nowrap;
}

/* 하단 이미지 */
.loading-image-wrap{
  width:100%;
  text-align:center;
  margin:14px 0;
}

.loading-image{
  width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:8px;
}

/* 안내문 */
.notice-text{
  font-size:12px;
  color:#555;
  margin-bottom:10px;
}

/* 상단 페이지 버튼 + 상태 */
.result-top{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin:10px 0;
  flex-wrap:wrap;
}

#status{
  margin:0;
  font-size:15px;
  font-weight:bold;
  white-space:nowrap;
}

.page-btn-group{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.page-btn-group button{
  height:36px;
  padding:0 10px;
  font-size:13px;
  font-weight:bold;
  border:1px solid #999;
  border-radius:4px;
  background:#f7f7f7;
  cursor:pointer;
  white-space:nowrap;
}

/* 결과 영역 */
#result{
  width:100%;
  min-height:0;
}

.result-item{
  border-bottom:1px solid #eee;
  padding:12px 0;
}

.result-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
  gap:8px;
}

.result-title{
  font-weight:bold;
}

.result-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.copy-btn,
.viewer-btn{
  height:32px;
  padding:0 10px;
  font-size:12px;
  font-weight:bold;
  border:1px solid #999;
  border-radius:4px;
  background:#f7f7f7;
  cursor:pointer;
  white-space:nowrap;
}

.context-label{
  font-size:13px;
  font-weight:bold;
  margin:0 0 4px;
  color:#555;
}

.current-label{
  color:#000;
}

.result-text{
  white-space:pre-wrap;
  word-break:break-word;
  background:#f9f9f9;
  padding:10px;
  border:1px solid #eee;
  margin:0;
}

.current-text{
  background:#fffbe8;
  border:1px solid #e6d98a;
}

/* 하단 페이지 버튼 */
.result-bottom{
  margin:14px 0 6px;
  display:flex;
  justify-content:center;
}

.bottom-actions{
  margin-top:8px;
  display:flex;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}

/* 검색 강조 */
mark{
  background:yellow;
  padding:0 1px;
}

/* 모바일 */
@media (max-width:600px){

  body{
    margin:10px auto;
    padding:0 8px;
  }

  .search-table input{
    height:42px;
    font-size:15px;
  }

  .search-table button{
    height:42px;
    font-size:13px;
  }

  .page-btn-group button{
    height:34px;
    font-size:12px;
    padding:0 8px;
  }

  .result-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .copy-btn,
  .viewer-btn{
    height:30px;
    font-size:12px;
  }

  #status{
    white-space:normal;
  }
}