#suneditor-portal .se-dialog       { z-index: 2147483647 !important; }
#suneditor-portal .se-dialog-back  { z-index: 2147483646 !important; }
/* ===================================
    자체 커뮤니티 스타일 made by spklove
   =================================== */
.arc-board{
  --board-page-max: 1480px;
  --board-pad-x: 20px;
  --board-pad-y: 20px;
  --board-bg-app:#0f0f10;
  --board-bg-1:#161616;
  --board-bg-2:#1b1c1f;
  --board-line:#26272b;
  --board-text:#e9eaec;
  --board-text-dim:#a9acb3;
  --board-brand:#ff6b88;
  --board-radius-lg:14px;
  --board-radius-md:10px;
  --board-shadow:0 10px 24px rgba(0,0,0,.35);
}

.board-wrap{
  max-width: var(--board-page-max);
  margin: 0 auto;
  padding: var(--board-pad-y) var(--board-pad-x);
  box-sizing:border-box;
  font-size: 15px;
  line-height: 1.55;
  color: var(--board-text);
}

.board-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.board-header h2{
  font-size:22px;
  font-weight:800;
  letter-spacing:.2px;
}
.board-controls .write-btn{
  background: var(--board-brand);
  color:#e9eaec;
  padding:10px 14px;
  font-weight:800;
  border-radius:12px;
  text-decoration:none;
  border:1px solid transparent;
  transition:.15s ease;
}
.board-controls .write-btn:hover{ filter:brightness(1.05); }

.board-tabs{
  display:flex;
  gap:8px;
  padding:10px;
  margin-bottom:14px;
  background:var(--board-bg-1);
  border:1px solid var(--board-line);
  border-radius: var(--board-radius-lg);
  box-shadow: var(--board-shadow);
}
.board-tabs a{
  color:var(--board-text-dim);
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  transition:.15s ease;
  white-space:nowrap;
}
.board-tabs a:hover{
  color:var(--board-text);
  background:var(--board-bg-2);
  border-color:var(--board-line);
}
.board-tabs a.active{
  background:var(--board-brand);
  color:#e9eaec;
  border-color:transparent;
}

.board-table{
  background:var(--board-bg-1);
  border:1px solid var(--board-line);
  border-radius: var(--board-radius-lg);
  box-shadow: var(--board-shadow);
  overflow:hidden;
}

.arc-board{ --end-gutter: 12px; }

.board-table-header,
.board-table-row{
  display: grid !important;
  /* px 고정 대신 clamp로 유연하게 줄어들도록 설정 */
  grid-template-columns:
    clamp(56px,  6vw, 70px)   /* 번호 */
    clamp(68px,  7vw, 98px)   /* 카테고리 */
    minmax(160px, 1fr)        /* 제목(가변) */
    clamp(90px, 10vw,140px)   /* 작성자 — 축소 */
    clamp(96px, 12vw,130px)   /* 작성일 — 촘촘 */
    clamp(58px,  8vw, 80px)   /* 조회   — 촘촘 */
    clamp(52px,  7vw, 64px);   /* 추천   — 촘촘 */
  column-gap: 12px !important;            /* 번호·카테고리가 붙지 않도록 */
  align-items: center;
  box-sizing: border-box;
}

.board-table-header > div,
.board-table-row    > div{
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 12px 14px;
}

.board-table-header .col-cat,
.board-table-row    .col-cat{
  text-align: center;
  justify-self: center;
}

.board-table-header .col-title,
.board-table-row    .col-title{ padding-left: 16px; }

.col-title a, .col-user a{
  display:block; min-width:0; overflow:hidden;
  white-space:nowrap; text-overflow:ellipsis;
  text-decoration:none; color:#e8e8e8;
}

.board-table-header .col-user,
.board-table-row    .col-user,
.board-table-header .col-date,
.board-table-row    .col-date{
  text-align:center;
  justify-self:center;
}

.board-table-header .col-num,
.board-table-row    .col-num{ text-align:center; justify-self:center; padding-right: 10px; }

.board-table-header .col-views,
.board-table-row    .col-views,
.board-table-header .col-likes,
.board-table-row    .col-likes{
  text-align:center; justify-self:center;
}

.col-cat{ justify-self:start; text-align:left; }

.board-table-header{
  background:var(--board-bg-2);
  color:var(--text-dim);
  font-weight:800;
  border-bottom:1px solid var(--board-line);
}
.board-table-row{
  border-bottom:1px solid var(--board-line);
  min-height:48px;
}


@media (max-width: 1024px){
  .board-table-header,
  .board-table-row{
    grid-template-columns:
      clamp(54px,6vw,68px)
      clamp(66px,7.5vw,88px)
      minmax(140px,1fr)
      clamp(96px,9vw,140px)
      clamp(96px,11vw,120px)
      clamp(56px,8vw,84px)
      clamp(52px,7vw,68px);
  }
}

@media (max-width: 980px){
  .board-table-header,
  .board-table-row{
    grid-template-columns:
      clamp(50px,5.5vw,64px)
      clamp(63px,7vw,84px)
      minmax(120px,1fr)
      clamp(84px,8vw,120px)
      clamp(92px,10vw,118px)
      clamp(52px,7.5vw,76px)
      clamp(48px,7vw,60px);
  }
  .board-table-header > div,
  .board-table-row    > div{ padding:10px 12px; }
}

@media (max-width: 720px){
  .board-table-header,
  .board-table-row{
    grid-template-columns:
      clamp(48px,5vw,60px)
      clamp(60px,6vw,80px)
      minmax(100px,1fr)
      clamp(78px,9.5vw,108px)
      clamp(86px,9vw,112px)
      clamp(48px,7vw,70px)
      clamp(44px,6.5vw,58px);
  }
  .board-table-header > div,
  .board-table-row    > div{ padding:8px 10px; }
}

.board-table-row:hover{ background:rgba(255,255,255,.03); }
.board-table-row.pinned{ background:rgba(57,73,171,.08); }

.col-title a:hover{ text-decoration:underline; }

.cat-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  background:#22252b;
  color:var(--text-dim);
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--board-line);
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
  margin:0 auto;
}

.board-table-header .col-likes,
.board-table-row .col-likes{
  padding-right: 16px; /* 16 → 24 */
}

.board-table-header .col-views,
.board-table-row .col-views{
  padding-right: 16px;
}

.arc-board{ --author-left-offset: 12px; } 


.board-bottom-controls{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}

.search-form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.search-form input[type="text"],
.search-form select{
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--board-line);
  background:var(--board-bg-1);
  color:var(--board-text);
  outline:none;
}
.search-form button{
  height:40px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid transparent;
  background:var(--board-brand);
  color:#e9eaec;
  font-weight:800;
  cursor:pointer;
}


.board-wrap .pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  padding-left:0;
  margin-top:18px;
}

.board-wrap .pagination li{
  list-style:none;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}

.board-wrap .pagination a,
.board-wrap .pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--board-line);
  background:var(--board-bg-1);
  color:var(--board-text);
  font-weight:700;
  text-decoration:none;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  transition:background .15s ease, transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.board-wrap .pagination a:hover{
  background:var(--board-bg-2);
  transform:translateY(-1px);
  border-color:var(--board-line);
}

.board-wrap .pagination a:focus-visible{
  outline:2px solid var(--board-brand);
  outline-offset:2px;
}

.board-wrap .pagination li.active a,
.board-wrap .pagination a.is-active{
  background:var(--board-brand);
  border-color:transparent;
  color:#e9eaec;
  box-shadow:0 6px 18px rgba(57,73,171,.35);
  transform:none;
}

.board-wrap .pagination .disabled a,
.board-wrap .pagination a[aria-disabled="true"]{
  opacity:.45;
  cursor:default;
  pointer-events:none;
}

.clickable-row{ cursor:pointer; transition:background-color .15s; }
.clickable-row:hover{ background:rgba(255,255,255,.03); }

/* 
@media (max-width: 860px){
  .board-wrap{ padding: 16px; font-size:14px; }
  .board-table-header{ display:none; }
  .board-table-row{ display:block; padding:10px 12px; }
  .board-table .col-num,
  .board-table .col-cat,
  .board-table .col-user,
  .board-table .col-date,
  .board-table .col-views,
  .board-table .col-likes{
    width:auto; text-align:left; display:inline-block; margin-right:10px;
  }
  .board-table .col-title{ display:block; padding:8px 0 6px; }
}
===== 반응형 ===== */

.write-wrap {
    max-width: 800px;
    margin: auto;
    font-size: 13px;
}
.write-wrap h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.arc-board .write-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-weight: bold;
    color: #ccc;
}
.arc-board .write-form input[type="text"],
.arc-board .write-form select,
.arc-board .write-form textarea,
.arc-board .write-form input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
}
.arc-board .write-form textarea {
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 10px;
}
.btn-save {
    background-color: #ff6b88;
    color: white;
    border: none;
    padding: 8px 14px;
}
.btn-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
}

/* ====================================================
   Post Edit (글 수정) — scoped to .write-container only
   ==================================================== */
.arc-board .write-container{
  --w-max: var(--board-page-max, 1180px);
  --w-pad-x: 20px;
  --w-pad-y: 20px;
  --w-bg-1:  var(--post-bg-1, #151517);
  --w-bg-2:  var(--post-bg-2, #1b1c1f);
  --w-line:  var(--post-line,  #26272b);
  --w-text:  var(--post-text,  #e9eaec);
  --w-dim:   var(--post-text-dim, #a9acb3);
  --w-brand: var(--post-brand, #ff6b88);
  --w-r-lg:  12px;
  --w-r-md:  8px;

  max-width: var(--w-max);
  margin: 0 auto;
  padding: var(--w-pad-y) var(--w-pad-x);
  box-sizing: border-box;
  color: var(--w-text);
}

.arc-board .write-container .write-title{
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: .2px;
}

.arc-board .write-container form{
  /*background: var(--w-bg-1);*/
  border: 1px solid var(--w-line);
  border-radius: var(--w-r-lg);
  padding: 16px;
  box-sizing: border-box;
}

.arc-board .write-container .write-field{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 14px;
}
.arc-board .write-container .write-field:last-child{ margin-bottom: 0; }

.arc-board .write-container .write-field > label{
  color: var(--w-dim);
  font-weight: 700;
}

.arc-board .write-container input[type="text"],
.arc-board .write-container textarea,
.arc-board .write-container input[type="file"]{
  width: 100%;
  min-width: 0;
  background: var(--w-bg-2);
  border: 1px solid var(--w-line);
  color: var(--w-text);
  border-radius: var(--w-r-md);
  box-sizing: border-box;
}

.arc-board .write-container input[type="text"]{
  height: 44px;
  padding: 0 12px;
}
.arc-board .write-container textarea{
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
  min-height: 260px;
}

.arc-board .write-container input[type="text"]:focus,
.arc-board .write-container textarea:focus{
  border-color: var(--w-brand);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(57,73,171,.25);
}


.arc-board .write-container .write-note{
  grid-column: 2 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--w-dim);
}

.arc-board .write-container .write-buttons{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.arc-board .write-container .btn-arc-submit{
  height: 42px;
  padding: 0 16px;
  border-radius: var(--w-r-md);
  border: 1px solid transparent;
  background: var(--w-brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.arc-board .write-container .btn-arc-submit:hover{ filter: brightness(1.06); }

.arc-board .write-container .btn-arc-cancel{
  display: inline-flex;
  height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--w-r-md);
  border: 1px solid var(--w-line);
  background: var(--w-bg-2);
  color: var(--w-text);
  text-decoration: none;
  font-weight: 700;
}
.arc-board .write-container .btn-arc-cancel:hover{
  background: var(--w-bg-1);
}

@media (max-width: 820px){
  .arc-board .write-container .write-field{
    grid-template-columns: 1fr;
  }
  .arc-board .write-container .write-note{ grid-column: 1 / -1; }
  .arc-board .write-container .write-buttons{
    flex-direction: column-reverse;
  }
  .arc-board .write-container .btn-arc-submit,
  .arc-board .write-container .btn-arc-cancel{
    width: 100%;
    justify-content: center;
  }
}

.arc-board .write-container select{
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--w-line);
  border-radius: var(--w-r-md);
  background-color: var(--w-bg-2);
  color: var(--w-text);
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path d='M6 9l6 6 6-6' fill='none' stroke='%23a9acb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

.arc-board .write-container select:hover{
  background-color: var(--w-bg-1);
  border-color: var(--w-line);
}
.arc-board .write-container select:focus{
  outline: 0;
  border-color: var(--w-brand);
  box-shadow: 0 0 0 3px rgba(57,73,171,.25);
}

.arc-board .write-container select option{
  background: var(--w-bg-2);
  color: var(--w-text);
}

.arc-board .write-container select::-ms-expand{ display: none; }

/* ====================================================
   END 끝부분. (글수정, 글작성 CSS)
   ==================================================== */

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 6px;
}
.form-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}
.form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-size: 14px;
    color: #ccc;
}
.form-row input[type="text"],
.form-row select,
.form-row textarea,
.form-row input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
    font-size: 13px;
}
.form-row textarea {
    resize: vertical;
}
.file-info {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.btn-arc-submit {
    background-color: #ff6b88;
    color: white;
    border: none;
    padding: 8px 16px;
}
.btn-arc-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
}

/* 추가사항 */

/* =======================================================
   Post View (게시글 보기) — scoped to .post-wrapper only
   ======================================================= */
.post-wrapper{
  /* board 리스트와 톤을 맞춘 토큰 (스코프 한정) */
  --post-max: 1180px;
  --post-pad-x: 20px;
  --post-pad-y: 20px;
  --post-bg-1: #161616;      /* 카드 배경 */
  --post-bg-2: #1b1c1f;      /* 강조/헤더 */
  --post-line: #26272b;      /* 경계선 */
  --post-text: #e9eaec;
  --post-text-dim: #a9acb3;
  --post-brand: #ff6b88;     /* ArcA 블루 */
  --post-radius-lg: 12px;
  --post-radius-md: 8px;
  --post-shadow: 0 10px 24px rgba(0,0,0,.35);

  position: relative;

  max-width: var(--post-max);
  margin: 0 auto;
  padding: var(--post-pad-y) var(--post-pad-x);
  box-sizing: border-box;
  color: var(--post-text);
}

/* 제목 */
.post-wrapper .post-title{
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 10px;
}

/* 메타 정보(배지 + 라이트 칩) */
.post-wrapper .post-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--post-text-dim);
  background: var(--post-bg-1);
  border: 1px solid var(--post-line);
  border-radius: var(--post-radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.post-wrapper .post-category{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--post-line);
  background: #22252b;
  color: var(--post-text-dim);
  font-weight: 700;
}

.post-wrapper .post-actions{
  position: absolute;
  top: calc(var(--post-pad-y) + 2px);   /* 제목 라인과 수평 */
  right: var(--post-pad-x);
  display: inline-flex;
  gap: 8px;
  margin: 0;                            /* 절대배치라 여백 제거 */
  z-index: 2;
}

.post-wrapper .btn-arc-small{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--post-line);
  background:#22252b;
  color:var(--post-text);
  text-decoration:none;
  font-weight:700;
  transition:.15s ease;
}


@media (max-width: 860px){
  .post-wrapper .post-actions{
    position: static;
    margin-top: 8px;
  }
}

.post-wrapper .post-content,
.post-wrapper .post-meta,
.post-wrapper .post-file,
.post-wrapper .btn-arc-reaction,
.post-wrapper .btn-arc-small,
.post-wrapper .comment-form textarea,
.post-wrapper .comment-section .comment,
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea,
.post-wrapper .comment-section .comment [id^="reply-form-"] input[type="text"]{
  border-radius: 4px !important;
}

.post-wrapper .btn-arc-small:hover{ background:var(--post-bg-2); }

/* 줄바꿈(\n)을 화면에서 그대로 보이게 */
.post-wrapper .post-content { white-space: pre-wrap; }
/* 본문 안 다른 태그가 들어와도 부모 설정을 따르게 */
.post-wrapper .post-content * { white-space: inherit; }

/* 본문(삽입 콘텐츠 포함) */
.post-wrapper .post-content{
  background: var(--post-bg-1);
  border: 1px solid var(--post-line);
  border-radius: var(--post-radius-lg);
  padding: 18px;
  line-height: 1.75;
  font-size: 16px;
  word-break: break-word;
}
.post-wrapper .post-content p{ margin:0 0 1.05em; }
.post-wrapper .post-content a{ color:#b7c3ff; text-decoration:underline; }
.post-wrapper .post-content img,
.post-wrapper .post-content video{
  display:block;
  max-width:100%;
  height:auto;
  margin:10px 0;
}
.post-wrapper .post-content blockquote{
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--post-brand);
  background: rgba(255,255,255,.03);
  border-radius: 8px;
}
.post-wrapper .post-content pre{
  background:#0f0f11;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--post-line);
  overflow:auto;
}
.post-wrapper .post-content table{
  width:100%;
  border-collapse:collapse;
  margin:10px 0;
}
.post-wrapper .post-content th,
.post-wrapper .post-content td{
  padding:10px 12px;
  border:1px solid var(--post-line);
}

/* 첨부 파일 블록 */
.post-wrapper .post-file{
  margin-top:14px;
  background:var(--post-bg-1);
  border:1px solid var(--post-line);
  border-radius: var(--post-radius-md);
  padding:12px;
}
.post-wrapper .post-file img,
.post-wrapper .post-file video{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:12px;
}

/* 추천/비추천 */
.post-wrapper .post-reactions{
  display:flex;
  gap:10px;
  margin-top:16px;
}
.post-wrapper .btn-arc-reaction{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--post-line);
  background:#22252b;
  color:var(--post-text);
  font-weight:800;
  text-decoration:none;
  transition:.15s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.post-wrapper .btn-arc-reaction:hover{
  background:var(--post-bg-2);
  border-color:transparent;
  color:#e9eaec;
}

/* 구분선 */
.post-wrapper .divider{
  height:1px;
  border:0;
  background:var(--post-line);
  margin:20px 0;
}


/* 댓글 섹션 */
.post-wrapper .comment-section{ margin-top:18px; }
.post-wrapper .comment-header{
  font-size:18px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}

.post-wrapper .comment-section .comment{
  padding: 12px 14px;
  border: 2px solid var(--post-line);
  background: #121212;
  box-sizing: border-box;
  margin: 12px 0;
}

.post-wrapper .comment-section .comment.reply{ margin-left: 32px; }
.post-wrapper .comment-section .comment a{ color:#ff6b88; text-decoration:none; }
.post-wrapper .comment-section .comment a:hover{ text-decoration:underline; }

.post-wrapper .comment-section .comment [id^="comment-content-"]{
  margin: 6px 0 2px;
  line-height: 1.6;
  white-space: pre-line !important;
  text-indent: 0;
  word-break: break-word;
  color: var(--post-text);
}

.post-wrapper .comment-section .comment.reply::before{
  content: none !important;
}

.post-wrapper .comment-section .comment form[id^="reply-form-"],
.post-wrapper .comment-section .comment .reply-form{
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  margin-top: 10px;
  box-sizing: border-box;
}

.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea{
  overflow: auto;
  scrollbar-color: #3d4150 transparent;
}

.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea,
.post-wrapper .comment-section .comment form[id^="reply-form-"] input[type="text"],
.post-wrapper .comment-section .comment .reply-form textarea,
.post-wrapper .comment-section .comment .reply-form input[type="text"]{
  width: 100%;
  min-width: 0;
  height: 44px;
  line-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--post-line);
  background: var(--post-bg-1);
  color: var(--post-text);
  box-sizing: border-box;
  resize: none;
}

/* 포커스 링 */
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea:focus,
.post-wrapper .comment-section .comment form[id^="reply-form-"] input[type="text"]:focus,
.post-wrapper .comment-section .comment .reply-form textarea:focus,
.post-wrapper .comment-section .comment .reply-form input[type="text"]:focus{
  outline: none;
}

/* 버튼: 우측에 자연스럽게 */
.post-wrapper .comment-section .comment form[id^="reply-form-"] button,
.post-wrapper .comment-section .comment .reply-form button{
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--post-brand);
  color: #e9eaec;
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] button:hover,
.post-wrapper .comment-section .comment .reply-form button:hover{
  filter: brightness(1.05);
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] button:active,
.post-wrapper .comment-section .comment .reply-form button:active{
  transform: translateY(1px);
}

/* 모바일: 버튼을 다음 줄로 내려도 우측 정렬 유지 */
@media (max-width: 640px){
  .post-wrapper .comment-section .comment form[id^="reply-form-"],
  .post-wrapper .comment-section .comment .reply-form{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .post-wrapper .comment-section .comment form[id^="reply-form-"] button,
  .post-wrapper .comment-section .comment .reply-form button{
    justify-self: end;
  }
}

.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar{
  width: 12px;
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-track{
  background: var(--post-bg-1);
  border-left: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-thumb{
  background: #323743;
  border: 2px solid var(--post-bg-1);
  border-radius: 8px;
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-thumb:hover{
  background: #404655;
}

/* 화살표 버튼(▲/▼) */
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button{
  height: 14px;
  background: var(--post-bg-1);
  border-left: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button:vertical:decrement{
  /* 위쪽 화살표 영역 */
  border-bottom: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button:vertical:increment{
  /* 아래쪽 화살표 영역 */
  border-top: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment form[id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button:hover{
  background: #2a2d36;
}




/* 헤더(작성자/날짜/수정/삭제) 정렬 */
.post-wrapper .comment-section .comment .comment-meta,
.post-wrapper .comment-section .comment > .meta{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--post-text-dim);
  font-size: 14px;
  margin-bottom: 8px;
}

/* 아바타(있을 때) */
.post-wrapper .comment-section .comment img.avatar{
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex: 0 0 36px;
}


/* 수정 폼 */
.post-wrapper .comment-section .comment [id^="comment-edit-form-"] textarea{
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--post-line);
  background: var(--post-bg-2);
  color: var(--post-text);
  box-sizing: border-box;
  resize: none;
}

/* 답글 폼(토글되는 폼) */
.post-wrapper .comment-section .comment [id^="reply-form-"]{
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;   /* [입력칸] | [버튼] */
  column-gap: 10px;
  align-items: start;
  margin-top: 10px;
  box-sizing: border-box;
}

.post-wrapper .comment-section .comment [id^="reply-form-"] textarea,
.post-wrapper .comment-section .comment [id^="reply-form-"] input[type="text"]{
  width: 100%;
  min-width: 0;                       /* 컨테이너 넘침 방지 */
  height: 44px;
  line-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--post-line) !important;
  background: var(--post-bg-1) !important;
  color: var(--post-text) !important;
  box-sizing: border-box;
  resize: none;                       /* 크기 조절 금지 */
}

/* 버튼: 우측, 높이/둥글기 통일 */
.post-wrapper .comment-section .comment [id^="reply-form-"] button{
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--post-brand);
  color: #e9eaec;
  font-weight: 800;
  cursor: pointer;
}

/* 자잘한 타이포 */
.post-wrapper .comment-section .comment .small,
.post-wrapper .comment-section .comment .muted{
  color: var(--post-text-dim);
  font-size: 12px;
}

/* 댓글 폼 */

.post-wrapper .comment-form{
  display: flex;                 /* grid -> flex로 단순화 */
  flex-direction: column;
  align-items: flex-end;         /* 버튼을 우측 정렬 */
  gap: 8px;
  width: 100%;
  box-sizing: border-box;        /* 내부 패딩/보더 포함 폭 계산 */
}

.post-wrapper .comment-form textarea{
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--post-line);
  background: var(--post-bg-1);
  color: var(--post-text);
  outline: none;
  box-sizing: border-box;        /* ← 오른쪽 삐져나옴 방지 핵심 */
  resize: none;                  /* 사용자가 크기 조절 못하게 */
}

.post-wrapper .comment-form .btn-arc-submit{
  align-self: flex-end;          /* 텍스트 영역 바로 아래 우측 */
}

@media (max-width: 860px){
  .post-wrapper .comment-form textarea{ min-height: 96px; }
}

.post-wrapper .btn-arc-submit{
  height:40px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid transparent;
  background:var(--post-brand);
  color:#e9eaec;
  font-weight:800;
  cursor:pointer;
}
.post-wrapper .comment-login-required{
  background:var(--post-bg-1);
  border:1px solid var(--post-line);
  border-radius:12px;
  padding:12px;
  color:var(--post-text-dim);
}

/* 댓글 카드 */
.post-wrapper .comment{
  background:var(--post-bg-1);
  border:1px solid var(--post-line);
  border-radius:12px;
  padding:12px;
  margin-bottom:10px;
}
.post-wrapper .comment.reply{
  margin-left:28px;
  position:relative;
}
.post-wrapper .comment.reply::before{
  content:"";
  position:absolute;
  left:-16px; top:0; bottom:0;
  width:2px;
  background:var(--post-line);
  border-radius:1px;
}

/* 토글/에디트 폼에서 쓰는 hidden */
.post-wrapper .hidden{ display:none !important; }

/* 반응형 */
@media (max-width: 860px){
  .post-wrapper{ padding:16px; }
  .post-wrapper .post-title{ font-size:22px; }
  .post-wrapper .post-meta{ gap:6px 10px; }
  .post-wrapper .btn-arc-reaction{ height:38px; padding:0 12px; }
  .post-wrapper .comment-form{ flex-direction:column; }
  .post-wrapper .btn-arc-submit{ width:100%; }
}

.post-wrapper .comment-section .comment [id^="reply-form-"] textarea{
  overflow: auto;
  scrollbar-color: #3a3f4c transparent; /* Firefox */
}

/* WebKit (Chrome/Edge) */
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar{
  width: 12px;
}
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-track{
  background: var(--post-bg-1);
  border-left: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-thumb{
  background: #313744;
  border: 2px solid var(--post-bg-1);
  border-radius: 8px;
}
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-thumb:hover{
  background: #3b4150;
}
/* 화살표 버튼 */
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button{
  height: 14px;
  background: var(--post-bg-1);
  border-left: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button:vertical:decrement{
  border-bottom: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button:vertical:increment{
  border-top: 1px solid var(--post-line);
}
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea::-webkit-scrollbar-button:single-button:hover{
  background: #282c34;
}





.custom-editor {
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  padding: 10px;
  min-height: 300px;
  overflow-y: auto;
}
.custom-editor img,
.custom-editor video {
  max-width: 100%;
  margin: 10px 0;
}

.comment-edit-form {
  margin-top: 10px;
  background-color: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.comment-edit-textarea {
  width: 100%;
  box-sizing: border-box;  
  min-height: 60px;
  background: #101010;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
}


.comment-edit-buttons {
  margin-top: 8px;
  text-align: right;
}

.comment-edit-submit {
  background-color: #ff6b88;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 6px;
  cursor: pointer;
}

.comment-edit-cancel {
  background-color: #666;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: #1c1c1c;
}

/* 유저 프로필 페이지 */
.user-section-box {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #444;
  background: #111;
  border-radius: 10px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #333;
}

.user-link {
  color: #ddd;
  text-decoration: none;
}

.user-link:hover {
  text-decoration: underline;
}

.no-content {
  color: #888;
  padding: 5px 0;
}




/* =========================================================
   SPKLOVE User Profile Redesign
========================================================= */

.profile-page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 44px auto 34px;
  color: #f8fafc;
}

/* ===================== Profile Hero ===================== */

.spk-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  padding: 26px;
  margin-bottom: 22px;
  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(circle at 18% 18%, rgba(255, 95, 143, 0.32), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(255, 137, 177, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(28, 12, 20, 0.98), rgba(12, 12, 15, 0.98));

  border: 2px solid rgba(255, 118, 162, 0.32);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.spk-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 35%),
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.16), transparent 45%);
}

.spk-profile-left,
.spk-badge-card {
  position: relative;
  z-index: 1;
}

.spk-profile-left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.spk-profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.spk-profile-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff5f8f, #ff8bb0, #ffc1d4);
  opacity: 0.75;
  z-index: -1;
  filter: blur(0.2px);
}

.spk-profile-avatar {
  width: 112px;
  height: 112px;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  background: #15151a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.spk-profile-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spk-profile-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: break-word;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.spk-profile-bio {
  margin: 0;
  color: #ffd8e4;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.spk-profile-bio.muted {
  color: rgba(255, 216, 228, 0.55);
}

/* ===================== Badge Card ===================== */

.spk-badge-card {
  border-radius: 22px;
  padding: 16px;
  min-height: 126px;
  background:
    linear-gradient(180deg, rgba(255, 95, 143, 0.12), rgba(10, 10, 14, 0.72)),
    rgba(8, 8, 12, 0.72);
  border: 2px solid rgba(255, 118, 162, 0.28);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.spk-badge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spk-badge-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.spk-badge-head strong i {
  color: #ff75a2;
  text-shadow: 0 0 12px rgba(255, 95, 143, 0.55);
}

.spk-badge-head span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 216, 228, 0.64);
  font-size: 12px;
  font-weight: 600;
}

.spk-badge-head em {
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f8f, #ff8bab);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.24);
}

.spk-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 10px;
}

.spk-badge-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.spk-badge-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 95, 143, 0.12);
  border-color: rgba(255, 118, 162, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.spk-badge-item.featured {
  border-color: rgba(255, 206, 92, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 206, 92, 0.12), rgba(255, 95, 143, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.spk-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.spk-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spk-badge-name {
  width: 100%;
  color: rgba(255, 238, 244, 0.86);
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spk-no-badges {
  min-height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(255, 216, 228, 0.58);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.spk-no-badges i {
  font-size: 18px;
  color: rgba(255, 95, 143, 0.65);
}

/* ===================== Profile Sections ===================== */

.spk-profile-section {
  position: relative;
  margin: 18px 0;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.spk-profile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.08), transparent 30%);
}

.spk-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.spk-section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.spk-section-head h2 i {
  color: #ff6f9d;
  text-shadow: 0 0 14px rgba(255, 95, 143, 0.42);
}

.spk-section-head p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.58);
  font-size: 13px;
  font-weight: 600;
}

/* ===================== Like Tabs ===================== */

.spk-like-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 22px;
}

.spk-like-tabs .like-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: #d1d5db;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.spk-like-tabs .like-tab i {
  margin-right: 6px;
}

.spk-like-tabs .like-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 118, 162, 0.25);
  background: rgba(255, 95, 143, 0.11);
  color: #fff;
}

.spk-like-tabs .like-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255, 118, 162, 0.65);
  box-shadow: 0 10px 22px rgba(255, 95, 143, 0.24);
}

/* ===================== Media Cards ===================== */

.spk-like-content {
  position: relative;
  z-index: 1;
}

.spk-profile-video-grid,
.spk-profile-image-grid {
  position: relative;
  z-index: 1;
}

.spk-profile-media-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.spk-profile-media-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 95, 143, 0.055);
  border-color: rgba(255, 118, 162, 0.18);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.spk-profile-media-card a {
  color: inherit;
  text-decoration: none;
}

.spk-profile-media-card .video-thumb {
  border-radius: 14px;
  overflow: hidden;
}

.spk-profile-media-card .video-title {
  margin-top: 8px;
  color: #f8fafc;
  font-weight: 900;
}

.spk-profile-media-card .video-author {
  color: rgba(226, 232, 240, 0.58);
  font-weight: 600;
}

.spk-profile-media-card .video-stat-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spk-profile-media-card .video-stat-box i {
  color: #ff6f9d;
}

.spk-profile-image-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.spk-profile-image-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 118, 162, 0.18);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ===================== Loaded Lists ===================== */

.spk-profile-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.spk-profile-list > *:not(.pagination) {
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.spk-profile-list > *:not(.pagination):hover {
  transform: translateY(-1px);
  background: rgba(255, 95, 143, 0.07) !important;
  border-color: rgba(255, 118, 162, 0.18) !important;
}

/* ===================== Empty / Pagination ===================== */

.spk-empty-content {
  grid-column: 1 / -1;
  min-height: 170px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 7px;
  text-align: center;
  color: rgba(226, 232, 240, 0.58);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.spk-empty-content i {
  font-size: 28px;
  color: rgba(255, 95, 143, 0.72);
}

.spk-empty-content strong {
  color: #fff;
  font-size: 15px;
}

.spk-empty-content span {
  font-size: 13px;
}

.spk-pagination {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.spk-pagination button,
.spk-pagination .arrow-v2 {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  color: #d1d5db;
  font-weight: 900;
}

.spk-pagination button:hover,
.spk-pagination .arrow-v2:hover {
  color: #fff;
  background: rgba(255, 95, 143, 0.14);
  border-color: rgba(255, 118, 162, 0.26);
}

.spk-pagination .active-v2 {
  color: #fff !important;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6) !important;
  border-color: rgba(255, 118, 162, 0.7) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 143, 0.22);
}

/* ===================== Responsive ===================== */

@media (max-width: 980px) {
  .spk-profile-hero {
    grid-template-columns: 1fr;
  }

  .spk-badge-card {
    min-height: auto;
  }

  .spk-badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-page-shell {
    width: min(100% - 24px, 1180px);
    margin-top: 24px;
  }

  .spk-profile-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .spk-profile-left {
    gap: 15px;
    align-items: center;
  }

  .spk-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }

  .spk-profile-avatar-wrap::after {
    border-radius: 21px;
  }

  .spk-profile-info h1 {
    font-size: 25px;
  }

  .spk-profile-bio {
    font-size: 13px;
  }

  .spk-profile-section {
    padding: 17px;
    border-radius: 20px;
  }

  .spk-section-head h2 {
    font-size: 18px;
  }

  .spk-section-head p {
    font-size: 12px;
  }

  .spk-like-tabs .like-tab {
    min-height: 35px;
    padding: 0 13px;
    font-size: 12px;
  }
}

/* 프로필 페이지 안의 영상 카드만 전역 카드 배경 제거 */
.profile-page-shell .spk-profile-media-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.profile-page-shell .spk-profile-media-card:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 썸네일은 카드처럼 보이게 유지 */
.profile-page-shell .spk-profile-media-card .video-thumb {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* 제목/작가/통계 정보 영역은 투명 */
.profile-page-shell .spk-profile-media-card .video-title,
.profile-page-shell .spk-profile-media-card .video-author,
.profile-page-shell .spk-profile-media-card .video-stats {
  background: transparent !important;
}

/* 영상 카드 전체의 링크 배경 제거 */
.profile-page-shell .spk-profile-media-card a {
  background: transparent !important;
}

/* 배지 아이콘만 표시 */
.profile-page-shell .spk-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-page-shell .spk-badge-item.icon-only {
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.profile-page-shell .spk-badge-item.icon-only .spk-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.profile-page-shell .spk-badge-name {
  display: none !important;
}

/* =========================================================
   프로필 AJAX 리스트 페이지네이션 통일
   video-comments / post-comments / post_comment-comments
========================================================= */

.profile-page-shell .spk-profile-list .pagination,
.profile-page-shell .user-list .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  width: fit-content;
  max-width: 100%;
  margin: 26px auto 4px;
  padding: 8px 12px;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.profile-page-shell .spk-profile-list .pagination a,
.profile-page-shell .user-list .pagination a,
.profile-page-shell .spk-profile-list .pagination span,
.profile-page-shell .user-list .pagination span,
.profile-page-shell .spk-profile-list .pagination button,
.profile-page-shell .user-list .pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  color: #d1d5db;

  font-size: 13px;
  font-weight: 900;
  text-decoration: none;

  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-page-shell .spk-profile-list .pagination a:hover,
.profile-page-shell .user-list .pagination a:hover,
.profile-page-shell .spk-profile-list .pagination button:hover,
.profile-page-shell .user-list .pagination button:hover {
  color: #fff;
  background: rgba(255, 95, 143, 0.14);
  border-color: rgba(255, 118, 162, 0.26);
  transform: translateY(-1px);
}

.profile-page-shell .spk-profile-list .pagination .active,
.profile-page-shell .user-list .pagination .active,
.profile-page-shell .spk-profile-list .pagination .active-v2,
.profile-page-shell .user-list .pagination .active-v2,
.profile-page-shell .spk-profile-list .pagination span.current,
.profile-page-shell .user-list .pagination span.current,
.profile-page-shell .spk-profile-list .pagination a.current,
.profile-page-shell .user-list .pagination a.current {
  color: #fff !important;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6) !important;
  border-color: rgba(255, 118, 162, 0.7) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 143, 0.22);
}

/* 프로필 페이지 댓글/게시글 페이지네이션 바깥 박스 숨기기 */
.profile-page-shell .user-list .pagination,
.profile-page-shell .spk-profile-list .pagination {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =========================================================
   Badge Custom Tooltip
========================================================= */

.spk-badge-tooltip {
  position: fixed;
  z-index: 99999;
  width: max-content;
  max-width: 260px;
  padding: 12px 13px;
  border-radius: 15px;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(34, 16, 25, 0.98), rgba(12, 12, 15, 0.98));

  border: 1px solid rgba(255, 118, 162, 0.34);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;

  color: #fff;
  pointer-events: none;

  opacity: 0;
  transform: scale(0.96);
  transform-origin: bottom center;
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.spk-badge-tooltip.show {
  opacity: 1;
  transform: scale(1);
}

.spk-badge-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);

  background: rgba(12, 12, 15, 0.98);
  border-right: 1px solid rgba(255, 118, 162, 0.28);
  border-bottom: 1px solid rgba(255, 118, 162, 0.28);
}

.spk-badge-tooltip-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;

  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.spk-badge-tooltip-title i {
  color: #ff6f9d;
  text-shadow: 0 0 12px rgba(255, 95, 143, 0.5);
}

.spk-badge-tooltip-desc {
  color: rgba(255, 226, 235, 0.78);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
}

.spk-badge-tooltip-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;

  color: #ffd6e3;
  font-size: 10.5px;
  font-weight: 900;

  background: rgba(255, 95, 143, 0.14);
  border: 1px solid rgba(255, 118, 162, 0.22);
}

.spk-badge-tooltip.bottom {
  transform-origin: top center;
}

.spk-badge-tooltip.bottom::after {
  top: -7px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 118, 162, 0.28);
  border-top: 1px solid rgba(255, 118, 162, 0.28);
}
