/* Shared country-backed profile heroes for the directory and public fighter pages. */
.profile-country-hero {position:relative;isolation:isolate;overflow:hidden;background:#101724;color:#fff;border:1px solid #ffffff20;border-radius:18px;}
.profile-country-hero .profile-flag {position:absolute;inset:22px 18px 22px auto;width:54%;z-index:-1;overflow:visible;pointer-events:none;}
.profile-country-hero .profile-flag img {display:block;width:100%;height:100%;object-fit:contain;opacity:.62;transform:scale(.94);}
.profile-country-hero .profile-flag span {position:absolute;inset:0;background:linear-gradient(110deg,#0c142340 10%,#11182720 50%,#10172410),repeating-linear-gradient(100deg,#ffffff08 0%,#00000024 12%,#ffffff0d 24%,#00000016 36%);}
.profile-country-hero::after {content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(0deg,#101724c9,transparent 60%);}
.profile-country-hero :is(h1,h2,.profile-subtitle,.fighter-title p,.fighter-title > span) {color:#fff;}
.profile-country-hero .profile-banner-record {display:flex;align-items:baseline;gap:12px;margin-top:18px;flex-wrap:wrap;}
.profile-country-hero .profile-banner-record > span {font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#d3dce8;}
.profile-country-hero .profile-banner-record strong {font-size:25px;font-weight:650;letter-spacing:-.5px;color:#fff;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-head.profile-country-hero {display:grid;grid-template-columns:170px minmax(0,1fr);grid-template-rows:1fr auto;gap:18px 26px;padding:28px;min-height:290px;margin-bottom:24px;align-items:center;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-avatar {grid-column:1;grid-row:1/span 2;width:170px;height:230px;align-self:end;border-radius:14px;background:#ffffff08;border:1px solid #ffffff25;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-avatar img {object-fit:contain;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-hero-identity {grid-column:2;grid-row:1;min-width:0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero h2 {font:650 clamp(25px,3vw,40px)/1.12 var(--display);letter-spacing:-1px;color:#fff;text-wrap:balance;margin:6px 0 12px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero .eyebrow {color:#f2be87;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero .profile-subtitle {font-size:13px;line-height:1.6;color:#e1e8f0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-hero-actions {display:flex;flex-wrap:wrap;gap:10px;grid-column:2;grid-row:2;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-hero-actions :is(button,a) {width:auto;min-height:42px;margin:0;padding:10px 14px;border:1px solid #ffffff40;border-radius:10px;background:#101724a8;color:#fff;font-size:12px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero .boxer-level {background:#10172499;border-color:#ffffff30;color:#fff;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero .boxer-level :is(b,small) {color:#edf2f7;}
/* Public pages use the same backdrop and retain their stat panel below. */
.fighter-hero.profile-country-hero {background:#101724;grid-template-columns:200px minmax(0,1fr) auto;padding:38px;gap:30px;min-height:340px;}
.fighter-hero.profile-country-hero .fighter-photo {background:#ffffff08;border:1px solid #ffffff25;border-radius:16px;overflow:hidden;}
.fighter-hero.profile-country-hero .fighter-photo img {width:100%;height:270px;object-fit:contain;display:block;}
.fighter-hero.profile-country-hero .fighter-title h1 {color:white;text-transform:none;font-weight:650;line-height:1.05;font-size:clamp(36px,4.5vw,64px);}
.fighter-hero.profile-country-hero .fighter-title p {color:#e0e6ee;line-height:1.7;}
.fighter-hero.profile-country-hero .record-card {background:#101724b3;border:1px solid #ffffff30;color:white;border-radius:14px;}
@media(prefers-reduced-motion:no-preference) {
 .profile-country-hero .profile-flag img {animation:bapp-flag-breathe 7s ease-in-out infinite;transform-origin:15% center;}
 .profile-country-hero .profile-flag span {animation:bapp-flag-light 9s ease-in-out infinite alternate;}
}
@keyframes bapp-flag-breathe {0%,100% {transform:perspective(900px) rotateY(-3deg) skewY(-.7deg) scale(.94);}50% {transform:perspective(900px) rotateY(3deg) skewY(.7deg) scale(.96);}}
@keyframes bapp-flag-light {from {opacity:.8;}to {opacity:1;}}
html[data-profile-motion-paused] .profile-country-hero .profile-flag :is(img,span) {animation-play-state:paused;}
@media(max-width:900px) {
 .fighter-hero.profile-country-hero {grid-template-columns:135px minmax(0,1fr);padding:24px;gap:20px;}
 .fighter-hero.profile-country-hero .fighter-photo img {height:210px;}
 .fighter-hero.profile-country-hero .record-card {grid-column:1/-1;}
}
@media(max-width:640px) {
 :root[data-theme] body#bapp-ui #boxer-profile .profile-head.profile-country-hero {grid-template-columns:90px minmax(0,1fr);grid-template-rows:auto auto;gap:18px 16px;padding:20px 16px;min-height:0;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-avatar {width:90px;height:145px;grid-column:1;grid-row:1;align-self:center;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-hero-identity {grid-column:2;grid-row:1;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero h2 {font-size:24px;letter-spacing:-.5px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero .profile-subtitle {font-size:11px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-hero-actions {grid-column:1/-1;grid-row:2;}
 .profile-country-hero .profile-banner-record {display:block;margin-top:12px;}
 .profile-country-hero .profile-banner-record strong {display:block;margin-top:4px;font-size:23px;}
 .fighter-hero.profile-country-hero {grid-template-columns:90px minmax(0,1fr);padding:20px 16px;gap:18px;}
 .fighter-hero.profile-country-hero .fighter-photo img {height:150px;}
 .fighter-hero.profile-country-hero .fighter-title h1 {font-size:32px;}
 .fighter-hero.profile-country-hero .fighter-title p {font-size:12px;}
}
.fighter-hero.profile-country-hero::before {display:none;}
.fighter-hero.profile-country-hero .fighter-title h1 {font-family:"Avenir Next","Helvetica Neue",Arial,sans-serif;letter-spacing:-1.5px;}

/* Full national emblems remain visible; the small badge is never distorted. */
.profile-country-label {display:inline-flex;align-items:center;gap:10px;margin:0 0 10px;color:#f5f7fb;font:600 12px/1.3 system-ui,sans-serif;}
.profile-country-label > img {display:block;flex:none;width:56px;height:42px;object-fit:contain;background:#fff;border:1px solid #ffffff66;border-radius:4px;box-shadow:0 3px 12px #00000025;}
.profile-country-hero .profile-career-strip {grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:6px;padding-top:20px;border-top:1px solid #ffffff25;color:white;}
.profile-career-strip > div {display:grid;gap:7px;padding:0 16px;border-inline-start:1px solid #ffffff25;min-width:0;}
.profile-career-strip > div:first-child {padding-inline-start:0;border:0;}
.profile-career-strip > div > span {font:500 10px/1.3 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#d6e0ee;}
.profile-career-strip > div > strong {font:650 29px/1.1 "Avenir Next",Arial,sans-serif;color:#fff;}
.profile-career-strip .profile-ko-metric {position:relative;padding-inline-end:48px;}
.profile-ko-metric .career-ko-ring {position:absolute;inset-inline-end:0;top:0;width:44px;height:44px;transform:rotate(-90deg);}
.career-ko-ring circle {fill:none;stroke:#ffffff22;stroke-width:3;}
.career-ko-ring circle:last-child {stroke:#f3bd7c;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:var(--ko-offset);}
.profile-career-strip .profile-ko-metric strong {font-size:24px;}
.profile-country-hero .profile-flag {opacity:.75;}
.fighter-hero.profile-country-hero .profile-career-strip {grid-row:2;}
#profile-recent-history {scroll-margin-top:110px;}

@keyframes bapp-profile-portrait-arrive {from {opacity:.7;transform:translateY(12px);}to {opacity:1;transform:translateY(0);}}
@keyframes bapp-career-ring {from {stroke-dashoffset:100;}to {stroke-dashoffset:var(--ko-offset);}}
html[data-profile-motion-paused] .profile-country-hero .career-ko-ring circle {animation-play-state:paused;}
@media(max-width:640px) {
 .profile-country-hero .profile-flag {inset:18px 12px 18px auto;width:78%;opacity:.5;}
 .profile-country-label {gap:7px;font-size:11px;}
 .profile-country-label > img {width:44px;height:33px;}
 .profile-country-hero .profile-career-strip {padding-top:16px;}
 .profile-career-strip > div {padding:0 8px;}
 .profile-career-strip > div > strong {font-size:23px;}
 .profile-career-strip > div > span {font-size:9px;letter-spacing:0;}
 .profile-career-strip .profile-ko-metric {padding-inline-end:0;}
 .profile-career-strip .profile-ko-metric strong {font-size:20px;}
 .profile-ko-metric .career-ko-ring {position:static;grid-row:3;width:32px;height:32px;margin-top:1px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-hero-actions :is(button,a) {flex:1 1 auto;justify-content:center;font-size:11px;}
}

.profile-country-hero :is(h1,h2) {overflow-wrap:anywhere;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-career-strip {grid-column:1/-1;grid-row:3;}

/* The cloth surface bends in small strips, leaving every emblem inside the frame. */
.profile-country-hero .profile-flag-cloth {position:absolute;inset:0;display:block;width:100%;height:100%;opacity:.76;pointer-events:none;}
.profile-country-hero .profile-flag.has-cloth > img {visibility:hidden;animation:none;}
.profile-country-hero .profile-flag.has-cloth > span {animation:none;background:linear-gradient(110deg,#10172424,#10172408 55%,#10172418);}
.profile-country-hero .profile-flag.is-static > img {visibility:visible;transform:scale(.94);animation:none;}
.profile-country-hero .profile-flag.is-static > canvas {display:none;}
@media(prefers-reduced-motion:reduce) {
 .profile-country-hero .profile-flag.has-cloth > img {visibility:visible;}
 .profile-country-hero .profile-flag > canvas {display:none;}
}

/* A coordinated entrance, with content available immediately and replay optional. */
:root[data-theme] body#bapp-ui #boxer-profile .profile-head.profile-country-hero {grid-template-columns:200px minmax(0,1fr);gap:20px 28px;padding:32px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-avatar {width:200px;height:270px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero h2 {font-size:clamp(30px,3.3vw,46px);}
.profile-country-hero .profile-name-echo {position:absolute;inset:auto 18px 70px auto;z-index:-1;max-width:90%;overflow:hidden;white-space:nowrap;font:800 clamp(70px,9vw,150px)/1 "Avenir Next",Arial,sans-serif;letter-spacing:-6px;text-transform:uppercase;color:#ffffff05;pointer-events:none;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-hero-actions .profile-intro-replay {border-color:#ffffff20;color:#cbd4e0;background:transparent;}
.profile-country-hero > .profile-intro-replay {position:absolute;inset:14px 16px auto auto;border:1px solid #ffffff30;border-radius:8px;padding:8px 10px;background:#101724b3;color:#dce4ee;font:500 11px/1.4 system-ui,sans-serif;cursor:pointer;z-index:2;}
.profile-country-hero .profile-intro-replay:hover {color:white;border-color:#ffffff65;}
@media(max-width:1100px) {
 :root[data-theme] body#bapp-ui #boxer-profile .profile-head.profile-country-hero {grid-template-columns:150px minmax(0,1fr);padding:24px;gap:20px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-avatar {width:150px;height:230px;}
}
@media(max-width:640px) {
 :root[data-theme] body#bapp-ui #boxer-profile .profile-head.profile-country-hero {grid-template-columns:90px minmax(0,1fr);padding:20px 16px;gap:18px 16px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero > .profile-avatar {width:90px;height:150px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-country-hero h2 {font-size:24px;}
 .profile-country-hero .profile-name-echo {bottom:120px;font-size:80px;letter-spacing:-3px;}
}

/* Full fighter stage: surname, complete flag, then the real portrait in front. */
.profile-stage-shell .profile-stage {container-type:inline-size;position:relative;isolation:isolate;overflow:hidden;width:100%;height:clamp(420px,48vw,620px);background:radial-gradient(ellipse at 50% 35%,#303033,#19191b 70%);grid-column:1/-1;grid-row:1;}
.profile-stage-shell .profile-stage .profile-flag {inset:22% 6% 5%;width:auto;z-index:1;opacity:1;}
.profile-stage-shell .profile-stage .profile-flag-cloth {opacity:1;}
.profile-stage-shell .profile-stage .profile-flag > img {opacity:1;}
.profile-stage-shell .profile-stage .profile-flag > span {background:none;opacity:0;}
.profile-stage-shell .profile-stage-name {position:absolute;inset:0 0 auto;z-index:2;display:block;padding-top:10px;text-align:center;font:900 clamp(48px,var(--stage-type-size,22cqw),240px)/.9 Impact,"Arial Narrow",sans-serif;letter-spacing:-.03em;text-transform:uppercase;white-space:nowrap;color:#fafafa;pointer-events:none;}
.profile-stage-shell .profile-stage-shade {position:absolute;inset:auto 0 0;height:20%;z-index:4;background:linear-gradient(0deg,#19191b,transparent);pointer-events:none;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-stage .stage-portrait,
.fighter-hero.profile-stage-shell .profile-stage .stage-portrait {position:absolute;inset:auto 0 0;z-index:3;display:block;grid-area:auto;margin:0 auto;padding:0;width:68%;height:90%;background:transparent;border:0;border-radius:0;overflow:visible;align-self:auto;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-stage .stage-portrait > img,
.fighter-hero.profile-stage-shell .profile-stage .stage-portrait > img {display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;border-radius:0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait,
.fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait {width:42%;height:70%;bottom:4%;background:#17171980;border:1px solid #ffffff18;border-radius:10px;overflow:hidden;mask-image:linear-gradient(#000 85%,transparent);}
:root[data-theme] body#bapp-ui #boxer-profile .profile-head.profile-stage-shell {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;padding:0;gap:0;min-height:0;background:#19191b;border:1px solid #ffffff20;border-radius:16px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-stage {grid-column:1;grid-row:1;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-hero-identity {grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;padding:24px 28px 0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .eyebrow {grid-column:1;grid-row:1;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity h2 {grid-column:1;grid-row:2;margin:0;font-size:32px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .profile-subtitle {grid-column:1;grid-row:3;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .profile-country-label {grid-column:2;grid-row:2;margin:0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .boxer-level {grid-column:2;grid-row:3;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .profile-banner-record {grid-column:2;grid-row:1;margin:0;gap:8px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity .profile-banner-record strong {font-size:20px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-hero-actions {grid-column:1;grid-row:3;padding:20px 28px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-career-strip {grid-column:1;grid-row:4;width:calc(100% - 56px);margin:0 28px 26px;}
.fighter-hero.profile-stage-shell {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;padding:0;background:#19191b;}
.fighter-hero.profile-stage-shell .fighter-title {grid-column:1;grid-row:2;padding:26px 32px;}
.fighter-hero.profile-stage-shell .fighter-title h1 {font-size:clamp(32px,4vw,48px);margin:10px 0 16px;}
.fighter-hero.profile-stage-shell .record-card {grid-column:2;grid-row:2;align-self:center;margin:20px 32px 20px 0;padding:18px;}
.fighter-hero.profile-stage-shell > .profile-career-strip {grid-column:1/-1;grid-row:3;width:calc(100% - 64px);margin:0 32px 28px;}
.profile-stage-shell::after {display:none;}
@media(max-width:640px) {
 .profile-stage-shell .profile-stage {height:390px;}
 .profile-stage-shell .profile-stage .profile-flag {inset:24% 1% 4%;width:auto;opacity:.95;}
 .profile-stage-shell .profile-stage-name {padding-top:22px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-stage .stage-portrait,
 .fighter-hero.profile-stage-shell .profile-stage .stage-portrait {width:90%;height:85%;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait,
 .fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait {width:66%;height:67%;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-hero-identity {display:block;padding:22px 16px 0;text-align:center;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity h2 {font-size:27px;margin:8px 0 14px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .profile-country-label {justify-content:center;margin-bottom:10px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .boxer-level {margin:12px auto;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .profile-hero-identity > .profile-banner-record {display:flex;justify-content:center;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-hero-actions {padding:18px 16px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-career-strip {width:calc(100% - 32px);margin:0 16px 22px;}
 .fighter-hero.profile-stage-shell {grid-template-columns:minmax(0,1fr);}
 .fighter-hero.profile-stage-shell .fighter-title {grid-column:1;grid-row:2;padding:22px 16px;text-align:center;}
 .fighter-hero.profile-stage-shell .record-card {grid-column:1;grid-row:3;margin:0 16px 22px;}
 .fighter-hero.profile-stage-shell > .profile-career-strip {grid-column:1;grid-row:4;width:calc(100% - 32px);margin:0 16px 22px;}
}


/* Broadcast profile: compact identity, full national flag, image and career rail. */
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel),
.fighter-hero.profile-stage-shell:has(.has-photo-panel) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;background:#17191c;border-radius:4px;border:1px solid #ffffff1c;}
.profile-stage-shell .profile-stage.has-photo-panel {position:static;isolation:auto;container-type:normal;overflow:visible;height:510px;background:none;border:0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-stage.has-photo-panel,
.fighter-hero.profile-stage-shell > .profile-stage.has-photo-panel {grid-column:2;grid-row:1;}
.profile-stage-shell .has-photo-panel :is(.profile-stage-name,.profile-stage-shade) {display:none;}
.profile-stage-shell .has-photo-panel .profile-flag {position:absolute;display:block;inset:355px auto auto 28px;width:calc(50% - 56px);height:140px;opacity:1;z-index:1;overflow:hidden;}
.profile-stage-shell .has-photo-panel .profile-flag :is(img,canvas) {opacity:1;}
.profile-stage-shell .has-photo-panel .profile-flag > span {display:none;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait,
.fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait {position:absolute;inset:0 0 auto auto;margin:0;width:50%;height:510px;overflow:hidden;border:0;border-radius:0;mask-image:none;background:#0c0d0f;clip-path:polygon(6% 0,100% 0,100% 100%,0 100%,0 6%);}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait > img,
.fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait > img {width:100%;height:100%;object-fit:cover;object-position:55% center;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-identity {grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:32px 28px 165px;gap:10px;position:relative;z-index:2;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-hero-identity h2,
.fighter-hero.profile-stage-shell:has(.has-photo-panel) .fighter-title h1 {font:900 clamp(32px,3.8vw,52px)/1.02 Impact,"Arial Narrow",sans-serif;text-transform:uppercase;letter-spacing:.005em;text-align:left;margin:0;overflow-wrap:anywhere;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-country-label {order:3;margin:0;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-country-label img {width:24px;height:18px;border:0;border-radius:0;box-shadow:none;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-banner-record {order:4;display:flex;align-items:baseline;gap:12px;margin:8px 0 0;border-top:2px solid #d78148;padding-top:12px;width:100%;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-banner-record strong {font:800 36px/1.1 Impact,"Arial Narrow",sans-serif;letter-spacing:1px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .boxer-level {order:5;margin:0;border:0;background:transparent;padding:0;font-size:10px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-actions {grid-column:1/-1;grid-row:2;padding:20px 28px;border-top:1px solid #ffffff1c;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-career-strip {grid-column:1/-1;grid-row:3;margin:0 28px 24px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-hero-actions :is(button,a) {border-radius:3px;background:transparent;}
.fighter-hero.profile-stage-shell:has(.has-photo-panel) .fighter-title {grid-column:1;grid-row:1;padding:32px 28px 210px;align-self:start;}
.fighter-hero.profile-stage-shell:has(.has-photo-panel) .fighter-title h1 {margin:12px 0;}
.fighter-hero.profile-stage-shell:has(.has-photo-panel) .record-card {grid-column:1/-1;grid-row:2;margin:20px 28px;padding:0;border:0;background:none;}
.fighter-hero.profile-stage-shell:has(.has-photo-panel) > .profile-career-strip {grid-column:1/-1;grid-row:3;}
@media(max-width:760px) {
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel),.fighter-hero.profile-stage-shell:has(.has-photo-panel) {grid-template-columns:minmax(0,1fr);}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-stage.has-photo-panel,.fighter-hero.profile-stage-shell > .profile-stage.has-photo-panel {grid-column:1;grid-row:1;height:270px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait,.fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait {inset:0 0 auto;width:100%;height:270px;clip-path:none;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait > img,.fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait > img {object-fit:contain;}
 .profile-stage-shell .has-photo-panel .profile-flag {inset:286px 20px auto;width:calc(100% - 40px);height:115px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-identity {grid-column:1;grid-row:2;padding:150px 22px 22px;gap:12px;text-align:left;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-hero-identity h2 {font-size:38px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-banner-record {justify-content:space-between;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-actions {grid-column:1;grid-row:3;padding:18px 22px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-career-strip {grid-column:1;grid-row:4;width:calc(100% - 44px);margin:0 22px 22px;}
 .fighter-hero.profile-stage-shell:has(.has-photo-panel) .fighter-title {grid-column:1;grid-row:2;padding:150px 22px 22px;text-align:left;}
 .fighter-hero.profile-stage-shell:has(.has-photo-panel) .record-card {grid-column:1;grid-row:3;}
 .fighter-hero.profile-stage-shell:has(.has-photo-panel) > .profile-career-strip {grid-column:1;grid-row:4;}
}

/* Layered fight-night treatment. */
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel),
.fighter-hero.profile-stage-shell:has(.has-photo-panel) {background:radial-gradient(ellipse at 10% 15%,#85522d35,transparent 55%),repeating-linear-gradient(125deg,transparent 0 48px,#ffffff03 49px 50px),#121315;border-radius:18px;border-color:#d5a26945;box-shadow:0 24px 60px #00000025;}
.profile-stage-shell .has-photo-panel .profile-stage-name {display:block;position:absolute;inset:10px 16px auto;z-index:0;padding:0;text-align:right;font:900 clamp(65px,10vw,150px)/1 Impact,"Arial Narrow",sans-serif;letter-spacing:-.025em;color:transparent;-webkit-text-stroke:1px #ffffff15;white-space:nowrap;overflow:hidden;max-width:calc(100% - 32px);}
.profile-stage-shell .has-photo-panel .profile-flag {inset:305px auto auto 18px;width:calc(52% - 36px);height:215px;filter:drop-shadow(0 14px 20px #00000060);}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-stage.has-photo-panel,
.fighter-hero.profile-stage-shell > .profile-stage.has-photo-panel {height:535px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait,
.fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait {inset:30px 24px auto auto;width:calc(48% - 12px);height:475px;clip-path:polygon(9% 0,100% 0,100% 91%,91% 100%,0 100%,0 9%);border:1px solid #d5a26990;background:#090a0c;box-shadow:0 18px 40px #00000060;}
.profile-stage-shell .has-photo-panel .stage-portrait::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#080a0c90,transparent 35%),linear-gradient(130deg,#e7b47615,transparent 40%);box-shadow:inset 0 0 0 1px #ffffff20;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-identity {padding:34px 28px 225px;gap:8px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-hero-identity h2 {text-shadow:0 4px 24px #00000055;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-actions {background:#ffffff04;border-color:#d5a26930;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-hero-actions :is(button,a) {border-radius:7px;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) .profile-hero-actions button:first-child {background:#cf8141;color:#111;border-color:#cf8141;}
.profile-stage-shell:has(.has-photo-panel) .profile-career-strip > div > strong {font-family:Impact,"Arial Narrow",sans-serif;font-size:34px;letter-spacing:.02em;}
.fighter-hero.profile-stage-shell:has(.has-photo-panel) .fighter-title {padding-bottom:240px;}
@media(max-width:760px) {
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell > .profile-stage.has-photo-panel,
 .fighter-hero.profile-stage-shell > .profile-stage.has-photo-panel {height:335px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-photo-panel .stage-portrait,
 .fighter-hero.profile-stage-shell .has-photo-panel .stage-portrait {inset:20px 18px auto auto;width:calc(100% - 36px);height:295px;}
 .profile-stage-shell .has-photo-panel .profile-flag {inset:335px 18px auto;width:calc(100% - 36px);height:165px;}
 .profile-stage-shell .has-photo-panel .profile-stage-name {font-size:75px;top:10px;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell:has(.has-photo-panel) > .profile-hero-identity {padding:185px 22px 22px;}
 .fighter-hero.profile-stage-shell:has(.has-photo-panel) .fighter-title {padding:185px 22px 22px;}
}
@media(prefers-reduced-motion:no-preference) {
 .profile-stage-shell .has-photo-panel .stage-portrait::after {animation:profile-stage-light 7s ease-in-out infinite alternate;}
}
@keyframes profile-stage-light {from {opacity:.35;}to {opacity:1;}}
html[data-profile-motion-paused] .profile-stage-shell .stage-portrait::after {animation-play-state:paused;}
@media(min-width:761px) {
 .profile-stage-shell .has-photo-panel .profile-flag {top:335px;height:185px;}
}

/* A genuine foreground cutout over a full-size moving flag. */
.profile-stage-shell .profile-stage.has-cutout {height:clamp(490px,52vw,650px);background:radial-gradient(ellipse at 50% 48%,#55413755,transparent 60%),radial-gradient(ellipse at 50% 0%,#47474b,#151517 75%);}
.profile-stage-shell .has-cutout .profile-flag {inset:18% 1% 5%;opacity:1;filter:drop-shadow(0 15px 35px #00000070);}
.profile-stage-shell .has-cutout .profile-stage-name {padding-top:6px;text-shadow:0 3px 30px #ffffff08;}
.profile-stage-shell .has-cutout::before {content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 10%,#f5c58a09 10.2%,transparent 28%),linear-gradient(245deg,transparent 10%,#f5c58a09 10.2%,transparent 28%);pointer-events:none;z-index:2;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-cutout .stage-portrait,
.fighter-hero.profile-stage-shell .has-cutout .stage-portrait {height:91%;width:85%;filter:drop-shadow(0 12px 24px #00000060);}
.profile-stage-shell .has-cutout .profile-stage-shade {height:18%;background:linear-gradient(0deg,#19191b,transparent);}
@media(max-width:640px) {
 .profile-stage-shell .profile-stage.has-cutout {height:420px;}
 .profile-stage-shell .has-cutout .profile-flag {inset:22% -2% 7%;}
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-cutout .stage-portrait,
 .fighter-hero.profile-stage-shell .has-cutout .stage-portrait {width:100%;height:84%;}
}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-cutout .stage-portrait > img,
.fighter-hero.profile-stage-shell .has-cutout .stage-portrait > img {position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:100%;width:auto;max-width:none;object-fit:contain;}
:root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-cutout .stage-portrait,
.fighter-hero.profile-stage-shell .has-cutout .stage-portrait {height:var(--portrait-height,91%);}
@media(max-width:640px) {
 :root[data-theme] body#bapp-ui #boxer-profile .profile-stage-shell .has-cutout .stage-portrait,
 .fighter-hero.profile-stage-shell .has-cutout .stage-portrait {height:min(var(--portrait-height,84%),84%);}
}
@media(max-width:640px) {
 .profile-stage-shell .has-cutout .profile-stage-name {font-size:clamp(24px,var(--stage-type-size,22cqw),240px);}
}
