@charset "utf-8";

hr.padding {
  display: none !important;
}

/* 전체 컨테이너 스타일 */
.all-section {
  display: flex;
  position: fixed;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  bottom: 0;
  right: 0;
  backdrop-filter: blur(3px);
  overflow: hidden;
}

.reply-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
}

/* 그룹 A */
.groupa-s {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 50px;
  flex-shrink: 0;
  padding: 20px 0;
}

.a-s-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.groupinfo-btn,
.upshare_btn {
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;
  text-shadow:
    0 0 5px var(--gray-800),
    0 0 15px var(--white);
}

.groupinfo-btn:hover,
.linkcopyload_btn:hover {
  color: var(--accent-color);
}

.groupbgm {
  position: relative;
}

/* 그룹 B (중앙 영역) */
.groupb-s {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-right: 10px;
}

.groupname {
  padding: 40px 30px 30px 75px;
  line-height: 1;
  color: var(--content-font-color);
}

/* 기본 스타일 */
.group.title {
  font-size: 70px;
  font-weight: 600;
  color: var(--white);
  font-family: "Playfair Display", serif;
  text-shadow:
    0 0 5px var(--gray-500),
    0 0 10px var(--white),
    0 0 25px var(--gray-300);
}

/* 한자, 일본어용 스타일 */
.group.title.cjk-ja {
  font-family: "Zen Antique", serif;
}

/* 중국어용 스타일 */
.group.title.cjk-zh {
  font-family: "Noto Serif SC", serif;
}

.groupone {
  margin-top: 15px;
}

.group.one-liner {
  font-style: italic;
  color: var(--gray-300);
  font-family: "Chosunilbo_myungjo";
  font-size: 18px;
}

.groupflex {
  display: flex;
  gap: 20px;
  width: 100%;
  height: calc(100vh - 200px);
  flex: 1;
}

.groupcomment {
  min-width: 450px;
  width: 45%;
  margin-left: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  padding: 0 10px 30px;
  height: calc(100vh - 200px);
  overflow: visible;
  position: relative;
}

.groupcomment .groupcomment-con {
  display: flex;
  flex-direction: column;
  padding: 50px 40px 40px 40px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 40px 20px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* 탭 네비게이션 - 박스 상단 우측 */
.content-tabs {
  position: absolute;
  top: 15px;
  left: 40px;
  right: 40px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  z-index: 10;
  justify-content: flex-end;
}

.content-tab {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  border: none;
  color: #746f6b;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* 탭 버튼 별 아이콘 */
.content-tab::before {
  content: "✦";
  font-size: 24px;
  color: #746f6b;
  transition: all 0.3s ease;
}

.content-tab:hover::before {
  color: #9a9590;
}

.content-tab.active::before {
  color: white;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 255, 255, 0.3);
}

/* 스크린 리더 전용 텍스트 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 탭 컨텐츠 영역 */
.tab-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin-top: 0;
}

.tab-content {
  display: none;
  width: 100%;
  text-align: justify;
  line-height: 1.7;
  white-space: pre-line;
  font-family: "Chosunilbo_myungjo";
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.tab-text {
  font-size: 14px;
  line-height: 1.7;
  color: #f1f1f1;
  font-family: "Chosunilbo_myungjo";
  white-space: pre-line;
  padding-left: 10px;
}

.tab-text .ra0-content {
  font-size: var(--content-font-size);
  color: #f1f1f1;
}

/* 에디터 HTML 요소 스타일 */
.tab-text h1 {
  font-size: 2em;
  font-weight: bold;
  margin: 0.67em 0;
  line-height: 1.3;
}

.tab-text h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.83em 0;
  line-height: 1.3;
}

.tab-text h3 {
  font-size: 1.17em;
  font-weight: bold;
  margin: 1em 0;
  line-height: 1.3;
}

.tab-text h4 {
  font-size: 1em;
  font-weight: bold;
  margin: 1.33em 0;
  line-height: 1.3;
}

.tab-text h5 {
  font-size: 0.83em;
  font-weight: bold;
  margin: 1.67em 0;
  line-height: 1.3;
}

.tab-text h6 {
  font-size: 0.67em;
  font-weight: bold;
  margin: 2.33em 0;
  line-height: 1.3;
}

.tab-text p {
  margin: 0.5em 0;
}

.tab-text strong, .tab-text b {
  font-weight: bold;
}

.tab-text em, .tab-text i {
  font-style: italic;
}

.tab-text u {
  text-decoration: underline;
}

.tab-text s, .tab-text strike, .tab-text del {
  text-decoration: line-through;
}

.tab-text ul {
  list-style-type: disc;
  padding-left: 2em;
  margin: 0.5em 0;
}

.tab-text ol {
  list-style-type: decimal;
  padding-left: 2em;
  margin: 0.5em 0;
}

.tab-text li {
  margin: 0.25em 0;
}

.tab-text blockquote {
  border-left: 3px solid #666;
  padding-left: 1em;
  margin: 1em 0;
  color: #ccc;
  font-style: italic;
}

.tab-text a {
  color: #6ea8fe;
  text-decoration: underline;
}

.tab-text a:hover {
  color: #9ec5fe;
}

.tab-text img {
  max-width: 100%;
  height: auto;
}

.tab-text pre, .tab-text code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.tab-text pre {
  padding: 1em;
  overflow-x: auto;
  white-space: pre;
}

.tab-text table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

.tab-text th, .tab-text td {
  border: 1px solid #444;
  padding: 0.5em;
  text-align: left;
}

.tab-text th {
  background: rgba(255, 255, 255, 0.1);
}

.tab-text hr {
  border: none;
  border-top: 1px solid #444;
  margin: 1em 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.groupcomment.comment-expanded {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  padding: 20px;
  margin-left: 0px;
  border: 0;
  background: rgb(from var(--gray-900) r g b / 90%);
  max-height: 100%;
}

.comment-expanded .groupcomment-con {
  width: 600px;
  /* background: linear-gradient(179deg, rgb(from var(--gray-900) r g b / 90%) 60%, rgb(from var(--p-color) r g b / 40%) 100%);
    border: solid rgb(from var(--card-border-color) r g b / 40%);
    border-radius: 5px; */
  border: 0;
  height: 80%;
  box-sizing: border-box;
  position: relative;
  left: calc(50% - 300px);
  top: 10%;
  /* backdrop-filter: blur(3px);
    border-width: 1px 1px 0px 1px; */
  transition: all 0.3s ease;
}

.groupimg {
  width: calc(100% - 300px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
}

.group-thumb {
  width: 100%;
  min-height: 300px;
  height: 35%;
  border: 1px solid rgb(from var(--card-border-color) r g b / 40%);
  background-size: cover;
  background-position: 50% 25%;
  border-radius: 5px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 5px 10px;
  box-sizing: border-box;
}

.character-sd img {
  max-height: 130px;
  object-fit: scale-down;
}

/* 캐릭터 카드 점프 애니메이션 */
.character-sd {
  transition: transform 0.2s ease;
  position: relative;
  transform-origin: center bottom;
  padding: 10px 10px 0 10px;
  margin: -10px -10px 0 -10px;
  cursor: pointer;
}

.character-sd:hover {
  animation: kong-jump 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  animation-iteration-count: 1;
}

/* SD 툴팁 */
.sd-tooltip {
  position: absolute;
  bottom: 80%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.2);
  z-index: 1000;
  font-family: "Pretendard-Regular", sans-serif;
}

/* 툴팁 말풍선 꼬리 */
.sd-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

/* hover 시 툴팁 표시 */
.character-sd:hover .sd-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1) translateY(-8px);
}

@keyframes kong-jump {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-15px) scale(1.05);
  }
  50% {
    transform: translateY(-18px) scale(1.05);
  }
  80% {
    transform: translateY(-5px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.groupgall {
  width: 100%;
  border-radius: 5px;
  box-sizing: border-box;
  overflow: scroll;
  max-height: calc(100vh - 500px);
}

.groupc-s {
  width: 40%;
  height: 100%;
  display: inline-flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: flex-end;
  position: absolute;
  right: 0;
  justify-content: center;
}

/* 캐릭터 이미지 영역 스타일 */
.main-body-image {
  display: inline-flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: flex-end;
  position: relative;
  height: 95%;
}

.character-item {
  position: relative;
  margin-left: -150px;
  height: 100%;
}

.character-item:hover {
  transform: translateY(-5px);
}

.character-image {
  height: 100%;
  position: relative;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.character-item:hover .character-image img {
  transform: scale(1.05);
}

/* 이름 오버레이 (말풍선) */
.character-image .character-name-overlay {
  position: absolute;
  bottom: 10%;
  left: 60%;
  transform: translateX(-50%);
  width: auto;
  max-width: 80%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

/* 내용 없으면 숨김 */
.character-image .character-name-overlay:empty {
  display: none;
}

.character-item:hover .character-image .character-name-overlay {
  opacity: 1;
}

/* 말풍선 박스 */
.character-image .character-name-overlay .name-box {
  position: relative;
  background: rgba(14, 14, 14, 0.6);
  padding: 14px 20px;
  border-radius: 25px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

/* 말풍선 꼬리 (상단 삼각형) */
.character-image .character-name-overlay .name-box::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(14, 14, 14, 0.6);
}

/* 내용 없으면 박스 숨김 */
.character-image .character-name-overlay .name-box:empty {
  display: none;
}

/* 에디터에서 입력한 내용 (정렬 포함) */
.character-image .character-name-overlay .name-content {
  font-size: 14px;
  color: white;
  font-family: "Pretendard-Regular", sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: keep-all;
}

/* 에디터 정렬 스타일 상속 */
.character-image .character-name-overlay .name-content p,
.character-image .character-name-overlay .name-content div {
  margin: 0;
}

/* 에디터에서 설정한 정렬 유지 */
.character-image
  .character-name-overlay
  .name-content
  [style*="text-align: center"],
.character-image
  .character-name-overlay
  .name-content
  [style*="text-align:center"] {
  text-align: center !important;
}

.character-image
  .character-name-overlay
  .name-content
  [style*="text-align: left"],
.character-image
  .character-name-overlay
  .name-content
  [style*="text-align:left"] {
  text-align: left !important;
}

.character-image
  .character-name-overlay
  .name-content
  [style*="text-align: right"],
.character-image
  .character-name-overlay
  .name-content
  [style*="text-align:right"] {
  text-align: right !important;
}

.no-character {
  display: none;
}

/* 그룹 E (우측 상단) */
.groupe-s {
  position: absolute;
  top: 50%;
  left: 0;
  border-radius: 5px;
  width: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex-direction: column;
  align-items: center;
}

.groupanother {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--card-border-color);
}

.another {
  display: block;
  width: 100%;
  height: 100%;
}

.reply-head-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 캐릭터 수정 패널 스타일 */
.character-edit-panel {
  position: fixed;
  right: -250px; /* 초기에는 패널이 숨겨져 있음 */
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  background: var(--white);
  box-shadow: -2px 0 10px rgb(from var(--black) r g b / 10%);
  border-radius: 10px 0 0 10px;
  z-index: 1000;
  transition: right 0.3s ease;
}

.character-edit-panel.active {
  right: 0; /* 활성화되면 화면에 표시 */
}

.panel-toggle {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  background: var(--p-color);
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--content-font-color);
  cursor: pointer;
  box-shadow: -2px 0 5px rgb(from var(--black) r g b / 20%);
}

.panel-toggle i {
  transition: transform 0.3s ease;
}

.character-edit-panel.active .panel-toggle i {
  transform: rotate(180deg);
}

.panel-content {
  height: 100%;
}

.panel-header {
  background: var(--card-bg-color);
  color: var(--content-font-color);
  padding: 10px 15px;
  font-family: "NanumSquare";
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.panel-body {
  max-height: 500px;
  overflow-y: auto;
  background: var(--card-bg-color);
}

.character-edit-item {
  display: flex;
  align-items: center;
  padding: 5px;
  transition: background-color 0.2s;
}

.character-edit-item:hover {
  background-color: var(--content-font-color);
  color: var(--card-bg-color);
}

.character-info {
  flex: 1;
  display: inline-flex;
  gap: 5px;
}

.character-actions {
  display: flex;
  gap: 5px;
  font-family: "NanumSquare";
  align-items: flex-end;
  font-size: 0.9em;
}

.edit-btn {
  font-size: 10px;
  text-decoration: none;
}

/* 배경 이미지 및 효과 */
.bg-container {
  background: linear-gradient(
    180deg,
    rgb(20 20 20) 25%,
    rgb(from var(--p-color) r g b / 100%) 100%
  );
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.bg-effect {
  width: 100vw;
  height: 50vh;
  bottom: 0px;
  position: fixed;
  z-index: -1;
}

/* 오디오 플레이어 스타일 */
div#gruop_bgm_con {
  opacity: 0;
}

#gruop_bgm_frame {
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  bottom: 0 !important;
}

.groupbgm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#bgm-player {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#play-pause-btn {
  cursor: pointer;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

#volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: center;
  margin: 35px 0;
}

#volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#volume-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(from var(--black) r g b / 40%);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid var(--gray-400);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: var(--gray-400);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.write_div {
  margin-bottom: 15px;
}

.write_div label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.frm_input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--gray-200);
}

textarea.frm_input {
  height: 150px;
  resize: vertical;
}

textarea#wr_content {
  height: 300px;
}
textarea#wr_content::placeholder {
  color: var(--gray-300);
}

.file_upload_section {
  margin-top: 10px;
}

.file_upload_item {
  margin-bottom: 10px;
}

.btn_confirm {
  text-align: center;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--gray-300);
  background: #f0f0f0;
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  margin: 0 3px;
}

.btn_submit {
  background: var(--btn-accent-bg);
  color: var(--btn-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

#color_picker {
  vertical-align: middle;
  margin-left: 10px;
}

.cha-etc {
  background: linear-gradient(45deg, #171717 65%, transparent);
  padding: 35px 40px 30px;
  border-radius: 10px;
  color: var(--gray-100);
  font-family: nanumsquare;
  line-height: 1.7;
  font-size: 13px;
  text-align: justify;
  letter-spacing: -0.5px;
}

.deco-etc {
  left: 10px;
  font-size: 25px;
  font-style: italic;
  font-family: "ROEHOE-CHAN";
  color: var(--gray-500);
  pointer-events: none;
  position: absolute;
  opacity: 0.4;
}

::-webkit-scrollbar {
  display: none;
}

/* 갤러리 스타일 */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(var(--gall-cols), 1fr);
  grid-gap: 5px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgb(from var(--black) r g b / 10%);
  transition: transform 0.2s;
  border: 1px solid rgb(from var(--card-border-color) r g b / 40%);
  box-sizing: border-box;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-loader {
  text-align: center;
  padding: 20px 0;
}

/* 모달 스타일 */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(from var(--black) r g b / 70%);
  backdrop-filter: blur(4px);
}

.gallery-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 50%;
  color: var(--content-font-color);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transform: translateX(50%);
}

.gallery-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-modal-image-container {
  height: 80%;
  max-width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 15px;
  user-select: none;
}

.gallery-modal-prev {
  left: 20px;
}

.gallery-modal-next {
  right: 20px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .character-item {
    margin: 0;
  }

  .gallery-modal-close {
    top: 50px;
  }

  .all-section {
  }

  .groupa-s {
    display: flex;
    width: 95%;
    height: 50px;
    z-index: 10001;
    position: fixed;
    gap: 0px;
    left: 2.5%;
    top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .a-s-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .groupbgm {
    position: relative;
    bottom: 0;
  }

  #volume-bar {
    transform: none;
    transform-origin: center;
    position: relative;
    top: 0;
  }
  #play-pause-btn {
    left: 0;
  }

  .groupb-s {
    display: block;
    width: 100%;
  }

  .groupname {
    width: 100%;
    position: absolute;
    top: 40px;
    left: -20px;
    z-index: 1;
    padding: 0;
    mix-blend-mode: luminosity;
    transform: scale(0.8);
  }

  .group.title {
    font-size: 50px;
  }

  .groupflex {
  }

  .groupcomment,
  .groupimg {
  }
  .groupcomment {
    display: none;
  }

  .groupimg {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
  }

  .group-thumb {
    position: absolute;
    height: 80px;
    top: 30px;
    background-image: none !important;
    border: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  .character-sd img {
    max-height: 60px;
  }

  .groupgall {
    position: absolute;
    width: 20%;
    height: 80%;
    top: 120px;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: scroll;
    padding: 10px;
    max-height: 85%;
    filter: saturate(0.7) opacity(0.7);
  }

  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 2px;
  }

  .groupc-s {
    width: 100%;
    height: 90%;
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row;
    position: absolute;
    right: 0;
    justify-content: center;
    align-items: flex-end;
  }

  .main-body-image {
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row;
    position: relative;
    height: 80%;
    right: 0px;
    align-items: flex-end;
    z-index: 10;
    scale: 1.1;
  }

  .character-item {
    margin-left: -60px !important;
    margin-right: -60px !important;
  }

  .groupe-s {
  }

  .mobile-comment-toggle {
    display: block;
    margin: 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: -5px;
    z-index: 10000;
  }

  .mobile-comment-toggle button {
    padding: 8px 15px;
    background: var(--card-bg-color);
    color: var(--content-font-color);
    border-radius: 4px;
    font-size: 14px;
    border: 0;
    filter: drop-shadow(2px 2px 0px rgb(from var(--black) r g b / 50%));
  }

  .mobile-comment-toggle button.active {
    color: var(--card-bg-color);
    background: var(--content-font-color);
  }

  .groupcomment.comment-expanded {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
    max-height: 100%;
  }

  .comment-expanded .groupcomment-con {
    left: 0;
    top: 5%;
    width: 100%;
    height: 90%;
  }
}

/* 데스크톱에서는 모바일 토글 버튼 숨기기 */
@media (min-width: 769px) {
  .mobile-comment-toggle {
    display: none;
  }
}
