/* Tập thở — trang /tap-tho (src/tap-tho.js dựng HTML, taptho.js chạy). MỘT bố cục co giãn:
   máy tính (> 860px, cùng mốc với banner): cột chọn bài bên trái, khung cảnh lớn bên phải, gọn một màn;
   điện thoại: khung cảnh trên đầu, danh sách bên dưới, nút Bắt đầu ghim ngay trên thanh tab.
   Màu ăn theo bảng màu của web (--deep, --navy, --tx2…); cảnh, quả cầu, bi giữ màu riêng của từng cảnh.
   Lớp tp-*, sv-*, tpg-* — đã tra ui.js: không trùng. Lưu ý luật chung của ui.js: section có padding + gạch trên, label là
   cột dọc, input có viền, p bị giới hạn 68ch, button:active có transform — nên trong trang này không dùng section, và
   mọi label / input / p đều ghi đè rõ. */
#tp-app,.tp-sheet,.tp-play,.tpg{--tp-pri:var(--deep);--tp-ink:var(--navy);--tp-ink2:var(--tx2);--tp-line:var(--ln);--tp-card:#fff;--tp-sel:var(--bg);--tp-soft:var(--bg)}

/* ===== cảnh thiên nhiên động ===== */
.sv{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#1b3346;contain:paint;transform:translateZ(0);border-radius:inherit}
.sv-kb{position:absolute;top:-4%;right:-4%;bottom:-4%;left:-4%}
.sv-img{position:absolute;top:0;right:0;bottom:0;left:0;background:center/cover no-repeat;opacity:0;transition:opacity 1.3s ease;will-change:transform}
.sv-img.on{opacity:1}
.sv-fxw,.sv-fx{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden}
.sv-fx{opacity:0;transition:opacity 1.3s ease}
.sv-fx.on{opacity:1}
.sv-cv{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}
.sv-dim{position:absolute;top:0;right:0;bottom:0;left:0;background:#0b1b28;opacity:.1;pointer-events:none;will-change:opacity}
.sv-fx .ray{position:absolute;top:-20%;width:16%;height:120%;background:linear-gradient(180deg,rgba(255,240,190,0),rgba(255,240,190,.28) 35%,rgba(255,240,190,0) 85%);transform:rotate(18deg);filter:blur(10px);animation:svRay 11s ease-in-out infinite}
.sv-fx .r1{left:18%}.sv-fx .r2{left:40%;width:10%;animation-delay:-4s}.sv-fx .r3{left:58%;width:20%;animation-delay:-7s}
@keyframes svRay{0%,100%{opacity:.3;transform:rotate(18deg) translateX(0)}50%{opacity:.9;transform:rotate(16deg) translateX(4%)}}

/* ===== khung trang ===== */
section.tp-trang{padding-top:24px}
.tp-phead{margin-bottom:16px}
/* trang từng bài: H1 là tên bài trong khung cảnh, chữ "Tập thở" ở đầu là div — vẽ y như tiêu đề trang */
.tp-phead div.st{font-size:21px;font-weight:600;margin:0;letter-spacing:-.015em;color:var(--navy);line-height:1.3}
#tp-app button{font:inherit;cursor:pointer;margin:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#tp-app button:active{transform:none}
.tpx{display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-areas:"side khung";gap:18px;
  height:clamp(560px,calc(100vh - 250px),720px);height:clamp(560px,calc(100dvh - 250px),720px)}
/* màn thấp (laptop 1280×720, 1366×768): bỏ dòng mô tả dưới tiêu đề, công cụ dài theo phần còn lại → gọn một màn (đo 02/11/2026:
   1280×720 trước đây dài hơn màn 40px, cột trái cắt mất dòng Âm thanh) */
@media (min-width:861px) and (max-height:820px){
  section.tp-trang{padding-top:16px}.tp-phead{margin-bottom:12px}.tp-phead .phead-sub{display:none}
  .tpx{height:clamp(520px,calc(100vh - 168px),720px);height:clamp(520px,calc(100dvh - 168px),720px)}
}

/* ===== cột chọn bài (dùng chung) ===== */
.tp-side{grid-area:side;min-width:0;background:var(--tp-card);border:1px solid var(--tp-line);border-radius:20px;padding:6px 14px 14px;overflow:auto;scrollbar-width:thin;
  box-shadow:0 1px 3px rgba(15,58,92,.06)}
#tp-app .tp-h{font-size:14px;font-weight:700;color:var(--tp-ink);margin:12px 0 7px;line-height:1.3}
.tp-list{display:flex;flex-direction:column;gap:6px}
#tp-app .tp-t{display:grid;grid-template-columns:44px 1fr;align-items:center;column-gap:11px;width:100%;text-align:left;background:var(--tp-card);
  border:1.5px solid var(--tp-line);border-radius:14px;padding:5px 10px 5px 6px;color:var(--tp-ink);transition:background .25s,border-color .25s;line-height:1.3}
#tp-app .tp-t:hover{border-color:var(--light)}
#tp-app .tp-t.on{border-color:var(--tp-pri);background:var(--tp-sel)}
.tp-t .th{width:44px;height:44px;border-radius:11px;background:#cfe0e8 center/cover;position:relative;overflow:hidden}
.tp-t .th i{position:absolute;right:3px;bottom:3px;width:19px;height:19px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--tp-pri);display:grid;place-items:center}
.tp-t .th i svg{width:13px;height:13px}
.tp-t .bd{min-width:0}
.tp-t .bd .wh{display:block;font-style:normal;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tp-pri);margin-bottom:1px}
.tp-t .bd b{display:block;font-size:14px;font-weight:600;line-height:1.25}
.tp-t .bd b span{white-space:nowrap}
.tp-t .bd small{display:none;font-size:13px;color:var(--tp-ink);margin-top:2px}
.tp-t .bd em{display:block;font-style:normal;font-size:11.5px;color:var(--tp-ink2);margin-top:2px}
.tp-t .bd em .rh{display:none}
.tp-t .dt{grid-column:1/-1;display:none;margin-top:10px}
.tp-bar{display:flex;gap:3px;height:22px;border-radius:8px;overflow:hidden}
.tp-bar span{display:grid;place-items:center;font-size:11px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;min-width:0}
.tp-bar .k-in,.tpg-bar .k-in{background:#5BA3C9}.tp-bar .k-hold,.tpg-bar .k-hold{background:#6EB0A0}.tp-bar .k-out,.tpg-bar .k-out{background:#4C7D9A}
.tp-bar .k-rest,.tpg-bar .k-rest{background:#B9D2C8;color:#2c4a3f}
.tp-t .tip{display:block;font-size:13px;line-height:1.45;margin-top:7px}
.tp-shapes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#tp-app .tp-s{display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 4px 6px;border-radius:13px;background:var(--tp-card);
  border:1.5px solid var(--tp-line);color:var(--tp-pri)}
#tp-app .tp-s.on{border-color:var(--tp-pri);background:var(--tp-sel)}
#tp-app .tp-s:disabled{opacity:.4;cursor:default}
.tp-s svg{width:22px;height:22px;flex:none}
.tp-s b{white-space:nowrap;font-size:13.5px;font-weight:600;color:var(--tp-ink)}
.tp-s small{display:none;font-size:11px;color:var(--tp-ink2)}
.tp-segw{position:relative}
.tp-seg{display:flex;gap:8px}
#tp-app .tp-seg button{flex:1;height:36px;border-radius:18px;background:var(--tp-card);border:1.5px solid var(--tp-line);font-size:14px;font-weight:600;color:var(--tp-ink);padding:0 6px}
#tp-app .tp-seg button.on{background:var(--tp-pri);border-color:var(--tp-pri);color:#fff}
#tp-app .tp-seg button.lk{color:var(--tp-ink2);border-style:dashed;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:5px}
#tp-app .tp-seg button.lk:hover{border-color:var(--tp-pri);color:var(--tp-pri)}
.tp-lki{display:inline-grid;place-items:center;font-style:normal}
.tp-lki svg{width:14px;height:14px}
#tp-app .tp-sndrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--tp-card);border:1.5px solid var(--tp-line);border-radius:14px;
  padding:7px 10px 7px 7px;color:var(--tp-ink);line-height:1.3}
#tp-app .tp-sndrow:hover{border-color:var(--light)}
.tp-sndrow .ic{width:36px;height:36px;border-radius:11px;background:var(--tp-soft);color:var(--tp-pri);display:grid;place-items:center;flex:none}
.tp-sndrow .ic svg{width:20px;height:20px}
.tp-sndrow .tx{flex:1;min-width:0}
.tp-sndrow .tx b{display:block;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-sndrow .tx small{display:block;font-size:12.5px;color:var(--tp-ink2);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-sndrow .chev{width:18px;height:18px;color:var(--tp-ink2);flex:none}
#tp-app p.tp-note{display:none;font-size:12.5px;line-height:1.5;color:var(--tp-ink2);margin:12px 0 0;max-width:none}   /* máy tính: câu này đã có dưới nút Bắt đầu thở */
.tp-nw{white-space:nowrap}

/* ===== khung cảnh xem trước (.tp-khung; .tp-stage là khung giữa của màn tập) ===== */
.tp-khung{grid-area:khung;position:relative;border-radius:22px;overflow:hidden;color:#fff;isolation:isolate;min-width:0;background:#1b3346;
  box-shadow:0 18px 40px -22px rgba(10,30,50,.55)}
.tp-khung .tp-scene{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0}
.tp-hshade{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;transform:translateZ(0);pointer-events:none;
  background:linear-gradient(180deg,rgba(6,22,34,.22) 0%,rgba(6,22,34,.02) 34%,rgba(6,22,34,.12) 60%,rgba(6,22,34,.66) 100%)}
.tp-pv{position:absolute;left:50%;top:41%;width:min(56%,50vh,420px);aspect-ratio:1/1;transform:translate(-50%,-50%);z-index:2}
.tp-pv canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}
.tp-pw{position:absolute;left:0;right:0;top:50%;height:1.3em;transform:translateY(-50%);font-size:23px;font-weight:600;line-height:1.3;color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,.45);text-align:center;pointer-events:none}
.is-tron .tp-pw{color:#18364a;text-shadow:0 0 12px rgba(255,255,255,.7)}
#tp-app .fa,.tp-play .fa{position:absolute;left:0;right:0;top:0;opacity:0;transform:translateY(7px);transition:opacity .8s ease,transform .8s ease;white-space:nowrap}
#tp-app .fa.on,.tp-play .fa.on{opacity:1;transform:none}
.tp-info{position:absolute;left:26px;right:26px;bottom:22px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;z-index:3;transform:translateZ(0)}
.tp-info-t{min-width:0;flex:1}
.tp-info .k{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#FFE3A3}
#tp-app .tp-info h1,#tp-app .tp-info h2{font-weight:700;font-size:30px;line-height:1.15;margin:3px 0 2px;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.35);text-wrap:wrap;letter-spacing:-.01em}
.tp-info .rh{font-size:14.5px;opacity:.95}
#tp-app .tp-info p.tip{font-size:14px;line-height:1.5;opacity:.9;max-width:52ch;margin:6px 0 0}
.tp-cta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.tp-btns2{display:flex;align-items:center;gap:10px}
#tp-app .tp-go1{white-space:nowrap;height:54px;padding:0 28px;border-radius:27px;border:0;background:#fff;color:var(--navy);font-weight:700;font-size:16px;
  display:inline-flex;align-items:center;gap:10px;box-shadow:0 12px 30px -10px rgba(0,0,0,.55);transition:transform .2s}
#tp-app .tp-go1:hover{transform:translateY(-2px)}
.tp-go1 svg,.tp-go2 svg{width:15px;height:15px}
#tp-app .tp-sh{white-space:nowrap;height:54px;padding:0 18px;border-radius:27px;border:0;background:rgba(255,255,255,.18);color:#fff;font-weight:600;font-size:15px;
  display:inline-flex;align-items:center;gap:8px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);transition:background .2s}
#tp-app .tp-sh:hover{background:rgba(255,255,255,.28)}
.tp-sh svg{width:17px;height:17px}
#tp-app .tp-cta p.note{font-size:12px;opacity:.82;text-align:right;max-width:300px;line-height:1.45;margin:0}
#tp-app .tp-hshare{display:none;position:absolute;right:12px;top:12px;z-index:4;width:40px;height:40px;border-radius:50%;border:0;padding:0;
  background:rgba(255,255,255,.2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);place-items:center;color:#fff}
.tp-hshare svg{width:19px;height:19px}
.tp-cbar{display:none}

/* máy tính thấp (≤ 780px chiều cao): thu cột trái cho vừa một màn */
@media (min-width:861px) and (max-height:780px){
  #tp-app .tp-h{margin:9px 0 5px}#tp-app .tp-t{padding:4px 10px 4px 4px;grid-template-columns:38px 1fr}.tp-t .th{width:38px;height:38px;border-radius:10px}
  .tp-t .bd em{display:none}#tp-app .tp-s{padding:5px 4px}#tp-app .tp-seg button{height:32px}#tp-app .tp-sndrow{padding:5px 10px 5px 5px}.tp-sndrow .ic{width:32px;height:32px}
}
/* máy tính hẹp (861–1100px): cột trái hẹp lại, nút xếp dưới chữ */
@media (min-width:861px) and (max-width:1100px){
  .tpx{grid-template-columns:300px minmax(0,1fr);gap:14px}
  #tp-app .tp-s{flex-direction:column;gap:2px}
  .tp-info{flex-direction:column;align-items:flex-start;gap:12px;left:20px;right:20px}
  .tp-cta{flex-direction:row;align-items:center;flex-wrap:wrap}#tp-app .tp-cta p.note{text-align:left}
  #tp-app .tp-info p.tip{display:none}
}

/* ===== điện thoại (≤ 860px) ===== */
@media (max-width:860px){
  section.tp-trang{padding-top:14px;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .tp-phead .phead-sub{display:none}
  .tp-phead{margin-bottom:12px}
  .tpx{display:block;height:auto}
  .tp-khung{height:clamp(270px,78vw,350px);border-radius:18px}
  .tp-hshade{background:linear-gradient(180deg,rgba(6,22,34,.36) 0%,rgba(6,22,34,.04) 30%,rgba(6,22,34,.08) 52%,rgba(6,22,34,.66) 100%)}
  .tp-pv{top:39%;width:min(42vw,180px)}
  .tp-pw{font-size:15px}
  .tp-info{left:16px;right:16px;bottom:14px}
  .tp-info .k{font-size:11px}
  #tp-app .tp-info h1,#tp-app .tp-info h2{font-size:24px}
  .tp-info .rh{font-size:13px}
  #tp-app .tp-info p.tip,.tp-cta{display:none}
  #tp-app .tp-hshare{display:grid}
  .tp-side{background:none;border:0;border-radius:0;padding:4px 0 0;overflow:visible;box-shadow:none}
  #tp-app .tp-h{font-size:15px;margin:16px 0 8px}
  .tp-list{gap:8px}
  #tp-app .tp-t{grid-template-columns:52px 1fr;column-gap:12px;padding:8px 12px 8px 8px;border-radius:16px;border-color:transparent;box-shadow:0 1px 3px rgba(15,58,92,.1)}
  #tp-app .tp-t.on{border-color:var(--tp-pri)}
  .tp-t .th{width:52px;height:52px;border-radius:13px}
  .tp-t .th i{width:22px;height:22px;right:4px;bottom:4px}.tp-t .th i svg{width:15px;height:15px}
  .tp-t .bd b{font-size:15.5px}
  .tp-t .bd small{display:block}
  .tp-t .bd em .rh{display:inline}
  .tp-t.on .dt{display:block}
  #tp-app .tp-s{flex-direction:column;gap:2px;padding:9px 4px 8px;border-radius:14px;border-color:transparent;box-shadow:0 1px 3px rgba(15,58,92,.1)}
  #tp-app .tp-s.on{border-color:var(--tp-pri)}
  .tp-s svg{width:28px;height:28px}
  .tp-s small{display:block}
  #tp-app .tp-seg button{height:40px;border-radius:20px}
  #tp-app .tp-sndrow{border-color:transparent;padding:9px 12px 9px 9px;border-radius:16px;box-shadow:0 1px 3px rgba(15,58,92,.1)}
  #tp-app p.tp-note{display:block;margin-top:14px}
  .tp-sndrow .ic{width:40px;height:40px;border-radius:12px}
  .tp-cbar{display:block;position:fixed;left:0;right:0;z-index:55;bottom:var(--tp-tab,0px);padding:10px max(16px,env(safe-area-inset-left)) 10px max(16px,env(safe-area-inset-right));
    background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.94) 28%,#fff);}
  #tp-app .tp-go2{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;max-width:560px;margin:0 auto;height:50px;border:0;border-radius:25px;
    background:var(--g-btn);color:#fff;font-size:16px;font-weight:700;box-shadow:0 10px 22px -10px rgba(10,40,70,.6)}
}
@media (max-width:374px){.tp-t .bd em .rh{display:none}}
@supports not (aspect-ratio:1){.tp-pv{height:min(56%,50vh,420px)}}
@media (max-width:860px){@supports not (aspect-ratio:1){.tp-pv{height:min(42vw,180px)}}}

/* ===== lời mời khi khách bấm nút phút bị khoá ===== */
.tp-lockpop{position:absolute;left:0;right:0;bottom:calc(100% + 10px);z-index:6;display:flex;flex-direction:column;gap:6px;padding:13px 40px 13px 14px;border-radius:16px;
  background:var(--tp-card);color:var(--tp-ink);border:1px solid var(--tp-line);box-shadow:0 16px 36px -10px rgba(10,40,60,.38);opacity:0;transform:translateY(6px);
  pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.tp-lockpop.on{opacity:1;transform:none;pointer-events:auto}
.tp-lockpop::after{content:"";position:absolute;right:22%;bottom:-7px;width:12px;height:12px;background:var(--tp-card);border-right:1px solid var(--tp-line);border-bottom:1px solid var(--tp-line);transform:rotate(45deg)}
.tp-lockpop b{font-size:15px;font-weight:700;line-height:1.3}
.tp-lockpop>span{font-size:13px;line-height:1.45;color:var(--tp-ink2)}
.tp-lockpop .bt{display:flex;gap:8px;margin-top:4px}
.tp-lockpop .bt a{flex:1;display:grid;place-items:center;height:40px;border-radius:20px;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;padding:0 10px}
.tp-lockpop .bt a:hover{text-decoration:none}
.tp-lockpop .bt a.p{background:linear-gradient(135deg,#FFE27A,#FFB347 55%,#FF8A5B);color:#3a2600}
.tp-lockpop .bt a.s{background:var(--tp-sel);color:var(--tp-pri)}
#tp-app .tp-lockpop .x{position:absolute;right:8px;top:8px;width:28px;height:28px;border-radius:50%;border:0;padding:0;background:transparent;color:var(--tp-ink2);display:grid;place-items:center}
.tp-lockpop .x svg{width:15px;height:15px}

/* ===== bảng âm thanh + hộp chia sẻ: điện thoại = tấm trượt từ dưới lên, máy tính = hộp giữa màn ===== */
.tp-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;background:rgba(10,24,34,0);transition:background .3s ease;display:flex;align-items:flex-end;justify-content:center;line-height:1.4}
.tp-sheet[hidden]{display:none}
.tp-sheet.on{background:rgba(10,24,34,.42)}
.tp-sh-c{width:100%;max-width:600px;background:#fff;color:var(--navy);border-radius:22px 22px 0 0;padding:14px 18px calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);
  transition:transform .35s cubic-bezier(.2,.8,.2,1);max-height:88vh;overflow:auto}
.tp-sheet.on .tp-sh-c{transform:none}
@media (min-width:760px){.tp-sheet{align-items:center}.tp-sh-c{max-width:520px;border-radius:22px;transform:translateY(14px) scale(.98);opacity:0;transition:transform .3s ease,opacity .3s ease}.tp-sheet.on .tp-sh-c{opacity:1;transform:none}}
.tp-sheet button{font:inherit;cursor:pointer;border:0;margin:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tp-sheet button:active{transform:none}
.tp-sh-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}
.tp-sh-h b{font-size:18px;font-weight:700}
.tp-sheet .tp-sh-x{width:36px;height:36px;border-radius:50%;background:var(--bg);color:var(--navy);display:grid;place-items:center;padding:0}
.tp-sh-x svg{width:18px;height:18px}
.tp-sh-g{padding:12px 0;border-bottom:1px solid var(--ln)}
.tp-sh-g>span{display:block;font-size:13px;font-weight:600;color:var(--tx2);margin-bottom:8px}
.tp-chips{display:flex;flex-wrap:wrap;gap:8px}
.tp-sheet .tp-chip{height:38px;padding:0 15px;border-radius:19px;background:var(--bg);color:var(--navy);font-size:14px;font-weight:500;transition:background .2s,color .2s}
.tp-sheet .tp-chip.on{background:var(--deep);color:#fff}
.tp-sheet label.tp-vol{display:flex;flex-direction:row;align-items:center;gap:10px;margin-top:12px;color:var(--tx2);font-size:inherit;font-weight:400}
.tp-vol.off{opacity:.4}
.tp-vol svg{width:20px;height:20px;flex:none}
.tp-sheet .tp-vol input{flex:1;min-width:0;accent-color:var(--deep);padding:0;border:0;background:none;box-shadow:none;height:24px}
.tp-sheet .tp-sh-ok{width:100%;height:48px;border-radius:24px;background:var(--g-btn);color:#fff;font-size:16px;font-weight:600;margin-top:14px}
.tp-shr .tp-sh-c{max-width:440px}
.tp-sheet p.tp-shr-t{margin:8px 0 10px;font-size:14.5px;line-height:1.45;color:var(--tx2);max-width:none}
.tp-sheet input.tp-shr-u{width:100%;height:44px;border-radius:12px;border:1px solid var(--ln);background:var(--bg);color:var(--navy);font:inherit;font-size:14px;padding:0 12px}
.tp-shr-b{display:flex;gap:10px;margin-top:12px}
.tp-sheet .tp-shr-c,.tp-shr-f{flex:1;height:46px;border-radius:23px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;padding:0 12px}
.tp-sheet .tp-shr-c{background:var(--deep);color:#fff}
.tp-sheet .tp-shr-c.ok{background:#3F8A6E}
.tp-shr-f,.tp-shr-f:hover{background:#1877F2;color:#fff;text-decoration:none}
.tp-shr-c svg,.tp-shr-f svg{width:18px;height:18px;flex:none}
@media (max-width:420px){.tp-shr-b{flex-direction:column}.tp-sheet .tp-shr-c,.tp-sheet .tp-shr-f{flex:none}}

/* ===== màn tập (toàn màn hình, dùng chung) ===== */
.tp-play{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;color:#fff;overflow:hidden;opacity:0;transition:opacity .6s ease;background:#10283a;line-height:1.4}
.tp-play.on{opacity:1}
.tp-play[hidden]{display:none}
/* màn tập nền đặc đã phủ kín → ẩn phần trang bên dưới cho Chrome khỏi giữ ô vẽ của nó (điện thoại ít bộ nhớ đồ hoạ) */
body.tp-cover > :not(.tp-play):not(.tp-sheet):not(script):not(style){visibility:hidden}
.tp-play .tp-scene{position:absolute;top:0;right:0;bottom:0;left:0}
.tp-pshade{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(180deg,rgba(6,20,32,.5) 0%,rgba(6,20,32,.1) 24%,rgba(6,20,32,.1) 58%,rgba(6,20,32,.68) 100%)}
.tp-pshade::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(6,20,32,.42);opacity:0;transition:opacity 1.2s ease}
.tp-play.end .tp-pshade::after{opacity:1}
.tp-ui{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));max-width:760px;margin:0 auto;transition:opacity .8s ease}
.tp-ui.out{opacity:0}
.tp-play button{font:inherit;cursor:pointer;border:0;margin:0;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tp-play button:active{transform:scale(.97)}
.tp-top{display:flex;align-items:center;gap:12px}
.tp-play .tp-ib{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:none;padding:0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.tp-ib svg{width:20px;height:20px}
.tp-top .ttl{flex:1;min-width:0;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.tp-top .ttl b{display:block;font-size:16px;font-weight:700}
.tp-top .ttl small{display:block;font-size:12.5px;opacity:.86;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-play .tp-stage{display:grid;place-items:center;min-height:0}
.tp-box{position:relative;width:min(90vw,56vh,560px);aspect-ratio:1/1}
.tp-box canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}
@supports not (aspect-ratio:1){.tp-box{height:min(90vw,56vh,560px)}}
.tp-mid{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;text-align:center;pointer-events:none;text-shadow:0 1px 12px rgba(0,0,0,.4)}
.tp-mid .w{position:relative;height:1.3em;width:9em;font-size:clamp(21px,5.6vw,29px);font-weight:600;line-height:1.3}
.tp-mid .n{font-size:clamp(34px,10vw,48px);font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums;opacity:.9}
.s-tron .tp-mid{color:#18364a;text-shadow:0 0 18px rgba(255,255,255,.6)}
.tp-rhy{justify-self:center;display:flex;align-items:center;gap:8px;padding:7px 16px;border-radius:999px;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.tp-rhy span{display:flex;flex-direction:column;align-items:center;min-width:42px;opacity:.48;transform:scale(.9);transition:opacity .8s ease,transform .8s ease}
.tp-rhy span.on{opacity:1;transform:none}
.tp-rhy b{font-size:22px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.tp-rhy small{font-size:11px;opacity:.9}
.tp-rhy i{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.5)}
.tp-foot{display:grid;gap:10px;justify-items:center}
.tp-left{font-size:38px;font-weight:300;line-height:1;font-variant-numeric:tabular-nums;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.tp-prog{width:100%;max-width:440px;height:3px;border-radius:3px;background:rgba(255,255,255,.22);overflow:hidden}
.tp-prog i{display:block;height:100%;width:0;background:rgba(255,255,255,.9);border-radius:3px}
.tp-btns{display:flex;gap:12px;width:100%;max-width:400px}
.tp-play .tp-b1,.tp-play .tp-b2{flex:1;height:50px;border-radius:25px;font-size:15px;font-weight:600;display:grid;place-items:center;padding:0 12px}
.tp-play .tp-b1{background:rgba(255,255,255,.93);color:#1d4258}
.tp-play .tp-b2{background:rgba(255,255,255,.16);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.tp-play .tp-b1:disabled{opacity:.55}
.tp-end{grid-row:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:0 12px;animation:tpIn 1s ease}
@keyframes tpIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tp-end .ck{width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.93);color:#2b6e8f;display:grid;place-items:center;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.tp-end .ck svg{width:36px;height:36px}
.tp-end h2{margin:4px 0 0;font-weight:700;font-size:28px;line-height:1.2;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.4);text-wrap:balance;max-width:420px}
.tp-end p{margin:0 auto;font-size:15.5px;line-height:1.55;max-width:340px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.tp-end .tp-btns{margin-top:10px}
.tp-play .tp-b3{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;margin-top:4px;border-radius:22px;background:none;color:#fff;font-size:15px;font-weight:600;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}
.tp-play .tp-b3 svg{width:17px;height:17px}
@media (min-width:900px) and (min-height:600px){.tp-top .ttl b{font-size:18px}.tp-left{font-size:42px}}
@media (max-width:599px){.tp-top .ttl small .rh{display:none}}
/* thẻ mời đăng ký (khách hết lượt thở thử) + thẻ "sẵn sàng tập tiếp" — nằm trên nền cảnh */
.tp-card{max-width:400px;margin:0 auto;width:100%}
.tp-card .ck.lf{color:#2f7a5f}
.tp-gbtns{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:340px;margin-top:10px}
.tp-play .tp-gbtns a,.tp-play .tp-gbtns button{display:flex;align-items:center;justify-content:center;height:50px;border-radius:25px;font-size:15.5px;font-weight:700;text-decoration:none;text-align:center;padding:0 16px;line-height:1.2}
.tp-play .tp-gbtns a:hover{text-decoration:none}
.tp-play .tp-g1{background:linear-gradient(135deg,#FFE27A,#FFB347 55%,#FF8A5B);color:#3a2600;box-shadow:0 10px 24px -10px rgba(255,138,91,.9)}
.tp-play .tp-g2{background:rgba(255,255,255,.93);color:#1d4258}
.tp-play .tp-g3{background:none;color:#fff;font-weight:600;height:40px;opacity:.9;text-decoration:underline;text-underline-offset:3px}
/* viên nhắc bật tiếng: ngay dưới thanh tiêu đề, không che hình dẫn nhịp */
.tp-snd{position:absolute;left:50%;top:calc(env(safe-area-inset-top,0px) + 64px);transform:translate(-50%,-6px);z-index:3;display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 24px);padding:6px 6px 6px 14px;border-radius:999px;background:rgba(12,32,46,.62);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);color:#fff;font-size:13px;line-height:1.25;opacity:0;transition:opacity .4s ease,transform .4s ease;pointer-events:none}
.tp-snd.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.tp-snd .tx{min-width:0}
.tp-snd .tx b{font-weight:500;white-space:nowrap}
.tp-snd .tx small{display:block;font-size:11.5px;opacity:.85}
.tp-play .tp-snd .tp-snd-t{flex:none;height:32px;padding:0 12px;border-radius:16px;background:#fff;color:#1d4258;font-size:13px;font-weight:700;white-space:nowrap}
.tp-play .tp-snd .tp-snd-x{flex:none;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;padding:0}
.tp-snd .tp-snd-x svg{width:14px;height:14px}
@media (min-width:900px) and (min-height:600px){.tp-snd{top:calc(env(safe-area-inset-top,0px) + 66px);font-size:13.5px}}
@media (max-width:380px){.tp-snd{font-size:12.5px;padding-left:12px;gap:6px}.tp-snd .tx small{font-size:11px}.tp-play .tp-snd .tp-snd-t{padding:0 10px;font-size:12.5px}}

/* ===== khối "Tìm hiểu về 5 bài thở" (máy chủ in sẵn, đóng gọn một dòng) ===== */
.tpg{margin-top:16px;color:var(--tp-ink)}
.tpg .nw{white-space:nowrap}
.tpg-dt>summary{list-style:none}
.tpg-dt>summary::-webkit-details-marker{display:none}
.tpg-sum{display:flex;align-items:center;gap:12px;max-width:440px;background:var(--tp-card);border:1px solid var(--tp-line);border-radius:16px;padding:9px 12px 9px 9px;cursor:pointer;color:var(--tp-ink);-webkit-tap-highlight-color:transparent;transition:border-color .2s}
.tpg-sum:hover{border-color:var(--tp-pri)}
.tpg-sum .ic{width:40px;height:40px;border-radius:12px;background:var(--tp-soft);color:var(--tp-pri);display:grid;place-items:center;flex:none}
.tpg-sum .ic svg{width:21px;height:21px}
.tpg-sum .tx{flex:1;min-width:0;line-height:1.3}
.tpg-sum .tx b{display:block;font-size:15px;font-weight:600}
.tpg-sum .tx small{display:block;font-size:12.5px;color:var(--tp-ink2);margin-top:1px}
.tpg-sum .chev{width:20px;height:20px;color:var(--tp-ink2);flex:none;transition:transform .25s}
.tpg-dt[open] .tpg-sum .chev{transform:rotate(180deg)}
.tpg-in{margin-top:12px;padding:22px 26px 20px;background:var(--tp-card);border:1px solid var(--tp-line);border-radius:20px}
.tpg p{max-width:none}
.tpg .tpg-lead{font-size:15.5px;line-height:1.65;color:var(--tp-ink2);max-width:900px}
.tpg h3{font-size:17px;font-weight:700;line-height:1.3;color:var(--tp-ink);margin:0 0 10px}
.tpg h3.tpg-sub{margin:22px 0 12px}
.tpg-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.tpg-grid .tpg-card{grid-column:span 2}
.tpg-grid .tpg-card:nth-child(n+4):nth-last-child(-n+2),.tpg-grid .tpg-card:nth-child(4):last-child{grid-column:span 3}
.tpg-card{display:flex;flex-direction:column;gap:9px;min-width:0;background:var(--tp-soft);border:1px solid var(--tp-line);border-radius:16px;padding:15px 15px 11px}
.tpg-tag{display:flex;align-items:center;gap:11px;min-width:0;line-height:1.3}
.tpg-tag .th{position:relative;width:44px;height:44px;border-radius:12px;flex:none;background:#cfe0e8 center/cover}
.tpg-tag .th i{position:absolute;right:-5px;bottom:-5px;width:21px;height:21px;border-radius:50%;background:#fff;color:var(--tp-pri);display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.tpg-tag .th i svg{width:13px;height:13px}
.tpg-tag b{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tp-pri)}
.tpg-tag small{display:block;font-size:12.5px;color:var(--tp-ink2);margin-top:1px}
.tpg .tpg-card h4{font-size:16.5px;font-weight:700;line-height:1.3;margin:2px 0 0}
.tpg .tpg-card h4 a{color:var(--tp-ink)}
.tpg .tpg-card h4 a:hover{color:var(--tp-pri);text-decoration:none}
.tpg-card p{font-size:14.5px;line-height:1.6;color:var(--tp-ink);margin:0}
.tpg-bar{display:flex;gap:3px;height:24px;border-radius:8px;overflow:hidden}
.tpg-bar span{display:grid;place-items:center;font-size:11.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;min-width:0}
.tpg-steps{margin:0;padding-left:20px;display:grid;gap:6px;font-size:14.5px;line-height:1.55;color:var(--tp-ink)}
.tpg-steps li::marker{color:var(--tp-pri);font-weight:700}
.tpg-card p.tpg-when{font-size:14px;color:var(--tp-ink2)}
.tpg a.tpg-go{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14.5px;color:var(--tp-pri);padding:6px 0}
.tpg-go svg{width:16px;height:16px;flex:none}
.tpg-focus{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:26px;background:var(--tp-soft);border:1px solid var(--tp-line);border-radius:18px;padding:20px 22px}
.tpg-fl{display:flex;flex-direction:column;gap:12px;min-width:0}
.tpg-fl h3{margin:4px 0 0}
.tpg-fr{min-width:0}
.tpg-fr h3{margin-bottom:6px}
.tpg-fr p{font-size:15px;line-height:1.65;margin:0 0 14px;color:var(--tp-ink)}
.tpg p.tpg-note{font-size:14px;line-height:1.55;color:#7a5f15;background:#FFF6DC;border-radius:12px;padding:9px 12px;margin:0}
.tpg-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.tpg-box{border:1px solid var(--tp-line);border-radius:16px;padding:16px 18px;min-width:0}
.tpg-box ol,.tpg-box ul{margin:0;padding-left:20px;display:grid;gap:7px;font-size:14.5px;line-height:1.55;color:var(--tp-ink)}
.tpg-use{background:var(--tp-soft)}
.tpg-safe{background:#FFF9EA;border-color:#F3E2B3}
.tpg-safe li::marker{color:#C08A12}
.tpg-box p.tpg-free{margin:12px 0 0;font-size:14px;font-weight:600;color:var(--tp-pri)}
.tpg-faq{margin-top:22px}
.tpg-qa{display:grid;grid-template-columns:1fr 1fr;gap:12px 28px}
.tpg-qa .qa{border-top:1px solid var(--tp-line);padding-top:12px;min-width:0}
.tpg .tpg-qa h4{font-size:15.5px;font-weight:700;line-height:1.35;margin:0 0 5px;color:var(--tp-ink)}
.tpg-qa p{font-size:14.5px;line-height:1.6;color:var(--tp-ink2);margin:0}
@media (max-width:1100px){.tpg-grid .tpg-card,.tpg-grid .tpg-card:nth-child(n+4):nth-last-child(-n+2),.tpg-grid .tpg-card:nth-child(4):last-child{grid-column:span 3}.tpg-grid .tpg-card:nth-child(5):last-child{grid-column:1/-1}}
@media (max-width:760px){.tpg-in{padding:16px 14px 14px;border-radius:16px}.tpg-grid{gap:10px}.tpg-grid .tpg-card,.tpg-grid .tpg-card:nth-child(n+4):nth-last-child(-n+2),.tpg-grid .tpg-card:nth-child(4):last-child,.tpg-grid .tpg-card:nth-child(5):last-child{grid-column:1/-1}
  .tpg-focus,.tpg-row,.tpg-qa{grid-template-columns:1fr}.tpg-focus{gap:14px;padding:16px}.tpg-sum{max-width:none;border-color:transparent;box-shadow:0 1px 3px rgba(15,58,92,.1)}}

@media (prefers-reduced-motion:reduce){.sv-kb,.sv-fx *{animation:none!important}}
