
/* Match Detail - Hero Section Layout */
.match-hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
}

.fighter-card-side {
    text-align: center;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fighter-img-container {
    width: 120px;
    height: 120px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.fighter-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fighter-a-img {
    border: 3px solid var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.fighter-b-img {
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.fighter-name {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    padding: 0 0.5rem;
}

.fighter-name a {
    color: inherit;
    text-decoration: underline;
}

.vs-container {
    text-align: center;
    font-size: 3rem;
    font-weight: 100;
    color: var(--color-text-dim);
    font-family: var(--font-heading);
    font-style: italic;
    user-select: none;
}

.win-prob {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.win-prob-unit {
    font-size: 1.5rem;
}

/* Response Mobile Adjustments */
@media (max-width: 768px) {
    .match-hero-layout {
        flex-wrap: nowrap; /* Force side-by-side */
        gap: 0.25rem;
        align-items: flex-start; /* Align from top to keep images aligned */
    }

    .fighter-card-side {
        min-width: 0; /* Allow shrinking */
        width: 45%;
    }

    .fighter-img-container {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
        border-width: 2px;
    }

    .fighter-name {
        font-size: 0.95rem; /* Smaller font for mobile */
        min-height: 2.4em; /* Min height for 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .vs-container {
        font-size: 1.2rem;
        margin-top: 25px; /* Offset to align roughly with image center */
        width: 10%;
    }

    .win-prob {
        font-size: 1.8rem;
    }

    .win-prob-unit {
        font-size: 0.9rem;
    }

    /* Hide extra info if too cluttered, or keep it small */
    .fighter-card-side div[style*="font-size: 0.8rem"] { /* The height/reach info */
        font-size: 0.6rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        opacity: 0.8;
       /* display: none;  Removed to show info but keep it safe */
    }
    
    /* Show limited stats maybe? Let's hide specific less critical ones if needed */
    /* But for now user just said alignment. I will keep them but very small */
}

/* Result Badges */
.match-hero-layout.has-result .fighter-img-container {
    position: relative;
}

.match-hero-layout.has-result .fighter-card-side.winner .fighter-img-container {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    z-index: 2;
}


.result-badge {
    position: absolute;
    top: 95px; /* Adjusting for 120px hero image vs 80px fights image */
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    font-size: 0.9rem; /* Slightly larger than fights.php 0.75rem due to larger image */
    padding: 2px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
    border: 1px solid #fff;
    white-space: nowrap;
}

.result-badge.win {
    background: #ffd700;
    color: #000;
}

.result-badge.lose {
    background: #ccc;
    color: #000;
}


.center-result-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: 2rem;
    padding: 8px 24px;
    border-radius: 12px;
    z-index: 10;
    white-space: nowrap;
    letter-spacing: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
    pointer-events: none;
    border: 3px solid;
    text-transform: uppercase;
}

.center-result-badge.draw {
    background: rgba(40, 40, 50, 0.9);
    color: #ccc;
    border-color: #888;
}

.center-result-badge.invalid {
    background: rgba(40, 0, 0, 0.9);
    color: #ff4444;
    border-color: #ff4444;
}


@media (max-width: 768px) {
    .result-badge {
        font-size: 1rem;
        padding: 2px 10px;
    }

    .center-result-badge {
        font-size: 1.4rem;
        padding: 4px 16px;
    }
}
