/* Khối review dùng chung cho 3 bản (vòng 5, 18/11/2026: chỉ giữ phương án A, bớt chữ).
   Vòng 6 (18/11/2026): nguồn "Google review"/"Facebook review" là chữ thường, không link, không đậm (span.src, không còn a.src).
   Thêm class "pen" vào .rvx: gạch chân câu đắt kiểu viết tay (reviews.js vẽ SVG theo từng dòng, nét tự vẽ ra); không có "pen" thì gạch thẳng như cũ.
   Thời gian mỗi lời khen do reviews.js tính theo số chữ (xem đầu reviews.js).
   Bố cục: chữ một bên (tiêu đề, sao, một lời khen lớn mỗi lần, tên · nguồn, nút ‹ ›), cột ảnh nghiêng chạy dọc bên kia.
   Tablet và mobile: cột ảnh thành dải ngang nghiêng chạy phía trên chữ.
   JS (reviews.js) tự thêm nút ‹ › (.rvx-ctl) sau .rvx-list, tự chuyển lời khen sau 8s, nhân đôi ảnh trong .rr để chạy vòng.

   Markup:
   <section class="rvx" aria-labelledby="rvh">
    <div class="rvx-reel" aria-hidden="true"><div class="rr"> 6 x <img src="..." alt="" loading="lazy"> </div></div>
    <div class="rvx-head"><h2 class="h2 split" id="rvh">Why couples keep coming back</h2></div>
    <div class="rvx-list">
     <figure class="rq">
      <span class="stars" role="img" aria-label="5 out of 5 stars"></span>
      <blockquote><p>“... <mark>câu đắt</mark> ...”</p></blockquote>
      <figcaption><span class="nm">Tên</span><span class="src">Google review</span></figcaption>
     </figure>
     ... (mỗi review một figure)
    </div>
   </section>
   Thêm class "rvx-solo" vào .rvx để ẩn cột ảnh, lời khen căn giữa (bản 1 dùng khi hero đã có cột ảnh chéo).

   Mỗi bản tự đặt màu và font qua biến trên .rvx:
   --rx-bg nền khối, --rx-ink chữ, --rx-dim chữ phụ, --rx-star màu sao (và màu link nguồn khi rê), --rx-red màu gạch chân câu đắt, --rx-pen độ dày nét gạch viết tay (mặc định 3px),
   --rx-line viền nút ‹ ›,
   --rx-qf/--rx-qw/--rx-qs/--rx-qz font, độ đậm, độ rộng, cỡ lời khen,
   --rx-mono/--rx-mw: còn nhận nhưng không dùng nữa (trước dùng cho link nguồn in hoa).
   --rx-hf/--rx-hw/--rx-hs/--rx-htt: còn nhận nhưng không dùng nữa (trước dùng cho B, C).

   Cột ảnh nghiêng .rvx-reel dùng được ngoài khối review (bản 1 dùng cho hero 2): trang tự đặt vị trí, cỡ và --tilt (độ nghiêng). */

.rvx{background:var(--rx-bg);color:var(--rx-ink);padding:128px calc(var(--pad) + 38%) 120px var(--pad);position:relative;overflow:hidden}
.rvx blockquote,.rvx blockquote p,.rvx figure{margin:0}
.rvx-head{position:relative;z-index:2;max-width:760px;margin-bottom:40px}
.rvx-list{position:relative;z-index:2;display:grid;max-width:1040px}

/* mỗi lần một lời khen, chồng lên nhau trong cùng một ô lưới nên khung không nhảy chiều cao */
.rq{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(22px);transition:opacity .7s ease,transform .9s cubic-bezier(.22,.8,.2,1),visibility 0s .7s}
.rq.on{opacity:1;visibility:visible;transform:none;transition:opacity .9s ease .15s,transform 1s cubic-bezier(.22,.8,.2,1) .15s,visibility 0s}
.stars{display:block;width:118px;height:20px;background:var(--rx-star);
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cpath d='M10 0l2.9 6.3 6.8.7-5.1 4.6 1.5 6.8L10 15l-6.1 3.4 1.5-6.8L.3 7l6.8-.7z'/%3E%3C/svg%3E") repeat-x 0 0/24px 20px;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cpath d='M10 0l2.9 6.3 6.8.7-5.1 4.6 1.5 6.8L10 15l-6.1 3.4 1.5-6.8L.3 7l6.8-.7z'/%3E%3C/svg%3E") repeat-x 0 0/24px 20px}
.rvx .stars{width:148px;height:25px;-webkit-mask-size:30px 25px;mask-size:30px 25px;margin-bottom:30px}
.rq blockquote{quotes:none;font-family:var(--rx-qf);font-weight:var(--rx-qw,300);font-stretch:var(--rx-qs,100%);font-size:var(--rx-qz,clamp(28px,2.7vw,44px));line-height:1.28;letter-spacing:-.01em;margin-bottom:26px;text-wrap:pretty}
.rq mark{background:linear-gradient(var(--rx-red),var(--rx-red)) 0 100%/0% 2px no-repeat;color:inherit;font-weight:inherit;padding-bottom:2px;
 -webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size 1.3s ease-in-out .9s}
.rvx.seen .rq.on mark{background-size:100% 2px}
.rq figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px}
.rq .nm{font-weight:500;font-size:20px}
.rq .nm::after{content:"·";margin-left:12px;opacity:.55;font-weight:400}
.rq .src{display:inline-flex;align-items:center;min-height:44px;font-family:var(--rx-qf);font-weight:400;font-size:18px;line-height:1.4;white-space:nowrap;color:var(--rx-dim)}
/* gạch chân viết tay (.rvx.pen): reviews.js đặt một svg.pen-u trong blockquote, mỗi dòng của <mark> một nét */
.rvx.pen .rq mark{background:none;padding-bottom:0}
.rq blockquote{position:relative}
.pen-u{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.pen-u path{fill:none;stroke:var(--rx-red);stroke-width:var(--rx-pen,3px);stroke-linecap:round;stroke-linejoin:round;
 stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset 0s .8s}
.rvx.seen .rq.on .pen-u path,.pen-on .pen-u path{stroke-dashoffset:0;transition:stroke-dashoffset var(--d,.8s) cubic-bezier(.5,.1,.4,.95) var(--dl,1s)}
/* vòng 7: nét của gach-chan.js (cần nạp gach-chan.css), vẽ khi review đang hiện */
.rvx .ul-svg{--ul-c:var(--rx-red)}
.rvx.seen .rq.on .ul-svg .sg{opacity:1;transition:opacity .05s linear var(--dl,0s)}
.rvx.seen .rq.on .ul-svg .ds{stroke-dashoffset:0;transition:stroke-dashoffset var(--d,.6s) cubic-bezier(.5,.1,.4,.95) var(--dl,0s)}

/* nút ‹ › (reviews.js thêm vào) */
.rvx-ctl{position:relative;z-index:2;display:flex;gap:12px;margin-top:34px}
.rvx-ctl button.ar{flex:none;width:48px;height:48px;border-radius:50%;border:1px solid var(--rx-line,rgba(255,255,255,.35));background:none;color:inherit;
 font-size:22px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0 0 2px;transition:background .25s,border-color .25s}
.rvx-ctl button.ar:hover{background:rgba(255,255,255,.1);border-color:var(--rx-ink)}
.rvx-ctl button.ar:focus-visible{outline:2px solid var(--rx-star);outline-offset:3px}

/* cột ảnh nghiêng chạy liên tục (cuộn phim) */
.rvx-reel{--tilt:5deg;position:absolute;z-index:1;overflow:hidden;background:#15130f;box-shadow:0 30px 70px rgba(0,0,0,.45)}
.rvx-reel::before,.rvx-reel::after{content:"";position:absolute;top:0;bottom:0;width:34px;z-index:2;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30'%3E%3Crect x='11' y='8' width='13' height='15' rx='2.5' fill='%23E9E1D3' fill-opacity='.85'/%3E%3C/svg%3E") repeat-y 0 0/34px 30px,#15130f}
.rvx-reel::before{left:0}.rvx-reel::after{right:0}
.rvx-reel .rr{position:absolute;left:34px;right:34px;top:0;display:flex;flex-direction:column;gap:14px;padding:14px 0;will-change:transform;animation:rvreel 70s linear infinite}
.rvx-reel img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;position:relative;
 transition:transform .55s cubic-bezier(.22,.8,.2,1),box-shadow .55s cubic-bezier(.22,.8,.2,1)}
/* rê vào ảnh: cột dừng, ảnh nhấc lên, xoay gần về thẳng, bóng đổ; ảnh được nổi lên trên mép lỗ phim */
.rvx-reel:hover .rr{animation-play-state:paused;z-index:3}
.rvx-reel img:hover{transform:translateY(-8px) rotate(calc(var(--tilt) * -.45)) scale(1.04);box-shadow:0 22px 40px rgba(0,0,0,.6);z-index:1}
@keyframes rvreel{to{transform:translateY(-50%)}}
@keyframes rvreelx{to{transform:translateX(-50%)}}
.rvx .rvx-reel{top:-12%;bottom:-12%;right:calc(var(--pad) + 3%);width:29%;transform:rotate(var(--tilt))}

/* tương thích tạm với markup cũ (vòng 4): ẩn phần riêng của B, C nếu trang chưa đổi markup */
.rvx .peek,.rvx .flap,.rvx .lab,.rvx .rvx-sub,.rvx .rvx-more{display:none}
.rvx .env,.rvx .emul,.rvx .stamp{display:contents}

/* tablet: cột ảnh thành dải ngang nghiêng phía trên chữ */
@media (max-width:1100px){
 .rvx{padding-right:var(--pad);padding-top:430px}
 .rvx .rvx-reel{--tilt:-4deg;top:-70px;bottom:auto;height:420px;left:-10%;right:-10%;width:auto}
 .rvx .rvx-reel::before,.rvx .rvx-reel::after{left:0;right:0;width:auto;height:30px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect x='8' y='9' width='15' height='12' rx='2.5' fill='%23E9E1D3' fill-opacity='.85'/%3E%3C/svg%3E") repeat-x 0 0/30px 30px,#15130f}
 .rvx .rvx-reel::before{top:70px;bottom:auto}
 .rvx .rvx-reel::after{top:auto;bottom:0}
 .rvx .rvx-reel .rr{flex-direction:row;left:0;right:auto;top:114px;bottom:44px;padding:0 14px;animation-name:rvreelx;animation-duration:80s}
 .rvx .rvx-reel img{height:100%;width:auto}
}
/* mobile */
@media (max-width:767px){
 .rvx{padding:300px var(--pad) 64px}
 .rvx-head{margin-bottom:28px}
 .rvx .rvx-reel{height:270px;top:-40px}
 .rvx .rvx-reel::before{top:40px}
 .rvx .rvx-reel .rr{top:84px;bottom:44px}
 .rvx .stars{margin-bottom:22px}
 .rq blockquote{font-size:24px;line-height:1.32;margin-bottom:20px}
 .rq .nm{font-size:18px}
 .rq .src{font-size:17px}
 .rvx-ctl{margin-top:24px}
 .rvx-ctl button.ar{width:44px;height:44px}
}

/* không cột ảnh: lời khen căn giữa */
.rvx.rvx-solo{padding-left:var(--pad);padding-right:var(--pad);text-align:center}
.rvx.rvx-solo .rvx-reel{display:none}
.rvx-solo .rvx-head,.rvx-solo .rvx-list{margin-left:auto;margin-right:auto}
.rvx-solo .rvx-list{max-width:1100px}
.rvx-solo .rq blockquote{text-wrap:balance}
.rvx-solo .stars{margin-left:auto;margin-right:auto}
.rvx-solo .rq figcaption,.rvx-solo .rvx-ctl{justify-content:center}
@media (max-width:1100px){.rvx.rvx-solo{padding-top:120px}}
@media (max-width:767px){.rvx.rvx-solo{padding-top:72px}}

@media (prefers-reduced-motion:reduce){
 .rvx-reel .rr{animation:none!important}
 .rq,.rq.on{transform:none;transition:opacity .3s,visibility 0s}
 .rq mark{background-size:100% 2px!important;transition:none}
 .pen-u path{stroke-dashoffset:0!important;transition:none!important}
 .rvx-reel img:hover{transform:none}
}

/* thanh duyệt (chỉ để Hòa so phương án, bỏ khi dựng thật). Trang gọi window.addPick (reviews.js) để thêm nhóm nút. */
.pick{position:fixed;right:16px;bottom:16px;z-index:60;display:flex;flex-direction:column;gap:6px;align-items:flex-end;font:500 14px/1 system-ui,-apple-system,sans-serif}
.pick:empty{display:none}
.pick .grp{display:flex;gap:2px;align-items:center;background:#F3EDE2;color:#1C1A17;border-radius:30px;padding:5px 6px 5px 14px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.pick .grp>span{margin-right:6px;color:#6b635a}
.pick button{border:0;background:none;font:inherit;cursor:pointer;padding:9px 12px;border-radius:20px;color:inherit;white-space:nowrap;min-height:34px}
.pick button[aria-pressed="true"]{background:#1C1A17;color:#F3EDE2}
@media (max-width:767px){
 .pick{left:10px;right:10px;bottom:10px;align-items:stretch}
 .pick .grp{justify-content:space-between;padding-left:10px;font-size:13px}
 .pick button{padding:9px 7px}
}
.rvx:not(.pen) .pen-u{display:none}
