/* Broadcast roster cards. Kept separate from profile and shared card styling. */
.roster-grid {
    gap: 20px;
}

.nwa-broadcast .superstar-card {
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 470px;
    flex-direction: column;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--brand-color) 25%, rgba(205, 216, 236, 0.16));
    background: #0d131d;
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.035);
    transition: border-color 190ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.nwa-broadcast .superstar-card::before {
    z-index: 10;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-color), color-mix(in srgb, var(--brand-color) 45%, #fff));
    box-shadow: 0 0 16px color-mix(in srgb, var(--brand-color) 32%, transparent);
}

.nwa-broadcast .superstar-portrait-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    height: 260px;
    flex: 0 0 260px;
    place-items: end center;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--brand-color) 27%, transparent), transparent 54%),
        linear-gradient(150deg, color-mix(in srgb, var(--brand-color) 12%, #182131), #0d131d 68%);
    background-size: 42px 42px, 42px 42px, auto, auto;
}

.nwa-broadcast .superstar-portrait-stage::before {
    position: absolute;
    z-index: 0;
    top: -22%;
    left: 48%;
    width: 76%;
    height: 145%;
    border-left: 1px solid color-mix(in srgb, var(--brand-color) 25%, transparent);
    border-right: 1px solid rgba(255, 255, 255, 0.035);
    background: linear-gradient(110deg, color-mix(in srgb, var(--brand-color) 8%, transparent), transparent 72%);
    content: "";
    opacity: 0.8;
    transform: skewX(-15deg);
    transition: opacity 220ms ease, transform 300ms ease;
    pointer-events: none;
}

.nwa-broadcast .superstar-portrait-stage::after {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 28px;
    background: linear-gradient(to bottom, transparent, #0d131d);
    content: "";
    pointer-events: none;
}

.superstar-card-topline {
    position: absolute;
    z-index: auto;
    top: 17px;
    right: 17px;
    left: 17px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.superstar-card-topline .brand-badge {
    position: relative;
    z-index: 7;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--brand-color) 28%, rgba(205, 216, 236, 0.15));
    border-radius: 999px;
    background: rgba(7, 11, 18, 0.72);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(8px);
}

.superstar-brand-plaque {
    position: relative;
    z-index: 2;
    display: grid;
    width: 104px;
    height: 44px;
    padding: 6px 9px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-color) 34%, rgba(205, 216, 236, 0.16));
    border-radius: 9px 3px 9px 3px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 12%, transparent), transparent 62%),
        rgba(7, 11, 18, 0.78);
    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(8px);
}

.superstar-brand-plaque--impact {
    width: 78px;
    height: 50px;
}

.superstar-brand-plaque--lockdown {
    width: 116px;
    height: 42px;
}

.superstar-brand-plaque .superstar-brand-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.42));
}

.superstar-overall {
    position: relative;
    z-index: 7;
    display: grid;
    min-width: 60px;
    min-height: 60px;
    place-items: center;
    align-content: center;
    gap: 1px;
    border: 1px solid color-mix(in srgb, var(--brand-color) 42%, rgba(255, 255, 255, 0.14));
    border-radius: 10px 3px 10px 3px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 15%, transparent), transparent),
        rgba(7, 11, 18, 0.82);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.superstar-overall strong {
    color: #fff;
    font-family: var(--display);
    font-size: 27px;
    font-weight: 900;
    line-height: 0.9;
}

.superstar-overall small {
    color: #9da5b4;
    font-family: var(--display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.nwa-broadcast .superstar-portrait-stage .avatar-card {
    position: relative;
    z-index: 3;
}

.nwa-broadcast .superstar-portrait-stage .avatar-card.avatar-has-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nwa-broadcast .superstar-portrait-stage .avatar-card.avatar-has-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 17px 18px rgba(0, 0, 0, 0.58));
    transition: filter 240ms ease, transform 280ms cubic-bezier(.2, .75, .25, 1);
}

.superstar-stage-mark {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    color: color-mix(in srgb, var(--brand-color) 16%, rgba(255, 255, 255, 0.06));
    font-family: var(--display);
    font-size: 84px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    opacity: 0.36;
    transform: translate(-50%, -50%) skewX(-8deg);
    pointer-events: none;
}

.nwa-broadcast .superstar-card--placeholder .avatar-card:not(.avatar-has-image) {
    z-index: 3;
    width: 142px;
    height: 142px;
    margin-bottom: 35px;
    border: 1px solid color-mix(in srgb, var(--brand-color) 40%, rgba(255, 255, 255, 0.16));
    border-radius: 0;
    clip-path: polygon(12% 0, 100% 0, 100% 78%, 88% 100%, 0 100%, 0 22%);
    background:
        radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.11), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 15%, #263143), #101621 68%);
    color: #edf1f7;
    font-size: 48px;
    letter-spacing: 0.035em;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36));
    box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.025);
}

.nwa-broadcast .superstar-portrait-stage .portrait-glow {
    z-index: 2;
    right: 17%;
    bottom: 7px;
    left: 17%;
    height: 30px;
    opacity: 0.58;
    filter: blur(20px);
    transition: opacity 220ms ease, transform 260ms ease;
}

.nwa-broadcast .superstar-card-copy {
    position: relative;
    z-index: 6;
    display: flex;
    min-height: 210px;
    flex: 1;
    flex-direction: column;
    margin-top: -14px;
    padding: 25px 20px 19px;
    border-top: 1px solid color-mix(in srgb, var(--brand-color) 26%, rgba(205, 216, 236, 0.12));
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 5%, transparent), transparent 45%),
        #0d131d;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.2);
}

.nwa-broadcast .superstar-identity h2 {
    margin: 0;
    overflow: hidden;
    color: #f7f8fb;
    font-size: clamp(25px, 2vw, 30px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nwa-broadcast .superstar-identity p {
    margin: 7px 0 0;
    overflow: hidden;
    color: #929baa;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nwa-broadcast .superstar-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top-color: rgba(205, 216, 236, 0.12);
}

.nwa-broadcast .superstar-meta span {
    min-width: 0;
}

.nwa-broadcast .superstar-meta small {
    overflow: hidden;
    color: #778191;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nwa-broadcast .superstar-meta strong {
    margin-top: 3px;
    overflow: hidden;
    color: #edf0f5;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.superstar-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 17px;
    color: #aeb6c3;
    font-family: var(--display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.superstar-card-link span {
    color: var(--brand-color);
    font-size: 17px;
    transition: transform 180ms ease;
}

@media (hover: hover) {
    .nwa-broadcast .superstar-card:hover {
        border-color: color-mix(in srgb, var(--brand-color) 52%, rgba(255, 255, 255, 0.2));
        box-shadow:
            0 27px 66px rgba(0, 0, 0, 0.42),
            0 0 32px color-mix(in srgb, var(--brand-color) 9%, transparent),
            inset 0 1px rgba(255, 255, 255, 0.045);
        transform: translateY(-4px);
    }

    .nwa-broadcast .superstar-card:hover .superstar-portrait-stage::before {
        opacity: 1;
        transform: translateX(-5px) skewX(-15deg);
    }

    .nwa-broadcast .superstar-card--render:hover .avatar-card img {
        filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.62));
        transform: translateY(-3px) scale(1.012);
    }

    .nwa-broadcast .superstar-card:hover .portrait-glow {
        opacity: 0.82;
        transform: scaleX(1.08);
    }

    .nwa-broadcast .superstar-card:hover .superstar-card-link {
        color: #fff;
    }

    .nwa-broadcast .superstar-card:hover .superstar-card-link span {
        transform: translateX(3px);
    }
}

@media (max-width: 1050px) {
    .nwa-broadcast .superstar-portrait-stage {
        height: 280px;
        flex-basis: 280px;
    }
}

@media (max-width: 780px) {
    .roster-grid .superstar-card {
        width: min(100%, 520px);
        margin-inline: auto;
    }

    .nwa-broadcast .superstar-portrait-stage {
        height: 270px;
        flex-basis: 270px;
    }
}

@media (max-width: 480px) {
    .nwa-broadcast .superstar-card {
        min-height: 440px;
    }

    .nwa-broadcast .superstar-portrait-stage {
        height: 245px;
        flex-basis: 245px;
    }

    .superstar-card-topline {
        top: 14px;
        right: 14px;
        left: 14px;
    }

    .superstar-brand-plaque {
        transform: scale(0.92);
        transform-origin: top left;
    }

    .superstar-overall {
        min-width: 55px;
        min-height: 55px;
    }

    .nwa-broadcast .superstar-card-copy {
        min-height: 195px;
        padding: 23px 18px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nwa-broadcast .superstar-card,
    .nwa-broadcast .superstar-portrait-stage::before,
    .nwa-broadcast .superstar-portrait-stage .avatar-card img,
    .nwa-broadcast .superstar-portrait-stage .portrait-glow,
    .superstar-card-link,
    .superstar-card-link span {
        transition: none;
    }

    .nwa-broadcast .superstar-card:hover,
    .nwa-broadcast .superstar-card:hover .superstar-portrait-stage::before,
    .nwa-broadcast .superstar-card--render:hover .avatar-card img,
    .nwa-broadcast .superstar-card:hover .portrait-glow,
    .nwa-broadcast .superstar-card:hover .superstar-card-link span {
        transform: none;
    }
}
