/* views-khampha.css - riêng cho màn Khám phá (#/kham-pha). */

/* Head + search pill */
.kp-head { padding-top: 40px; }
.kp-head h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 44px); color: var(--ink-bone); line-height: 1.1; margin: 0 0 20px; }

.search-pill { display: flex; align-items: center; gap: 8px; max-width: 560px; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; transition: border-color .2s ease, box-shadow .25s ease; }
.search-pill:focus-within { border-color: var(--line-gold); box-shadow: 0 0 22px -12px var(--gold); }
.search-pill-ico { display: inline-flex; color: var(--ink-faint); flex: none; }
.search-pill-input { flex: 1; min-width: 0; background: none; border: none; color: var(--ink-bone); font-family: var(--font-ui); font-size: 15px; padding: 8px 4px; }
.search-pill-input::placeholder { color: var(--ink-faint); }
.search-pill-input:focus { outline: none; }
.search-pill-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; background: var(--gold); color: var(--bg-void); border: none; flex: none; transition: background .2s ease; }
.search-pill-btn:hover { background: var(--gold-soft); }

/* Continue card - đang đọc dở */
.continue-card { display: flex; align-items: center; gap: 16px; background: var(--bg-surface); border: 1px solid var(--line); border-left: 3px solid var(--accent, var(--gold)); border-radius: var(--radius-lg); padding: 16px 18px; transition: transform .18s ease, border-color .2s ease, box-shadow .25s ease; }
.continue-card:hover { transform: translateY(-3px); border-color: var(--line-gold); box-shadow: 0 18px 40px -26px rgba(0,0,0,.8), 0 0 26px -18px var(--accent, var(--gold)); }
.continue-cover { flex: none; width: 64px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: linear-gradient(160deg,#241a16,#0c0a0b); border: 1px solid var(--line); }
.continue-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.continue-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink-bone); line-height: 1.1; }
.continue-meta { color: var(--ink-ash); font-size: 12.5px; }
.continue-go { flex: none; color: var(--gold-soft); display: inline-flex; }

/* Shelf "Mới cập nhật" - danh sách ngang cuộn được */
.shelf-scroll { list-style: none; margin: 0; padding: 4px 0 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.shelf-scroll > li { flex: none; scroll-snap-align: start; }

/* Bảng xếp hạng - danh sách dọc */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list > li:last-child .scard--rank { border-bottom: none; }

/* Layout 2 cột: trái (đang đọc + mới cập nhật), phải (bảng xếp hạng) */
.kp-grid { display: grid; grid-template-columns: 1fr; gap: 8px 40px; align-items: start; padding-bottom: 44px; }
.kp-block { margin-bottom: 16px; }
.kp-shelf-empty { color: var(--ink-faint); font-size: 14px; padding: 10px 2px; }
@media (min-width: 900px) {
  .kp-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
  .kp-aside { position: sticky; top: 76px; align-self: start; }
}

@media (max-width: 600px) {
  .continue-card { gap: 12px; padding: 14px; }
  .continue-cover { width: 52px; height: 66px; }
}
