/* style.css (전체교체) */
:root{
  --bg:#000;
  --border:#2f3336;
  --muted:#71767b;
  --text:#e7e9ea;
  --chip:#16181c;
  --chip2:#0f1419;
  --blue:#1d9bf0;
  --red:#f4212e;
  --radius:16px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Malgun Gothic,sans-serif}
a{color:inherit}
.wrap{max-width:760px;margin:0 auto;padding:0 16px 80px}

.srOnly{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.noscriptBox{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  color:var(--text);
  background:rgba(255,255,255,.04);
  font-size:13px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,.75);
  border-bottom:1px solid var(--border);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.topbarInner{max-width:760px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.langWrap{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  -webkit-tap-highlight-color:transparent;
}
.shortsMenuBtn{
  font-weight:800;
  -webkit-tap-highlight-color:transparent;
}
.siteMenuItemBtn{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.siteMenu{position:relative;-webkit-tap-highlight-color:transparent}
.siteMenuBtn{
  font-weight:800;
  -webkit-tap-highlight-color:transparent;
}
.siteMenuBtn:focus,
.siteMenuBtn:focus-visible{
  outline:none;
}
.siteMenuPanel{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:160px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(12,16,20,.96);
  box-shadow:0 12px 32px rgba(0,0,0,.45);
  z-index:30;
}
.siteMenuPanel[hidden]{display:none}
.siteMenuItem{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}
.siteMenuItem:hover,
.siteMenuItem:active{background:rgba(255,255,255,.08)}
.siteMenu.is-open .siteMenuBtn{
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);
}
.langSelect{min-width:110px;padding:8px 10px;font-size:12px}
.xlogo{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--border);background:linear-gradient(180deg,#0b0b0b,#000);font-weight:900}
.h1{margin:0;font-size:16px;font-weight:900;line-height:1.1}
.subtitle{font-size:12px;color:var(--muted);margin-top:2px}

.toolbarBar{
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
  padding:12px;
}
.toolbarBar .controls{
  width:100%;
  gap:8px;
}
.toolbarBar .periodToggle{
  display:flex;
  flex:1 1 220px;
  min-width:0;
}
.toolbarBar .feedModeToggle{
  display:flex;
  flex:0 0 auto;
}
.toolbarBar .periodToggle .chipBtn,
.toolbarBar .feedModeToggle .chipBtn{
  flex:1;
  padding:10px 6px;
  font-size:12px;
  font-weight:800;
  justify-content:center;
}
.searchBar{
  margin:12px 0 4px;
}
.searchField{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.searchBtn{
  flex:0 0 auto;
  height:auto;
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  align-self:center;
}
.searchInput{
  flex:1;
  min-width:0;
}
.searchIcon{
  position:absolute;
  left:18px;
  color:var(--muted);
  pointer-events:none;
  flex:0 0 auto;
  z-index:1;
}
.searchField .searchInput{
  height:52px;
  padding:0 18px 0 50px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--chip);
  color:var(--text);
  font-size:16px;
  font-weight:600;
  outline:none;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.searchInput::placeholder{
  color:var(--muted);
  font-weight:500;
}
.searchInput:hover{
  border-color:#3d4450;
  background:#1a1d22;
}
.searchInput:focus{
  border-color:var(--blue);
  background:#0b0f14;
  box-shadow:0 0 0 3px rgba(29,155,240,.22);
}
.searchField:focus-within .searchIcon{
  color:var(--blue);
}
.searchInput::-webkit-search-cancel-button{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  margin-right:4px;
  cursor:pointer;
  background:radial-gradient(circle at center, var(--muted) 0 38%, transparent 40%);
  opacity:.7;
}
.searchInput::-webkit-search-cancel-button:hover{opacity:1}

.adBlock{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
  padding:10px;
}

.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.02);color:var(--muted);font-size:12px}
.dot{width:8px;height:8px;border-radius:999px;background:var(--red)}
.dot.on{background:#00ba7c}

.composer{margin-top:14px;border:1px solid var(--border);border-radius:var(--radius);background:rgba(255,255,255,.02);overflow:hidden}
.composerTop{padding:14px;display:flex;gap:12px}
.avatar{width:44px;height:44px;border-radius:999px;background:linear-gradient(180deg,#111,#050505);border:1px solid var(--border);flex:0 0 auto}
.composerMain{flex:1;min-width:0}
.input{width:100%;padding:12px 12px;border-radius:12px;border:1px solid var(--border);background:var(--chip2);color:var(--text);font-size:14px;outline:none}
.hint{color:var(--muted);font-size:12px;word-break:break-word;min-width:0}
.composer .metaBar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}
.composer .metaBar .btn{
  flex:0 0 auto;
  padding:8px 16px;
  font-size:13px;
}
.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.select{padding:10px 12px;border-radius:999px;border:1px solid var(--border);background:var(--chip);color:var(--text);font-size:12px;outline:none}
.viewToggle,
.periodToggle,
.feedModeToggle{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;background:rgba(255,255,255,.02)}
.viewToggle .chipBtn,
.periodToggle .chipBtn,
.feedModeToggle .chipBtn{
  border:0;
  border-radius:0;
  background:transparent;
  padding:8px 12px;
  min-width:0;
}
.periodToggle .chipBtn,
.feedModeToggle .chipBtn{padding:8px 10px;font-size:12px;font-weight:800}
.viewToggle .viewIconBtn{
  padding:8px 10px;
  min-width:36px;
  line-height:0;
}
.viewToggle .viewIcon{
  display:block;
  flex:0 0 auto;
}
.viewToggle .chipBtn + .chipBtn,
.periodToggle .chipBtn + .chipBtn,
.feedModeToggle .chipBtn + .chipBtn{border-left:1px solid var(--border)}
.viewToggle .chipBtn[aria-pressed="true"],
.periodToggle .chipBtn[aria-pressed="true"],
.feedModeToggle .chipBtn[aria-pressed="true"]{background:var(--chip);color:var(--text)}
.viewToggle .chipBtn:hover,
.periodToggle .chipBtn:hover,
.feedModeToggle .chipBtn:hover{border-color:transparent}
.select.isDimmed{opacity:.45;pointer-events:none}
.btn{border:0;padding:10px 14px;border-radius:999px;font-weight:900;cursor:pointer;background:var(--blue);color:#fff;user-select:none;white-space:nowrap}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btnGhost{background:transparent;border:1px solid var(--border);color:var(--text)}
.btnDanger{background:transparent;border:1px solid rgba(244,33,46,.55);color:var(--red)}

.adminbar{display:none;margin-top:10px}
.adminbar.show{display:block}
.adminLine{border:1px solid var(--border);border-radius:var(--radius);background:rgba(255,255,255,.02);padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.adminKeyWrap{display:none;flex:1;min-width:260px;gap:8px;align-items:center}
.adminKeyWrap.show{display:flex}
.adminLabel{color:var(--muted);font-size:12px}
.adminInput{padding:10px 12px;border-radius:999px}
.adminBulkWrap{display:flex;flex:1;min-width:240px;gap:8px;align-items:center;flex-wrap:wrap}
.adminBulkWrap[hidden]{display:none!important}
.adminBulkFile{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}
.adminBulkLabel{cursor:pointer;margin:0}
.adminBulkHint{color:var(--muted);font-size:12px}
.adminBulkStatus{color:var(--muted);font-size:12px}


#seoFeedRoot:empty{display:none}
.feed{margin-top:14px;display:grid;gap:10px}
/* 가로 목록: 왼쪽 썸네일 칸 항상 고정 → 텍스트 열 정렬 일정 */
.feed.feedHList{
  grid-template-columns:1fr;
  gap:8px;
}
.feed.feedHList .postCard{
  --hThumb:96px;
  display:grid;
  grid-template-columns:var(--hThumb) minmax(0,1fr);
  grid-template-rows:auto auto auto;
  align-items:stretch;
  column-gap:0;
  min-height:var(--hThumb);
  overflow:hidden;
}
@media (min-width:600px){
  .feed.feedHList .postCard{--hThumb:108px}
}
.feed.feedHList .embedWrap{display:contents}
/* 미디어 없어도 왼쪽 칸 유지 (글이 좌우로 안 흔들림) */
.feed.feedHList .postCard:not(:has(.mediaGrid))::before{
  content:"";
  grid-column:1;
  grid-row:1 / -1;
  width:var(--hThumb);
  min-height:var(--hThumb);
  background:rgba(255,255,255,.03);
  border-right:1px solid var(--border);
}
.feed.feedHList .cardHead{
  grid-column:2;
  grid-row:1;
  padding:10px 12px 0;
  align-items:center;
  min-width:0;
}
.feed.feedHList .actions{display:none}
.feed.feedHList .mediaGrid{
  grid-column:1;
  grid-row:1 / -1;
  align-self:stretch;
  justify-self:stretch;
  box-sizing:border-box;
  width:var(--hThumb);
  min-width:var(--hThumb);
  max-width:var(--hThumb);
  height:auto;
  min-height:var(--hThumb);
  max-height:none;
  margin:0;
  border:0;
  border-radius:0;
  border-right:1px solid var(--border);
  gap:0;
  background:#000;
  overflow:hidden;
}
.feed.feedHList .mediaGrid-2,
.feed.feedHList .mediaGrid-3,
.feed.feedHList .mediaGrid-4{
  grid-template-columns:1fr;
  grid-template-rows:1fr;
  align-items:stretch;
}
.feed.feedHList .mediaGrid-3 .mediaItem:first-child{grid-row:auto}
.feed.feedHList .mediaItem{
  display:none;
  min-height:0 !important;
  width:100%;
  height:100%;
}
.feed.feedHList .mediaItem:first-child{display:block}
.feed.feedHList .mediaItem img,
.feed.feedHList .mediaVideoThumb{
  min-height:0 !important;
  max-height:none !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover;
}
.feed.feedHList .mediaVideoPlayer,
.feed.feedHList .mediaVideo video{display:none !important}
.feed.feedHList .mediaVideoThumb,
.feed.feedHList .mediaItem img.mediaVideoThumb{
  display:block !important;
  width:100%;
  height:100%;
  min-height:0 !important;
  max-height:none !important;
  object-fit:cover;
}
.feed.feedHList .mediaVideoThumbEmpty{
  display:flex !important;
  width:100%;
  height:100%;
  min-height:0 !important;
  max-height:none !important;
}
.feed.feedHList .mediaVideo{
  width:100%;
  height:100%;
  min-height:0;
}
.feed.feedHList .mediaVideo::after{
  content:"";
  position:absolute;
  right:6px;
  bottom:6px;
  width:0;
  height:0;
  border-style:solid;
  border-width:6px 0 6px 10px;
  border-color:transparent transparent transparent rgba(255,255,255,.92);
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));
  pointer-events:none;
}
.feed.feedHList .postTitle{
  grid-column:2;
  grid-row:2;
  margin:0;
  padding:4px 12px 8px;
  font-size:14px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  align-self:start;
  min-width:0;
}
.feed.feedHList .noteBlock,
.feed.feedHList .shareRow{display:none}
.feed.feedHList .xStats{
  grid-column:2;
  grid-row:3;
  padding:0 12px 10px;
  margin:0;
  min-width:0;
}
.feed.feedGrid .xStats{display:none}
.feed.feedHList .postAvatar{width:28px;height:28px}
.feed.feedHList .postAuthor{font-size:13px}
.feed.feedHList .postTime{font-size:11px}

.feed.feedGrid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
@media (min-width:600px){
  .feed.feedGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* PC: 4열 × 4행 = 16개 */
@media (min-width:900px){
  .feed.feedGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
}
.feed.feedGrid .card{
  border-radius:12px;
}
.feed.feedGrid .postCard{
  position:relative;
  aspect-ratio:1 / 1;
}
.feed.feedGrid .cardHead,
.feed.feedGrid .shareRow,
.feed.feedGrid .noteBlock{display:none}
.feed.feedGrid .embedWrap{
  padding:0;
  height:100%;
  position:relative;
}
.feed.feedGrid .postTitle{
  margin:0;
  padding:12px;
  font-size:13px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:6;
  -webkit-box-orient:vertical;
  overflow:hidden;
  height:100%;
  box-sizing:border-box;
}
.feed.feedGrid .postCard:has(.mediaGrid) .postTitle{display:none}
.feed.feedGrid .mediaGrid{
  margin:0;
  height:100%;
  border:0;
  border-radius:0;
  gap:0;
  grid-template-columns:1fr;
  grid-template-rows:1fr;
  align-items:stretch;
}
/* 그리드형: 첫 장만 */
.feed.feedGrid .mediaGrid-2,
.feed.feedGrid .mediaGrid-3,
.feed.feedGrid .mediaGrid-4{
  grid-template-columns:1fr;
  grid-template-rows:1fr;
}
.feed.feedGrid .mediaGrid-3 .mediaItem:first-child{grid-row:auto}
.feed.feedGrid .mediaItem{
  display:none;
  min-height:0;
  width:100%;
  height:100%;
}
.feed.feedGrid .mediaItem:first-child{display:block}
.feed.feedGrid .mediaItem img{
  min-height:0;
  max-height:none;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
}
.feed.feedGrid .mediaVideo video{
  max-height:none;
  height:100%;
  width:100%;
  object-fit:cover;
}
.feedMore{margin:12px 0 4px;text-align:center;color:var(--muted);font-size:12px;min-height:1.2em}
.feedSentinel{height:1px;width:100%;pointer-events:none}
.card{border:1px solid var(--border);border-radius:var(--radius);background:rgba(255,255,255,.02);overflow:hidden}
.postCard{cursor:pointer;position:relative}
.postCard:hover{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.035)}
/* 관리자/내글 삭제: 그리드·가로목록에서도 항상 보이게 */
/* 그리드·가로: shareRow 전체 숨김 대신 삭제만 우하단에 */
.feed.feedGrid .shareRow:has(.shareRowDel),
.feed.feedHList .shareRow:has(.shareRowDel){
  display:flex;
  position:absolute;
  left:auto;
  right:8px;
  bottom:8px;
  top:auto;
  z-index:3;
  margin:0;
  min-height:0;
  gap:0;
}
.feed.feedGrid .shareRow:has(.shareRowDel) .shareRowLeft,
.feed.feedHList .shareRow:has(.shareRowDel) .shareRowLeft{display:none}
.feed.feedGrid .shareRowDel,
.feed.feedHList .shareRowDel{
  margin:0;
  padding:5px 8px;
  font-size:11px;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
  background:rgba(20,20,20,.88);
}

/* 게시글 상세 (SPA 폴백) */
.postDetail{margin-top:14px}
.postDetail .postCard{cursor:default}
.postDetail .postCard:hover{border-color:var(--border);background:rgba(255,255,255,.02)}
.comments{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
}
.commentsTitle{margin:0 0 12px;font-size:15px;font-weight:900}
.commentsCount{color:var(--muted);font-weight:800;font-size:13px}
.commentsEmpty{margin:0;color:var(--muted);font-size:13px}
.cmtList,.cmtChildren{list-style:none;margin:0;padding:0}
.cmtChildren{margin:4px 0 0 18px;padding:0;border:0}
.cmtItem{margin:0 0 10px;position:relative}
.cmtItem[data-depth="0"]{padding-left:0}
/* 대댓글: ㄴ자 연결선 */
.cmtItem[data-depth="1"],
.cmtItem[data-depth="2"],
.cmtItem[data-depth="3"],
.cmtItem[data-depth="4"]{
  margin-bottom:8px;
  padding-left:18px;
  border-left:0;
}
.cmtItem[data-depth="1"]::before,
.cmtItem[data-depth="2"]::before,
.cmtItem[data-depth="3"]::before,
.cmtItem[data-depth="4"]::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:12px;
  height:22px;
  border-left:2px solid var(--border);
  border-bottom:2px solid var(--border);
  border-radius:0 0 0 6px;
  pointer-events:none;
}
.cmtCard{padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.02)}
.cmtDepth-0 > .cmtCard{border-color:rgba(29,155,240,.35)}
.cmtHead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.cmtIdentity{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none;min-width:0}
.cmtAvatar{width:36px;height:36px;border-radius:999px;object-fit:cover;background:#000;border:1px solid var(--border);flex:0 0 auto}
.cmtAvatarFallback{display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.cmtAuthor{font-weight:900;font-size:13px}
.cmtBadge{font-size:11px;font-weight:900;padding:2px 8px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}
.cmtBadgeTop{border-color:rgba(29,155,240,.45);color:var(--blue)}
.cmtLikes{margin-left:auto;color:var(--muted);font-size:12px;font-weight:800}
.cmtText{margin:0 0 6px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:keep-all}
.cmtLink{font-size:12px;color:var(--blue);text-decoration:none;font-weight:800}
.postDetailBack{
  display:inline-flex;
  align-items:center;
  margin-bottom:12px;
  color:var(--blue);
  text-decoration:none;
  font-weight:800;
  font-size:14px;
}
body.detailMode .toolbarBar,
body.detailMode .searchBar,
body.detailMode .composer,
body.detailMode #adminBarLine,
body.detailMode .feedMore,
body.detailMode #feedSentinel,
body.detailMode #list{display:none !important}
.cardHead{padding:12px 12px 8px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.urlLine{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* 게시물형 카드 */
.postIdentity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:inherit;
  flex:1;
}
.postAvatarLink{
  display:inline-flex;
  flex:0 0 auto;
  text-decoration:none;
  color:inherit;
  border-radius:999px;
}
.postAvatar{
  width:40px;
  height:40px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 auto;
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
}
.postAvatarFallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:14px;
  color:var(--text);
}
.postMeta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;color:var(--muted);font-size:13px}
.postAuthor{
  color:var(--text);
  font-weight:800;
  text-decoration:none;
}
a.postAuthor:hover{text-decoration:underline;color:var(--blue)}
.postDot{opacity:.5}
.postTime{white-space:nowrap}
.postTitle{
  margin:0 0 12px;
  font-size:1.15rem;
  font-weight:800;
  line-height:1.45;
  letter-spacing:-.01em;
  word-break:keep-all;
  white-space:pre-wrap;
}
.mediaGrid{
  display:grid;
  gap:4px;
  margin:0 0 12px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
}
.mediaGrid-1{grid-template-columns:1fr}
.mediaGrid-2{grid-template-columns:1fr 1fr;align-items:start}
.mediaGrid-3{grid-template-columns:1fr 1fr;align-items:start}
.mediaGrid-4{grid-template-columns:1fr 1fr;align-items:start}
/* 메인 리스트·상세: 원본 비율 (cover 크롭 안 함). 그리드/가로는 아래 override */
.mediaItem{display:block;position:relative;min-height:0;background:#000;line-height:0}
.mediaItem img{
  width:100%;
  height:auto;
  max-height:min(85vh, 960px);
  object-fit:contain;
  object-position:center;
  display:block;
  background:#000;
}
.mediaVideo{min-height:0;position:relative}
/* 메인(목록): 영상만 — .mediaItem img 보다 우선순위 높게 썸네일 숨김 */
.mediaVideoThumb,
.mediaItem img.mediaVideoThumb,
.mediaVideoThumbEmpty{
  display:none !important;
}
.mediaVideoThumb{
  width:100%;
  height:auto;
  max-height:min(85vh, 960px);
  object-fit:contain;
  background:#000;
}
.mediaVideoThumbEmpty{
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:28px;
  background:#111;
  min-height:140px;
}
.mediaVideoPlayer,
.mediaVideo video{
  width:100%;
  height:auto;
  max-height:min(85vh, 960px);
  display:block;
  background:#000;
  object-fit:contain;
  vertical-align:middle;
}
/* 그리드: 동영상은 썸네일만 (GIF는 아래 예외로 재생) */
.feed.feedGrid .mediaVideoPlayer,
.feed.feedGrid .mediaVideo video{display:none !important}
.feed.feedGrid .mediaVideoThumb,
.feed.feedGrid .mediaItem img.mediaVideoThumb{
  display:block !important;
  min-height:0;
  max-height:none;
  height:100%;
}
.feed.feedGrid .mediaVideoThumbEmpty{
  display:flex !important;
  min-height:0;
  height:100%;
}
.feed.feedGrid .mediaVideo::after{
  content:"";
  position:absolute;
  right:8px;
  bottom:8px;
  width:0;
  height:0;
  border-style:solid;
  border-width:7px 0 7px 12px;
  border-color:transparent transparent transparent rgba(255,255,255,.92);
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));
  pointer-events:none;
}
/* GIF(tweet_video): 그리드·가로에서도 자동재생 */
.feed.feedGrid .mediaGif .mediaVideoPlayer,
.feed.feedGrid .mediaGif video.mediaGifPlayer,
.feed.feedHList .mediaGif .mediaVideoPlayer,
.feed.feedHList .mediaGif video.mediaGifPlayer{
  display:block !important;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
}
.feed.feedGrid .mediaGif .mediaVideoThumb,
.feed.feedGrid .mediaGif .mediaVideoThumbEmpty,
.feed.feedHList .mediaGif .mediaVideoThumb,
.feed.feedHList .mediaGif .mediaVideoThumbEmpty{
  display:none !important;
}
.feed.feedGrid .mediaGif::after,
.feed.feedHList .mediaGif::after{display:none !important}
.mediaGifPlayer{
  pointer-events:none;
}
/* 보드 영상: 네이티브 컨트롤 전부 숨김 — 음소거 버튼만, 영역 더블클릭=따봉 */
.mediaVideo:not(.mediaGif){
  cursor:pointer;
  -webkit-user-select:none;
  user-select:none;
}
video.mediaVideoPlayer:not(.mediaGifPlayer){
  pointer-events:none;
}
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-enclosure,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-panel,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-overlay-play-button,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-start-playback-button,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-timeline,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-current-time-display,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-time-remaining-display,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-mute-button,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-volume-slider,
video.mediaVideoPlayer:not(.mediaGifPlayer)::-webkit-media-controls-fullscreen-button{
  display:none !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:0 !important;
  height:0 !important;
}
/* 보드·숏폼 공용 음소거 버튼 */
.mediaMuteBtn,
.shortsMuteBtn{
  --mute-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77zM3 9v6h4l5 5V4L7 9H3z'/%3E%3C/svg%3E");
  --mute-icon-off:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E");
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(12,12,14,.58);
  -webkit-backdrop-filter:blur(12px) saturate(1.2);
  backdrop-filter:blur(12px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 6px 18px rgba(0,0,0,.4);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  pointer-events:auto;
  transition:
    background .16s ease,
    border-color .16s ease,
    transform .12s ease,
    box-shadow .16s ease;
}
.mediaMuteBtn{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:3;
}
.shortsMuteBtn{
  position:relative;
  flex:0 0 auto;
}
.mediaMuteBtn:hover,
.shortsMuteBtn:hover{
  background:rgba(20,20,24,.72);
  border-color:rgba(255,255,255,.32);
  box-shadow:
    0 1px 0 rgba(255,255,255,.16) inset,
    0 8px 22px rgba(0,0,0,.48);
}
.mediaMuteBtn:active,
.shortsMuteBtn:active{
  transform:scale(.94);
}
.mediaMuteBtn::before,
.shortsMuteBtn::before{
  content:"";
  position:absolute;
  inset:11px;
  background:#fff;
  opacity:.96;
  -webkit-mask:var(--mute-icon-off) center / contain no-repeat;
  mask:var(--mute-icon-off) center / contain no-repeat;
}
.mediaMuteBtn:not(.is-muted)::before,
.shortsMuteBtn:not(.is-muted)::before{
  -webkit-mask:var(--mute-icon) center / contain no-repeat;
  mask:var(--mute-icon) center / contain no-repeat;
}
.feed.feedGrid .mediaMuteBtn,
.feed.feedHList .mediaMuteBtn{
  display:none !important;
}
.mediaEmbed{margin:0 0 8px}
.mediaEmbed .twitter-tweet{margin:0 auto !important}

.xStats{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.xStat{display:inline-flex;align-items:center;gap:5px}
.xStatIcon{font-size:12px;line-height:1;opacity:.9}
.xStatNum{font-variant-numeric:tabular-nums}

.chipBtn{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.chipBtn:hover{border-color:rgba(255,255,255,.25)}
.chipBtn:disabled{opacity:.6;cursor:not-allowed}
.chipDanger{border-color:rgba(244,33,46,.55);color:var(--red)}

.embedWrap{padding:0 12px 12px}
.shareRow{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:10px;
  min-height:36px;
}
.shareRowLeft{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.shareRowDel{margin-left:auto}
.metaBar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;color:var(--muted);font-size:12px;flex-wrap:wrap}

/* 등록 후 중앙 공유 버튼 + 닫기 버튼 */
.shareResult{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:9999;
}
.shareCenterBox{display:flex;gap:8px;align-items:center}
.shareCenterBtn{
  padding:12px 16px;
  font-size:13px;
  background:var(--blue);
  color:#fff;
  border-color:transparent;
}
.shareCloseBtn{
  padding:12px 14px;
  font-size:13px;
  background:#2a2e34;
  border:1px solid var(--border);
  color:var(--text);
}

/* Footer */
.footer{margin-top:14px}
.footerBox{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
  padding:14px;
}
.footerTitle{margin:0 0 8px;font-weight:900;font-size:13px}
.footerText{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.6}
.footerLinks{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.footerLinks a{
  color:var(--text);
  font-size:12px;
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.25);
}
.footerLinks a:hover{border-bottom-color:rgba(255,255,255,.55)}
.footerCopy{margin:10px 0 0;color:var(--muted);font-size:12px}

.linkBtn{
  appearance:none;
  background:transparent;
  border:0;
  padding:0;
  color:var(--text);
  font-size:12px;
  cursor:pointer;
  border-bottom:1px dashed rgba(255,255,255,.25);
}
.linkBtn:hover{border-bottom-color:rgba(255,255,255,.55)}

/* ✅ 신고 모달 */
.modal{display:none;position:fixed;inset:0;z-index:10000}
.modal.show{display:block}
.modalBackdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.modalPanel{
  position:relative;
  width:min(560px, calc(100vw - 24px));
  margin:12vh auto 0;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(15,20,25,.96);
  box-shadow:0 10px 40px rgba(0,0,0,.55);
  overflow:hidden;
}
.modalHead{
  padding:12px 12px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--border);
}
.modalTitle{font-weight:900;font-size:14px}
.modalBody{padding:12px}
.field{margin-bottom:12px}
.label{font-size:12px;color:var(--muted);margin-bottom:6px}
.targetBox{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  color:var(--text);
  font-size:12px;
  word-break:break-all;
}
.textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--chip2);
  color:var(--text);
  font-size:13px;
  outline:none;
  resize:vertical;
}
.modalActions{display:flex;gap:8px;flex-wrap:wrap}
.modalNote{margin:10px 0 0;color:var(--muted);font-size:12px}


/* ✅ NOTE(설명) */
.inputNote{margin-top:10px}
.noteBlock{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--chip2);
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

/* 숏폼 전체화면 */
html.shortsOpen,
body.shortsOpen{
  overflow:hidden !important;
  height:100%;
  touch-action:none;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
html.shortsOpen::-webkit-scrollbar,
body.shortsOpen::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
.shortsRoot{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  height:100dvh;
  z-index:1200;
  background:#000;
  color:#fff;
  overflow:hidden;
}
.shortsRoot[hidden]{display:none !important}
.shortsClose{
  position:absolute;
  top:max(10px, env(safe-area-inset-top));
  right:max(10px, env(safe-area-inset-right));
  z-index:3;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.shortsScroller{
  height:100%;
  height:100%;
  overflow-y:scroll;
  scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scrollbar-width:none; /* Firefox */
  -ms-overflow-style:none; /* IE/old Edge */
}
.shortsScroller::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
  background:transparent;
}
.shortsSlide{
  position:relative;
  height:100%;
  height:100dvh;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  background:#000;
  overflow:hidden;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.shortsFrame{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
}
.shortsVideo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#000;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
/* PC: 영상 프레임 안에 프로필·본문 정렬 */
@media (min-width: 900px) {
  .shortsSlide{
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .shortsFrame{
    width:min(100%, calc(100dvh * 9 / 16));
    height:100%;
    max-height:100dvh;
    margin:0 auto;
  }
  .shortsVideo{
    width:100%;
    height:100%;
    object-fit:contain;
  }
  .shortsUi{
    left:0;
    right:0;
    width:auto;
    transform:none;
    padding:16px 14px 20px;
  }
}
.shortsUi{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:18px 14px max(22px, env(safe-area-inset-bottom));
  background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 70%);
  pointer-events:none;
}
.shortsMeta{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  pointer-events:none;
}
.shortsProfile{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
.shortsAvatar,
.shortsAvatarFallback{
  flex:0 0 auto;
  width:40px;
  height:40px;
  border-radius:999px;
  object-fit:cover;
  background:#222;
  border:1.5px solid rgba(255,255,255,.35);
  box-shadow:0 1px 4px rgba(0,0,0,.45);
}
.shortsAvatarFallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:800;
  color:#fff;
}
.shortsAuthor{
  min-width:0;
  font-size:15px;
  font-weight:800;
  text-shadow:0 1px 3px rgba(0,0,0,.6);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shortsCaption{
  margin:0;
  font-size:13px;
  line-height:1.45;
  max-height:4.4em;
  overflow:hidden;
  text-shadow:0 1px 3px rgba(0,0,0,.6);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  pointer-events:none;
}
.shortsActions{
  pointer-events:auto;
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.shortsVoteBtn{
  pointer-events:auto;
  flex:0 0 auto;
  min-width:44px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font:inherit;
}
.shortsVoteBtn:disabled{
  cursor:default;
  opacity:.85;
}
.shortsVoteIcon{
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(0,0,0,.4);
  position:relative;
  display:block;
}
.shortsVoteIcon::before{
  content:"";
  position:absolute;
  inset:11px;
  background:#fff;
  /* 따봉 */
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 21h4V9H2v12zm20-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L13.17 1 6.59 7.59C6.22 7.95 6 8.45 6 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 21h4V9H2v12zm20-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L13.17 1 6.59 7.59C6.22 7.95 6 8.45 6 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.shortsVoteBtn.is-voted .shortsVoteIcon{
  background:rgba(255, 90, 70, .55);
}
.shortsVoteBtn.is-voted .shortsVoteIcon::before{
  background:#ffb4a8;
}
.shortsVoteCount{
  font-size:12px;
  font-weight:800;
  line-height:1;
  text-shadow:0 1px 3px rgba(0,0,0,.65);
}
.shortsStatus{
  position:absolute;
  left:50%;
  bottom:max(28px, env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:3;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.5);
  font-size:12px;
  font-weight:700;
  pointer-events:none;
}
.shortsStatus:empty{display:none}

/* 이미지 확대 라이트박스 + 다운로드 방지 */
img.mediaZoomable,
video.mediaVideoPlayer,
video.shortsVideo,
.mediaLightboxImg{
  cursor:zoom-in;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  -webkit-user-drag:none;
}
video.mediaVideoPlayer,
video.shortsVideo{cursor:default}
html.lightboxOpen,
body.lightboxOpen{
  overflow:hidden !important;
  touch-action:none;
}
.mediaLightbox{
  position:fixed;
  inset:0;
  z-index:1300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.88);
  cursor:zoom-out;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  touch-action:none;
  overscroll-behavior:none;
}
.mediaLightbox[hidden]{display:none !important}
.mediaLightboxStage{
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:none;
  overflow:hidden;
}
.mediaLightboxImg{
  max-width:min(96vw,1200px);
  max-height:92vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:8px;
  box-shadow:0 12px 40px rgba(0,0,0,.5);
  cursor:default;
  pointer-events:auto;
  transform-origin:center center;
  will-change:transform;
  transition:none;
}
.mediaLightboxClose{
  position:absolute;
  top:max(12px, env(safe-area-inset-top));
  right:max(12px, env(safe-area-inset-right));
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}
.mediaLightboxNav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:48px;
  height:48px;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}
.mediaLightboxPrev{left:max(8px, env(safe-area-inset-left))}
.mediaLightboxNext{right:max(8px, env(safe-area-inset-right))}
.mediaLightboxNav[hidden]{display:none !important}
.mediaLightboxCounter{
  position:absolute;
  left:50%;
  bottom:max(16px, env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:2;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.5);
  color:#fff;
  font-size:13px;
  font-weight:700;
  pointer-events:none;
}
.mediaLightboxCounter[hidden]{display:none !important}
@media (max-width:899px){
  .mediaLightboxNav{display:none}
}
