.shadow-description {
    margin: 0 0 28px;
    color: var(--mud-palette-text-secondary);
}

.shadow-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.shadow-pitch-container {
    flex: 0 1 500px;
    min-width: 0;
}

.shadow-pitch-paper {
    padding: 12px;
    border-radius: 16px;
}
.shadow-pitch {
    position: relative;
    width: 500px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: repeating-linear-gradient(0deg, #2e7d4f 0px, #2e7d4f 34px, #35895a 34px, #35895a 68px);
}
.shadow-halfway-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
}
.shadow-center-circle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 26%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.shadow-pitch-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #FFFFFF;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
}

.shadow-pitch-loading span {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
}

.shadow-pitch::before {
    content: "";
}

.shadow-penalty-area {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 58%;
    height: 17%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-bottom: none;
}

.shadow-goal-area {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 28%;
    height: 7%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-bottom: none;
}
.shadow-goal {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 16%;
    height: 3%;
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: none;
}
.shadow-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(68px, 19%, 96px);
    text-align: center;
    z-index: 2;
}

.shadow-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 6px;
    border-radius: 12px;
    color: white;
    min-width: 88px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shadow-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.shadow-avatar {
    width: clamp(28px, 8%, 38px);
    height: clamp(28px, 8%, 38px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 4px;
}

.shadow-player-name {
    font-size: clamp(0.58rem, 1.4vw, 0.7rem);
    font-weight: 600;
    line-height: 1.15;
    max-width: 100%;
    text-align: center;
    word-break: keep-all;
}

.shadow-player-score {
    font-size: clamp(0.56rem, 1.3vw, 0.68rem);
    font-weight: 600;
    opacity: 0.9;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 999px;
}
.shadow-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.shadow-formation-select {
    width: 180px;
    flex: 0 0 auto;
}
.shadow-title {
    margin: 0 0 12px !important;
}

.shadow-rankings {
    flex: 1 1 420px;
    min-width: 0;
    max-height: 680px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    background: var(--mud-palette-surface);
}

.shadow-rankings__header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.shadow-rankings__position {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shadow-rankings__tabs {
    display: flex;
    width: 100%;
    padding: 2px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
}

.shadow-rankings__tabs .mud-button-root {
    flex: 1;
    min-width: 0;
}

.shadow-rankings__title {
    margin-bottom: 0.5rem;
}

.shadow-ranking-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 0.65rem;
    min-height: 86px;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.shadow-ranking-row:last-child {
    border-bottom: 0;
}

.shadow-ranking-row__number {
    text-align: center;
}

.shadow-ranking-row__details {
    min-width: 0;
    overflow: hidden;
}

.shadow-ranking-row__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-ranking-row__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-ranking-row__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3rem;
    font-size: 0.75rem;
}

.shadow-ranking-row__metrics span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.shadow-ranking-row__metrics .mud-icon-root {
    width: 15px;
    height: 15px;
    color: var(--mud-palette-primary);
}

.shadow-ranking-row__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

@media (max-width: 1200px) {
    .shadow-pitch {
        width: 440px;
    }

    .shadow-content {
        gap: 1rem;
    }

    .shadow-rankings {
        min-width: 0;
        padding: 1rem;
    }
}

@media (max-width: 900px) {
    .shadow-content {
        flex-direction: column;
        align-items: stretch;
    }

    .shadow-pitch-container {
        flex: none;
        width: 100%;
    }

    .shadow-pitch-paper {
        width: 100%;
        box-sizing: border-box;
    }

    .shadow-pitch {
        width: 100%;
        max-width: 460px;
        height: auto;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .shadow-pitch-paper {
        padding: 6px;
    }

    .shadow-player {
        padding: 5px 4px;
        min-width: 0;
    }

    .shadow-rankings {
        width: 100%;
        min-width: 0;
        max-height: none;
    }
}

@media (max-width: 520px) {
    .shadow-rankings__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .shadow-ranking-row {
        grid-template-columns: 1.5rem minmax(0, 1fr) 2.5rem;
        gap: 0.35rem;
    }

    .shadow-ranking-row__actions {
        grid-column: 3;
        gap: 0.35rem;
    }
}