/**
 * MỤC ĐÍCH: Hồ sơ vận động viên theo mockup duyệt 16/10/2026 — thanh dọc, đầu trang tối có sọc đỏ, thẻ trắng nổi.
 * PHỤ THUỘC: tokens.css (Barlow / Barlow Condensed, --vbf-red-pf), site.css.
 * ADMIN SỬA ĐƯỢC: không.
 * MỞ RỘNG: không.
 * GỠ AN TOÀN: gỡ cùng templates/profile-athlete.php.
 */

.vbf-pf { display: flex; background: #f1f2f5; font-family: var(--vbf-font-ui); color: #1c202b; }
.vbf-pf__main { flex: 1; min-width: 0; }
.vbf-pf h1, .vbf-pf h2, .vbf-pf h3 { font-family: var(--vbf-font-cond); }

/* ---------- Thanh dọc ---------- */
.vbf-pf__rail { flex: none; width: 76px; background: #0a0c14; display: flex; flex-direction: column; align-items: stretch; padding: 44px 0 22px; position: relative; }
.vbf-pf__rail a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 4px; color: #c9cedd; text-align: center; transition: background .18s ease, box-shadow .18s ease; }
.vbf-pf__rail a:hover { background: rgba(216, 31, 48, .16); box-shadow: inset 3px 0 0 var(--vbf-red-pf); color: #fff; }
.vbf-pf__rail a.is-active { background: var(--vbf-red-pf); color: #fff; box-shadow: none; }
.vbf-pf__rail .vbf-ico { font-size: 22px; }
.vbf-pf__rail span { font: 700 11px/1.2 var(--vbf-font-cond); letter-spacing: .09em; }
.vbf-pf__mark { margin: auto auto 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--vbf-font-cond); letter-spacing: .06em; color: #fff; }
@media (max-width: 899px) { .vbf-pf__rail { display: none; } }

/* ---------- Đầu trang ---------- */
.vbf-pfh { position: relative; overflow: hidden; background: #0a0c14; padding: 0 clamp(14px, 2.4vw, 40px) 130px; }
.vbf-pfh__deco span { position: absolute; pointer-events: none; }
.vbf-pfh__deco span:nth-child(1) { inset: 0; background: radial-gradient(120% 100% at 78% 8%, rgba(216, 31, 48, .55) 0%, rgba(216, 31, 48, .12) 42%, rgba(10, 12, 20, 0) 70%); }
.vbf-pfh__deco span:nth-child(2) { top: -60px; right: -120px; width: 900px; height: 620px; transform: rotate(-18deg); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, rgba(255, 255, 255, 0) 2px 26px), repeating-linear-gradient(90deg, rgba(216, 31, 48, .45) 0 6px, rgba(216, 31, 48, 0) 6px 64px); }
.vbf-pfh__deco span:nth-child(3) { left: -80px; top: 120px; width: 620px; height: 520px; transform: rotate(-18deg); background: repeating-linear-gradient(90deg, rgba(216, 31, 48, .22) 0 4px, rgba(216, 31, 48, 0) 4px 90px); }
.vbf-crumbs--pf { position: relative; padding: 22px 0 26px; font-size: 13.5px; color: #a5abbb; gap: 11px; }
.vbf-crumbs--pf a { color: #a5abbb; }
.vbf-crumbs--pf > span:not([aria-current]) { color: #5c6274; }
.vbf-crumbs--pf [aria-current] { color: #fff; font-weight: 600; }
.vbf-pfh__grid { position: relative; display: grid; grid-template-columns: minmax(0, 278px) minmax(0, 1fr) minmax(0, 272px); gap: 32px clamp(20px, 2.4vw, 40px); align-items: start; }
.vbf-pfh__ring { display: block; width: 100%; aspect-ratio: 1 / 1; box-sizing: border-box; padding: 5px; border-radius: 50%; background: linear-gradient(150deg, #ff2f43, #8d0d1a); box-shadow: 0 20px 60px rgba(216, 31, 48, .35); }
.vbf-pfh__ring > span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #12141d; }
.vbf-pfh__ring img { width: 100%; height: 100%; object-fit: cover; }
.vbf-pfh__id { min-width: 0; padding-top: 14px; }
.vbf-pfh__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.vbf-pfh__code, .vbf-pfh__type { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: 6px; font: 700 16px var(--vbf-font-cond); letter-spacing: .06em; color: #fff; }
.vbf-pfh__code { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.vbf-pfh__type { padding: 0 18px; background: var(--vbf-red-pf); letter-spacing: .07em; }
.vbf-pfh__type .vbf-ico { font-size: 15px; }
.vbf-pfh__name { color: #fff; font: 800 clamp(30px, 3.6vw, 52px)/1.02 var(--vbf-font-cond); padding-bottom: .04em; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.vbf-pfh__rule { display: block; width: 74px; height: 3px; margin: 16px 0 10px; background: var(--vbf-red-pf); }
.vbf-pfh__pos { font: 700 20px var(--vbf-font-cond); letter-spacing: .13em; color: #c9cedd; text-transform: uppercase; }
.vbf-pfh__facts { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 18px clamp(20px, 3vw, 44px); margin-top: 26px; }
.vbf-pfh__fact { display: flex; gap: 11px; }
.vbf-pfh__fact .vbf-ico { font-size: 21px; color: #e8384a; }
.vbf-pfh__fact span { display: flex; flex-direction: column; }
.vbf-pfh__fact strong { font-size: 17px; font-weight: 600; line-height: 1.2; color: #fff; }
.vbf-pfh__fact small { margin-top: 3px; font-size: 12.5px; color: #9aa1b3; }
.vbf-pfh__teams { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: 28px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.vbf-pfh__team { display: flex; align-items: center; gap: 14px; padding: 16px 30px 16px 22px; color: inherit; transition: background .32s cubic-bezier(.2, .7, .3, 1), transform .32s cubic-bezier(.2, .7, .3, 1), box-shadow .32s ease; }
.vbf-pfh__team + .vbf-pfh__team { border-left: 1px solid #e5e7ec; }
.vbf-pfh__team:hover { background: linear-gradient(180deg, #fff, #fdf3f4); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(216, 31, 48, .16); color: inherit; }
.vbf-pfh__teamlogo { width: 46px; height: 46px; flex: none; border-radius: 4px; overflow: hidden; background: #f1f2f5; }
.vbf-pfh__teamlogo img { width: 100%; height: 100%; object-fit: contain; }
.vbf-pfh__team strong { display: block; font: 700 19px var(--vbf-font-cond); letter-spacing: .05em; color: #111318; }
.vbf-pfh__team small { display: block; margin-top: 2px; font-size: 13px; color: #7b8090; }

.vbf-share { box-sizing: border-box; padding: 18px 16px 16px; border-radius: 10px; border-top: 3px solid var(--vbf-red-pf); background: #fff; box-shadow: 0 16px 44px rgba(0, 0, 0, .32); }
.vbf-share h2 { color: #111318; font: 700 16px var(--vbf-font-cond); letter-spacing: .08em; text-transform: uppercase; }
.vbf-share__btns { display: flex; gap: 12px; margin-top: 14px; }
.vbf-share__btns a, .vbf-share__btns button { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: #111318; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.vbf-share__btns a:hover, .vbf-share__btns button:hover, .vbf-share__btns .is-done { background: var(--vbf-red-pf); color: #fff; transform: translateY(-3px); }
.vbf-share h3 { margin-top: 18px; color: #7b8090; font: 700 14.5px var(--vbf-font-cond); letter-spacing: .09em; text-transform: uppercase; }
.vbf-share__qr { margin-top: 10px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #fff; }
.vbf-share__qr svg { width: 100%; height: 100%; }
.vbf-share__qr a { font-weight: 700; color: var(--vbf-red-pf); }
.vbf-share > p { margin-top: 12px; text-align: center; font-size: 13px; color: #7b8090; }

/* ---------- Thân: thẻ trắng nổi lên mép đầu trang ---------- */
.vbf-pfb { position: relative; z-index: 3; margin-top: -96px; padding: 0 clamp(14px, 2.4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.vbf-pfb__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px; align-items: start; }
.vbf-box { position: relative; overflow: hidden; padding: 26px 30px 30px; border-radius: 10px; background: #fff; box-shadow: 0 4px 20px rgba(15, 20, 35, .07); transition: box-shadow .28s ease, transform .28s ease; }
.vbf-box:hover { box-shadow: 0 16px 44px rgba(15, 20, 35, .15); transform: translateY(-3px); }
.vbf-box--flush { padding: 26px 0 30px; }
.vbf-box--flush .vbf-box__h { padding: 0 30px; }
.vbf-box__h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #111318; font: 700 24px/1.15 var(--vbf-font-cond); letter-spacing: .06em; text-transform: uppercase; }
.vbf-box__h > span { width: 34px; height: 34px; flex: none; border-radius: 7px; background: #fdeaec; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--vbf-red-pf); }
.vbf-box__h--plain { margin: 0; font-size: 23px; }
.vbf-box__ring { position: absolute; right: -40px; bottom: -30px; width: 230px; height: 230px; border-radius: 50%; border: 2px solid #eef0f3; pointer-events: none; }
.vbf-box__prose { position: relative; max-width: 470px; font-size: 15.5px; line-height: 1.75; color: #4b5160; text-wrap: pretty; }
.vbf-box__prose p + p { margin-top: 18px; }
.vbf-box__empty { color: #7b8090; font-size: 14.5px; }
.vbf-info > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid #eef0f3; }
.vbf-info > div:last-child { border-bottom: 0; }
.vbf-info dt { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #7b8090; }
.vbf-info dt .vbf-ico { font-size: 16px; color: var(--vbf-red-pf); }
.vbf-info dd { margin: 0; font-size: 15px; font-weight: 600; color: #1c202b; }

.vbf-ach { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vbf-ach__item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 18px; border-right: 1px solid #eef0f3; text-align: center; transition: background .22s ease, transform .22s ease; }
.vbf-ach__item:last-child { border-right: 0; }
.vbf-ach__item:hover { background: #fdf3f4; transform: translateY(-3px); }
.vbf-ach__item .vbf-ico { font-size: 42px; color: var(--vbf-red-pf); }
.vbf-ach__item .vbf-ico.is-gold { color: #e8a020; }
.vbf-ach__item strong { font-size: 14px; font-weight: 600; line-height: 1.4; color: #1c202b; }
.vbf-ach__item span { font-size: 13.5px; line-height: 1.5; color: #7b8090; }

.vbf-comp { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.vbf-comp__item { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 14px; border: 1px solid #eaecf0; border-radius: 9px; background: #fff; color: inherit; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.vbf-comp__item:hover { border-color: #f3b6bd; box-shadow: 0 12px 26px rgba(216, 31, 48, .14); transform: translateY(-4px); color: inherit; }
.vbf-comp__top { display: flex; align-items: flex-start; gap: 12px; }
.vbf-comp__logo { width: 46px; height: 46px; flex: none; border-radius: 4px; overflow: hidden; background: #fdeaec; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--vbf-red-pf); }
.vbf-comp__logo img { width: 100%; height: 100%; object-fit: contain; }
.vbf-comp__top strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; color: #1c202b; }
.vbf-comp__top small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: #7b8090; }
.vbf-comp__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 13px; font-weight: 600; color: #4b5160; }
.vbf-comp__bottom .vbf-ico { font-size: 17px; color: var(--vbf-red-pf); }

.vbf-hist li { display: grid; grid-template-columns: 24px minmax(88px, 118px) minmax(110px, 1fr) minmax(92px, 128px); align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f3f6; font-size: 14.5px; }
.vbf-hist li:last-child { border-bottom: 0; }
.vbf-hist__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--vbf-red-pf); box-shadow: 0 0 0 4px #fdeaec; }
.vbf-hist strong { font-weight: 700; color: #1c202b; }
.vbf-hist a { color: #4b5160; }
.vbf-hist a:hover { color: var(--vbf-red-pf); }
.vbf-hist li > span:last-child { font-size: 14px; color: #7b8090; }
.vbf-box__hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.vbf-box__hrow a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--vbf-red-pf); transition: gap .2s ease; }
.vbf-box__hrow a:hover { gap: 13px; color: #a3121f; }
.vbf-mates { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 180px)); gap: 18px; }
.vbf-mate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; text-align: center; transition: transform .24s ease, background .24s ease; }
.vbf-mate:hover { transform: translateY(-5px); background: #fdf3f4; color: inherit; }
.vbf-mate__img { width: 96px; height: 96px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; background: #f1f2f5; }
.vbf-mate__img img { width: 100%; height: 100%; object-fit: cover; }
.vbf-mate strong { font-size: 13.5px; font-weight: 600; color: #1c202b; }
.vbf-mate small { font-size: 13px; color: #7b8090; }


/* ---------- Màn hẹp (mockup không vẽ — suy từ lưới auto-fit của mockup) ---------- */
@media (max-width: 1199px) {
	.vbf-pfh__grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
	.vbf-share { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; max-width: 560px; }
	.vbf-share__qr { grid-row: 1 / span 4; grid-column: 2; width: 140px; margin: 0; }
	.vbf-share > p { text-align: left; margin: 0; }
}
@media (max-width: 759px) {
	.vbf-pfh { padding-bottom: 110px; }
	.vbf-pfh__grid { grid-template-columns: 1fr; }
	.vbf-pfh__photo { width: min(240px, 70vw); margin: 0 auto; }
	.vbf-pfh__id { padding-top: 0; }
	.vbf-pfh__teams { flex-direction: column; width: 100%; }
	.vbf-pfh__team + .vbf-pfh__team { border-left: 0; border-top: 1px solid #e5e7ec; }
	.vbf-share__qr { width: 110px; }
	.vbf-box { padding: 22px 18px 24px; }
	.vbf-box--flush { padding: 22px 0 24px; }
	.vbf-box--flush .vbf-box__h { padding: 0 18px; }
	.vbf-box__h { font-size: 21px; }
	.vbf-info > div { grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 10px; }
	.vbf-ach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vbf-ach__item { border-bottom: 1px solid #eef0f3; }
	.vbf-hist li { grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; }
	.vbf-hist li > :nth-child(n+3) { grid-column: 2; }
	}

/* "Được nhắc tới trong" — đồ thị tri thức (Skeleton.md §0.1). */
.vbf-cited { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.vbf-cited a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid #ececf0; border-radius: 10px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.vbf-cited a:hover { border-color: #f1c5c8; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16, 28, 46, .08); color: inherit; }
.vbf-cited small { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d81f30; }
.vbf-cited strong { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: #1c202b; }

/* SIDE TOOL (chủ site 18/10/2026: "chiều ngang nhỏ nhất, không chiếm hết chiều dọc, bar dọc ngắn vừa đủ các tool, premium, minimalist, ưu tiên icon"):
   viên dọc nổi, cố định giữa mép trái màn hình, rộng 52 px; chỉ icon trong ô tròn 40 px; nhãn bật ra bên phải khi rê/focus; mục đang ở = tròn đỏ.
   Chỉ hiện khi còn chỗ trống bên trái nội dung (≥ 1280 px) — không bao giờ đè lên chữ. */
.vbf-pf__rail { position: fixed; z-index: 45; left: 14px; top: 50%; transform: translateY(-50%); width: 52px; padding: 6px; gap: 4px; align-items: center; border-radius: 999px;
	background: rgba(16, 28, 46, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 36px -12px rgba(10, 18, 32, .55); box-sizing: border-box; }
body .vbf-pf__rail { padding-top: 6px; }
.vbf-pf__rail a { position: relative; width: 40px; height: 40px; padding: 0; gap: 0; display: grid; place-items: center; border-radius: 50%; color: #b7c1d1; background: none; box-shadow: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.vbf-pf__rail a:hover, .vbf-pf__rail a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }
.vbf-pf__rail a.is-active { background: #e01b24; color: #fff; box-shadow: 0 6px 16px rgba(225, 29, 38, .45); }
.vbf-pf__rail a:last-child { margin-top: 4px; }
.vbf-pf__rail a:last-child::before { content: ""; position: absolute; top: -6px; left: 10px; right: 10px; height: 1px; background: rgba(255, 255, 255, .12); }
.vbf-pf__rail .vbf-ico { font-size: 19px; }
.vbf-pf__rail .vbf-pf__tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-6px, -50%); padding: 7px 11px; border-radius: 8px; background: #101c2e; color: #fff; font: 600 12px/1 var(--vbf-font); letter-spacing: .02em; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 8px 20px rgba(10, 18, 32, .35); transition: opacity .18s ease, transform .18s ease; }
.vbf-pf__rail a:hover .vbf-pf__tip, .vbf-pf__rail a:focus-visible .vbf-pf__tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1279px) { .vbf-pf__rail { display: none; } }

/* Side tool nền ĐEN (chủ site 19/10/2026). */
.vbf-pf__rail { background: rgba(0, 0, 0, .92); border-color: rgba(255, 255, 255, .1); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6); }
.vbf-pf__rail .vbf-pf__tip { background: #000; }


