.efpd-coach-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---- Filters ---- */

.efpd-coach-list__filters {
    padding: 1.1rem 1.25rem 1.25rem;
    border: 1px solid var(--efpd-border);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, var(--efpd-surface) 0%, var(--efpd-surface-muted) 100%);
    box-shadow: 0 1px 2px rgba(29, 39, 51, 0.04);
}

.efpd-coach-list__filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.85rem 0.9rem;
}

.efpd-coach-list__filter-field--search {
    grid-column: span 2;
}

.efpd-coach-list__filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-width: 0;
}

.efpd-coach-list__filter-field label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--efpd-muted);
}

.efpd-coach-list__filter-field input[type="text"],
.efpd-coach-list__filter-field select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--efpd-border);
    border-radius: 0.45rem;
    background: var(--efpd-surface);
    color: var(--efpd-text);
    font-size: 0.85rem;
    line-height: 1.3;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.efpd-coach-list__filter-field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--efpd-muted) 50%),
        linear-gradient(135deg, var(--efpd-muted) 50%, transparent 50%);
    background-position: right 0.9rem center, right 0.65rem center;
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
    background-repeat: no-repeat;
    padding-right: 1.6rem;
}

.efpd-coach-list__filter-field input:focus,
.efpd-coach-list__filter-field select:focus {
    outline: none;
    border-color: #31364b;
    box-shadow: 0 0 0 3px rgba(49, 54, 75, 0.12);
}

.efpd-coach-list__filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--efpd-border);
}

.efpd-coach-list__filter-actions.is-empty {
    display: none;
}

.efpd-coach-list__filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem 0.4rem 0.65rem;
    border: 1px solid var(--efpd-border);
    border-radius: 999px;
    background: var(--efpd-surface);
    color: var(--efpd-text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.efpd-coach-list__filter-clear:hover {
    background: var(--efpd-surface-muted);
    border-color: #31364b;
}

.efpd-coach-list__filter-clear-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--efpd-surface-soft);
    font-size: 0.85rem;
    line-height: 1;
    color: var(--efpd-muted);
}

.efpd-coach-list__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #31364b;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

/* ---- Result count ---- */

.efpd-coach-list__result-count {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--efpd-muted);
}

/* ---- Grid & items ---- */

.efpd-coach-list__results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.efpd-coach-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 1.1rem 0.85rem;
}

.efpd-coach-list__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.65rem 0.55rem 0.75rem;
    border-radius: 0.65rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}

.efpd-coach-list__item:focus-visible {
    outline: 2px solid #31364b;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .efpd-coach-list__item:hover {
        background: var(--efpd-surface-muted);
        transform: translateY(-2px);
    }
}

.efpd-coach-list__item-name {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--efpd-text);
}

.efpd-coach-list__item-meta {
    margin: 0;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: var(--efpd-surface-soft);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--efpd-muted);
    line-height: 1.3;
}

/* ---- Coach card ---- */

.efpd-coach-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.efpd-coach-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 0.55rem;
    overflow: hidden;
    background: transparent;
}

.efpd-coach-card__media .efpd-coach-portrait {
    border-radius: 0.55rem;
}

.efpd-coach-card__ovr {
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 1.9rem;
    padding: 0.12rem 0.2rem 0.18rem;
    border-radius: 0.28rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    line-height: 1;
}

.efpd-coach-card__ovr-value {
    font-family: "eFootballSans", "eFootballStencil", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.efpd-coach-card__ovr-pos {
    margin-top: 0.08rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.efpd-coach-card__boost {
    position: absolute;
    right: 0.35rem;
    top: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.25rem;
    background: #ffc700;
    color: #1d2733;
    font-size: 0.62rem;
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.efpd-coach-card__styles {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.efpd-coach-card__style {
    display: grid;
    grid-template-columns: 2.1rem 1fr 1.35rem;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--efpd-muted);
}

.efpd-coach-card__style.is-top {
    color: var(--efpd-text);
}

.efpd-coach-card__style-label {
    text-align: left;
    letter-spacing: 0.02em;
}

.efpd-coach-card__style-bar {
    display: block;
    height: 0.28rem;
    border-radius: 999px;
    background: var(--efpd-surface-soft);
    overflow: hidden;
}

.efpd-coach-card__style-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b6b8c 0%, #31364b 100%);
}

.efpd-coach-card__style.is-top .efpd-coach-card__style-fill {
    background: linear-gradient(90deg, #00d4aa 0%, #00a884 100%);
}

.efpd-coach-card__style-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- Empty / loading / infinite scroll ---- */

.efpd-coach-list__empty {
    padding: 2.5rem 1rem;
    border: 1px dashed var(--efpd-border);
    border-radius: 0.75rem;
    background: var(--efpd-surface-muted);
    text-align: center;
    font-weight: 600;
    color: var(--efpd-muted);
}

.efpd-coach-list.is-filtering .efpd-coach-list__grid {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.efpd-coach-list__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 0 0.25rem;
    color: var(--efpd-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.efpd-coach-list__loader[hidden] {
    display: none;
}

.efpd-coach-list__loader-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--efpd-border);
    border-top-color: #31364b;
    border-radius: 50%;
    animation: efpd-coach-list-spin 0.7s linear infinite;
}

.efpd-coach-list__sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

.efpd-coach-list__end {
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--efpd-muted);
}

/* ---- SEO pagination ---- */

.efpd-coach-list__pagination-wrap {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--efpd-border);
}

.efpd-coach-list__pagination {
    display: flex;
    justify-content: center;
}

.efpd-coach-list__page-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.efpd-coach-list__page-item {
    display: inline-flex;
}

.efpd-coach-list__pagination a,
.efpd-coach-list__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--efpd-muted);
    text-decoration: none;
    background: transparent;
}

.efpd-coach-list__pagination a:hover {
    color: var(--efpd-text);
    background: var(--efpd-surface-muted);
}

.efpd-coach-list__pagination span.current {
    color: #fff;
    background: #31364b;
}

.efpd-coach-list__pagination span.dots {
    min-width: auto;
    color: var(--efpd-muted);
}

@keyframes efpd-coach-list-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .efpd-coach-list__filter-field--search {
        grid-column: 1 / -1;
    }

    .efpd-coach-list__grid {
        grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr));
        gap: 0.9rem 0.55rem;
    }

    .efpd-coach-list__filter-actions {
        justify-content: stretch;
    }

    .efpd-coach-list__filter-clear {
        width: 100%;
        justify-content: center;
    }
}
