/* ============================================================
   추천영상 목록
============================================================ */
#videoList {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================================
   영상 목록 아이템
============================================================ */
.video-item-row {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  cursor: pointer;
  transition: background .18s ease;
}

.video-item-row:last-child {
  border-bottom: 0;
}

.video-item-row:hover {
  background: #f8fafc;
}

/* ============================================================
   영상 썸네일
============================================================ */
.video-thumb-box {
  position: relative;
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
  border-radius: 8px;
}

.video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.video-item-row:hover .video-thumb {
  transform: scale(1.025);
}

/* ============================================================
   재생 아이콘
============================================================ */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 32px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff0033;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  z-index: 2;
  transition: transform .18s ease;
}

.video-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.video-item-row:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.06);
}

/* ============================================================
   영상 정보
============================================================ */
.video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-info-top {
  color: #2684ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.video-title {
  overflow: hidden;
  color: #344054;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.5;
}

/* ============================================================
   목록 하단 검색 영역
============================================================ */
.video-portal-search {
  width: 100%;
  padding: 14px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
}

.board-search-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-search-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  box-sizing: border-box;
  color: #344054;
  font-family: inherit;
  font-size: 12px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  outline: none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.board-search-input::placeholder {
  color: #98a2b3;
}

.board-search-input:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, .08);
}

.board-search-btn {
  flex: 0 0 auto;
  min-width: 58px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: #2684ff;
  border: 1px solid #2684ff;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease;
}

.board-search-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ============================================================
   페이징 영역
============================================================ */
#videoPaging {
  width: 100%;
  margin: 0;
  padding: 18px 16px;
  box-sizing: border-box;
  border-top: 1px solid #eef0f3;
}

#videoPaging:empty {
  display: none;
}

/* youtube-list.js가 내부에 생성하는 paging-wrap */
#videoPaging .paging-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
}

/* ============================================================
   페이징 버튼
============================================================ */
#videoPaging .paging-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: none;
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

#videoPaging .paging-btn:hover:not(:disabled):not(.active) {
  color: #2684ff;
  background: #f8faff;
  border-color: #84adff;
}

#videoPaging .paging-btn.active {
  color: #fff;
  font-weight: 700;
  background: #2684ff;
  border-color: #2684ff;
}

#videoPaging .paging-btn:disabled {
  color: #b8c0cc;
  background: #f8fafc;
  border-color: #e4e7ec;
  cursor: default;
  opacity: 1;
}

/* ============================================================
   데이터 없음
============================================================ */
#videoList .board-item {
  width: 100%;
  min-height: 100px;
  padding: 30px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

/* ============================================================
   로딩
============================================================ */
#videoList .repay-status-loading {
  min-height: 180px;
}

/* ============================================================
   태블릿
============================================================ */
@media (max-width: 768px) {
  .video-item-row {
    padding: 15px 18px;
    gap: 14px;
  }

  .video-thumb-box {
    flex: 0 0 160px;
    width: 160px;
  }

  .video-portal-search {
    padding: 13px 18px;
  }

  .board-search-wrap {
    max-width: 440px;
  }

  #videoPaging {
    padding: 16px 12px;
  }
}

/* ============================================================
   모바일
============================================================ */
@media (max-width: 480px) {
  .video-item-row {
    padding: 14px 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .video-thumb-box {
    flex: 0 0 120px;
    width: 120px;
    border-radius: 7px;
  }

  .video-play-icon {
    width: 36px;
    height: 26px;
    border-radius: 6px;
  }

  .video-play-icon::before {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }

  .video-info {
    gap: 4px;
  }

  .video-info-top {
    font-size: 10px;
  }

  .video-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .video-meta {
    gap: 2px 7px;
    font-size: 10px;
  }

  .video-portal-search {
    padding: 12px 16px;
  }

  .board-search-wrap {
    max-width: 100%;
    gap: 6px;
  }

  .board-search-input {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .board-search-btn {
    min-width: 56px;
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  #videoPaging {
    padding: 15px 8px;
  }

  #videoPaging .paging-wrap {
    gap: 5px;
  }

  #videoPaging .paging-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
}