/* ==========================================================================
   Trang chủ — giao diện mới (mockup «Thanh Ha Runner» + «Thanh Ha Runner Mobile»)
   Tiền tố .th-  ·  mốc di động 860px (khớp thr-ui.css)
   ========================================================================== */
.t-home { background: var(--t-bg); color: var(--t-navy); overflow-x: clip; }
.t-home .th-m { display: none; }
.t-home h1, .t-home h2, .t-home h3, .t-home p { margin: 0; }
.th-btn-grad { display: inline-flex; align-items: center; gap: 10px; background: var(--t-grad-btn); color: #fff !important; font-weight: 600; border-radius: 999px; }
.th-btn-grad:hover { filter: brightness(1.05); }

/* Bản vẽ mockup hiển thị các khối rộng gần hết 1440px (khung max-width 1280 không ăn) → để 1440 cho khớp ảnh mockup. */
/* ---------- Hero (nền sáng) ---------- */
.th-hero { position: relative; min-height: 560px; background: #dbe9ee; overflow: hidden; }
.th-hero-bg { position: absolute; inset: 0; background: url('/images/ui/hero-bg-3.webp') center bottom/cover no-repeat; }
.th-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 32%, rgba(255,255,255,0) 50%); }
.th-hero-body { position: relative; max-width: 1440px; margin: 0 auto; padding: 122px 48px 120px 170px; box-sizing: border-box; }
.th-kicker { font-family: var(--t-display); font-weight: 700; letter-spacing: .35em; color: var(--t-teal); font-size: 15px; }
.t-home .th-h1 { margin: 6px 0 18px; font-family: var(--t-display); font-weight: 700; font-size: 76px; line-height: .9; color: var(--t-navy); }
.th-grad-i { font-style: italic; padding-right: 6px; background: var(--t-grad) left 80%/200% 200% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-home .th-lead { margin: 0 0 30px; max-width: 380px; font-size: 16px; line-height: 1.4; color: var(--t-navy); text-wrap: pretty; }
.th-hero-btns { display: flex; gap: 16px; }
.th-btn-main { display: flex; align-items: center; gap: 10px; background: var(--t-grad) 50% 89.5%/350% 750% no-repeat; color: #fff !important; font-weight: 600; padding: 13px 28px; border-radius: 999px; font-size: 15px; }
.th-btn-ghost { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--t-navy); color: var(--t-navy); font-weight: 600; padding: 12px 26px; border-radius: 999px; font-size: 15px; }
.t-home a.th-btn-ghost:hover { background: #f1f6f8; color: var(--t-navy); }
.th-hero-gap { display: none; }
.th-flash { margin-left: auto; margin-right: auto; }

/* ---------- Dải số liệu ---------- */
.th-stats-wrap { position: relative; z-index: 2; max-width: 1356px; margin: -28px auto 0; padding: 0 24px; box-sizing: border-box; }
.th-stats { background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(19,48,90,.1); display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); padding: 16px 0; }
.th-stat { display: flex; align-items: center; justify-content: center; gap: 22px; border-right: 1px solid #e3ebef; }
.th-stat:last-child { border-right: none; }
.th-stat svg { display: block; }
.th-stat-v { font-family: var(--t-display); font-weight: 700; font-size: 32px; line-height: 1; }
.th-stat-l { font-size: 14px; color: var(--t-muted); }

/* ---------- Khung khối chung ---------- */
.th-sec { max-width: 1440px; margin: 0 auto; padding: 8px clamp(20px, 5vw, 100px) 80px; box-sizing: border-box; }
.th-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.th-sec-head-c { align-items: center; }
.th-eyebrow { font-family: var(--t-display); font-weight: 700; letter-spacing: .15em; color: var(--t-teal); font-size: 14px; }
.th-eyebrow.sb, .th-h2-34.sb { font-weight: 600; }
.t-home .th-h2 { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--t-navy); }
.t-home .th-h2-34 { margin: 4px 0 0; font-family: var(--t-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--t-navy); }
.t-home .th-h2-big { margin: 6px 0 12px; font-family: var(--t-display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--t-navy); }
.th-more { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--t-teal) !important; }
.t-home a.th-more:hover { color: var(--t-navy) !important; }
.th-more-m { display: none; }
.th-flag { display: flex; align-items: center; gap: 12px; }

/* ---------- Về chúng tôi ---------- */
.th-about { max-width: 1440px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 100px) 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: stretch; box-sizing: border-box; }
.th-p { font-size: 15px; line-height: 1.7; color: var(--t-text-2); text-wrap: pretty; }
.th-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 22px; }
.th-value { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(19,48,90,.06); }
.th-value-h { display: flex; align-items: center; gap: 10px; }
.th-value-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #e6f1ef; display: flex; align-items: center; justify-content: center; }
.th-value-t { font-family: var(--t-display); font-weight: 700; font-size: 18px; color: var(--t-navy); }
.th-value-d { font-size: 13px; line-height: 1.4; color: var(--t-text-2); text-wrap: pretty; }
.th-about-btn { padding: 10px 26px; font-size: 15px; }
.th-about-btn-m { display: none; }
.th-outfit { position: relative; justify-self: center; width: 100%; max-width: 320px; display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 10px 36px rgba(19,48,90,.1); box-sizing: border-box; }
.th-outfit-tag { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--t-grad-btn); color: #fff; font-family: var(--t-display); font-weight: 700; letter-spacing: .08em; font-size: 12px; padding: 6px 13px; border-radius: 999px; }
.th-outfit-img { flex: 1; background: #f1f6f8; border-radius: 12px; padding: 24px 16px; display: flex; align-items: center; justify-content: center; }
.th-outfit-img img { width: 100%; max-width: 288px; height: auto; display: block; }
.th-outfit-cap { padding: 12px 4px 2px; }
.th-outfit-t { font-family: var(--t-display); font-weight: 700; font-size: 17px; color: var(--t-navy); }
.th-outfit-d { font-size: 12px; color: var(--t-text-2); }

/* ---------- Lịch tập ---------- */
.th-sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.th-sched-c { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 8px 30px rgba(19,48,90,.06); display: flex; flex-direction: column; gap: 8px; }
.th-sched-day { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-teal); }
.th-sched-t { font-family: var(--t-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.th-sched-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--t-text-2); }
.th-sched-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Thử thách ---------- */
.th-ch { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.5vw, 32px); align-items: center; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 8px 30px rgba(19,48,90,.08); }
.th-ch-img { position: relative; aspect-ratio: 16/9; flex: 0 1 380px; min-width: 240px; border-radius: 14px; overflow: hidden; background: #dfe9ec center 60%/cover no-repeat; }
.th-ch-badge { position: absolute; top: 14px; left: 14px; color: #fff; font-family: var(--t-display); font-weight: 700; letter-spacing: .06em; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--t-gold); }
.th-ch-badge.green { background: var(--t-green); }
.th-ch-body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.th-ch-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-chip-g { display: flex; align-items: center; gap: 6px; background: var(--t-mint-bg); color: var(--t-navy); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.th-chip-s { background: #eef3f6; color: var(--t-text-2); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.th-ch-txt { display: flex; flex-direction: column; gap: 8px; }
.t-home .th-ch-t { font-family: var(--t-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; color: var(--t-navy); text-wrap: pretty; }
.th-ch-p { font-size: 15px; line-height: 1.7; color: var(--t-text-2); text-wrap: pretty; }
.th-ch-info { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.th-ch-i { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 10px; border-radius: 12px; background: var(--t-soft); }
.th-ch-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; background: #e6f1ef; display: flex; align-items: center; justify-content: center; }
.th-ch-iv { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.th-ch-iv .l { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.th-ch-iv .v { font-size: clamp(13px, 1.15vw, 15px); line-height: 18px; font-weight: 600; color: var(--t-navy); overflow-wrap: anywhere; }
.th-ch-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #e6edf1; }
.th-ch-n { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t-text-2); }
.th-ch-n strong { color: var(--t-navy); }
.th-ch-btn { gap: 8px; font-size: 14px; padding: 10px 24px; }

/* ---------- BXH ---------- */
.th-bxh-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.th-board { flex: 2 1 520px; min-width: 0; background: #fff; border-radius: 20px; padding: 14px 18px 6px; box-shadow: 0 8px 30px rgba(19,48,90,.08); box-sizing: border-box; }
.th-tabs-wrap { position: relative; display: inline-block; max-width: 100%; border-radius: 999px; background: #eef3f6; margin-bottom: 4px; overflow: hidden; vertical-align: top; }
.th-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; }
.th-tab { border: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--t-text-2); white-space: nowrap; transition: background .2s, color .2s; }
.th-tab.on { background: var(--t-grad-btn); color: #fff; }
.th-fade { display: none; }
.th-pane[hidden] { display: none !important; }
.th-board-empty { padding: 28px 8px; text-align: center; color: var(--t-muted); font-size: 14px; }
.th-row { display: grid; grid-template-columns: 36px 36px minmax(110px, 1fr) minmax(60px, 1.4fr) auto; align-items: center; gap: 14px; padding: 7px 4px; border-top: 1px solid var(--t-line); }
.th-row:first-child { border-top: none; }
.th-rank { display: flex; align-items: center; min-width: 0; }
.th-rank img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.th-rank b { font-family: var(--t-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--t-navy); }
.th-av { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #e6f1ef; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8e2e8; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: var(--t-teal); overflow: hidden; box-sizing: border-box; }
.th-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-av.sm { width: 32px; height: 32px; font-size: 11px; border: none; box-shadow: none; }
.th-av.me { background: var(--t-grad-btn); color: #fff; }
.th-nm { min-width: 0; }
.th-nm .n { font-weight: 600; font-size: 15px; color: var(--t-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-nm .s { font-size: 12px; line-height: 1.3; color: var(--t-muted); }
.th-bar { height: 8px; border-radius: 999px; background: #e6f1ef; overflow: hidden; }
.th-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #17987a, #13305a); }
.th-val { text-align: right; white-space: nowrap; }
.th-val b { font-family: var(--t-display); font-weight: 700; font-size: 22px; line-height: 1; color: var(--t-navy); }
.th-val span { font-size: 13px; color: var(--t-muted); margin-left: 4px; }
.th-podium, .th-rest, .th-mine { display: none; }
.th-strava { flex: 1 1 260px; position: relative; min-height: 260px; border-radius: 20px; overflow: hidden; background: #13305a url('/images/ui/strava-bg.webp') 75% center/cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; box-sizing: border-box; }
.th-strava-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,36,60,.92) 0%, rgba(14,36,60,.7) 45%, rgba(14,36,60,.1) 100%); }
.th-strava-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.th-strava-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--t-strava); display: flex; align-items: center; justify-content: center; }
.th-strava-t { font-family: var(--t-display); font-weight: 700; font-size: 28px; line-height: 1; }
.th-strava p { font-size: 14px; line-height: 1.5; color: #fff; max-width: 260px; text-wrap: pretty; }
.th-strava-btn { display: flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--t-strava); color: #fff !important; font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: 999px; }
.t-home a.th-strava-btn:hover { background: #e04300; color: #fff !important; }

/* ---------- Thư viện ---------- */
.th-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.th-al { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff !important; background: #dfe9ec; transition: box-shadow .2s; }
.th-al:hover { box-shadow: 0 10px 28px rgba(19,48,90,.18); }
.th-al-bg { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .6s; }
.th-al:hover .th-al-bg { transform: scale(1.04); }
.th-al-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,36,60,0) 45%, rgba(14,36,60,.85) 100%); }
.th-al-cat { display: none; }
.th-al-txt { position: relative; display: flex; flex-direction: column; gap: 4px; }
.th-al-t { font-family: var(--t-display); font-weight: 600; font-size: 20px; line-height: 1.1; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-al-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; }
.th-al-all { padding: 18px; background: #13305a; }
.th-al-all .th-al-bg { background-position: 75% center; }
.th-al-all .th-al-shade { background: linear-gradient(180deg, rgba(14,36,60,.35) 0%, rgba(14,36,60,.9) 75%); }
.th-al-all .th-al-txt { gap: 10px; }
.th-al-ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.th-al-t2 { font-family: var(--t-display); font-weight: 600; font-size: 22px; line-height: 1.05; }
.th-al-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.4; }
.th-al-f i { font-style: normal; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; box-sizing: border-box; }
.th-lib-prog { display: none; }

/* ---------- Bản tin ---------- */
.th-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.th-post { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 30px rgba(19,48,90,.06); color: var(--t-navy) !important; }
.th-post-img { position: relative; display: block; aspect-ratio: 16/9; background: #dfe9ec center/cover no-repeat; }
.th-post-cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--t-teal); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.th-post-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.th-post-m { font-size: 12px; color: var(--t-muted); }
.th-post-t { font-family: var(--t-display); font-weight: 700; font-size: 21px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-post-p { font-size: 14px; line-height: 1.6; color: var(--t-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-post-go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--t-teal); }

/* ---------- Tài trợ ---------- */
.th-spons { display: flex; flex-wrap: wrap; gap: 14px; }
.th-spon { width: 150px; height: 86px; background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(19,48,90,.06); display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; font-weight: 700; color: var(--t-text-2) !important; transition: box-shadow .2s, transform .2s; }
.th-spon:hover { box-shadow: 0 10px 24px rgba(19,48,90,.12); transform: translateY(-2px); }
.th-spon img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- CTA ---------- */
.th-cta-sec { padding-top: 0; }
.th-cta { position: relative; border-radius: 22px; overflow: hidden; background: #13305a url('/images/ui/cta-bg.webp') right center/cover no-repeat; padding: 16px clamp(20px, 3vw, 40px); min-height: 90px; display: flex; align-items: center; }
.th-cta-img { display: none; }
.th-cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,36,60,.92) 0%, rgba(14,36,60,.7) 38%, rgba(14,36,60,0) 70%); }
.th-cta-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.th-cta-k { font-family: var(--t-display); font-weight: 600; letter-spacing: .25em; color: #fff; font-size: 11px; }
.t-home .th-cta-t { font-family: var(--t-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: .95; color: #fff; }
.th-cta-p { max-width: 440px; font-size: 12px; line-height: 1.45; color: #d5e2ea; }
.th-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.th-cta-main { display: flex; align-items: center; gap: 6px; background: var(--t-grad) 50% 89.5%/350% 750% no-repeat; color: #fff !important; font-weight: 600; font-size: 12px; padding: 7px 16px; border-radius: 999px; }
.th-cta-ghost { display: flex; align-items: center; gap: 8px; border: 1.5px solid #fff; color: #fff !important; font-weight: 600; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.t-home a.th-cta-ghost:hover { background: rgba(255,255,255,.12); }

/* ==========================================================================
   Di động (≤860px) — theo «Thanh Ha Runner Mobile»
   ========================================================================== */
@media (max-width: 860px) {
    .t-home .th-d { display: none !important; }
    .t-home .th-m { display: revert; }

    .th-hero { min-height: 0; padding: 92px 20px 64px; background: #dbe9ee url('/images/ui/hero-mobile.webp') center 35%/cover no-repeat; }
    .th-hero-bg { display: none; }
    .th-hero-shade { background: linear-gradient(180deg, rgba(243,248,247,.95) 0%, rgba(243,248,247,.82) 45%, rgba(243,248,247,.1) 75%, rgba(243,248,247,0) 100%); }
    .th-hero-body { padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .th-kicker { letter-spacing: .32em; font-size: 13px; }
    .t-home .th-h1 { margin: 8px 0 14px; font-size: 58px; }
    .th-grad-i { padding-right: 4px; }
    .t-home .th-lead { margin: 0; font-size: 15px; line-height: 1.6; max-width: 320px; }
    .th-hero-gap { display: block; height: 190px; }
    .th-hero-btns { width: 100%; gap: 10px; }
    .th-btn-main, .th-btn-ghost { flex: 1; white-space: nowrap; justify-content: center; min-height: 50px; padding: 0 10px; box-sizing: border-box; }
    .th-btn-main { gap: 6px; box-shadow: 0 6px 18px rgba(23,152,122,.35); }
    .th-btn-ghost { background: rgba(255,255,255,.92); border-color: #fff; }
    .th-flash { margin: 12px 16px 0; }

    .th-stats-wrap { margin: -36px 16px 0; padding: 0; }
    .th-stats { border-radius: 16px; box-shadow: 0 8px 24px rgba(19,48,90,.12); padding: 14px 4px; }
    .th-stat { flex-direction: column; gap: 4px; text-align: center; min-width: 0; }
    .th-stat > div { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
    .th-stat-v { font-size: 20px; }
    .th-stat-l { font-size: 11px; }

    .th-sec { padding: 40px 20px 8px; }
    .th-sec-head { flex-wrap: nowrap; gap: 12px; margin-bottom: 14px; }
    .th-eyebrow { font-size: 13px; }
    .t-home .th-h2 { font-size: 26px; }
    .t-home .th-h2-34 { font-size: 28px; }
    .th-more { font-size: 13px; padding: 10px 0; white-space: nowrap; gap: 4px; }
    .th-flag { gap: 10px; }
    .th-flag svg { width: 28px; height: 24px; }

    .th-about { display: block; padding: 40px 20px 8px; }
    .t-home .th-h2-big { margin: 6px 0 10px; font-size: 28px; }
    .t-home .th-h2-big br { display: none; }
    .th-p { font-size: 14px; line-height: 1.6; }
    .th-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
    .th-value { align-items: center; padding: 12px 6px; text-align: center; }
    .th-value-h { flex-direction: column; gap: 6px; }
    .th-value-ic svg { width: 18px; height: 18px; }
    .th-value-t { font-size: 15px; line-height: 1; }
    .th-value-d { font-size: 11px; line-height: 1.35; }
    .th-about-btn { display: none; }
    .th-about-btn-m { margin-top: 16px; display: flex; justify-content: center; gap: 8px; min-height: 48px; font-size: 15px; }
    .th-outfit { max-width: none; flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; box-shadow: 0 6px 20px rgba(19,48,90,.08); }
    .th-outfit > .th-outfit-tag { display: none; }
    .th-outfit-img { width: 104px; flex: none; aspect-ratio: 1; padding: 8px; box-sizing: border-box; }
    .th-outfit-cap { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; }
    .th-outfit-cap .th-outfit-tag { position: static; font-size: 11px; padding: 4px 10px; }
    .th-outfit-t { line-height: 1; }
    .th-outfit-d { line-height: 1.4; }

    .th-sched { grid-template-columns: 1fr; gap: 10px; }
    .th-sched-c { padding: 14px 16px; border-radius: 16px; }

    .th-ch { display: block; padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(19,48,90,.08); }
    .th-ch-img { display: block; min-width: 0; border-radius: 0; }
    .th-ch-badge { top: 12px; left: 12px; font-size: 13px; padding: 5px 12px; }
    .th-ch-body { padding: 16px; gap: 12px; }
    .th-chip-g, .th-chip-s { font-size: 12px; padding: 5px 11px; }
    .t-home .th-ch-t { font-size: 22px; }
    .th-ch-p { font-size: 14px; line-height: 1.65; }
    .th-ch-info { display: flex; gap: 0; border-radius: 12px; background: var(--t-soft); }
    .th-ch-i { flex: 1; padding: 7px 8px; gap: 0; background: none; border-radius: 0; border-left: 1px solid #e1eaee; }
    .th-ch-i:first-child { border-left: none; }
    .th-ch-ic { display: none; }
    .th-ch-iv { gap: 0; }
    .th-ch-iv .l { font-size: 10px; line-height: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
    .th-ch-iv .v { font-size: 13px; line-height: 16px; white-space: nowrap; overflow-wrap: normal; }
    .th-ch-foot { flex-wrap: nowrap; gap: 12px; padding-top: 12px; }
    .th-ch-n { font-size: 13px; }
    .th-ch-n svg { display: none; }
    .th-ch-btn { min-height: 44px; padding: 0 20px; gap: 6px; flex: none; }

    .th-bxh .th-sec-head { margin: 0 0 14px; }
    .th-bxh-grid { display: block; }
    .th-board { padding: 12px 12px 8px; box-shadow: 0 8px 24px rgba(19,48,90,.08); }
    .th-tabs-wrap { display: block; margin: 0; }
    .th-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 40px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .th-tabs::-webkit-scrollbar { display: none; }
    .th-tab { flex: none; scroll-snap-align: center; font-size: 12px; min-height: 36px; padding: 0 14px; }
    .th-fade { display: block; position: absolute; top: 0; bottom: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
    .th-fade.l { left: 0; width: 28px; background: linear-gradient(90deg, #eef3f6, rgba(238,243,246,0)); }
    .th-fade.r { right: 0; width: 36px; background: linear-gradient(270deg, #eef3f6, rgba(238,243,246,0)); }
    .th-tabs-wrap.fl .th-fade.l, .th-tabs-wrap.fr .th-fade.r { opacity: 1; }
    .th-rows { display: none; }
    .th-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; margin-top: 18px; }
    .th-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
    .th-pod-av { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #e6f1ef; border: 3px solid; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--t-teal); box-sizing: border-box; }
    .th-pod-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    /* Huy chương đặt ở chân ảnh đại diện (thay chấm số cũ); cột bục để trơn */
    .th-pod-av img.th-pod-medal { inset: auto; bottom: -13px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 0; object-fit: contain; z-index: 1; filter: drop-shadow(0 2px 3px rgba(19, 48, 90, .25)); }
    .th-pod.p1 .th-pod-av img.th-pod-medal { width: 32px; height: 32px; bottom: -15px; }
    .th-pod.p1 .th-pod-av { width: 64px; height: 64px; }
    .th-pod-n { margin-top: 6px; font-weight: 600; font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .th-pod-v { line-height: 1; }
    .th-pod-v b { font-family: var(--t-display); font-weight: 700; font-size: 20px; }
    .th-pod-v span { font-size: 11px; color: var(--t-muted); margin-left: 2px; }
    .th-pod-b { width: 100%; border-radius: 12px 12px 4px 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; box-sizing: border-box; }
    .th-pod-b img { width: 34px; height: 34px; object-fit: contain; }
    /* Số hạng trên cột bục: nền tròn mờ */
    .th-pod-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .28); border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; font-family: var(--t-display); font-weight: 700; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-shadow: 0 1px 2px rgba(19, 48, 90, .25); }
    .th-pod.p1 .th-pod-num { width: 34px; height: 34px; font-size: 21px; margin-top: 4px; }
    .th-pod.p3 .th-pod-b { padding-top: 3px; }
    .th-pod.p1 .th-pod-b { height: 64px; background: var(--t-grad) 50% 89.5%/350% 750% no-repeat; }
    .th-pod.p2 .th-pod-b { height: 46px; background: linear-gradient(180deg, #9fb3bd, #7f96a2); }
    .th-pod.p3 .th-pod-b { height: 34px; background: linear-gradient(180deg, #e39a5a, #c9733a); }
    .th-rest { display: flex; flex-direction: column; margin-top: 10px; }
    .th-rest-r { display: grid; grid-template-columns: 26px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--t-line); }
    .th-rest-k { font-family: var(--t-display); font-weight: 700; font-size: 18px; color: var(--t-navy); }
    .th-nm .n { font-size: 14px; }
    .th-nm .s { font-size: 11px; }
    .th-val.sm b { font-size: 18px; }
    .th-val.sm span { font-size: 11px; margin-left: 2px; }
    .th-mine { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: #e6f4ef; border: 1px solid #bfe3d6; color: var(--t-navy) !important; }
    .th-mine-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-teal); }
    .th-mine-r { display: grid; grid-template-columns: 34px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .th-mine-k { font-family: var(--t-display); font-weight: 700; font-size: 20px; color: var(--t-teal); }
    .th-mine-bar { height: 5px; border-radius: 999px; background: #cfe9df; overflow: hidden; }
    .th-mine-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #17987a, #13305a); }
    .th-mine-none { font-size: 13px; color: var(--t-text-2); }
    .th-more-m { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--t-teal) !important; }
    .th-strava { min-height: 0; margin-top: 8px; padding: 22px 20px; display: block; }
    .th-strava-shade { background: linear-gradient(100deg, rgba(14,36,60,.92) 0%, rgba(14,36,60,.72) 55%, rgba(14,36,60,.2) 100%); }
    .th-strava-ic { width: 44px; height: 44px; }
    .th-strava-ic svg { width: 22px; height: 22px; }
    .th-strava-t { font-size: 24px; }
    .th-strava p { max-width: 240px; }
    .th-strava-btn { min-height: 44px; padding: 0 20px; margin-top: 0; }

    .th-lib { padding: 40px 0 8px; }
    .th-lib-head { padding: 0 20px; margin-bottom: 0; }
    .th-lib-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 16px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .th-lib-grid::-webkit-scrollbar { display: none; }
    .th-al { flex: none; width: 250px; scroll-snap-align: start; scroll-snap-stop: always; box-shadow: 0 8px 20px rgba(19,48,90,.12); box-sizing: border-box; }
    .th-al-shade { background: linear-gradient(180deg, rgba(14,36,60,0) 40%, rgba(14,36,60,.85) 100%); }
    .th-al-cat { display: block; position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--t-teal); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
    .th-al-txt { gap: 5px; }
    .th-al-t { font-size: 21px; line-height: 1.08; }
    .th-al-m svg { display: none; }
    .th-al-all { padding: 12px; box-shadow: none; }
    .th-al-all .th-al-shade { background: linear-gradient(180deg, rgba(14,36,60,.4) 0%, rgba(14,36,60,.92) 75%); }
    .th-al-all .th-al-txt { gap: 8px; }
    .th-al-ic { width: 36px; height: 36px; border-radius: 10px; }
    .th-al-ic svg { width: 18px; height: 18px; }
    .th-al-f { font-size: 11px; }
    .th-lib-prog { display: block; margin: 10px 20px 0; height: 3px; border-radius: 999px; background: #dfe9ec; overflow: hidden; }
    .th-lib-prog i { display: block; height: 100%; width: 30%; border-radius: 999px; background: var(--t-teal); transition: transform .15s; }

    .th-posts { display: flex; overflow-x: auto; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
    .th-posts::-webkit-scrollbar { display: none; }
    .th-post { flex: none; width: 270px; scroll-snap-align: start; }
    .th-spons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .th-spon { width: auto; height: 70px; padding: 10px; font-size: 13px; text-align: center; }

    .th-cta-sec { padding: 32px 20px 40px; }
    .th-cta { display: block; padding: 0; min-height: 0; background: var(--t-dark); box-shadow: 0 12px 30px rgba(14,36,60,.22); }
    .th-cta-img { display: block; position: relative; height: 170px; background: #13305a url('/images/ui/cta-bg.webp') 92% 40%/auto 100% no-repeat; }
    .th-cta-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,60,0) 45%, #0e2a3c 100%); }
    .th-cta-img span { position: absolute; top: 14px; left: 16px; z-index: 1; font-family: var(--t-display); font-weight: 600; letter-spacing: .25em; color: #fff; font-size: 11px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
    .th-cta-shade, .th-cta-k { display: none; }
    .th-cta-in { padding: 2px 18px 18px; gap: 14px; align-items: stretch; }
    .t-home .th-cta-t { font-size: 30px; }
    .th-cta-t span { background: var(--t-grad) right center/200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
    .th-cta-p { font-size: 13px; }
    .th-cta-btns { flex-wrap: nowrap; margin: 0; }
    .th-cta-main, .th-cta-ghost { flex: 1; justify-content: center; min-height: 48px; font-size: 14px; white-space: nowrap; padding: 0 10px; box-sizing: border-box; }
    .th-cta-ghost { border-color: rgba(255,255,255,.7); }
}

/* Chấm đỏ nhấp nháy kiểu «REC» cạnh tiêu đề THỬ THÁCH CLB */
.th-rec { position: relative; width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.th-rec::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(229, 56, 59, .35); animation: th-rec-song 1.6s ease-out infinite; }
.th-rec i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #e5383b; box-shadow: 0 0 0 3px #fff, 0 0 10px rgba(229, 56, 59, .6); animation: th-rec-nhay 1.6s ease-in-out infinite; }
@keyframes th-rec-song { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes th-rec-nhay { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 860px) { .th-rec { width: 22px; height: 22px; } .th-rec i { width: 12px; height: 12px; } }
@media (prefers-reduced-motion: reduce) { .th-rec::before, .th-rec i { animation: none; } }
