@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── TOKENS ── */
.qsp-root {
  --ink:    #09090B;
  --volt:   #1DB954;
  --zinc:   #71717A;
  --border: #d0d7de;
  --bg-s:   #f6f8fa;
  --sh1: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sh2: 0 4px 14px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
  --sh3: 0 8px 28px rgba(0,0,0,.11), 0 2px 8px rgba(0,0,0,.06);
  --radius: 7px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: block;
}

/* ── RESET (scoped) ── */
.qsp-root *, .qsp-root *::before, .qsp-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes qsp-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qsp-pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .45; }
}
@keyframes qsp-spin {
  to { transform: rotate(360deg); }
}
@keyframes qsp-fade {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── HEADER ── */
.qsp-header {
  border-bottom: 1px solid var(--border);
  padding: 28px 0 0;
  animation: qsp-up .35s ease both;
}

.qsp-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--zinc);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.qsp-breadcrumb a { color: var(--zinc); text-decoration: none; }
.qsp-breadcrumb a:hover { color: var(--ink); }
.qsp-bc-sep { color: var(--border); }

.qsp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.qsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-s);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px 3px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--zinc);
  margin-bottom: 8px;
}
.qsp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  flex-shrink: 0;
}

.qsp-h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1.2;
  color: var(--ink);
}
.qsp-subtitle {
  font-size: 14px;
  color: var(--zinc);
  line-height: 1.65;
  margin-top: 6px;
  max-width: 460px;
}

/* Stats */
.qsp-stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh1);
  flex-shrink: 0;
  align-self: flex-start;
}
.qsp-stat {
  padding: 12px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
  min-width: 76px;
  transition: background .15s;
  cursor: default;
}
.qsp-stat:last-child { border-right: none; }
.qsp-stat:hover { background: var(--bg-s); }
.qsp-stat-n { font-size: 17px; font-weight: 700; color: var(--ink); }
.qsp-stat-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--zinc);
  margin-top: 2px;
  letter-spacing: .04em;
}

/* ── PUBLISH CTA BUTTON ── */
.qsp-publish-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--volt);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.qsp-publish-cta:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.qsp-publish-cta svg {
  flex-shrink: 0;
}

/* ── SEARCH BAR ── */
.qsp-search-wrap {
  margin-bottom: 20px;
}
.qsp-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #fff;
  box-shadow: var(--sh1);
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.qsp-search-box:focus-within {
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(29,185,84,.1);
}
.qsp-search-ico { color: var(--zinc); flex-shrink: 0; }
.qsp-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.qsp-search-box input::placeholder { color: var(--zinc); font-size: 13.5px; }
.qsp-search-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.qsp-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--zinc);
  background: var(--bg-s);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
}
.qsp-search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--volt);
  border-radius: 50%;
  animation: qsp-spin .6s linear infinite;
  display: none;
  flex-shrink: 0;
}
.qsp-search-spinner.qsp-show { display: block; }

/* ── TABS ── */
.qsp-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  margin: 0 -9999px;
  padding: 0 9999px;
}
.qsp-tabs::-webkit-scrollbar { display: none; }
.qsp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--zinc);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  user-select: none;
}
.qsp-tab:hover { color: var(--ink); }
.qsp-tab.qsp-tab-active { color: var(--ink); border-bottom-color: var(--volt); }
.qsp-tab-c {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: var(--bg-s);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 6px;
  color: var(--zinc);
}

/* ── TRENDING PANEL ── */
.qsp-trending-panel {
  padding: 24px 0 0;
  animation: qsp-up .35s ease both;
}
.qsp-trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.qsp-trending-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--sh1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  animation: qsp-up .35s ease both;
}
.qsp-trending-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-1px);
  border-color: #c6cdd5;
}
.qsp-trend-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
.qsp-trend-rank.qsp-top { color: var(--volt); }
.qsp-trend-body { flex: 1; min-width: 0; }
.qsp-trend-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.qsp-trend-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--zinc);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── MOBILE BAR ── */
.qsp-mob-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.qsp-mob-btn, .qsp-mob-sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--sh1);
  transition: background .12s, border-color .12s;
}
.qsp-mob-btn:hover, .qsp-mob-sort-btn:hover { background: var(--bg-s); }
.qsp-mob-count {
  width: 18px;
  height: 18px;
  background: var(--volt);
  color: var(--ink);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── DRAWER ── */
.qsp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  animation: qsp-fade .2s ease;
}
.qsp-overlay.qsp-open { display: block; }
.qsp-drawer {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 290px;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--border);
}
.qsp-drawer.qsp-open { transform: translateX(0); }
.qsp-drawer-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.qsp-drawer-title { font-size: 14px; font-weight: 600; }
.qsp-drawer-x {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--zinc);
  transition: background .12s;
}
.qsp-drawer-x:hover { background: var(--bg-s); }

/* ── BODY LAYOUT ── */
.qsp-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ── SIDEBAR ── */
.qsp-sidebar {
  width: 232px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  animation: qsp-up .4s .05s ease both;
}
.qsp-sidebar::-webkit-scrollbar { width: 3px; }
.qsp-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.qsp-sb-section { margin-bottom: 20px; }

.qsp-sb-label,
.qsp-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.qsp-sl-bar {
  width: 3px;
  height: 14px;
  background: var(--volt);
  border-radius: 2px;
  flex-shrink: 0;
}
.qsp-sl-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--zinc);
}
.qsp-sl-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  background: var(--bg-s);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 5px;
  color: var(--zinc);
  margin-left: auto;
}

/* Filter items */
.qsp-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
  margin-bottom: 2px;
  user-select: none;
}
.qsp-filter-item:hover { background: var(--bg-s); }
.qsp-filter-item.qsp-on { background: rgba(29,185,84,.07); }
.qsp-filter-cb {
  width: 14px; height: 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.qsp-filter-item.qsp-on .qsp-filter-cb { background: var(--volt); border-color: var(--volt); }
.qsp-filter-name {
  font-size: 12.5px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qsp-filter-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--zinc);
  flex-shrink: 0;
}

/* Tag cloud */
.qsp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.qsp-tag-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--zinc);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  user-select: none;
}
.qsp-tag-pill:hover { border-color: #b0b7be; color: var(--ink); background: var(--bg-s); }
.qsp-tag-pill.qsp-on {
  background: rgba(29,185,84,.08);
  border-color: rgba(29,185,84,.35);
  color: #059669;
}

/* Author items */
.qsp-author-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
  margin-bottom: 2px;
  user-select: none;
}
.qsp-author-item:hover { background: var(--bg-s); }
.qsp-author-item.qsp-on { background: rgba(29,185,84,.07); }
.qsp-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-s);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 600;
  color: var(--zinc);
  overflow: hidden;
}
.qsp-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Reading time radios */
.qsp-rt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 2px;
}
.qsp-rt-item:hover { background: var(--bg-s); }
.qsp-rt-item input[type="radio"] { accent-color: var(--volt); cursor: pointer; }

.qsp-divider { height: 1px; background: var(--border); margin: 16px 0; }
.qsp-clear-btn {
  width: 100%;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--zinc);
  cursor: pointer;
  transition: all .12s;
  margin-top: 6px;
  display: none;
}
.qsp-clear-btn:hover { background: var(--bg-s); color: var(--ink); border-color: #b0b7be; }
.qsp-clear-btn.qsp-show { display: block; }

/* ── CONTENT ── */
.qsp-content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
  animation: qsp-up .4s .1s ease both;
}

/* Toolbar */
.qsp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.qsp-result-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--zinc);
}
.qsp-result-lbl strong { color: var(--ink); }
.qsp-toolbar-r { display: flex; align-items: center; gap: 8px; }
.qsp-sort-sel {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
  box-shadow: var(--sh1);
}
.qsp-sort-sel:focus { border-color: var(--volt); }
.qsp-view-btns { display: flex; }
.qsp-vbtn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--zinc);
  transition: background .12s, color .12s;
}
.qsp-vbtn:first-child { border-radius: 6px 0 0 6px; border-right: none; }
.qsp-vbtn:last-child { border-radius: 0 6px 6px 0; }
.qsp-vbtn.qsp-vbtn-active { background: var(--bg-s); color: var(--ink); }

/* Chips */
.qsp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.qsp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(29,185,84,.08);
  border: 1px solid rgba(29,185,84,.3);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}
.qsp-chip:hover { background: rgba(29,185,84,.15); }

/* Featured strip */
.qsp-featured-strip { margin-bottom: 24px; }
.qsp-featured-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.qsp-featured-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh1);
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  animation: qsp-up .35s ease both;
  display: flex;
  flex-direction: column;
}
.qsp-featured-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-1px);
  border-color: #c6cdd5;
}
.qsp-featured-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--bg-s);
}
.qsp-featured-badge {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  background: var(--ink);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  color: var(--volt);
  letter-spacing: .04em;
}
.qsp-featured-body { padding: 14px; flex: 1; }
.qsp-featured-title {
  font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qsp-featured-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--zinc);
  display: flex; align-items: center; gap: 8px;
}

/* ── GRID ── */
.qsp-grid {
  display: grid;
  gap: 14px;
}
.qsp-v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qsp-v-list { grid-template-columns: minmax(0, 1fr); }

/* ── CARD ── */
.qsp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  text-decoration: none;
  color: inherit;
  animation: qsp-up .35s ease both;
  min-width: 0;
}
.qsp-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-1px);
  border-color: #c6cdd5;
}
.qsp-card-accent { height: 3px; width: 100%; flex-shrink: 0; }

.qsp-card-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--bg-s);
  border-bottom: 1px solid var(--border);
}

.qsp-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qsp-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.qsp-cat-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.qsp-featured-star {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  color: #b45309;
  background: rgba(217,119,6,.08);
  border: 1px solid rgba(217,119,6,.25);
  border-radius: 4px;
  padding: 2px 6px;
}
.qsp-card-title {
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -.1px;
}
.qsp-card-excerpt {
  font-size: 12.5px;
  color: var(--zinc);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.qsp-card-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.qsp-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--zinc);
  background: var(--bg-s);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.qsp-card-foot {
  padding: 10px 16px;
  border-top: 1px solid #e5e7eb;
  background: var(--bg-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.qsp-card-author { display: flex; align-items: center; gap: 7px; }
.qsp-card-av {
  width: 20px; height: 20px;
  border-radius: 50%; flex-shrink: 0;
  background: var(--bg-s);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 600; color: var(--zinc);
}
.qsp-card-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.qsp-card-name { font-size: 11.5px; font-weight: 500; color: var(--zinc); }
.qsp-card-right {
  display: flex; align-items: center; gap: 8px;
}
.qsp-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--zinc);
}
.qsp-card-rt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--zinc);
  display: flex; align-items: center; gap: 3px;
}

/* List mode */
.qsp-v-list .qsp-card { flex-direction: row; }
.qsp-v-list .qsp-card-accent { width: 3px; height: auto; flex-shrink: 0; }
.qsp-v-list .qsp-card-thumb { display: none; }
.qsp-v-list .qsp-card-body { padding: 14px 16px; }
.qsp-v-list .qsp-card-foot {
  flex-direction: column; align-items: flex-end;
  min-width: 160px;
  border-top: none; border-left: 1px solid #e5e7eb;
}
.qsp-v-list .qsp-card-excerpt { -webkit-line-clamp: 1; }
.qsp-v-list .qsp-card-tags { display: none; }

/* Skeleton */
.qsp-skeleton {
  background: var(--bg-s);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 220px;
  animation: qsp-pulse 1.5s ease-in-out infinite;
}

/* Empty */
.qsp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.qsp-empty svg { color: var(--border); margin: 0 auto 14px; }
.qsp-empty-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.qsp-empty-sub { font-size: 13px; color: var(--zinc); }

/* Infinite scroll */
.qsp-sentinel { height: 1px; }
.qsp-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  font-size: 13px;
  color: var(--zinc);
  font-family: 'JetBrains Mono', monospace;
}
.qsp-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--volt);
  border-radius: 50%;
  animation: qsp-spin .7s linear infinite;
}
.qsp-end {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
}
.qsp-end-line { flex: 1; height: 1px; background: var(--border); }
.qsp-end-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--zinc);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ── CTA ── */
.qsp-cta {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--sh3);
}
.qsp-cta-bg {
  position: absolute;
  top: -80px; right: 60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,185,84,.16) 0%, transparent 70%);
  pointer-events: none;
}
.qsp-cta-body {
  position: relative;
  z-index: 1;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.qsp-cta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--volt);
  display: block;
  margin-bottom: 6px;
}
.qsp-cta-title {
  font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: -.3px;
  margin-bottom: 4px;
}
.qsp-cta-sub { font-size: 13px; color: rgba(255,255,255,.5); }
.qsp-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.qsp-btn-v {
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--volt);
  border: none;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.qsp-btn-v:hover { opacity: .88; transform: translateY(-1px); }
.qsp-btn-g {
  padding: 10px 20px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.qsp-btn-g:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ── CATEGORY COLOUR PALETTE ── */
.qsp-c0  { color:#7C3AED; background:rgba(124,58,237,.08); border-color:rgba(124,58,237,.25); }
.qsp-c1  { color:#2563EB; background:rgba(37,99,235,.08);  border-color:rgba(37,99,235,.25); }
.qsp-c2  { color:#059669; background:rgba(5,150,105,.08);  border-color:rgba(5,150,105,.25); }
.qsp-c3  { color:#D97706; background:rgba(217,119,6,.08);  border-color:rgba(217,119,6,.25); }
.qsp-c4  { color:#DC2626; background:rgba(220,38,38,.08);  border-color:rgba(220,38,38,.25); }
.qsp-c5  { color:#0891B2; background:rgba(8,145,178,.08);  border-color:rgba(8,145,178,.25); }
.qsp-c6  { color:#1DB954; background:rgba(29,185,84,.08);  border-color:rgba(29,185,84,.25); }
.qsp-c7  { color:#B45309; background:rgba(180,83,9,.08);   border-color:rgba(180,83,9,.25); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .qsp-trending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .qsp-sidebar { display: none; }
  .qsp-content { padding: 16px 0; }
  .qsp-mob-bar { display: flex; }
  .qsp-stats { display: none; }
  .qsp-h1 { font-size: 22px; }
  .qsp-header { padding: 18px 0 0; }
  .qsp-v-grid { grid-template-columns: minmax(0, 1fr); }
  .qsp-v-list .qsp-card { flex-direction: column; }
  .qsp-v-list .qsp-card-accent { width: 100%; height: 3px; }
  .qsp-v-list .qsp-card-foot { border-left: none; border-top: 1px solid #e5e7eb; flex-direction: row; align-items: center; }
  .qsp-cta-body { padding: 22px; }
  .qsp-featured-row { grid-template-columns: minmax(0, 1fr); }
  .qsp-trending-grid { grid-template-columns: minmax(0, 1fr); }
  .qsp-publish-cta { font-size: 12px; padding: 7px 12px; }
}

@media (max-width: 480px) {
  .qsp-toolbar { flex-direction: column; align-items: flex-start; }
}
