/* Review sách, câu lạc bộ đọc — mọi lớp có tiền tố rs- (tệp nạp ở mọi trang). */
.rs-an { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-mt { margin-top: 12px; }
.rs-nav { margin-bottom: 16px; }

/* Sao: hình sao vàng đậm (tương phản ≥ 3:1 trên nền trắng) */
.rs-sao { display: inline-flex; gap: 1px; line-height: 1; font-size: 1rem; vertical-align: -1px; }
.rs-sao__o { color: #d5dad6; }
.rs-sao__o--co { color: #a8740e; }
.rs-sao--lon { font-size: 1.5rem; }
.rs-sao--rong { color: var(--phu); }

/* Bìa vẽ bằng CSS */
.rs-bia { position: relative; flex: none; width: 96px; aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; padding: 10px 8px 8px 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--rs-bia, #093166);
  box-shadow: inset 5px 0 0 rgba(0,0,0,.18), 0 2px 6px rgba(20,40,40,.18); }
.rs-bia::after { content: ""; position: absolute; left: 14px; right: 8px; top: 50%; height: 2px; background: rgba(240,190,88,.8); }
.rs-bia__ten { font-weight: 800; font-size: .8125rem; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rs-bia__tg { font-size: .6875rem; opacity: .9; line-height: 1.2; }
.rs-bia--0 { --rs-bia: #093166; } .rs-bia--1 { --rs-bia: #6b4309; } .rs-bia--2 { --rs-bia: #1f5d3a; }
.rs-bia--3 { --rs-bia: #7a1f2b; } .rs-bia--4 { --rs-bia: #2f4858; }
.rs-bia--nho { width: 44px; padding: 5px 4px 4px 8px; border-radius: 2px 5px 5px 2px; }
.rs-bia--nho .rs-bia__ten { font-size: .5rem; -webkit-line-clamp: 3; }
.rs-bia--nho .rs-bia__tg, .rs-bia--nho::after { display: none; }

/* Lưới sách */
.rs-luoi { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 640px) { .rs-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .rs-luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
a.the.rs-sach-the { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 0; padding: 14px 10px; }
.rs-sach-the .rs-bia { margin-bottom: 6px; }
.rs-sach-the__ten { font-weight: 700; line-height: 1.3; }
.rs-sach-the__diem { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: auto; }

/* Tìm */
.rs-tim label { font-weight: 700; display: block; margin-bottom: 6px; }
.rs-tim__o { display: flex; gap: 8px; }
.rs-tim__o input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd6d1; border-radius: var(--r-nho); font: inherit; background: #fff; }
.rs-tim__o input:focus { border-color: var(--c); outline: 3px solid var(--c-nhat); }

/* Bố cục hai cột trên màn rộng */
.rs-hai-cot { display: grid; gap: 14px; align-items: start; }
@media (min-width: 860px) { .rs-hai-cot { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .rs-hai-cot--deu { grid-template-columns: 1fr 1fr; } }
.rs-ba-cot { display: grid; gap: 16px; }
@media (min-width: 860px) { .rs-ba-cot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rs-cach ul { padding-left: 1.1em; margin: 0 0 10px; } .rs-cach li { margin-bottom: 6px; color: var(--phu); font-size: .9375rem; }

/* Chi tiết sách */
.rs-sach { display: flex; gap: 20px; align-items: flex-start; }
.rs-sach .rs-bia { width: 132px; }
.rs-sach .rs-bia__ten { font-size: 1rem; -webkit-line-clamp: 5; }
.rs-sach__than { flex: 1; min-width: 0; }
.rs-sach__than h1 { margin-bottom: 2px; }
.rs-sach__tg { font-size: 1.0625rem; color: var(--phu); margin-bottom: 10px; }
.rs-tt { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: .9375rem; }
.rs-tt dt { color: var(--phu); } .rs-tt dd { margin: 0; }
.rs-sach__diem { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rs-the { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
@media (max-width: 560px) { .rs-sach { flex-direction: column; align-items: center; text-align: center; } .rs-tt { text-align: left; }
  .rs-sach__diem, .rs-sach .rs-the, .rs-sach .hang-nut { justify-content: center; } }
.rs-ds-doc { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.rs-ds-doc .field { flex: 1 1 180px; }

/* Review, bình luận */
.rs-review, .rs-bl { padding: 14px 0; border-bottom: 1px solid var(--vien); }
.rs-review:last-child, .rs-bl:last-child { border-bottom: 0; }
.rs-review__sach { display: block; font-weight: 700; color: var(--c-dam); text-decoration: none; margin-bottom: 2px; }
.rs-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.rs-review__meta a { font-weight: 600; color: var(--chu); text-decoration: none; }
.rs-review__meta a:hover, .rs-review__sach:hover { text-decoration: underline; }
.rs-review__nd { overflow-wrap: anywhere; }
.rs-review__nd p:last-child { margin-bottom: 6px; }
.rs-cua-toi .rs-review { border-bottom: 0; padding-top: 4px; }
.rs-bl--cho { background: var(--nhan-nhat); margin: 0 -10px; padding: 12px 10px; border-radius: var(--r-nho); }
.rs-bl-form { display: grid; gap: 8px; margin-bottom: 10px; }
.rs-bl-form textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #cfd6d1; border-radius: var(--r-nho); font: inherit; resize: vertical; }
.rs-ly-do { color: var(--do); margin: 4px 0 0; }
.rs-bao-cao { margin-top: 4px; }
.rs-bao-cao > summary { cursor: pointer; font-size: .8125rem; color: var(--phu); width: max-content; max-width: 100%; }
.rs-bao-cao > summary:hover { color: var(--do); }
.rs-bao-cao__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.rs-bao-cao__form select, .rs-tu-choi input, .rs-dsd__doi select { min-height: 36px; padding: 4px 8px; border: 1px solid #cfd6d1; border-radius: var(--r-nho); font: inherit; font-size: .875rem; background: #fff; max-width: 100%; }

/* Viết review: chọn sao */
.rs-chon-sao-khung { border: 0; padding: 0; margin: 0; }
.rs-chon-sao-khung legend { font-weight: 600; font-size: .9375rem; padding: 0; margin-bottom: 4px; }
.rs-chon-sao { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rs-chon-sao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rs-chon-sao label { font-size: 2.25rem; line-height: 1; color: #cfd6d1; cursor: pointer; padding: 2px 3px; border-radius: 6px; }
.rs-chon-sao input:checked ~ label, .rs-chon-sao label:hover, .rs-chon-sao label:hover ~ label { color: #a8740e; }
.rs-chon-sao input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--c) 55%, #fff); }
.rs-dem { margin: -6px 0 0; }
.rs-dem--thieu { color: var(--nhan-dam); }
.rs-kieu { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rs-kieu legend { font-weight: 600; font-size: .9375rem; padding: 0; margin-bottom: 6px; }
.rs-kieu__o { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--vien); border-radius: var(--r-nho); cursor: pointer; }
.rs-kieu__o input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--c); }
.rs-kieu__o:has(input:checked) { border-color: var(--c); background: var(--c-nhat); }

/* Danh sách đọc */
.rs-dsd { align-items: center; }
.rs-dsd__doi { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
@media (max-width: 640px) { .rs-dsd { flex-wrap: wrap; } .rs-dsd > .rs-dsd__doi { flex: 1 0 100%; padding-left: 56px; } }
.rs-muc-tieu__so { font-size: 1.25rem; margin-bottom: 6px; } .rs-muc-tieu__so strong { font-size: 2rem; color: var(--c-dam); }
.rs-muc-tieu .vao-nhanh { margin-top: 12px; }

/* Câu lạc bộ */
.rs-clb-dau .tieu-de-trang { margin-bottom: 4px; }
.rs-mo-ta { margin-top: 8px; }
.rs-thach + .rs-thach { border-top: 1px solid var(--vien); padding-top: 12px; margin-top: 12px; }
.rs-thach h3 { margin: 0; }
.rs-qua { opacity: .7; }
.rs-trang { justify-content: center; margin: 8px 0 16px; }

/* Duyệt */
.rs-duyet .rs-review__nd { background: var(--bg); border-radius: var(--r-nho); padding: 10px 12px; margin: 8px 0 10px; }
.rs-duyet__ten { font-size: 1.0625rem; margin-bottom: 2px; }
.rs-duyet__nut { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rs-tu-choi { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.rs-tu-choi input { flex: 1 1 200px; }
@media (min-width: 900px) { .rs-duyet__nut .rs-tu-choi { flex: 1; } }
