/* Bộ tìm HLV dùng chung (trang chủ + /tim/). MỌI luật đều bọc trong .tm để không đụng Tailwind của trang chủ:
   preflight Tailwind có [type=button]{background:transparent} cùng độ ưu tiên với 1 class → phải dùng ".tm .x" (2 class). */
.tm{--cream:#FAF5EE;--soft:#F3EBDD;--tint:#F6E9DF;--terra:#C67B5C;--terrad:#A9603F;--ink:#2E2A26;--inks:#6E655A;--inkf:#A39A8D;--line:#EAE0D2;--sage:#5F7A4E;--sagebg:#EEF3E8;--gold:#EDB264;--err:#B3412F;
  font-family:"Be Vietnam Pro",system-ui,sans-serif;color:var(--ink);line-height:1.45;-webkit-font-smoothing:antialiased}
.tm *,.tm *::before,.tm *::after{box-sizing:border-box}
.tm .tm-serif{font-family:"Playfair Display",Georgia,serif}
.tm button{font-family:inherit;color:inherit;cursor:pointer}
.tm svg.tm-i{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;display:inline-block}
.tm [hidden]{display:none!important}

/* HERO: nền trơn, chỉ logo nhận diện */
.tm .tm-hero{position:relative;display:flex;flex-direction:column;align-items:center;padding:var(--tm-hero-pt,18px) 16px 30px}
.tm .tm-logo{align-self:center;display:block;margin:0 0 18px;line-height:0}
.tm .tm-logo img{height:96px;width:auto;display:block}
@media(max-width:420px){.tm .tm-logo img{height:80px}}
.tm .tm-in{width:100%;max-width:680px;text-align:center}
/* TẶNG 30 NGÀY: khối to, nổi bật nhất màn đầu */
.tm .tm-gift{display:inline-flex;align-items:center;gap:14px;background:linear-gradient(105deg,#F4B55B 0%,#E58A4E 55%,#C8542C 100%);color:#fff;border-radius:22px;padding:14px 24px 14px 18px;box-shadow:0 18px 34px -16px rgba(200,84,44,.85);margin:0 0 18px;position:relative;text-align:left}
.tm .tm-gift::after{content:"";position:absolute;inset:5px;border:1.5px dashed rgba(255,255,255,.55);border-radius:17px;pointer-events:none}
.tm .tm-giftic{font-size:clamp(34px,7vw,46px);line-height:1}
.tm .tm-gifttx{display:flex;flex-direction:column}
.tm .tm-gifttx b{font-size:clamp(30px,7.4vw,46px);font-weight:900;line-height:1;letter-spacing:.3px;text-shadow:0 2px 0 rgba(120,40,10,.25)}
.tm .tm-gifttx span{font-size:clamp(14px,2.8vw,17px);font-weight:700;margin-top:4px;opacity:.95}
.tm .tm-h1{color:var(--ink);font-size:clamp(28px,6vw,44px);line-height:1.12;margin:0 0 6px;font-weight:800;text-wrap:balance}
.tm .tm-sub{color:var(--inks);font-size:clamp(14.5px,2.2vw,17px);margin:0 auto 20px;max-width:520px}

/* KHUNG TÌM: 2 câu hỏi hiện sẵn, câu 1 tích nhiều ô, câu 2 chọn một */
.tm .tm-box{background:#fff;border:1px solid var(--line);border-radius:26px;padding:20px 16px 16px;box-shadow:0 26px 60px -34px rgba(90,50,25,.45);text-align:left;max-width:680px;margin:0 auto}
.tm .tm-q{border:none;margin:0 0 18px;padding:0;min-width:0}
.tm .tm-q legend{font-size:16.5px;font-weight:800;color:var(--ink);margin:0 0 10px;padding:0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tm .tm-q legend em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--inks);background:var(--soft);border-radius:999px;padding:2px 9px}
.tm .tm-n{width:24px;height:24px;border-radius:50%;background:var(--terra);color:#fff;font-size:12.5px;font-weight:800;display:inline-grid;place-items:center;flex:none}
.tm .tm-cks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tm .tm-rds{display:grid;grid-template-columns:1fr;gap:8px}
.tm .tm-ck,.tm .tm-rd{position:relative;display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);background:var(--cream);border-radius:15px;padding:11px 12px;cursor:pointer;transition:.12s;user-select:none;min-width:0}
.tm .tm-ck:hover,.tm .tm-rd:hover{border-color:var(--terra)}
.tm .tm-ck input,.tm .tm-rd input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tm .tm-tick{width:22px;height:22px;border-radius:7px;border:2px solid #CDBFAE;background:#fff;display:grid;place-items:center;flex:none;transition:.12s}
.tm .tm-tick svg.tm-i{width:15px;height:15px;stroke-width:3.2;color:#fff;opacity:0}
.tm .tm-dot{width:22px;height:22px;border-radius:50%;border:2px solid #CDBFAE;background:#fff;flex:none;transition:.12s;position:relative}
.tm .tm-ckic{width:34px;height:34px;border-radius:10px;background:var(--tint);color:var(--terrad);display:grid;place-items:center;flex:none}
.tm .tm-ckic svg.tm-i{width:21px;height:21px}
.tm .tm-cktx{display:flex;flex-direction:column;min-width:0}
.tm .tm-cktx b{font-size:15px;font-weight:800;color:var(--ink);line-height:1.2}
.tm .tm-cktx small{font-size:12.5px;color:var(--inks);font-weight:500;margin-top:2px;line-height:1.25}
.tm .tm-ck.tm-on,.tm .tm-rd.tm-on{border-color:var(--terra);background:var(--tint);box-shadow:0 8px 18px -14px rgba(166,96,63,.9)}
.tm .tm-ck input:checked~.tm-tick{background:var(--terra);border-color:var(--terra)}
.tm .tm-ck input:checked~.tm-tick svg.tm-i{opacity:1}
.tm .tm-rd input:checked~.tm-dot{border-color:var(--terra)}
.tm .tm-rd input:checked~.tm-dot::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--terra)}
.tm .tm-ck input:focus-visible~.tm-tick,.tm .tm-rd input:focus-visible~.tm-dot{outline:3px solid rgba(198,123,92,.45);outline-offset:2px}
.tm .tm-area{display:none;background:var(--cream);border:2px solid var(--terra);border-radius:18px;padding:12px 14px;margin-bottom:4px}
.tm .tm-area.tm-show{display:block;animation:tmfade .25s}
.tm .tm-area:focus-within{background:#fff}
.tm .tm-area label{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:800;color:var(--ink);margin-bottom:6px}
.tm .tm-arow{display:flex;gap:8px;align-items:center}
.tm .tm-arow input{flex:1}
.tm .tm-gps{flex:none;border:2px solid var(--terra);background:#fff;color:var(--terrad);font-weight:800;font-size:13px;border-radius:999px;padding:7px 11px;white-space:nowrap}
.tm .tm-gps[disabled]{opacity:.6}
.tm .tm-gpsmsg{font-size:12.5px;color:var(--sage);font-weight:600;margin-top:4px}
.tm .tm-gpsmsg.tm-warn{color:var(--err)}
.tm .tm-gpsmsg:empty{display:none}
/* bản đồ Goong */
.tm .tm-mapbox:not(:empty){margin:0 0 14px}
.tm .tm-map{height:300px;border-radius:18px;overflow:hidden;border:1px solid var(--line);position:relative;z-index:0;background:var(--soft)}
.tm .tm-mapnote{font-size:12px;color:var(--inks);margin-top:6px;text-align:center}
.tm .tm-mk{background:#fff;border:2px solid var(--terrad);color:var(--terrad);font:800 12px "Be Vietnam Pro",sans-serif;padding:3px 9px;border-radius:999px;white-space:nowrap;box-shadow:0 4px 10px -4px rgba(0,0,0,.35);cursor:default}
.tm .tm-mk.tm-mk-xa{border-color:#A39A8D;color:var(--inks)}
.tm .tm-area input{width:100%;min-width:0;border:none;background:transparent;font:600 16px "Be Vietnam Pro",sans-serif;color:var(--ink);outline:none;padding:2px 0}
.tm .tm-area input::placeholder{color:var(--inkf);font-weight:500}
.tm .tm-area input::-webkit-calendar-picker-indicator{display:none!important}
.tm .tm-go{margin-top:14px;width:100%;border:none;border-radius:20px;background:linear-gradient(100deg,var(--terra),var(--terrad));color:#fff;font-size:clamp(19px,3.4vw,23px);font-weight:800;padding:20px 16px;box-shadow:0 18px 36px -14px rgba(166,96,63,.9);transition:.15s;display:flex;align-items:center;justify-content:center;gap:10px}
.tm .tm-go:hover{transform:translateY(-2px);filter:brightness(1.05)}
.tm .tm-go svg.tm-i{width:26px;height:26px;stroke-width:2.4}
.tm .tm-note{text-align:center;font-size:12.5px;color:var(--inks);margin:10px 0 0}
.tm .tm-trust{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin-top:16px;color:var(--inks);font-size:13px;font-weight:600}
.tm .tm-trust span{display:flex;align-items:center;gap:6px}
.tm .tm-trust svg.tm-i{width:16px;height:16px;color:var(--sage)}

/* KẾT QUẢ */
.tm .tm-res{max-width:880px;margin:0 auto;padding:0 16px 28px;animation:tmfade .35s}
@keyframes tmfade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tm .tm-rbar{position:sticky;top:var(--tm-top,0px);z-index:30;background:rgba(250,245,238,.95);backdrop-filter:blur(8px);padding:12px 0 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.tm .tm-rbar .tm-sum{font-size:13.5px;color:var(--inks);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tm .tm-rbar .tm-sum b{color:var(--ink)}
.tm .tm-rbar button{flex:none;border:2px solid var(--terra);background:#fff;color:var(--terrad);font-weight:800;font-size:13.5px;border-radius:999px;padding:7px 14px}
.tm .tm-rhead{margin:16px 0 14px}
.tm .tm-rhead h2{margin:0;font-size:clamp(22px,4vw,28px);font-weight:800;line-height:1.2}
.tm .tm-rhead p{margin:5px 0 0;color:var(--inks);font-size:14px}
.tm .tm-cards{display:flex;flex-direction:column;gap:14px}
.tm .tm-card{display:grid;grid-template-columns:168px 1fr 210px;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 12px 30px -24px rgba(60,30,15,.55)}
.tm .tm-card.tm-best{border:2px solid var(--terra)}
.tm .tm-ph{position:relative;min-height:176px;background:linear-gradient(150deg,#D69A78,#A9603F)}
.tm .tm-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 18%;max-width:none}
/* ảnh HLV là ảnh VUÔNG (chân dung đã cắt vuông) ⇒ giữ khung vuông, không kéo dãn làm lẹm đầu/mặt */
.tm .tm-phhlv{display:block;align-self:start;aspect-ratio:1/1;min-height:0;margin:14px 0 14px 14px;border-radius:16px;overflow:hidden}
.tm .tm-phhlv img{object-position:center center}
.tm .tm-nmlink{color:inherit;text-decoration:none}
.tm .tm-nmlink:hover{text-decoration:underline;text-underline-offset:3px}
.tm .tm-xemthem{display:block;width:100%;border:2px dashed var(--terra);background:#fff;color:var(--terrad);font-weight:800;font-size:14.5px;border-radius:16px;padding:13px;cursor:pointer}
.tm .tm-mono{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:800 64px "Playfair Display",Georgia,serif;text-shadow:0 4px 18px rgba(0,0,0,.18)}
.tm .tm-pill{position:absolute;background:#fff;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800;box-shadow:0 4px 10px -5px rgba(0,0,0,.3)}
.tm .tm-pill.tm-vd{top:9px;right:9px;color:#B3412F}
.tm .tm-pill.tm-bestp{bottom:9px;left:9px;background:var(--terra);color:#fff}
.tm .tm-mid{padding:15px 16px;display:flex;flex-direction:column;gap:7px;justify-content:center;min-width:0}
.tm .tm-nm{font-size:18px;font-weight:800;display:flex;align-items:center;gap:7px;flex-wrap:wrap;line-height:1.25}
.tm .tm-ver{font-size:11px;font-weight:700;color:var(--sage);background:var(--sagebg);padding:2px 8px;border-radius:999px}
.tm .tm-ver.tm-chua{color:var(--inks);background:#efe9df}
.tm .tm-nho{font-size:14px;background:#f5efe4;border-radius:12px;padding:10px 12px;margin-bottom:10px;color:var(--ink)}
.tm .tm-doi{border:none;background:none;color:#A9603F;font-weight:700;text-decoration:underline;cursor:pointer;padding:0 0 0 6px;font-size:13.5px}
.tm .tm-sp{font-size:14px;color:var(--inks)}
.tm .tm-why{display:flex;flex-direction:column;gap:3px;font-size:13.5px;font-weight:600;color:var(--sage)}
.tm .tm-why .tm-no{color:var(--inks);font-weight:500}
.tm .tm-proof{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--inks)}
.tm .tm-act{padding:15px 16px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-left:1px dashed var(--line)}
.tm .tm-price{font-size:12px;color:var(--inks);line-height:1.35}
.tm .tm-price b{display:block;font-size:20px;color:var(--terrad);font-weight:800}
.tm .tm-cta{border:none;background:var(--terra);color:#fff;border-radius:13px;padding:12px;font-weight:800;font-size:14px;text-align:center}
.tm .tm-cta:hover{background:var(--terrad)}
.tm .tm-cta[disabled]{opacity:.6;cursor:default}
.tm .tm-ghost{border:2px solid var(--line);background:#fff;border-radius:13px;padding:9px;font-weight:700;font-size:13.5px;text-align:center;text-decoration:none;color:var(--ink);display:block}
.tm .tm-ghost:hover{border-color:var(--terra)}
.tm .tm-subhead{margin:24px 0 12px;font-size:16px;font-weight:800}
.tm .tm-lead{background:#fff;border:2px solid var(--terra);border-radius:20px;padding:22px 18px;text-align:center}
.tm .tm-lead h3{margin:4px 0 6px;font-size:19px;font-weight:800}
.tm .tm-lead p{color:var(--inks);margin:0 0 14px;font-size:14.5px}
.tm .tm-form{display:grid;gap:8px;max-width:440px;margin:0 auto}
.tm .tm-form input{width:100%;min-width:0;border:2px solid var(--line);border-radius:13px;padding:12px 14px;font:600 16px "Be Vietnam Pro",sans-serif;background:#fff;color:var(--ink)}
.tm .tm-form input:focus{outline:none;border-color:var(--terra)}
.tm .tm-msg{font-size:13px;min-height:18px;text-align:center}
.tm .tm-msg.tm-err{color:var(--err)}
.tm .tm-msg.tm-ok{color:var(--sage);font-weight:700}
.tm .tm-loading{text-align:center;color:var(--inks);padding:30px 0}

/* thẻ HLV VIP: viền vàng + dải chữ trải ngang trên đầu thẻ */
.tm .tm-card.tm-vipc{border:2px solid #C99626;box-shadow:0 16px 34px -24px rgba(150,105,20,.85);grid-template-rows:auto 1fr}
.tm .tm-card.tm-nklc{border:2px solid #9AA7B4;grid-template-rows:auto 1fr}
.tm .tm-ribbon.tm-bac{background:linear-gradient(90deg,#7D8A97,#AEB9C4)}
.tm .tm-noibat{margin:18px 0 6px}
.tm .tm-nbt{font-weight:800;font-size:15px;margin:0 0 10px;color:#9A6A12}
.tm .tm-nbds{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory}
.tm .tm-nbo{flex:none;width:132px;scroll-snap-align:start;background:#fff;border:2px solid #E6C77A;border-radius:16px;padding:12px 10px;text-align:center;text-decoration:none;color:inherit;box-shadow:0 10px 22px -18px rgba(150,105,20,.9)}
.tm .tm-nbav{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 8px;border-radius:50%;overflow:hidden;background:linear-gradient(150deg,#D69A78,#A9603F);color:#fff;font:800 26px "Playfair Display",Georgia,serif;box-shadow:0 0 0 3px #F5D98B}
.tm .tm-nbav img{width:100%;height:100%;object-fit:cover}
.tm .tm-nbo b{display:block;font-size:14px;line-height:1.25}.tm .tm-nbo small{display:block;font-size:12px;color:var(--inks);margin-top:3px}
.tm .tm-ribbon{grid-column:1/-1;background:linear-gradient(90deg,#B7791F,#D9A441);color:#fff;font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:7px 14px}
/* sắp xếp + so sánh HLV */
.tm .tm-sapxep{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;font-size:13px;color:var(--inks)}
.tm .tm-sapxep span{font-weight:700;margin-right:2px}
.tm .tm-sapxep button{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700;color:var(--ink)}
.tm .tm-sapxep button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.tm .tm-uutien{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.tm .tm-uutien button{padding:5px 11px;font-size:12.5px}
.tm .tm-uutien button[aria-pressed="true"]{background:#e8f0e3;border-color:#5b7a4a;color:#3d5a2f}
.tm .tm-khen{font-size:13px;color:var(--inks);margin:8px 0 2px}
.tm .tm-khen b{display:inline-block;background:#e8f0e3;color:#3d5a2f;border-radius:999px;padding:2px 9px;margin:2px 0 2px 5px;font-size:12.5px}
.tm .tm-mo{color:var(--inks);opacity:.7}
.tm .tm-giasau{display:block;font-size:12.5px;color:var(--ink);margin-top:3px}
.tm .tm-giasau strong{color:var(--terrad);font-size:14px}
.tm .tm-ss{border:1.5px dashed var(--line);background:#fff;border-radius:13px;padding:8px;font-weight:700;font-size:13px;color:var(--inks)}
.tm .tm-ss[aria-pressed="true"]{border-style:solid;border-color:var(--sage);color:var(--sage);background:var(--sagebg)}
.tm .tm-ssbar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:950;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;
  width:min(560px,calc(100vw - 28px));background:var(--ink);color:#fff;border-radius:16px;padding:10px 12px;box-shadow:0 18px 40px -16px rgba(0,0,0,.5)}
.tm .tm-ssbar[hidden]{display:none}
.tm .tm-ssdem{font-size:13.5px;font-weight:700;flex:1;min-width:150px}
.tm .tm-ssxem{border:none;background:var(--terra);color:#fff;border-radius:10px;padding:9px 14px;font-weight:800;font-size:13.5px}
.tm .tm-ssxem[disabled]{opacity:.45}
.tm .tm-ssbo{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:10px;padding:8px 12px;font-weight:700;font-size:13px}
.tm .tm-sheet.tm-sheetrong{max-width:920px;text-align:left}
.tm .tm-sscuon{overflow-x:auto;margin:0 -4px}
.tm .tm-ssbang{border-collapse:collapse;width:100%;min-width:520px;font-size:13.5px}
.tm .tm-ssbang th,.tm .tm-ssbang td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.tm .tm-ssbang th{font-size:12px;color:var(--inks);font-weight:700;width:130px}
.tm .tm-ssbang.n2{min-width:0}
@media(max-width:480px){.tm .tm-ssbang th{width:84px;padding:9px 6px}.tm .tm-ssbang td{padding:9px 6px}.tm .tm-ssbang.n3{min-width:440px}}
.tm .tm-ssbang thead td{text-align:center}
.tm .tm-ssbang thead td b{display:block;font-size:14.5px;margin:6px 0 3px}
.tm .tm-ssav{width:56px;height:56px;border-radius:14px;margin:0 auto;overflow:hidden;background:linear-gradient(150deg,#D69A78,#A9603F);display:grid;place-items:center;color:#fff;font:800 22px "Playfair Display",serif}
.tm .tm-ssav img{width:100%;height:100%;object-fit:cover}
.tm .tm-ssbang .tm-cta,.tm .tm-ssbang .tm-ghost{display:block;width:100%;margin-top:6px;font-size:13px;padding:9px}
.tm .tm-tot{display:inline-block;background:var(--sagebg);color:var(--sage);font-size:11px;font-weight:800;border-radius:999px;padding:1px 7px;margin-left:4px}
/* thẻ nơi tập */
.tm .tm-monoic svg.tm-i{width:56px;height:56px;color:#fff;stroke-width:1.5}
.tm .tm-pill.tm-kmp{top:9px;left:9px;color:var(--terrad)}
.tm .tm-lops{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--ink);background:var(--cream);border-radius:12px;padding:8px 10px}
.tm .tm-lops .tm-no{color:var(--inks)}
.tm .tm-proof a{color:var(--terrad);font-weight:700;text-decoration:none}
.tm .tm-mk.tm-mk-noi{margin-bottom:8px}
.tm .tm-mk.tm-mk-noi::after{content:"";position:absolute;left:50%;bottom:-8px;margin-left:-6px;border:6px solid transparent;border-top-color:var(--terrad);border-bottom:0}
.tm .tm-mk.tm-mk-noi.tm-mk-xa::after{border-top-color:#A39A8D}
.tm .tm-sel{width:100%;border:2px solid var(--line);border-radius:13px;padding:11px 12px;font:600 15px "Be Vietnam Pro",sans-serif;background:#fff;color:var(--ink);margin-bottom:8px}
.tm .tm-av.tm-avic{background:var(--tint);color:var(--terrad)}
.tm .tm-avic svg.tm-i{width:36px;height:36px}

/* HỘP ĐĂNG KÝ */
.tm .tm-modal{position:fixed;inset:0;z-index:1000;background:rgba(30,18,10,.55);display:flex;align-items:flex-end;justify-content:center;padding:0;animation:tmfade .2s}
.tm .tm-sheet{background:#fff;width:100%;max-width:480px;border-radius:24px 24px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));position:relative;text-align:center;max-height:92vh;overflow:auto}
.tm .tm-sheet h3{margin:6px 0 6px;font-size:20px;font-weight:800;line-height:1.25}
.tm .tm-sheet p{margin:0 0 14px;color:var(--inks);font-size:14.5px}
.tm .tm-x{position:absolute;top:10px;right:12px;border:none;background:var(--soft);width:34px;height:34px;border-radius:50%;font-size:18px;font-weight:700;color:var(--inks)}
.tm .tm-av{width:72px;height:72px;border-radius:20px;margin:0 auto;overflow:hidden;background:linear-gradient(150deg,#D69A78,#A9603F);display:grid;place-items:center;color:#fff;font:800 30px "Playfair Display",serif}
.tm .tm-av img{width:100%;height:100%;object-fit:cover}

@media(min-width:760px){
  .tm .tm-box{padding:24px 24px 20px}
  .tm .tm-rds{grid-template-columns:1fr 1fr}
  .tm .tm-modal{align-items:center;padding:16px}
  .tm .tm-sheet{border-radius:24px}
}
@media(max-width:420px){
  .tm .tm-ck{padding:10px 9px;gap:7px}
  .tm .tm-ck .tm-ckic{display:none}
  .tm .tm-cktx b{font-size:14.5px}
  .tm .tm-gift{padding:12px 18px 12px 14px;gap:10px}
}
@media(max-width:700px){
  .tm .tm-card{grid-template-columns:1fr}
  .tm .tm-ph{min-height:200px}
  /* điện thoại: ảnh HLV vuông nhỏ đứng cạnh tên, không trải ngang cắt mất mặt */
  .tm .tm-card:has(.tm-phhlv){grid-template-columns:96px 1fr}
  .tm .tm-card:has(.tm-phhlv) .tm-ribbon,.tm .tm-card:has(.tm-phhlv) .tm-act{grid-column:1/-1}
  .tm .tm-phhlv{min-height:0;width:84px;margin:14px 0 0 12px}
  .tm .tm-card .tm-phhlv,.tm .tm-card .tm-phhlv.tm-noimg{min-height:0;height:auto;aspect-ratio:1/1}
  .tm .tm-phhlv .tm-mono{font-size:34px}
  .tm .tm-phhlv .tm-pill{font-size:10px;padding:2px 6px}
  .tm .tm-phhlv .tm-pill.tm-vd{top:4px;right:4px}.tm .tm-phhlv .tm-pill.tm-bestp{bottom:4px;left:4px}
  .tm .tm-card:has(.tm-phhlv) .tm-mid{padding:14px 14px 12px 12px}
  .tm .tm-ph.tm-noimg{min-height:120px}
  .tm .tm-ph.tm-noimg .tm-mono{font-size:52px}
  .tm .tm-act{border-left:none;border-top:1px dashed var(--line)}
}
