/* Historical team visual system; club colors apply to presentation, never source logos. */
.tc150-profile{--tc150-primary:#c63d5b;--tc150-secondary:#e9c5d0;--tc150-ink:#fff;min-width:0}
.tc150-profile .tc150-hero{background:linear-gradient(126deg,var(--tc150-primary) 0%,color-mix(in srgb,var(--tc150-primary) 64%,var(--tc150-secondary)) 57%,var(--tc150-secondary) 100%)!important;border:1px solid color-mix(in srgb,var(--tc150-secondary) 56%,white)!important;border-radius:22px!important;box-shadow:0 12px 30px #050e1c40,inset 0 1px #ffffff38!important;padding:22px 18px!important;isolation:isolate;position:relative;overflow:hidden}
.tc150-profile .tc150-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#06172630,transparent 66%);z-index:-1;pointer-events:none}
.tc150-profile .tc150-hero h1{overflow-wrap:anywhere;line-height:1.12!important;letter-spacing:-.03em!important;color:var(--tc150-ink)!important;text-shadow:none!important}
.tc150-profile .tc150-hero small,.tc150-profile .tc150-hero .eyebrow{color:var(--tc150-ink)!important;opacity:.9}
.tc150-profile .tc143-logo-wrap,.tc150-profile .tc142-logo{border:none!important;background:transparent!important;box-shadow:none!important;max-width:100px}
.tc150-profile .tc143-logo-wrap img{max-width:100%;object-fit:contain;filter:none!important}
.tc150-ranking{flex:1 0 100%;min-width:0;padding:13px 15px;border-radius:15px;background:#071829b8;display:flex;align-items:center;flex-wrap:wrap;gap:9px 15px;color:#fff;border:1px solid #ffffff4b}
.tc150-ranking small{font-size:10px!important;font-weight:850;letter-spacing:.09em;color:#d3e5f5!important;opacity:1!important;flex:1 1 150px}
.tc150-ranking strong{font-size:32px;line-height:1;font-weight:900;color:#fff}
.tc150-ranking span{flex-basis:100%;font-size:11px;color:#d0e0ea;line-height:1.5}
.tc150-profile .tc143-tabs button.active{background:var(--tc150-primary)!important;color:var(--tc150-ink)!important;box-shadow:inset 0 -3px var(--tc150-secondary)!important}
.tc150-profile .tc142-stat-row{border-inline-start:3px solid var(--tc150-primary)}
.tc150-profile .tc142-stat-rank{background:color-mix(in srgb,var(--tc150-primary) 21%,#172940);border-radius:9px}
.tc150-history{margin:18px 0;display:grid;gap:10px;min-width:0}.tc150-section-title h2{margin:0 0 4px;font-size:20px}.tc150-section-title p,.tc150-all-games>p{font-size:12px;color:#b2c8d8;line-height:1.55}
.tc150-history-card{min-height:85px;border:1px solid #455c75;background:linear-gradient(125deg,color-mix(in srgb,var(--tc150-primary) 21%,#16273b),#1b3043);border-left:5px solid var(--tc150-primary);color:#f3f8fd;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:14px;padding:12px;text-align:left}
.tc150-history-card>span{min-width:0}.tc150-history-year{font-size:17px;font-weight:900;flex:1 1 105px}.tc150-history-card strong{display:block;font-size:21px}.tc150-history-card small{font-size:10px;color:#c1d4e2}.tc150-history-open{color:#d3b6c7;font-size:23px}
.tc150-overview-rank{border-radius:12px;background:linear-gradient(115deg,color-mix(in srgb,var(--tc150-primary) 45%,#193249),#172a41);border:1px solid color-mix(in srgb,var(--tc150-secondary) 65%,#26384e);padding:15px;margin:12px 0;display:flex;flex-direction:column;gap:6px}
.tc150-overview-rank strong{color:#fff;font-size:16px}.tc150-overview-rank small{color:#c6d9e5;font-size:11px}
.tc150-all-games{margin-top:13px}.tc150-season-fixture>small{display:block;margin-top:15px;font-weight:800;font-size:11px;color:var(--tc150-secondary)}
.tc150-profile .n84-season-switch select{border-color:color-mix(in srgb,var(--tc150-primary) 55%,#657b91)!important;font-weight:760!important}
@media(max-width:460px){.tc150-profile .tc150-hero{padding:17px 14px!important;gap:11px!important}.tc150-profile .tc150-hero h1{font-size:20px!important}.tc150-ranking{padding:12px}.tc150-history-card{gap:6px;padding:9px}.tc150-history-year{font-size:14px}.tc150-history-card strong{font-size:18px}}
/* Structural reset for legacy team-header variations (n84/n94/tc142/tc143). */
.tc150-profile .tc150-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:stretch!important;justify-content:stretch!important;gap:15px!important;min-height:0!important;height:auto!important;overflow:visible!important}
.tc150-profile .tc150-hero-main{display:flex!important;align-items:center!important;gap:15px!important;min-width:0;max-width:100%;position:relative;z-index:1}
.tc150-profile .tc150-crest{height:77px;width:77px;min-width:77px;display:flex;justify-content:center;align-items:center;background:transparent!important;border:0!important;box-shadow:none!important}
.tc150-profile .tc150-crest img{width:100%;height:100%;max-width:77px;max-height:77px;object-fit:contain;filter:none!important}
.tc150-profile .tc150-hero-title{min-width:0;flex:1;padding:10px 13px;border-radius:13px;background:#0b1b2bc7;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}
.tc150-profile .tc150-hero-title small{color:#c9dce8!important;opacity:1!important;font-size:10px!important;font-weight:800;letter-spacing:.07em}
.tc150-profile .tc150-hero-title h1{color:#fff!important;text-shadow:none!important;margin:0!important;font-size:clamp(19px,4vw,28px)!important;line-height:1.15!important;word-break:normal;overflow-wrap:break-word}
.tc150-profile .tc150-hero-title span{color:#e2eaf1;font-size:12px;font-weight:670}
.tc150-profile .tc150-ranking{width:100%;max-width:none!important;margin:0!important;box-sizing:border-box;position:static!important;align-self:auto!important;justify-self:stretch!important;float:none!important;z-index:1}
@media(max-width:380px){.tc150-profile .tc150-crest{width:59px;min-width:59px;height:65px}.tc150-profile .tc150-crest img{max-width:59px;max-height:65px}.tc150-profile .tc150-hero-main{gap:8px!important}.tc150-profile .tc150-hero-title{padding:10px}.tc150-profile .tc150-ranking strong{font-size:29px}}
/* Override both older grid-cell assignments: otherwise main and ranking overlap. */
body .tc150-profile.tc143-profile .tc150-hero.tc143-hero > .tc150-hero-main,
.tc150-profile .tc150-hero > .tc150-hero-main{grid-column:1/-1!important;grid-row:1!important}
body .tc150-profile.tc143-profile .tc150-hero.tc143-hero > .tc150-ranking,
.tc150-profile .tc150-hero > .tc150-ranking{grid-column:1/-1!important;grid-row:2!important}
.tc150-profile .tc150-ranking{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;column-gap:10px!important;row-gap:5px!important;align-items:center!important}
.tc150-profile .tc150-ranking small{grid-column:1!important;grid-row:1!important;flex:auto!important;color:#d8eaf4!important;opacity:1!important;line-height:1.35!important;font-size:10px!important}
.tc150-profile .tc150-ranking strong{grid-column:2!important;grid-row:1/-1!important;justify-self:end!important;color:#fff!important;font-size:32px!important}
.tc150-profile .tc150-ranking span{grid-column:1!important;grid-row:2!important;color:#d8eaf4!important;max-width:100%;overflow-wrap:anywhere!important;font-size:10px!important}

/* Old oversized decorative pseudo-element must not bleed over neighboring menus. */
.tc150-profile .tc150-hero:before{content:none!important;display:none!important}
.tc150-profile .tc150-hero{overflow:hidden!important}
.tc150-monogram{display:grid;place-items:center;font-weight:950;letter-spacing:-.05em;font-size:24px;color:#fff;width:100%;height:100%;border-radius:50%;background:#0a1e2a42;border:1px solid #ffffff60;box-shadow:0 2px 8px #07131a50}
@media(max-width:380px){.tc150-monogram{font-size:20px}}
