/* VerbaSave — Explore page */
.ex-col { flex: 1; min-width: 0; max-width: 760px; margin: 0 auto; padding: 28px 24px 96px; display: flex; flex-direction: column; gap: 22px; }
.ex-col h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-1); margin: 0; }

.ex-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 16px; }
.ex-search:focus-within { border-color: var(--accent-1); }
.ex-search svg { color: var(--text-3); flex-shrink: 0; }
.ex-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text-1); font: inherit; font-size: 0.95rem; padding: 9px 0; }

.ex-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.ex-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ex-card-head h2 { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin: 0; }
.ex-card-head a, .ex-link { color: var(--accent-1); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.ex-card-head a:hover, .ex-link:hover { text-decoration: underline; }
.ex-sub { color: var(--text-3); font-size: 0.82rem; margin: -8px 0 14px; }

.ex-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; text-decoration: none; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; white-space: nowrap; }
.ex-btn:hover { opacity: 0.9; }
.ex-btn:disabled { opacity: 0.45; cursor: default; }
.ex-btn.ghost { background: var(--surface-2); color: var(--text-1); border: 1px solid var(--border); }
.ex-btn.done { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

.ex-empty { color: var(--text-3); font-size: 0.9rem; padding: 10px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Books */
.ex-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ex-books-loading { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ex-books-loading p { grid-column: 1 / -1; color: var(--text-3); font-size: 0.85rem; margin: 0; }
.ex-book { display: flex; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-height: 150px; }
.ex-book.skeleton { animation: ex-pulse 1.2s ease-in-out infinite; }
@keyframes ex-pulse { 50% { opacity: 0.5; } }
.ex-book-cover { width: 76px; height: 114px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.ex-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-book-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex-book-title { font-size: 0.95rem; font-weight: 700; color: var(--text-1); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-book-author { font-size: 0.8rem; color: var(--text-2); margin: 0; }
.ex-book-reason { font-size: 0.8rem; color: var(--text-3); margin: 2px 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ex-buy { margin-top: auto; align-self: flex-start; }
.ex-affiliate-note { color: var(--text-3); font-size: 0.72rem; margin: 12px 0 0; }

/* Topics */
.ex-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ex-topic { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; transition: border-color .15s, transform .15s; }
.ex-topic:hover { border-color: var(--accent-1); transform: translateY(-2px); }
.ex-topic-icon { font-size: 1.4rem; }
.ex-topic-name { color: var(--text-1); font-weight: 700; font-size: 0.9rem; }
.ex-topic-count { color: var(--text-3); font-size: 0.75rem; min-height: 1em; }

/* People */
.ex-people { display: flex; flex-direction: column; gap: 4px; }
.ex-person { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 12px; }
.ex-person:hover { background: var(--surface-2); }
.ex-person-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.ex-person-info { display: flex; flex-direction: column; min-width: 0; }
.ex-person-name { color: var(--text-1); font-weight: 700; font-size: 0.92rem; }
.ex-person-sub { color: var(--text-3); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-vip { font-size: 0.65rem; font-weight: 800; color: var(--accent-1); border: 1px solid var(--accent-1); border-radius: 6px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }

/* Two-column bottom row */
.ex-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ex-rank { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 10px; text-decoration: none; color: var(--text-1); }
.ex-rank:hover { background: var(--surface-2); }
.ex-rank-pos { width: 28px; text-align: center; font-weight: 700; color: var(--text-2); }
.ex-rank-name { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-rank-pts { color: var(--text-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ex-shared p { color: var(--text-2); font-size: 0.88rem; line-height: 1.5; margin: 0 0 14px; }

@media (max-width: 760px) {
  .ex-col { padding: 18px 16px 110px; gap: 16px; }
  .ex-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ex-books, .ex-books-loading { grid-template-columns: minmax(0, 1fr); }
}
