/* The comments panel in the picture / video viewer (media-comments.js). Colours only from the site's colours. Fields 16 px or more; buttons 44 px. */
.mc { overflow: hidden; }
.mc-head { display: flex; align-items: center; gap: 10px; padding: 14px 52px 10px 14px; }
.mc-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--msg-accent); flex: none; }
.mc-name { font-size: 16px; color: var(--msg-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px; background: var(--msg-surface-2); border-top: 1px solid var(--msg-border); border-bottom: 1px solid var(--msg-border); min-height: 48px; }
.mc-like, .mc-count { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--msg-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; }
.mc-like.is-on { color: var(--msg-accent); }
.mc-like svg, .mc-count svg { width: 18px; height: 18px; }
.mc-like.is-on svg { fill: currentColor; }
.mc-owner { padding: 8px 14px 0; }
.mc-offbtn { min-height: 44px; padding: 0 12px; border: 1px solid var(--msg-border); border-radius: var(--btn-r, 8px); background: none; color: var(--msg-muted); font: inherit; font-size: 13px; cursor: pointer; }
.mc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.mc-list:hover { scrollbar-color: color-mix(in srgb, var(--msg-text) 30%, transparent) transparent; }
.mc-c { padding: 8px 0; border-bottom: 1px solid var(--msg-border); }
.mc-ct { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mc-ct b { color: var(--msg-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-c.is-model .mc-ct b { color: var(--msg-accent); }
.mc-badge { padding: 1px 6px; border-radius: 999px; background: var(--msg-accent); color: var(--msg-on-accent); font-size: 11px; font-weight: 700; }
.mc-time { margin-left: auto; color: var(--msg-muted); font-size: 12px; white-space: nowrap; }
.mc-del { flex: none; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--msg-muted); cursor: pointer; border-radius: 6px; position: relative; }
.mc-del::after { content: ""; position: absolute; inset: -8px; } /* a 44 px tap area around the small cross */
.mc-text { margin: 4px 0 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--msg-muted); text-align: center; padding: 24px; }
.mc-empty[hidden], .mc-more[hidden], .mc-note[hidden], .mc-form[hidden], .mc-owner[hidden] { display: none; }
.mc-empty p { margin: 0; }
.mc-more { min-height: 44px; margin: 0 14px 8px; border: 1px solid var(--msg-border); border-radius: 8px; background: none; color: var(--msg-text); font: inherit; cursor: pointer; }
.mc-note { margin: 0; padding: 12px 14px; color: var(--msg-muted); font-size: 14px; text-align: center; }
.mc-join { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--msg-accent); color: var(--msg-on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.mc-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--msg-border); background: var(--msg-surface); }
.mc-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--msg-border); background: var(--msg-bg); color: var(--msg-text); font: inherit; font-size: 16px; }
.mc-send { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: none; color: var(--msg-accent); font: inherit; font-weight: 700; cursor: pointer; }
.mc-send:disabled { opacity: .5; }
.mc-handle { display: none; }
@media (max-width: 900px) {
  .mc-handle { display: flex; align-items: center; justify-content: center; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
  .mc-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--msg-border); }
  .mc-closed .mc-head, .mc-closed .mc-owner, .mc-closed .mc-list, .mc-closed .mc-empty, .mc-closed .mc-more, .mc-closed .mc-note, .mc-closed .mc-form { display: none; }
  .mc-head { padding-right: 14px; }
}

.mc-act { flex: none; min-height: 28px; padding: 0 6px; border: 0; background: none; color: var(--msg-muted); font: inherit; font-size: 12px; cursor: pointer; position: relative; }
.mc-act::after { content: ""; position: absolute; inset: -8px -2px; } /* a 44 px tap area */
@media (hover: hover) { .mc-act:hover:not(:disabled) { color: var(--msg-text); } } /* (touch screens keep :hover after a tap) */
.mc-act:disabled { cursor: default; }
.mc-c.is-pinned { border-left: 2px solid var(--msg-accent); padding-left: 8px; }
.mc-pinned { background: none; border: 1px solid var(--msg-accent); color: var(--msg-accent); }
/* answering a comment: "In reply to NAME" under the writer's line, and a bar above the write box saying whom the new comment answers */
.mc-form { flex-wrap: wrap; }
.mc-replying { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--msg-surface-2); color: var(--msg-muted); font-size: 14px; }
.mc-replying[hidden] { display: none; }
.mc-replyx { width: 44px; min-height: 44px; border: 0; background: none; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
/* the answers sit under their comment: a line down the side, smaller text */
.mc-replies { margin: 6px 0 0 6px; padding-left: 10px; border-left: 2px solid var(--msg-border); display: grid; gap: 8px; }
.mc-replies:empty { display: none; }
.mc-rep .mc-text { font-size: 14px; }
