.fantasy-profile-utility,
.fantasy-profile-context,
.fantasy-profile-context span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.fantasy-profile-utility {
    flex-wrap: wrap;
    justify-content: space-between;
}

.fantasy-profile-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    margin-block: 20px 24px;
}

.fantasy-profile-heading h1 {
    margin-block: 4px 8px;
    font-size: clamp(30px, 4.3vw, 50px);
    line-height: 1.05;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.fantasy-profile-heading p:first-child {
    color: hsl(var(--muted));
    font-size: 14px;
}

.fantasy-profile-heading .fantasy-profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 8px;
    object-fit: contain;
}

.fantasy-profile-photo i { transform: scale(1.7); }

.fantasy-profile-context {
    flex-wrap: wrap;
    font-size: 14px;
}

.fantasy-profile-context img {
    object-fit: contain;
}

.fantasy-profile-role {
    padding: 3px 6px;
    border-radius: 4px;
    background: #eaf3ed;
    color: #214b41;
    font-weight: 750;
}

.fantasy-profile-heading .fantasy-profile-warning {
    margin-top: 5px;
    font-size: 13px;
}

.fantasy-profile-warning { color: #912040; }

.fantasy-player-profile :is(.fantasy-profile-metrics, .fantasy-profile-season) {
    display: grid;
    gap: 8px;
    margin-block: 12px 22px;
}

.fantasy-profile-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fantasy-profile-metrics div,
.fantasy-profile-season div {
    padding: clamp(8px, 1.5vw, 14px);
    border-radius: 7px;
    background: #f2f6f4;
}

.fantasy-player-profile dt {
    color: hsl(var(--muted));
    font-size: 13px;
    font-weight: 650;
}

.fantasy-player-profile dd {
    font-size: clamp(20px, 3vw, 35px);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.fantasy-player-profile .fantasy-profile-change {
    font-size: 13px;
}

.fantasy-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 3vw, 36px);
}

.fantasy-profile-layout .fantasy-team-notice {
    margin-top: 12px;
}

.fantasy-profile-history :is(th, td):first-child:not([colspan]) {
    width: auto;
    text-align: left;
    white-space: nowrap;
}

.fantasy-profile-history :is(th, td):nth-child(n+3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fantasy-profile-history td:nth-child(2) { overflow-wrap: anywhere; }
.fantasy-profile-history abbr { text-decoration: none; }
.fantasy-profile-points:not(.fantasy-profile-warning) { color: #214b41; }

.fantasy-profile-season { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fantasy-profile-season dd { font-size: 23px; }

.fantasy-profile-peers { margin-top: 24px; }

.fantasy-profile-peers ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.fantasy-profile-peers li a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #f4f7f5;
    color: inherit;
    overflow-wrap: anywhere;
}

.fantasy-profile-peers li a:hover { background: #eaf3ed; }
.fantasy-profile-peers img { object-fit: contain; }
.fantasy-profile-peers small { display: block; color: hsl(var(--muted)); }

@media (max-width: 830px) {
    .fantasy-profile-layout,
    .fantasy-profile-peers ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
    .fantasy-profile-heading .fantasy-profile-photo { width: 64px; height: 64px; }
    .fantasy-profile-heading h1 { font-size: clamp(25px, 7vw, 33px); }
    .fantasy-profile-history :is(th, td) { padding-inline: 4px; }
    .fantasy-profile-history { font-size: 13px; }
    .fantasy-profile-history thead th { font-size: 12px; }
    .fantasy-profile-metrics dd { font-size: 20px; }
}
