.pitch-container {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pitch {
    position: relative;
    background: linear-gradient(to bottom, #2d5f3f 0%, #1a4d2e 50%, #2d5f3f 100%);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.03) 50px, rgba(255, 255, 255, 0.03) 100px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    height: 650px;
    overflow: hidden;
}

.pitch-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
}

.pitch-center {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.pitch-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.pitch-box {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pitch-box-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 200px;
}

.pitch-box-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 200px;
}

.drop-zone {
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: none;
    /* Let drops pass through to pitch */
}

.drop-zone.drag-over {
    background: rgba(58, 241, 214, 0.1);
    border-color: var(--color-primary);
}

.player-pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
    min-height: 150px;
    /* Target for dropping back */
}

@media (max-width: 640px) {
    .player-pool {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.player-card {
    background: linear-gradient(135deg, rgba(30, 27, 59, 0.9) 0%, rgba(20, 18, 45, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    /* Changed to pointer for click indication */
    transition: all 0.3s;
    position: relative;
    user-select: none;
    z-index: 20;
    /* Ensure clickable */
}

.player-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(58, 241, 214, 0.3);
}

.player-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.player-card.on-pitch {
    /* Absolute positioning is set by JS */
    width: 90px;
    z-index: 30;
    /* Above everything on pitch */
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(58, 241, 214, 0.4);
    transform: scale(0.9);
}

.player-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.player-overall {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
}

.player-name {
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-firstname {
    display: none;
}

@media (max-width: 640px) {
    .player-card.on-pitch {
        width: 54px;
        padding: 0.2rem;
        border-width: 1px;
    }

    .player-card.on-pitch .player-overall {
        font-size: 0.65rem;
    }

    .player-card.on-pitch .badge {
        font-size: 0.55rem;
        padding: 0.05rem 0.15rem;
    }

    .player-card.on-pitch .player-name {
        font-size: 0.55rem;
        line-height: 1;
        height: 2em;
        -webkit-line-clamp: 2;
        margin-bottom: 2px;
    }

    .player-card.on-pitch .mt-2 {
        margin-top: 0;
        display: block;
    }

    .player-card.on-pitch .mt-2 .flex {
        display: none;
        /* Hide "Forme" label and % text to save space, just show bar */
    }

    .player-card.on-pitch .h-1 {
        height: 3px;
        /* Slightly thicker bar for visibility without text */
        margin-top: 2px;
    }
}