/* =====================
   공통 모달 스타일
===================== */
a.resultbox {
  color:var(--bs-body-color);
}
.resultbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(var(--bs-body-bg-rgb),0.95);
  color: var(--bs-body-color); /* 글씨색 변수 */
}

/* PC 레이아웃 (기본) */
.resultbox-content {
  display: flex;
  height: 100%;
}

.resultbox-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative; /* 버튼 위치 기준 */
}

/* 미디어 전용 영역 */
#resultboxMedia {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#resultboxMedia img,
#resultboxMedia video {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.resultbox-right {
  width: 400px;
  background: var(--bs-body-bg);
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

.resultbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  background: rgba(0,0,0,0.5);  /* 살짝 반투명 배경 */
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

/* 음악재생버튼  */
.rb-audio-player-wrapper {
    display: block !important;
    width: 100% !important;
}

/* =====================
   모바일 대응
===================== */
@media (max-width: 768px) {
  .resultbox-content {
    flex-direction: column;
  }
  .resultbox-right {
    display: none; /* PC용 우측 패널은 숨김 */
  }
  .resultbox-left {
    padding: 0;
    height: 100%;
  }
  #resultboxMedia img,
  #resultboxMedia video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  /* 하단 바 */
  .resultbox-bottom-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .resultbox-bar-actions button {
    margin-left: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
  }

  /* 슬라이드 패널 */
  .resultbox-detail-panel {
    position: absolute;
    left: 0;
    width: 100%;
    background: var(--bs-body-bg);
    padding: 20px;
    transition: bottom 0.3s ease;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  .resultbox-detail-panel.active {
    bottom: 50px; /* 하단바 위에 올라옴 */
  }

  #shareLinkBtnMobile {
    /* 모바일 버튼 목록에서 크기를 맞춥니다 */
    font-size: 16px; 
    padding: 0;
    width: auto;
    height: auto;
  }
}

