/* ========================================================
   CITRINE V2 • TRENDING DI INTERNET
   Hanya tata letak khusus; kartu, baris, tombol, field, badge, dot dari v2_ui.css.
   ======================================================== */
.trends-view-container { display: flex; flex: 1; min-width: 0; height: calc(100vh - 128px); overflow-y: auto; }
.tr-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; font-weight: 400; color: var(--c-text); }
.tr-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 18px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--c-r-lg); }
.tr-head-text { min-width: 0; }
.tr-title { font-size: 16px; font-weight: 500; color: var(--c-text-strong); }
.tr-sub { margin-top: 3px; font-size: 12px; color: var(--c-muted); }
.tr-warn { color: var(--c-warn-text); cursor: help; }
.tr-loc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tr-loc .c-field { height: 34px; }
.tr-loc .c-field select { font-size: 12.5px; color: #e4e4e7; max-width: 200px; }

#trBody { display: flex; flex-direction: column; gap: 16px; transition: opacity .2s; }
#trBody.tr-dim { opacity: 0.45; pointer-events: none; }
#trBody .c-card + .c-card { margin-top: 0; }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } }
.tr-scopes { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.c-card-title > .c-badge.filled:last-child { margin-left: auto; }
.tr-acts { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.tr-move { flex: 0 0 auto; font-size: 11px; color: var(--c-faint); }
.tr-move.up { color: var(--c-pos-text); } .tr-move.down { color: var(--c-neg-text); } .tr-move.new { color: var(--c-gold); }
.tr-wiki-views { flex: 0 0 auto; font-size: 11.5px; color: var(--c-muted); }
.tr-foot { margin: 2px 2px 0; }

/* lagi ramai di mana-mana */
.tr-hot { background: linear-gradient(135deg, #1f1a14 0%, var(--c-card) 55%); border-color: #2e2820; }
.tr-hot .c-card-title svg { color: #f97316; }
.tr-hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tr-hot-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 14px 12px;
  background: rgba(15, 15, 16, 0.55); border: 1px solid #2a2622; border-radius: 12px; transition: border-color .15s, background .15s; }
.tr-hot-card:hover { border-color: rgba(224, 176, 74, 0.35); background: rgba(24, 22, 19, 0.8); }
.tr-hot-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tr-hot-rank { font-size: 11px; color: var(--c-gold); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.tr-hot-term { font-size: 16px; color: var(--c-text-strong); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-hot-src { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tr-src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c-text-3); }
.tr-hot-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; border-top: 1px solid #26231f; }
.tr-hot-metric { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tr-hot-metric b { font-size: 22px; font-weight: 300; line-height: 1; color: var(--c-text-strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tr-hot-metric b.zero { color: var(--c-faint); }
.tr-hot-metric span { font-size: 11px; color: #77777f; }
.tr-hot-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
html.role-viewer .tr-hot-acts { grid-template-columns: 1fr; }

/* trending gabungan */
.tr-combo-row { gap: 12px; min-width: 0; }
.tr-combo-row:hover { background: var(--c-raised); }
.tr-combo-rank { flex: 0 0 22px; text-align: right; font-size: 12px; color: #77777f; font-variant-numeric: tabular-nums; }
.tr-combo-pic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: var(--c-r); overflow: hidden; background: #2a2a2d;
  display: flex; align-items: center; justify-content: center; }
.tr-combo-pic img { width: 100%; height: 100%; object-fit: cover; }
.tr-combo-ph { font-size: 13px; color: var(--c-muted); }
.tr-combo-body { flex: 1; min-width: 0; }
.tr-combo-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tr-combo-term { font-size: 14px; color: var(--c-text-strong); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-combo-term:hover { color: var(--c-gold); }
.tr-combo-metrics { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.tr-m { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c-muted); }
.tr-m b { font-weight: 500; color: #d4d4d8; }
.tr-combo-news { display: block; margin-top: 4px; font-size: 12px; color: var(--c-text-3); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-combo-news:hover { color: var(--c-text-strong); }
.tr-combo-news em { font-style: normal; color: var(--c-faint); }
.tr-combo-cit { flex: 0 0 64px; display: flex; flex-direction: column; align-items: flex-end; }
.tr-combo-cit b { font-size: 17px; font-weight: 300; color: var(--c-text-strong); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tr-combo-cit b.zero { color: #52525b; }
.tr-combo-cit span { font-size: 10.5px; color: var(--c-faint); }
@media (max-width: 760px) {
  .tr-combo-pic { display: none; }
  .tr-combo-cit { flex-basis: 48px; }
  .tr-loc { margin-left: 0; }
}
