/* m-content — Kitaplar, Kütüphaneler, Gönderiler (DESIGN.md).
   Yalnız base.css değişkenleri; sınıflar `ct-` ön ekli. */

/* Kart sayaçları: ikon + sayı */
.ct-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ct-stats-inline { margin-top: 0; gap: 10px; }
.ct-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-stat svg { flex-shrink: 0; color: var(--faint); }
.ct-stat.pop, .ct-stat.pop svg { color: var(--orange); font-weight: 700; }
.ct-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }

.ct-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.ct-badges .badge svg, .post-badges .badge svg { width: 11px; height: 11px; }
.ct-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card-title { overflow-wrap: anywhere; }
.book-card .book-genres { margin-top: 8px; }

/* Tür çubuğu etiketi */
.ct-bar-label { color: var(--faint); font-size: 12px; font-weight: 600; align-self: center; margin-right: 2px; }
.ct-flush { padding: 0; }

/* Kütüphane kartı */
.ct-lib-card .lib-cover { width: 56px; height: 56px; border-radius: 10px; }
.ct-hidden-card { border-style: dashed; }
.lib-cover.fallback, .book-cover.fallback, .mini-cover.fallback { color: var(--faint); }

/* Detay kimlik kartı */
.ct-head { align-items: flex-start; }
.ct-head-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.ct-head-main .ct-badges { margin-top: 0; }
.ct-head-main .book-genres { margin-top: 0; }
.ct-author { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-author .link-btn { font-size: 13px; }
.ct-desc { font-size: 13px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-ids { margin-top: 2px; word-break: break-all; }

/* Formlar */
.ct-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.ct-label:first-of-type { margin-top: 0; }
.ct-form-grid { margin-top: 2px; }
.ct-form-grid .ct-label { margin-top: 12px; }
.ct-section-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.ct-save { margin-top: 16px; }
.ct-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ct-mt { margin-top: 10px; }

/* Bölüm modalı */
.ct-modal-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-chapter-edit { min-height: 40vh; font-size: 13.5px; line-height: 1.6; }

/* Yorum satırları */
.comment-head .avatar { flex-shrink: 0; }
.ct-name { font-size: 13px; font-weight: 650; color: var(--text); }
.ct-name:hover { color: var(--orange); }

/* Gönderi medyası */
.ct-video-thumb { position: relative; display: inline-block; }
.ct-media-tag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.ct-media-line { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0; }
.ct-music-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px;
  background: var(--sunken); color: var(--muted); }
.post-voice svg { color: var(--muted); flex-shrink: 0; }
.post-book { display: inline-flex; align-items: center; gap: 5px; }
.post-book.clickable:hover { filter: brightness(.97); }
.ct-warn-inline { color: var(--yellow); display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 640px) {
  .ct-head-main { min-width: 0; flex-basis: 100%; }
  .post-voice audio { max-width: 100%; }
  .ct-stats-inline .muted.tiny { display: none; }
}
