/* ── Page header ── */
.page-header          { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dir-count            { font-size: 0.88em; color: var(--muted, #888); font-weight: 600; }

/* ── Search bar ── */
.dir-search-bar       { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.dir-search-bar input { flex: 1; min-width: 180px; padding: 9px 14px; border: 1.5px solid #ddd;
    border-radius: 8px; font-size: 0.95em; font-family: inherit; }
.dir-search-bar input:focus { outline: none; border-color: var(--cricket-blue, #1565C0); }
.dir-search-bar select { padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 0.9em; font-family: inherit; background: #fff; cursor: pointer; }
.dir-search-bar select:focus { outline: none; border-color: var(--cricket-blue, #1565C0); }

/* ── Player grid ── */
.dir-grid             { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px; margin-bottom: 24px; }

/* ── Player card ── */
.dir-card             { display: flex; align-items: center; gap: 12px; padding: 14px;
    border: 1.5px solid #e8e8e8; border-radius: 10px; background: #fff;
    text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.dir-card:hover       { border-color: var(--cricket-blue, #1565C0); box-shadow: 0 2px 8px rgba(21,101,192,0.12); }

/* ── Avatar ── */
.dir-avatar           { width: 44px; height: 44px; border-radius: 50%; background: var(--cricket-blue, #1565C0);
    color: #fff; font-size: 1em; font-weight: 700; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 0.5px; }

/* ── Info ── */
.dir-info             { min-width: 0; }
.dir-name             { font-weight: 700; font-size: 0.92em; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.dir-shirt            { font-size: 0.78em; color: var(--muted, #888); font-weight: 400; }
.dir-team             { font-size: 0.8em; color: var(--muted, #888); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-role             { display: inline-block; font-size: 0.72em; font-weight: 700;
    padding: 2px 7px; border-radius: 10px; margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.4px; }
.role--bat            { background: #E3F2FD; color: #1565C0; }
.role--bowl           { background: #FFF3E0; color: #E65100; }
.role--all            { background: #E8F5E9; color: #2E7D32; }
.role--keep           { background: #F3E5F5; color: #6A1B9A; }

/* ── Pagination ── */
#dirPagination        { margin-top: 8px; }
.pagination-bar       { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 14px 4px 6px; font-size: 0.88em; }
.pg-prev,
.pg-next              { padding: 6px 12px; border: 1.5px solid #ddd; border-radius: 6px; background: white; color: #444; font-weight: 600; font-size: 0.9em; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.pg-prev:hover:not(:disabled),
.pg-next:hover:not(:disabled) { background: var(--cricket-blue, #1565C0); border-color: var(--cricket-blue, #1565C0); color: white; }
.pg-prev:disabled,
.pg-next:disabled     { opacity: 0.35; cursor: default; }
.pg-nums              { display: flex; align-items: center; gap: 3px; }
.pg-num               { min-width: 34px; height: 34px; padding: 0 6px; border: 1.5px solid #ddd; border-radius: 6px; background: white; color: #444; font-weight: 600; font-size: 0.88em; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.pg-num:hover         { background: #f0f4ff; border-color: var(--cricket-blue, #1565C0); color: var(--cricket-blue, #1565C0); }
.pg-num.active        { background: var(--cricket-blue, #1565C0); border-color: var(--cricket-blue, #1565C0); color: white; cursor: default; }
.pg-ellipsis          { padding: 0 4px; color: #888; }

/* ── States ── */
.loading-state        { padding: 40px; text-align: center; color: #888; }
.error-state          { padding: 20px; color: #c62828; background: #ffebee;
    border-radius: 8px; margin-bottom: 16px; }
.empty-state          { padding: 40px; text-align: center; color: #888; }
.hidden               { display: none !important; }
