/* ── LIST ── */
.plantilla__group-label {
    display: block;
    color: var(--ttf-gold);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin: 16px 0 8px;
}

.plantilla__list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--ttf-white);
    border: 1px solid var(--ttf-border);
    border-radius: var(--ttf-radius-md);
    cursor: pointer;
    transition: border-color 0.2s;
}

    .plantilla__list-row:hover {
        border-color: var(--ttf-gold);
    }

.plantilla__list-info {
    flex: 1;
}

.plantilla__avatar {
    background: var(--ttf-black) !important;
    color: var(--ttf-gold) !important;
    font-weight: 700 !important;
}

/* Avatar shows jersey number — needs slightly larger font */
.plantilla__avatar--sm {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
}

.plantilla__player-name {
    font-weight: 600 !important;
}

.plantilla__player-pos {
    color: var(--ttf-grey) !important;
}

.plantilla__rating-chip {
    margin-top: 6px !important;
}

/* ── FIELD HEADER ── */
.formation__header {
    text-align: center;
    margin-bottom: 16px;
}

.formation__title {
    display: block;
    color: var(--ttf-gold);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 2rem;
}

/* ── FIELD ── */
.formation__field {
    position: relative;
    width: 100%;
    aspect-ratio: 460 / 640;
    max-width: 520px;
    margin: 0 auto;
    border-radius: var(--ttf-radius-md);
    overflow: hidden;
    background: repeating-linear-gradient( to bottom, #1a3d1a 0px, #1a3d1a 40px, #1e4520 40px, #1e4520 80px );
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.formation__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── SLOT ── */
.formation__slot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* symmetrical spacing between all children */
    cursor: pointer;
    z-index: 10;
}

.formation__avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a6c, #0d2a50);
    border: 2px solid var(--ttf-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}

.formation__slot:hover .formation__avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(201,168,76,0.5);
}

.formation__avatar--empty {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    border-style: dashed;
}

/* Jersey number — bigger, bolder */
.formation__initials {
    color: var(--ttf-gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.formation__avatar--empty .formation__initials {
    color: rgba(255,255,255,0.3);
}

.formation__rating {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ttf-gold);
    color: var(--ttf-black);
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
}

/* Alias label — same gap as pos-code, symmetrical */
.formation__alias {
    color: #fff;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 2px 5px;
    border-radius: 3px;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px; /* pushes alias below rating badge cleanly */
}

/* Position code — 25% bigger, symmetrical margin */
.formation__pos-code {
    color: rgba(255,255,255,0.6);
    font-size: 0.63rem; /* was 0.42rem → +50% */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1px;
}
