/* MATCHSHOCK_TEAM_HUB_FRONTEND_V1 */

.ms-team-page {
    min-height: 100vh;
    padding: 40px 20px 80px;
    background: #07080c;
    color: #fff;
}

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

.ms-team-page__breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.45);
    font-size: 12px;
}

.ms-team-page__breadcrumb a {
    color: rgba(255,255,255,.76);
    text-decoration: none;
}

.ms-team-hero,
.ms-team-section {
    border: 1px solid rgba(255,255,255,.09);
    background: #11131a;
}

.ms-team-hero {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border-radius: 22px;
}

.ms-team-hero__identity {
    display: flex;
    gap: 22px;
    align-items: center;
    min-width: 0;
}

.ms-team-logo {
    display: grid;
    flex: 0 0 105px;
    width: 105px;
    height: 105px;
    place-items: center;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: rgba(255,255,255,.04);
}

.ms-team-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ms-team-logo__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    font-size: 30px;
    font-weight: 900;
}

.ms-team-hero__eyebrow,
.ms-team-section__heading span {
    color: #ff6975;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ms-team-hero h1 {
    margin: 7px 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: .98;
    letter-spacing: -.045em;
}

.ms-team-hero p {
    margin: 0;
    color: rgba(255,255,255,.5);
}

.ms-team-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 8px;
}

.ms-team-hero__metrics div {
    display: grid;
    min-height: 82px;
    place-items: center;
    align-content: center;
    border-radius: 15px;
    background: rgba(255,255,255,.035);
}

.ms-team-hero__metrics strong {
    font-size: 25px;
}

.ms-team-hero__metrics span {
    margin-top: 3px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    text-transform: uppercase;
}

.ms-team-section {
    margin-top: 18px;
    padding: 22px;
    border-radius: 17px;
}

.ms-team-section__heading,
.ms-team-match__meta,
.ms-team-story__meta,
.ms-team-story__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ms-team-section__heading h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.ms-team-section__heading small {
    color: rgba(255,255,255,.4);
}

.ms-team-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 10px;
    margin-top: 18px;
}

.ms-team-match,
.ms-team-story {
    display: block;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    color: inherit;
    text-decoration: none;
    transition:
        transform .15s ease,
        border-color .15s ease;
}

.ms-team-match:hover,
.ms-team-story:hover {
    transform: translateY(-2px);
    border-color: rgba(255,74,85,.28);
}

.ms-team-match.is-live {
    border-color: rgba(255,74,85,.26);
    background: rgba(255,45,63,.065);
}

.ms-team-match__meta,
.ms-team-story__meta {
    color: rgba(255,255,255,.43);
    font-size: 10px;
}

.ms-team-match__meta strong,
.ms-team-story__meta span {
    color: #ff6975;
}

.ms-team-match__teams {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.ms-team-match__teams div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.ms-team-match__teams strong {
    font-size: 19px;
}

.ms-team-match__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.055);
    color: rgba(255,255,255,.4);
    font-size: 10px;
}

.ms-team-match__signals strong {
    color: rgba(255,255,255,.8);
}

.ms-team-story h3 {
    margin: 11px 0 16px;
    font-size: 17px;
    line-height: 1.35;
}

.ms-team-story__footer {
    color: rgba(255,255,255,.38);
    font-size: 10px;
}

.ms-team-empty {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding: 30px 18px;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 12px;
    color: rgba(255,255,255,.43);
    text-align: center;
}

.ms-team-empty strong {
    color: rgba(255,255,255,.78);
}

.ms-team-page__loading,
.ms-team-page__error {
    padding: 120px 20px;
    text-align: center;
}

.ms-team-page__error p {
    color: rgba(255,255,255,.52);
}

.ms-team-page__error a {
    display: inline-block;
    margin-top: 14px;
    color: #ff6975;
}

@media (max-width: 760px) {
    .ms-team-page {
        padding:
            24px 14px
            60px;
    }

    .ms-team-hero {
        display: grid;
        padding: 22px;
    }

    .ms-team-hero__identity {
        align-items: flex-start;
    }

    .ms-team-logo {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
        border-radius: 18px;
    }

    .ms-team-hero__metrics {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

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

@media (max-width: 480px) {
    .ms-team-hero__identity {
        display: grid;
    }

    .ms-team-hero h1 {
        font-size: 38px;
    }
}


/* MATCHSHOCK_TEAM_HUB_LEAGUE_UI_CSS_V1 */

.ms-team-league {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 10px 0 12px;
}

.ms-team-league__name,
.ms-team-league__country,
.ms-team-league__rank {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.ms-team-league__name {
    border: 1px solid rgba(255,105,117,.32);
    background: rgba(255,105,117,.08);
    color: #ff6975;
    text-decoration: none;
}

a.ms-team-league__name:hover {
    background: rgba(255,105,117,.14);
}

a.ms-team-league__name:focus-visible {
    outline: 2px solid #ff6975;
    outline-offset: 2px;
}

.ms-team-league__country,
.ms-team-league__rank {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.62);
}

@media (max-width: 480px) {
    .ms-team-league {
        margin-top: 8px;
    }
}


/* MATCHSHOCK_TEAM_HUB_STATISTICS_CSS_V1 */

.ms-team-standing-stats {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: #11131a;
}

.ms-team-standing-stats > div {
    display: grid;
    min-height: 82px;
    place-items: center;
    align-content: center;
    padding: 12px 8px;
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    text-align: center;
}

.ms-team-standing-stats strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.02em;
}

.ms-team-standing-stats span {
    margin-top: 6px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ms-team-standing-stats > div:first-child strong {
    color: #ff6975;
}

@media (max-width: 760px) {
    .ms-team-standing-stats {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 480px) {
    .ms-team-standing-stats {
        gap: 8px;
        padding: 10px;
    }

    .ms-team-standing-stats > div {
        min-height: 72px;
    }

    .ms-team-standing-stats strong {
        font-size: 21px;
    }
}


/* MATCHSHOCK_NBA_TEAM_ROSTER_UI_V1 */

.ms-team-nba-roster__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ms-team-nba-player {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 74px;
    padding: 0.9rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    background:
        rgba(255, 255, 255, 0.04);
    border: 1px solid
        rgba(255, 255, 255, 0.07);
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.ms-team-nba-player:hover {
    transform: translateY(-1px);
    background:
        rgba(255, 255, 255, 0.07);
}

.ms-team-nba-player__number {
    min-width: 42px;
    font-size: 0.8rem;
    font-weight: 900;
    opacity: 0.55;
}

.ms-team-nba-player__body {
    min-width: 0;
}

.ms-team-nba-player__body strong {
    display: block;
    overflow-wrap: anywhere;
}

.ms-team-nba-player__body span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    opacity: 0.58;
}

.ms-team-nba-player__arrow {
    font-size: 1.3rem;
    opacity: 0.4;
}

@media (max-width: 760px) {
    .ms-team-nba-roster__grid {
        grid-template-columns: 1fr;
    }
}

/* MATCHSHOCK_TEAM_DIRECTORY_HUB_V1 */

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

.ms-team-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-team-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-team-directory__hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
}

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

.ms-team-directory__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin: 22px 0 16px;
}

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

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

.ms-team-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-team-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-team-directory__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ms-team-directory__filters button {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ms-team-directory__filters button[aria-pressed="true"] {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

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

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

.ms-team-directory-card {
    display: grid;
    grid-template-columns: 52px 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-team-directory-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

.ms-team-directory-card__logo {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.ms-team-directory-card__logo img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.ms-team-directory-card__logo span {
    font-size: 14px;
    font-weight: 900;
}

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

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

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

.ms-team-directory-card > strong {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}

.ms-team-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-team-directory__results {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

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

    .ms-team-directory__controls {
        grid-template-columns: 1fr;
    }

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

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

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

    .ms-team-directory-card__logo {
        width: 48px;
        height: 48px;
    }
}

