.shadow-team-page .sidebar-sticky-content {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1.75rem 1.5rem 2rem 1.5rem;
}

.shadow-team-count {
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-off-white);
    color: var(--color-dark-blue);
    box-shadow: 0 2px 8px rgba(0, 80, 160, 0.06);
}

.shadow-team-formation-select select {
    border-color: var(--color-secondary-off-white);
    color: var(--color-secondary-charcoal);
    font-weight: 600;
}

.pitch-figure {
    width: 100%;
    max-width: 1600px;
}

.pitch-selection-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.position-candidates-panel {
    min-width: 0;
    align-self: stretch;
    max-height: min(577px, calc(100vh - 180px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 8px 24px rgba(15, 42, 72, 0.06);
}

.rising-star-shortlist-heading {
    margin-top: 1.75rem;
}

.position-candidates-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8edf3;
}

.position-candidates-eyebrow {
    margin-bottom: 0.35rem;
    color: var(--color-highlight-blue);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.position-candidates-panel .title {
    line-height: 1.25;
    color: var(--color-reflex-blue);
}

.position-candidates-hint {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
}

.position-candidates-count {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--color-reflex-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.position-candidates-table-wrap {
    overflow-x: hidden;
    border: 1px solid #edf1f5;
    border-radius: 8px;
}

.position-candidates-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.position-candidates-table .player-column {
    width: 30%;
}

.position-candidates-table .metric-column {
    width: 12%;
}

.position-candidates-table .compare-column {
    width: 22%;
}

.position-candidates-table th {
    padding: 0.45rem 0.25rem;
    background: #f5f8fc;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.position-candidates-table td {
    padding: 0.5rem 0.25rem;
    border-top: 1px solid #edf1f5;
    color: #475569;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.position-candidates-table tbody tr:hover {
    background: #f8fbff;
}

.position-candidates-table .score-column {
    text-align: center;
}

.position-candidates-table td:first-child {
    min-width: 0;
    white-space: normal;
}

.position-candidate-name {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-reflex-blue);
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.shadow-team-compare-button {
    width: 100%;
    min-height: 1.8rem;
    padding: 0.2rem 0.25rem;
    font-size: 0.65rem;
    white-space: nowrap;
}

.position-candidate-detail {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.68rem;
}

.position-index-score {
    display: inline-flex;
    min-width: 2rem;
    justify-content: center;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    background: #eaf3ff;
    color: var(--color-reflex-blue);
    font-weight: 800;
}

.position-candidate-name:hover {
    text-decoration: underline;
}

.position-candidates-empty {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    text-align: center;
}

.position-candidates-empty i {
    color: #94a3b8;
    font-size: 1.5rem;
}

.position-candidates-empty p {
    margin: 0;
    font-size: 0.85rem;
}

.pitch {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 680 / 545;
    margin: 0 auto;
    border-radius: 8px;
    background-image: repeating-linear-gradient(
        to top,
        #35914f 0 9.09%,
        #2d7f44 9.09% 18.18%);
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 90px rgba(0, 40, 20, 0.35);
}

.pitch-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
    pointer-events: none;
}

.pitch-lines rect,
.pitch-lines path,
.pitch-lines circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 2;
}

.pitch-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.pitch-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: 8px;
    background-color: rgba(24, 78, 45, 0.75);
    color: #ffffff;
    z-index: 30;
}

.shadow-player-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 66px;
}

.jersey {
    position: relative;
    display: block;
    width: 54px;
    height: 51px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.jersey.is-selected .jersey-body {
    stroke: #ffd166;
    stroke-width: 6;
}

.jersey-shape {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s ease;
}

.jersey-body {
    fill: var(--tier-color, #0050A0);
    stroke: #ffffff;
    stroke-width: 3.5;
    stroke-linejoin: round;
}

.jersey-label {
    fill: #ffffff;
    font-size: 26px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.is-empty .jersey-body {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(255, 255, 255, 0.6);
    stroke-dasharray: 6 5;
}

.is-empty .jersey-label {
    fill: rgba(255, 255, 255, 0.65);
}

.is-filled:hover .jersey-shape,
.is-filled:focus-within .jersey-shape {
    transform: scale(1.12);
}

.jersey-score {
    position: absolute;
    top: -9px;
    right: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background-color: var(--tier-color, #94a3b8);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slot-name {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.slot-name.is-empty {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-style: italic;
}

.slot-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 11px;
    border-radius: 8px;
    background-color: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    text-align: left;
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    z-index: 40;
    pointer-events: none;
}

.shadow-player-card:hover .slot-tooltip,
.shadow-player-card:focus-within .slot-tooltip {
    display: flex;
}

.tooltip-align-left .slot-tooltip {
    left: 0;
    transform: none;
}

.tooltip-align-right .slot-tooltip {
    left: auto;
    right: 0;
    transform: none;
}

.slot-tooltip-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.74rem;
}

.slot-tooltip-line {
    display: block;
}

@media screen and (max-width: 1200px) {
    .pitch-selection-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .position-candidates-panel {
        max-height: none;
        overflow-y: visible;
    }

    .pitch {
        max-width: 760px;
    }
}

@media screen and (max-width: 768px) {
    .pitch-figure {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem !important;
    }

    .position-candidates-panel {
        padding: 0.9rem;
    }
}
