/* POKER VIP - liste des joueurs : bouton du header + fenêtre */

/* ---------- Bouton (header de toutes les pages) ---------- */
html body header.top #players-list-open {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 12px !important;
    margin: 0;
    border: 1px solid #7a6536;
    border-radius: 9px;
    background: #07130f;
    color: #f4d38d;
    font: 800 12px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .5px;
    white-space: nowrap;
    cursor: pointer;
}
html body header.top #players-list-open:hover,
html body header.top #players-list-open:focus-visible {
    background: #16301f;
    border-color: #e5bd68;
    outline: none;
}
html body header.top #players-list-open .pl-ico { font-size: 15px; line-height: 1; }
@media (max-width: 900px) {
    html body header.top #players-list-open { padding: 0 9px !important; }
    html body header.top #players-list-open .pl-txt { display: none; }
}
@media (max-width: 720px) {
    html body header.top #players-list-open {
        height: 30px !important; min-height: 30px !important; max-height: 30px !important;
        padding: 0 7px !important;
    }
}
@media (max-height: 520px) {
    html body header.top #players-list-open {
        height: 28px !important; min-height: 28px !important; max-height: 28px !important;
    }
}

/* ---------- Fenêtre ---------- */
.pl-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .78);
    font-family: Arial, Helvetica, sans-serif;
}
.pl-overlay[hidden] { display: none !important; }
.pl-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 96vw);
    height: min(780px, 90vh);
    box-sizing: border-box;
    padding: 18px 18px 12px;
    background: #10241b;
    border: 2px solid #cba253;
    border-radius: 16px;
    box-shadow: 0 25px 90px #000;
    color: #f4f1e8;
    overflow: hidden;
}
.pl-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #cba253;
    border-radius: 50%;
    background: #192d23;
    color: #ffe29b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.pl-title {
    margin: 0 44px 12px 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f4d38d;
}
.pl-title small {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #a9c1af;
}
.pl-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.pl-search {
    flex: 1 1 200px;
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #7a6536;
    border-radius: 9px;
    background: #07130f;
    color: #f4f1e8;
    font-size: 14px;
    outline: none;
}
.pl-search:focus { border-color: #e5bd68; }
.pl-sorts { display: flex; gap: 6px; flex: 0 0 auto; }
.pl-sort {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #66785c;
    border-radius: 9px;
    background: #17372a;
    color: #e8dcb8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: pointer;
}
.pl-sort.active { border-color: #eac16e; background: #2c6043; color: #fff1bd; }

.pl-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #3f5a4a;
    border-radius: 11px;
    background: #0b1c14;
    -webkit-overflow-scrolling: touch;
}
.pl-head, .pl-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 86px 120px;
    align-items: center;
    column-gap: 10px;
    padding: 0 14px;
}
.pl-head {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 34px;
    background: #244533;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    color: #f0d08a;
}
.pl-row {
    height: 40px;
    border-bottom: 1px solid #ffffff12;
    font-size: 14px;
}
.pl-row:hover { background: #17352a; }
.pl-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #f5d38e;
}
.pl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-lvl { color: #fff; font-weight: 700; }
.pl-xp { color: #a9c1af; }
.pl-total { color: #f4c969; font-weight: 700; }
.pl-empty { padding: 28px 14px; text-align: center; color: #b8cbbd; font-size: 14px; }
.pl-foot { margin-top: 8px; font-size: 11px; color: #8fa896; text-align: right; }

@media (max-width: 700px) {
    .pl-overlay { padding: 5px; }
    .pl-dialog { width: 100%; height: 94vh; height: 94dvh; padding: 14px 10px 8px; border-radius: 10px; }
    .pl-title { font-size: 15px; margin-bottom: 8px; }
    .pl-search { flex-basis: 100%; }
    .pl-sorts { flex: 1 1 100%; }
    .pl-sort { flex: 1 1 0; padding: 0 6px; }
    .pl-head, .pl-row { grid-template-columns: minmax(0, 1fr) 40px 62px 78px; column-gap: 6px; padding: 0 8px; }
    .pl-row { font-size: 12.5px; height: 38px; }
    .pl-head { font-size: 10px; letter-spacing: .3px; }
}
@media (max-height: 520px) {
    .pl-overlay { padding: 3px; }
    .pl-dialog { height: 98vh; height: 98dvh; padding: 8px 12px 6px; }
    .pl-title { margin-bottom: 6px; font-size: 14px; }
    .pl-search, .pl-sort { height: 30px; }
    .pl-tools { margin-bottom: 6px; flex-wrap: nowrap; }
    .pl-search { flex-basis: 0; }
    .pl-sorts { flex: 0 0 auto; }
    .pl-foot { display: none; }
}

/* PLAYERS_COLUMN_SORT_V1 */
.pl-head-sort {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    padding: 6px 0;
    margin: 0;
    min-width: 0;
    cursor: pointer;
    white-space: nowrap;
}
.pl-head-sort.pl-num { text-align: right; }
.pl-head-sort:hover { color: #fff; }
.pl-head-sort.active { color: #fff4bd; }
.pl-sort-arrow { font-size: 10px; opacity: .75; }
.pl-head-sort.active .pl-sort-arrow { opacity: 1; }

/* PLAYERS_PROFILE_LINK_V2 */
.pl-row[data-index] {
    cursor: pointer;
}
.pl-row[data-index]:hover {
    background: rgba(220, 183, 100, .12);
}
.pl-row.pl-me,
.pl-row.pl-me:hover {
    background: rgba(212, 164, 54, .23) !important;
    box-shadow: inset 3px 0 0 #e7ba58;
}
.pl-row[data-index]:focus-visible {
    outline: 2px solid #e7ba58;
    outline-offset: -2px;
}

/* PLAYERS_PROFILE_STACK_V1 */
body:has(.pl-overlay:not([hidden])) .v3-profile-overlay:not([hidden]) {
    z-index: 2147483647 !important;
}
