/* Head-to-head matchup page styling — paired-player hero with W/L tally
   and a scrollable match list. */

.head-to-head__hero {
    background: linear-gradient(135deg, #1A365D 0%, #2B4C8C 100%);
    color: #fff;
}

.head-to-head__player {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none !important;
    transition: opacity 0.15s ease;
}

.head-to-head__player:hover {
    opacity: 0.85;
}

.head-to-head__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    object-fit: cover;
    background-color: #1A365D;
}

.head-to-head__avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #FF5500;
    background-color: rgba(255, 255, 255, 0.10);
}

.head-to-head__name {
    margin-top: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.head-to-head__score {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.head-to-head__wins   { color: #22c55e; }
.head-to-head__losses { color: #ef4444; }
.head-to-head__dash   { color: rgba(255, 255, 255, 0.4); margin: 0 0.4rem; }

.head-to-head__meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.head-to-head__row {
    border-left: 3px solid transparent;
}

.head-to-head__row--win  { border-left-color: #22c55e; }
.head-to-head__row--loss { border-left-color: #ef4444; }

.head-to-head__score-pill {
    font-weight: 800;
    font-size: 1.1rem;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 0.75rem;
    min-width: 60px;
    text-align: center;
}

.head-to-head__score-pill.is-win {
    background-color: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.head-to-head__score-pill.is-loss {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

@media (max-width: 575.98px) {
    .head-to-head__avatar { width: 64px; height: 64px; }
    .head-to-head__avatar--initial { font-size: 24px; }
    .head-to-head__name { font-size: 0.9rem; max-width: 110px; }
    .head-to-head__score { font-size: 2.2rem; letter-spacing: -1px; }
}
