.pitch {
    width: min(100%, 900px);
    aspect-ratio: .82;
    min-height: 0;
    margin-inline: auto;
    padding: 8% 3.5%;
    background-image:
        linear-gradient(0deg, transparent 49.7%, #ffffff88 49.7%, #ffffff88 50.3%, transparent 50.3%),
        repeating-linear-gradient(0deg, #ffffff09 0, #ffffff09 82px, transparent 82px, transparent 164px);
}

.pitch-row {
    position: relative;
    z-index: 3;
    align-items: center;
}

.pitch-box,
.pitch-goal {
    position: absolute;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    border: 2px solid #ffffff88;
}

.pitch-box { width: 52%; height: 16%; }
.pitch-box-top { top: 20px; border-top: 0; }
.pitch-box-bottom { bottom: 20px; border-bottom: 0; }
.pitch-goal { width: 21%; height: 12px; }
.pitch-goal-top { top: 8px; border-bottom: 0; }
.pitch-goal-bottom { bottom: 8px; border-top: 0; }

.club-shirt {
    display: block;
    width: 82px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 8px 7px #002414aa);
}

.pitch-player { gap: 4px; }

.pitch-player strong {
    margin-top: 0;
    line-height: 1.2;
}

.pitch-player > span:last-child {
    margin-top: 0;
    border-radius: 5px;
    line-height: 1.35;
}

.bench {
    width: min(calc(100% - 40px), 900px);
    margin-inline: auto;
    flex-wrap: wrap;
}

.bench a { grid-template-columns: 48px auto; }
.bench-shirt { width: 46px; height: 50px; object-fit: contain; grid-row: 1 / span 2; }

@media (max-width: 650px) {
    .pitch { width: 100%; aspect-ratio: .72; padding: 9% 1%; }
    .club-shirt { width: 58px; height: 64px; }
    .pitch-player { gap: 3px; }
    .bench { width: calc(100% - 10px); }
}

.captain-admin-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.captain-admin-toolbar label { margin: 0; }

.captain-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.captain-admin-row {
    display: grid;
    grid-template-columns: minmax(130px, .65fr) minmax(240px, 1.35fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.captain-admin-row > div { display: flex; flex-direction: column; }
.captain-admin-row small { color: var(--muted); }
.captain-admin-row select { width: 100%; min-width: 0; }

.member-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.compare-week {
    padding: 10px 15px;
    color: var(--lime);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
}

.comparison-breakdown { align-items: start; }
.compare-status-heading { margin-top: 44px; }
.compare-status-heading p { margin: 6px 0 0; }

.squad-watch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.squad-watch-side {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.squad-watch-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3px 13px;
    border-bottom: 1px solid var(--line);
}

.squad-watch-title h3 { margin: 0; }
.squad-watch-title span { color: var(--muted); font-size: .75rem; }

.manager-watch {
    padding: 16px 3px;
    border-bottom: 1px solid var(--line);
}

.manager-watch:last-child { border-bottom: 0; padding-bottom: 2px; }

.manager-watch > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.manager-watch > header > div { display: flex; flex-direction: column; min-width: 0; }
.manager-watch > header small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.team-captain-chip {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #07130e;
    background: var(--lime);
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
}

.fpl-chip-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-left: 7px;
    padding: 3px 7px;
    color: #07130e;
    background: linear-gradient(135deg, #ffd86b, #ff9f43);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fpl-chip-badge.compact { vertical-align: 1px; }

.manager-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip-stat { border-color: #ffbd59; }
.chip-stat strong { color: #ffd86b; font-size: clamp(1.5rem, 2.6vw, 2.5rem); }

.watch-section + .watch-section { margin-top: 13px; }

.watch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.watch-label b {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 5px;
    color: #07130e;
    background: var(--lime);
    border-radius: 7px;
}

.watch-players {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.watch-player {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 7px;
    background: var(--panel2);
    border: 1px solid transparent;
    border-radius: 9px;
}

.watch-player:hover { border-color: var(--lime); }
.watch-player.is-bench { background: #091a12; }
.watch-player img { width: 40px; height: 44px; object-fit: contain; }
.watch-player > span { display: flex; flex-direction: column; min-width: 0; }
.watch-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.watch-player small { color: var(--lime); font-size: .68rem; }

.mini-captain {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    margin-inline-start: 3px;
    color: var(--lime);
    background: #07130e;
    border-radius: 50%;
    font-size: .58rem;
}

.watch-empty {
    margin: 0;
    padding: 10px;
    background: #091a12;
    border-radius: 8px;
    font-size: .72rem;
}

@media (max-width: 950px) {
    .captain-admin-grid { grid-template-columns: 1fr; }
    .squad-watch-grid { grid-template-columns: 1fr; }
    .manager-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .captain-admin-toolbar,
    .captain-admin-row { grid-template-columns: 1fr; }
    .watch-players { grid-template-columns: 1fr; }
    .manager-stat-grid { grid-template-columns: 1fr; }
}
