/* Shorts Comments — visual ownership */
#ov{display:none;position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:60}
#drawer{position:fixed;bottom:-100%;left:0;width:100%;height:70%;background:#111;border-radius:16px 16px 0 0;z-index:70;transition:.32s;display:flex;flex-direction:column}
.commentHead{padding:14px;display:flex;justify-content:space-between;border-bottom:1px solid #222}
.commentClose{cursor:pointer}
#clist{flex:1;overflow:auto;padding:12px}
.commentComposer{display:flex;gap:8px;padding:12px;border-top:1px solid #222}
#cin{flex:1;background:#222;border:none;border-radius:20px;padding:11px 14px;color:#fff;outline:none}
.commentSend{background:#00E676;border:none;padding:8px 18px;border-radius:20px;font-weight:800}
.commentRow{display:flex;gap:8px;margin-bottom:12px}
.commentAvatar{width:28px;height:28px;background:#222;border-radius:50%;overflow:hidden;flex:0 0 28px}
.commentAvatar img{width:100%;height:100%}
.commentBody{min-width:0}
.commentAuthor{color:#00E676;font-size:12px}
.commentText{font-size:13px}
.commentEmpty,.commentLoading{opacity:.5;text-align:center}
.commentLocal{opacity:.85}


/* Comments Emoji Picker — visual ownership */
.commentComposerEmoji{position:relative;align-items:center}
.commentEmojiBtn{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#222;
  color:#fff;
  font-size:21px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.commentEmojiBtn:active{transform:scale(.94)}
.commentEmojiPicker{
  position:absolute;
  left:10px;
  bottom:58px;
  width:min(320px,calc(100vw - 24px));
  max-height:190px;
  overflow:auto;
  padding:10px;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:4px;
  background:#171717;
  border:1px solid #2b2b2b;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  z-index:100;
}
.commentEmojiPicker[hidden]{display:none}
.commentEmojiItem{
  border:0;
  background:transparent;
  color:#fff;
  font-size:23px;
  min-height:34px;
  border-radius:8px;
  cursor:pointer;
}
.commentEmojiItem:hover{background:#292929}

/* v29: composer is always above navigation and the visible keyboard. */
html body.comments-open #ov{z-index:1100}
html body #drawer{z-index:1101;background:var(--sf-surface);color:var(--sf-text)}
html body.comments-open #drawer{bottom:var(--comment-bottom,70px)!important;height:var(--comment-height,65dvh);max-height:calc(100dvh - 90px);overflow:hidden}
html body #drawer .commentHead,html body #drawer .commentComposer{flex:0 0 auto;border-color:var(--sf-border);background:var(--sf-surface)}
html body #drawer #clist{min-height:0;overscroll-behavior:contain}
html body #drawer #cin{min-width:0;font-size:16px;background:var(--sf-field);color:var(--sf-text)}
html body #drawer .commentEmojiBtn,html body #drawer .commentEmojiPicker{background:var(--sf-field);color:var(--sf-text);border-color:var(--sf-border)}
html body.comments-open .sk-nav{visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){#drawer{transition:none}}
