/* ── Comment Drawer ── */
#comment-drawer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: var(--feed-w); max-width: 100%; height: 70dvh;
  background: #1a1a1a; border-radius: 20px 20px 0 0;
  z-index: 200; transition: transform .35s cubic-bezier(0.32,0.72,0,1);
  display: flex; flex-direction: column; overflow: hidden;
}
#comment-drawer.open { transform: translateX(-50%) translateY(0); }

.drawer-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2); margin: 12px auto 0;
}
.drawer-header {
  padding: 16px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.drawer-header h3 { font-size: 15px; font-weight: 700; }
.drawer-close {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer;
}
.comments-list { flex: 1; overflow-y: auto; padding: 16px 20px; }
.comment-item { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-user { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.comment-text { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.4; }
.comment-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.comment-like {
  float: right; font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.comment-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.comment-input-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.comment-input {
  flex: 1; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 9px 16px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}
.comment-input::placeholder { color: var(--muted); }
.send-btn { background: none; border: none; color: var(--red); font-size: 18px; cursor: pointer; padding: 4px 8px; }

.comments-loading {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 14px; padding: 24px 0; justify-content: center;
}
.comments-empty {
  text-align: center; color: var(--muted); font-size: 14px; padding: 32px 0;
}

.comment-login-cta {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--muted); font-size: 14px;
}
.comment-login-cta i { color: var(--muted); font-size: 15px; }
.comment-login-cta span { flex: 1; }
.comment-login-cta button {
  background: var(--red); color: #fff; border: none;
  border-radius: 20px; padding: 7px 18px;
  font-size: 13px; font-weight: 700;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}

@media (max-width: 767px) {
  #comment-drawer { width: 100vw; left: 0; transform: translateY(100%); }
  #comment-drawer.open { transform: translateY(0); }
}
