/* ==========================================================
   Hozzászólások a film adatlapján (js/social/comments.js)
   ========================================================== */

.comments { padding: 0 36px 36px; }
.comments:empty { display: none; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 14px; }
.cm-head .section-label { margin: 18px 0 0; }
.cm-head .section-label span { color: var(--text-2); margin-left: 4px; }
.cm-sort { display: flex; gap: 4px; margin-top: 14px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.cm-sort button { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.cm-sort button.is-on { background: rgba(255, 255, 255, .1); color: var(--text); }

/* űrlap */
.cm-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.cm-form.is-small { margin: 8px 0 4px; }
.cm-form-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cm-form textarea {
  width: 100%; resize: none; min-height: 42px; max-height: 220px;
  padding: 10px 14px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  font: inherit; font-size: 14.5px; line-height: 1.45; color: inherit; outline: none;
}
.cm-form textarea:focus { border-color: var(--accent); }
.cm-form-actions { display: none; justify-content: flex-end; gap: 8px; }
.cm-form:focus-within .cm-form-actions,
.cm-form.is-small .cm-form-actions,
.cm-form textarea:not(:placeholder-shown) ~ .cm-form-actions { display: flex; }

/* lista */
.cm-list, .cm-replies ul { list-style: none; display: grid; gap: 18px; }
.cm-main { display: flex; gap: 12px; }
.cm-user { text-decoration: none; color: inherit; flex-shrink: 0; }
.cm-body { flex: 1; min-width: 0; }
.cm-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; }
.cm-top .cm-user b { font-weight: 700; }
.cm-top .cm-user:hover b { text-decoration: underline; }
.cm-top time, .cm-edited { color: var(--text-3); font-size: 12.5px; }
.cm-text { margin-top: 3px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: #e3e3e8; }
.cm-text .cm-user { color: #7cb7ff; font-weight: 600; }
.cm-text.is-deleted { color: var(--text-3); font-style: italic; }
.cm-ghost span { background: var(--surface-3); }

.cm-actions { display: flex; align-items: center; gap: 4px; margin: 4px 0 0 -8px; }
.cm-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.cm-actions button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.cm-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.cm-like.is-on { color: var(--accent-2); }
.cm-like.is-on svg { fill: currentColor; }
.cm-like:active svg { transform: scale(1.3); }
.cm-like span:empty { display: none; }

.cm-replies { margin: 10px 0 0 48px; }
.cm-replies ul { gap: 14px; }
.cm-more { font-size: 13px; font-weight: 700; color: #7cb7ff; padding: 4px 0; margin-bottom: 6px; }
.cm-more:hover { text-decoration: underline; }

.cm-empty { padding: 20px 0 6px; text-align: center; color: var(--text-3); }
.cm-empty .spinner { margin: 0 auto; }

@media (max-width: 760px) {
  .comments { padding: 0 20px 28px; }
  .cm-replies { margin-left: 30px; }
  .cm-form > .avatar { display: none; }
}
