/* Compact iEtsh archive like/comments panel */
#community-section {
  position: fixed;
  z-index: 1000;
  top: 12%;
  right: 0;
  width: min(390px, calc(100vw - 10px));
  max-height: 84vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  transform: translateX(calc(100% - 38px));
  transition: transform .26s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
#community-section.community-panel-open { transform: translateX(0); }

.community-side-toggle {
  flex: 0 0 38px;
  width: 38px;
  align-self: flex-start;
  margin-top: 12px;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid rgba(255,255,255,.18);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #20283d;
  color: #ff405b;
  font: inherit;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(255,45,75,.28);
}
#community-section.community-panel-open .community-side-toggle {
  color: #dce2f4;
  font-size: 22px;
}
.community-shell {
  min-width: 0;
  flex: 1 1 auto;
  max-height: 84vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px;
  border: 1px solid rgba(124,140,205,.24);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: linear-gradient(145deg, rgba(24,29,44,.99), rgba(12,15,23,.99));
  scrollbar-width: thin;
}
.community-intro { margin: 0 0 10px; }
.community-title { margin: 0; color: #f4f5fa; font-size: 17px; line-height: 1.25; }
.community-main { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start; }
.community-support-card, .community-comments-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.community-like-count {
  display: inline;
  margin-right: 5px;
  color: #f4f5fa;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.community-count-label { display: inline; color: #8f99ac; font-size: 11px; }
.community-like-button, .community-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #303951;
  color: #f4f5fa;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.community-like-button { width: 100%; margin-top: 9px; }
.community-like-button::first-letter { color: #ff405b; }
.community-like-button:hover:not(:disabled), .community-submit-button:hover:not(:disabled) {
  background: #3a4664;
}
.community-like-button.is-liked {
  background: rgba(255,55,85,.13);
  border-color: rgba(255,55,85,.4);
  color: #ff7084;
  animation: community-heart-pop .36s ease;
}
.community-like-button:disabled, .community-submit-button:disabled { opacity: .7; cursor: not-allowed; }
@keyframes community-heart-pop {
  0% { transform: scale(.94); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
.community-liker-names { margin-top: 7px; color: #8993a7; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.community-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.community-profile-name { color: #aeb7c8; font-size: 10px; }
.community-text-button { padding: 4px 6px; border: 0; background: transparent; color: #a7b4ee; font: inherit; font-size: 10px; cursor: pointer; }
.community-name-locked { color: #667087; font-size: 9px; }
.community-name-form { display: grid; gap: 7px; margin-top: 9px; }
.community-name-form label { color: #aab3c5; font-size: 10px; }
.community-input, .community-textarea {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  outline: none; background: rgba(3,5,10,.32); color: #edf0f7;
  font: inherit; font-size: 11px;
}
.community-input:focus, .community-textarea:focus { border-color: rgba(135,151,222,.65); }
.community-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.community-comments-title { margin: 0; color: #f0f2f7; font-size: 15px; }
.community-comment-count { display: inline-flex; min-width: 24px; height: 24px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #c5ccdb; font-size: 10px; }
.community-comment-form { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.community-textarea { display: block; resize: vertical; min-height: 58px; line-height: 1.45; }
.community-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.community-character-hint, .community-login-hint { color: #727d91; font-size: 9px; }
.community-name-prompt { padding: 8px 0; border: 0; background: transparent; color: #c0caf5; font: inherit; font-size: 11px; cursor: pointer; }
.community-comment-list { display: grid; gap: 0; max-height: 220px; overflow-y: auto; }
.community-comment { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.community-comment:last-child { border-bottom: 0; }
.community-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.community-comment-author { color: #dfe3ef; font-size: 10px; }
.community-comment-date { color: #697489; font-size: 9px; }
.community-comment-body { margin: 5px 0 0; color: #aeb6c6; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.community-empty-comments { margin: 10px 0 2px; color: #788398; font-size: 10px; }
.community-message { min-height: 12px; margin: 7px 0 0; color: #8fcea9; font-size: 10px; }
.community-message.is-error { color: #f0a0a7; }
.community-rename-form { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; width: 100%; }
.community-rename-form .community-input { flex: 1 1 100px; }
@media (max-width: 600px) {
  #community-section { top: auto; bottom: 14%; width: min(360px, calc(100vw - 8px)); max-height: 76vh; transform: translateX(calc(100% - 42px)); }
  #community-section.community-panel-open { transform: translateX(0); }
  .community-side-toggle { flex-basis: 42px; width: 42px; min-height: 58px; margin-top: 10px; font-size: 25px; }
  .community-shell { max-height: 76vh; padding: 13px; }
}
