.players-list-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.players-list-section {
    padding: 110px 0 60px;
}

/* ── Toolbar ── */
.pl-toolbar {
    margin: 14px 0 10px;
}

.pl-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
}

.pl-search-icon {
    position: absolute;
    left: 10px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0.5;
}

.pl-search {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 7px 32px 7px 30px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.15s;
}

.pl-search:focus { border-color: var(--neon-purple, #9b59b6); }
.pl-search::placeholder { color: var(--text-dim); }

.pl-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.pl-clear-btn:hover { opacity: 1; }

/* ── Table ── */
.pl-table {
    width: 100%;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    overflow: hidden;
}

.pl-thead {
    display: grid;
    grid-template-columns: 40px 44px 1fr 1fr 78px 78px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-dark);
}

.pl-th {
    padding: 8px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.pl-th--first,
.pl-th--last,
.pl-th--rating,
.pl-th--form {
    cursor: pointer;
    transition: color 0.15s;
}

.pl-th--first:hover,
.pl-th--last:hover,
.pl-th--rating:hover,
.pl-th--form:hover { color: var(--text-white); }

.pl-th--rating,
.pl-th--form {
    justify-content: flex-end;
    overflow: hidden;
    white-space: nowrap;
}

.pl-sort-icon { font-size: 0.7rem; line-height: 1; }
.pl-sort-icon--inactive { opacity: 0.3; }
.pl-sort-icon--active { color: var(--neon-blue); opacity: 1; }

/* ── Body rows ── */
.pl-tbody {
    display: flex;
    flex-direction: column;
}

.pl-row {
    display: grid;
    grid-template-columns: 40px 44px 1fr 1fr 78px 78px;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background 0.12s;
    animation: fadeInUp 0.3s ease backwards;
}

.pl-row:last-child { border-bottom: none; }
.pl-row:hover { background: var(--bg-elevated); }

.pl-row--blurred {
    cursor: default;
    opacity: 0.65;
}
.pl-row--blurred:hover { background: transparent; }

.pl-td {
    padding: 8px 12px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-td--avatar { padding: 6px 8px 6px 10px; }

.pl-th--rank {
    font-size: 0.65rem;
    padding: 8px 4px 8px 10px;
    justify-content: center;
}

.pl-td--rank {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-align: center;
    padding: 8px 4px 8px 10px;
}

.pl-avatar--blurred {
    filter: blur(4px);
    background: var(--bg-elevated);
}

.pl-blurred-text {
    display: inline-block;
    filter: blur(5px);
    color: var(--text-dim);
    letter-spacing: 2px;
    user-select: none;
}

.pl-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-elevated), var(--border-dark));
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
}

.pl-td--rating,
.pl-td--form { text-align: right; }

.pl-rating {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--electric-green, #00ff88);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    padding: 2px 8px;
}

.pl-form {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--neon-blue, #00d4ff);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 10px;
    padding: 2px 8px;
}

.pl-rating--na {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ── Empty ── */
.pl-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}
.pl-empty span { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.4; }
.pl-empty p { font-family: 'Exo 2', sans-serif; font-size: 0.85rem; }

/* ── Pagination ── */
.pl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.pl-page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.pl-page-btn:hover { border-color: var(--neon-blue); }

.pl-page-info {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* Title row (matches hub styling; this page only loads list.css) */
.players-list-page .section-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.players-list-page .section-title-row h2 {
    font-size: 1.35rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-list-page .section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--electric-green, #00ff88), var(--neon-blue));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.players-list-page .section-line {
    flex: 1;
    height: 1px;
    min-width: 40px;
    background: linear-gradient(90deg, var(--border-dark), transparent);
}

.players-list-page .squad-count {
    padding: 6px 12px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-purple);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .players-list-section {
        padding: 100px 0 48px;
    }

    .pl-toolbar {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .pl-table {
        overflow-x: hidden;
    }

    .players-list-section {
        padding: 92px 0 36px;
    }

    .players-list-page .section-title-row {
        gap: 8px;
    }

    .players-list-page .section-title-row h2 {
        font-size: 1.1rem;
        gap: 8px;
    }

    .players-list-page .section-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .players-list-page .squad-count {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .pl-toolbar {
        margin: 8px 0 8px;
    }

    .pl-search-wrap {
        max-width: none;
    }

    .pl-search {
        padding: 7px 30px 7px 28px;
        font-size: 0.8rem;
    }

    .pl-search-icon {
        left: 9px;
        font-size: 0.72rem;
    }

    .pl-thead,
    .pl-row {
        grid-template-columns: 21px 30px minmax(0, 1fr) minmax(0, 1fr) 46px 50px;
        min-width: 0;
    }

    .pl-th,
    .pl-td {
        padding: 6px 4px;
        font-size: 0.88rem;
    }

    .pl-th--rank {
        padding: 5px 2px;
        justify-content: center;
        font-size: 0.64rem;
    }

    .pl-td--rank {
        padding: 5px 2px;
        font-size: 0.66rem;
    }

    .pl-th--avatar {
        padding: 5px 2px;
    }

    .pl-td--avatar {
        padding: 3px 2px;
    }

    .pl-avatar {
        width: 23px;
        height: 23px;
        font-size: 0.58rem;
    }

    .pl-th--first,
    .pl-th--last,
    .pl-td--first,
    .pl-td--last {
        min-width: 0;
    }

    .pl-td--first {
        font-weight: 600;
    }

    .pl-td--last {
        color: var(--text-dim);
    }

    .pl-th--rating,
    .pl-td--rating,
    .pl-th--form,
    .pl-td--form {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: right;
        padding-right: 4px;
    }

    .pl-sort-icon {
        display: none;
    }

    .pl-rating,
    .pl-form {
        font-size: 0.78rem;
        padding: 1px 4px;
        border-radius: 8px;
    }

    .pl-rating--na {
        font-size: 0.83rem;
    }

    .pl-pagination {
        gap: 10px;
        margin-top: 10px;
    }

    .pl-page-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 0.92rem;
    }

    .pl-page-info {
        font-size: 0.74rem;
    }
}

@media (max-width: 480px) {
    .pl-thead,
    .pl-row {
        grid-template-columns: 18px 24px minmax(0, 1fr) minmax(0, 1fr) 40px 44px;
    }

    .pl-th,
    .pl-td {
        padding: 4px 3px;
        font-size: 0.8rem;
    }

    .pl-rating,
    .pl-form {
        font-size: 0.7rem;
        padding: 1px 3px;
    }

    .pl-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.52rem;
    }
}
