/* v98: dịch truyện, sách (dùng chung kiểu .subs-* ; file này chỉ thêm phần riêng) */
.truyen-card .subs-plans{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:820px){.truyen-card .subs-plans{grid-template-columns:1fr}}
.truyen-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.truyen-head h2{margin:0;font-size:1.35rem}
.truyen-head p{margin:6px 0 0;color:var(--vv-muted,#aab);max-width:70ch}
.truyen-pill{display:inline-block;font-size:.72rem;letter-spacing:.06em;font-weight:700;padding:4px 10px;border-radius:999px;background:rgba(255,170,60,.16);color:#ffc46b;white-space:nowrap}
.truyen-formats{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 0}
.truyen-formats span{font-size:.78rem;padding:3px 9px;border-radius:8px;border:1px solid var(--vv-edge-hi);color:#dfe6f3}
.truyen-thu-box{margin:14px 0 4px;padding:14px 16px;border:1px solid var(--vv-edge);border-radius:14px;background:var(--vv-card-2)}
.truyen-thu-box h3{margin:0 0 4px;font-size:1rem}
.truyen-thu-box>p{margin:0 0 10px;color:var(--vv-muted,#aab);font-size:.9rem}
.truyen-mau{max-height:150px;overflow:auto;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.22);font-size:.88rem;line-height:1.5;margin-bottom:10px}
.truyen-mau p{margin:0 0 6px}
#truyenThuBtns{display:flex;gap:10px;flex-wrap:wrap}
#truyenThuBtns button{padding:9px 14px;border-radius:10px;border:1px solid var(--vv-edge-hi);background:transparent;color:inherit;cursor:pointer;font-weight:600}
#truyenThuBtns button:disabled{opacity:.55;cursor:default}
.truyen-thu{margin-top:12px}
.truyen-thu h4{margin:0 0 8px;font-size:.95rem;color:#ffc46b}
.truyen-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.truyen-col{padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.22);font-size:.9rem;line-height:1.55;max-height:420px;overflow:auto}
.truyen-col small{display:block;color:var(--vv-muted,#aab);margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em;font-size:.7rem}
.truyen-col.vi{background:rgba(60,120,255,.1)}
.truyen-col p{margin:0 0 8px}
@media(max-width:700px){.truyen-cols{grid-template-columns:1fr}.truyen-col{max-height:260px}}
.subs-job .truyen-cols{margin-top:8px;width:100%}
#truyenCard .subs-plan-name{align-items:flex-start}#truyenCard .subs-plan-name em{white-space:nowrap;flex-shrink:0;margin-left:auto}
#truyenCard .truyen-cons-label{color:#f0a868}#truyenCard .truyen-cons li::marker{color:#f0a868}#truyenCard .subs-plan-fit+.subs-plan-label{margin-top:8px}
/* v98f: tab Dịch: 1 ô thả chung cho sách + phụ đề, mô tả 2 dịch vụ 2 bên */
.dich-cols{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:22px}
.dich-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.dich-col+.dich-col{border-left:1px solid rgba(148,170,210,.18);padding-left:28px}
.dich-col-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dich-col-top h2{margin:0;font-size:20px;line-height:1.3}
.dich-col p{margin:0;color:var(--muted,#a9b6cc);line-height:1.6}
.dich-col .truyen-pill{white-space:nowrap;flex-shrink:0}
.dich-drop-icons{display:flex;gap:8px;justify-content:center}
.dich-drop-icons .subs-drop-icon{width:56px;height:56px;font-size:12px}
@media(max-width:760px){.dich-cols{grid-template-columns:1fr;gap:18px}.dich-col+.dich-col{border-left:0;padding-left:0;border-top:1px solid rgba(148,170,210,.18);padding-top:18px}.dich-col-top{flex-direction:column}}
/* thẻ báo giá chỉ hiện khi đã chọn file hoặc có thông báo */
#truyenCard:has(#truyenQuote[hidden]):has(#truyenStatus:empty){display:none}
#subsCard:has(#subsQuote[hidden]):has(#subsStatus:empty){display:none}
/* v98i: chọn lượng dịch */
.truyen-phan{margin:18px 0 6px;padding:16px 18px;border:1px solid rgba(148,170,210,.2);border-radius:14px;background:rgba(255,255,255,.02)}
.truyen-phan:empty{display:none}
.truyen-phan h3{margin:0 0 10px;font-size:16px}
.tp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tp-chip{padding:6px 12px;border-radius:999px;border:1px solid rgba(148,170,210,.35);background:transparent;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.tp-chip.on{background:var(--vv-cta);color:var(--vv-cta-ink);border-color:transparent;font-weight:700}
.tp-sel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px}
.tp-sel select{max-width:100%;padding:6px 8px;border-radius:8px;font:inherit}
.tp-range{width:100%;margin:12px 0 4px;accent-color:#f59e0b}
.tp-sum{margin:4px 0 0;font-size:15px}
.tp-note{margin:8px 0 0;font-size:14px;color:var(--muted,#a9b6cc);line-height:1.55}
.tp-min{color:#f0a868}
.truyen-tiep{margin:10px 0 0;padding:12px 14px;border-radius:12px;background:rgba(46,160,90,.12);border:1px solid rgba(46,160,90,.35);font-size:14px;line-height:1.55}
.tp-dl2{margin-left:8px}
.tp-job-note{display:block;margin-top:6px;color:#8fd3a6;font-size:13px}
/* v98p: chú thích ô chọn chương; nút tải PDF / AZW3 cạnh EPUB */
.tp-hint{display:block;margin:6px 0 2px;font-size:13px;color:var(--muted,#a9b6cc)}
.tp-hint::before{content:"▾ ";color:#ff9a3c;font-weight:700}
.subs-dl.tp-dl-fmt{padding-inline:12px}
/* v98q: tiêu đề "Dịch sách, truyện tiếng Anh, tiếng Nhật" 1 dòng trên máy tính; nhãn DỊCH THỬ MIỄN PHÍ xuống dòng nếu thiếu chỗ */
@media(min-width:761px){.dich-col-top{flex-wrap:wrap;align-items:center}.dich-col-top h2{white-space:nowrap;font-size:clamp(17px,1.55vw,20px)}}
/* v98z3: nhãn THỬ MIỄN PHÍ nằm trên tiêu đề; cột phụ đề có nhãn ẩn cùng cỡ để 2 tiêu đề thẳng hàng */
.dich-col-top{flex-direction:column;align-items:flex-start;gap:8px}
.dich-col-top .pill-dem{visibility:hidden}
@media(max-width:760px){.dich-col-top .pill-dem{display:none}}
/* v98z3: đồng hồ cát nhấp nháy khi đang đọc / chuyển file */
.subs-status.cho::before,.subs-info.cho::before{content:"⏳";display:inline-block;margin-right:8px;animation:tp-nhay 1.1s ease-in-out infinite}
@keyframes tp-nhay{0%,100%{opacity:1;transform:rotate(0)}50%{opacity:.25;transform:rotate(180deg)}}
@keyframes tp-nhay-nhe{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.subs-status.cho::before,.subs-info.cho::before{animation:tp-nhay-nhe 1.4s steps(2) infinite}}
/* v98z3: mẹo chọn bản ngôn ngữ gốc, ngay trên dòng tên file */
.tp-meo{margin:0 0 10px;padding:9px 12px;border-radius:10px;background:rgba(255,170,60,.09);border:1px solid rgba(255,170,60,.25);font-size:14px;line-height:1.55;color:var(--ink,#e8eef8)}
.tp-meo:empty{display:none}
.tp-meo b{color:#ffc46b}
/* v98z3: chọn phần dịch theo % cuốn */
.tp-cuoi{display:block;margin-top:4px;font-size:13px;color:var(--muted,#a9b6cc);font-style:italic}
.tp-sel select option:disabled{color:#7f8aa3}
