/* MATCHSHOCK_FIGHTER_HUB_FRONTEND_V1 */

.ms-fighter-page {
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
}

.ms-fighter-page__shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.ms-fighter-page__breadcrumb {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.82rem;
    opacity: 0.72;
}

.ms-fighter-page__breadcrumb a {
    color: inherit;
}

.ms-fighter-page__loading,
.ms-fighter-page__error {
    padding: 3rem 1.5rem;
    text-align: center;
}

.ms-fighter-hub {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.ms-fighter-hero {
    display: grid;
    grid-template-columns:
        180px
        minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 22px;
    background:
        rgba(255, 255, 255, 0.04);
    border: 1px solid
        rgba(255, 255, 255, 0.08);
}

.ms-fighter-hero__photo {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        rgba(255, 255, 255, 0.06);
}

.ms-fighter-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-fighter-photo__fallback {
    font-size: 2rem;
    font-weight: 900;
    opacity: 0.55;
}

.ms-fighter-eyebrow {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    opacity: 0.6;
}

.ms-fighter-hero h1 {
    margin: 0;
    font-size: clamp(
        2rem,
        5vw,
        3.7rem
    );
    line-height: 1;
}

.ms-fighter-nickname {
    margin: 0.6rem 0 0;
    opacity: 0.7;
    font-size: 1.05rem;
}

.ms-fighter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.ms-fighter-meta span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.ms-fighter-stats {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.ms-fighter-stat {
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    background:
        rgba(255, 255, 255, 0.04);
    border: 1px solid
        rgba(255, 255, 255, 0.07);
}

.ms-fighter-stat strong {
    display: block;
    overflow-wrap: anywhere;
}

.ms-fighter-stat span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.55;
}

.ms-fighter-section {
    padding: 1.4rem;
    border-radius: 20px;
    background:
        rgba(255, 255, 255, 0.035);
    border: 1px solid
        rgba(255, 255, 255, 0.07);
}

.ms-fighter-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ms-fighter-section__heading span {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    opacity: 0.55;
}

.ms-fighter-section__heading h2 {
    margin: 0.2rem 0 0;
}

.ms-fighter-section__heading small {
    font-size: 1rem;
    opacity: 0.5;
}

.ms-fighter-fight-grid {
    display: grid;
    gap: 0.8rem;
}

.ms-fighter-fight {
    display: block;
    padding: 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background:
        rgba(255, 255, 255, 0.045);
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.ms-fighter-fight:hover {
    transform: translateY(-1px);
    background:
        rgba(255, 255, 255, 0.07);
}

.ms-fighter-fight__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    font-size: 0.76rem;
    opacity: 0.68;
}

.ms-fighter-fight__matchup {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
}

.ms-fighter-fight__matchup strong:last-child {
    text-align: right;
}

.ms-fighter-fight__matchup span {
    opacity: 0.45;
    font-size: 0.7rem;
    font-weight: 900;
}

.ms-fighter-empty {
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
    opacity: 0.65;
    background:
        rgba(255, 255, 255, 0.03);
}

@media (max-width: 760px) {
    .ms-fighter-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ms-fighter-hero__photo {
        width: 130px;
        height: 130px;
        margin: 0 auto;
    }

    .ms-fighter-meta {
        justify-content: center;
    }

    .ms-fighter-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ms-fighter-stat:last-child {
        grid-column: 1 / -1;
    }

    .ms-fighter-fight__matchup {
        font-size: 0.88rem;
    }
}

/* MATCHSHOCK_FIGHTER_HUB_V2 */

.ms-fighter-v2-next {
    padding: 1.6rem;
    border-radius: 22px;
    background:
        rgba(255, 255, 255, 0.04);
    border: 1px solid
        rgba(255, 255, 255, 0.08);
}

.ms-fighter-v2-next__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.ms-fighter-v2-next__head h2 {
    margin: 0.15rem 0 0;
}

.ms-fighter-v2-next__head p {
    margin: 0.45rem 0 0;
    opacity: 0.62;
    font-size: 0.85rem;
}

.ms-fighter-v2-match-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    background:
        rgba(255, 255, 255, 0.08);
}

.ms-fighter-v2-matchup {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.ms-fighter-v2-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.ms-fighter-v2-person--link {
    cursor: pointer;
}

.ms-fighter-v2-person__photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        rgba(255, 255, 255, 0.06);
    border: 1px solid
        rgba(255, 255, 255, 0.08);
}

.ms-fighter-v2-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-fighter-v2-person__photo span {
    font-weight: 900;
    opacity: 0.5;
}

.ms-fighter-v2-vs {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0.45;
}

.ms-fighter-v2-tale {
    display: grid;
    gap: 0.45rem;
}

.ms-fighter-v2-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        90px
        minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background:
        rgba(255, 255, 255, 0.03);
}

.ms-fighter-v2-row strong {
    overflow-wrap: anywhere;
}

.ms-fighter-v2-row strong:last-child {
    text-align: right;
}

.ms-fighter-v2-row span {
    text-align: center;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.5;
}

@media (max-width: 760px) {
    .ms-fighter-v2-next__head {
        flex-direction: column;
    }

    .ms-fighter-v2-match-link {
        width: 100%;
    }

    .ms-fighter-v2-person__photo {
        width: 82px;
        height: 82px;
    }

    .ms-fighter-v2-matchup {
        gap: 0.55rem;
    }

    .ms-fighter-v2-row {
        grid-template-columns:
            minmax(0, 1fr)
            62px
            minmax(0, 1fr);
        gap: 0.4rem;
        font-size: 0.82rem;
    }
}

/* MATCHSHOCK_FIGHTER_DIRECTORY_HUB_V1 */

.ms-fighter-directory {
    margin-top: 20px;
}

.ms-fighter-directory__hero {
    padding: 26px 28px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.01)
        );
}

.ms-fighter-directory__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

.ms-fighter-directory__hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
}

.ms-fighter-directory__hero p {
    max-width: 720px;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.78;
}

.ms-fighter-directory__controls {
    margin: 22px 0 16px;
}

.ms-fighter-directory__search {
    display: grid;
    gap: 8px;
}

.ms-fighter-directory__search span {
    font-size: 13px;
    font-weight: 800;
    opacity: 0.76;
}

.ms-fighter-directory__search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: inherit;
    font: inherit;
    outline: none;
}

.ms-fighter-directory__search input:focus {
    border-color: rgba(255,255,255,0.28);
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.06);
}

.ms-fighter-directory__status {
    margin: 12px 0 14px;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.72;
}

.ms-fighter-directory__results {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ms-fighter-directory-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    color: inherit;
    text-decoration: none;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background 140ms ease;
}

.ms-fighter-directory-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

.ms-fighter-directory-card__photo {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.ms-fighter-directory-card__photo span {
    font-size: 14px;
    font-weight: 900;
}

.ms-fighter-directory-card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-fighter-directory-card__identity {
    min-width: 0;
}

.ms-fighter-directory-card__category {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.62;
}

.ms-fighter-directory-card h2 {
    margin: 0;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-fighter-directory-card p {
    margin: 6px 0 0;
    overflow: hidden;
    font-size: 13px;
    opacity: 0.68;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-fighter-directory-card > strong {
    font-size: 12px;
    white-space: nowrap;
}

.ms-fighter-directory__empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    text-align: center;
    opacity: 0.72;
}

@media (max-width: 1000px) {
    .ms-fighter-directory__results {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ms-fighter-directory__hero {
        padding: 22px 18px;
    }

    .ms-fighter-directory__results {
        grid-template-columns: 1fr;
    }

    .ms-fighter-directory-card {
        grid-template-columns:
            52px minmax(0, 1fr);
    }

    .ms-fighter-directory-card > strong {
        display: none;
    }

    .ms-fighter-directory-card__photo {
        width: 52px;
        height: 52px;
    }
}

