/* ── OFFLINE LIBRARY ── */

.ol-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
  user-select: none;
}
.ol-group-header::before { content: '▶'; font-size: 0.6rem; margin-right: 6px; transition: transform 0.15s; }
.ol-group-header.ol-open::before { transform: rotate(90deg); }
.ol-group-count {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0;
}

.ol-book-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.ol-book-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(200,169,110,0.12);
  font-size: 0.88rem;
  color: var(--ink-light);
}
.ol-book-row:last-child { border-bottom: none; }

.ol-book-name { flex: 1; }

.ol-progress {
  width: 60px;
  height: 4px;
  background: rgba(200,169,110,0.2);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.ol-progress-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.1s linear;
}

.ol-status {
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.ol-downloaded { color: var(--gold); }

.ol-dl-btn,
.ol-del-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink-light);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 1px 5px;
  line-height: 1.4;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.ol-dl-btn:hover  { background: var(--gold-pale); color: var(--ink); }
.ol-dl-btn:disabled { opacity: 0.4; cursor: default; }
.ol-del-btn { border-color: rgba(200,169,110,0.4); font-size: 0.65rem; }
.ol-del-btn:hover { background: rgba(224,112,112,0.15); color: var(--red); border-color: var(--red); }
