#detail         { width: 270px; border-left: 1px solid var(--border); padding: 20px 16px; overflow-y: auto; flex-shrink: 0; background: var(--surface); display: none; }
#detail.visible { display: block; }

.detail-header     { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.detail-name       { font-weight: 700; font-size: 15px; color: var(--text); word-break: break-word; line-height: 1.3; }
.detail-close      { background: none; border: none; color: var(--text4); cursor: pointer; font-size: 20px; padding: 0 0 0 8px; line-height: 1; flex-shrink: 0; }
.detail-sub        { font-size: 11px; color: var(--text4); margin-bottom: 14px; margin-top: 4px; }
.detail-desc       { font-size: 12px; color: var(--text2); margin-bottom: 16px; line-height: 1.75; }
.detail-stats      { display: flex; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.detail-stat       { text-align: center; }
.detail-stat-val   { font-size: 15px; font-weight: 700; color: var(--text); }
.detail-stat-label { font-size: 10px; color: var(--text4); margin-top: 2px; }
.detail-lang       { display: flex; align-items: center; gap: 5px; }
.detail-date       { font-size: 11px; color: var(--text4); margin-bottom: 16px; }

.topic-wrap  { margin-bottom: 18px; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.topic-pill  {
  padding: 3px 9px; background: #0d1117; border: 1px solid #2d4a7a;
  border-radius: 20px; font-size: 11px; color: var(--accent); cursor: pointer;
  font-family: inherit; transition: background 0.12s;
}
.topic-pill:hover { background: #162032; }

.btn-open {
  display: block; width: 100%; padding: 9px; text-align: center;
  background: var(--green); border-radius: 7px; color: var(--text);
  text-decoration: none; font-size: 13px; font-family: inherit;
  font-weight: 600; transition: background 0.15s; border: none; cursor: pointer;
}
.btn-open:hover { background: var(--green2); }

