/* =========================================================
   MOBILELEGENDSPEDIA - PLAYERS COMPACT (HLTV-LIKE)
========================================================= */

.players-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 14px;
    align-items: start;
}

.players-main,
.players-sidebar {
    min-width: 0;
}

.players-heading {
    margin-bottom: 12px;
}

.players-heading h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.4px;
}

.players-heading p {
    margin: 0;
    color: #858990;
    font-size: 10px;
}

.players-tools {
    padding: 9px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #d3d5d8;
}

.players-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 7px;
    margin-bottom: 8px;
}

.players-search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cfd2d6;
    background: #fff;
    color: #24262a;
    font-size: 10px;
    outline: none;
}

.players-search button {
    height: 32px;
    border: 0;
    background: #d62531;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.players-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.players-filter {
    min-height: 27px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f2f3;
    border: 1px solid #d4d6d9;
    color: #555960;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.players-filter.active {
    background: #d62531;
    border-color: #d62531;
    color: #fff;
}

.players-alphabet {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 3px;
}

.players-letter {
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f5;
    border: 1px solid #d7d9dc;
    color: #676b72;
    font-size: 8px;
    font-weight: 900;
}

.players-letter.active {
    background: #2a2d33;
    border-color: #2a2d33;
    color: #fff;
}

.players-count {
    margin: 7px 0 8px;
    color: #92959b;
    font-size: 9px;
}

/* GRID */

.players-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.player-card {
    position: relative;
    min-width: 0;
    height: 88px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d2d5d9;
}

.player-card:hover {
    background: #fafafb;
    border-color: #b7bbc1;
}

.player-card-body {
    position: relative;
    height: 100%;
    padding: 8px 8px 7px;
}

/* LEFT TEXT */

.player-info {
    position: relative;
    z-index: 4;
    width: 58%;
}

.player-nickname {
    margin-bottom: 2px;
    color: #33363b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-realname {
    color: #8a8e95;
    font-size: 7px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta {
    position: absolute;
    left: 8px;
    right: 41%;
    bottom: 7px;
    z-index: 4;
}

.player-country {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    color: #687078;
    font-size: 7px;
    font-weight: 700;
}

.player-country-flag {
    width: 15px;
    height: 10px;
    flex: 0 0 15px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.10);
}

.player-country-flag-fallback {
    width: 15px;
    height: 10px;
    flex: 0 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ebed;
    color: #858990;
    font-size: 5px;
    font-weight: 900;
    border: 1px solid #d8dade;
}

.player-country-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #41454a;
    font-size: 7px;
    font-weight: 800;
}

.player-team img {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    object-fit: contain;
}

.player-team span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PHOTO */

.player-photo {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 43%;
    height: 96%;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}

/* QUESTION-MARK SILHOUETTE */

.player-photo-placeholder {
    position: absolute;
    z-index: 2;
    right: 6px;
    bottom: 3px;
    width: 54px;
    height: 70px;
    pointer-events: none;
}

.player-photo-placeholder::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 25px;
    height: 25px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #d9dde1, #c9ced3);
}

.player-photo-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 38px;
    transform: translateX(-50%);
    border-radius: 26px 26px 5px 5px;
    background: linear-gradient(180deg, #d6dade, #c6cbd0);
}

.player-photo-question {
    position: absolute;
    z-index: 4;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    color: #777d84;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 1px #fff;
}

.player-status {
    display: none;
}

.players-empty {
    padding: 40px 18px;
    background: #fff;
    border: 1px solid #d5d7da;
    text-align: center;
    color: #8c9097;
    font-size: 10px;
}

.players-sidebar .box {
    margin-bottom: 12px;
}

.players-sidebar .box-body {
    color: #6f737a;
    font-size: 9px;
    line-height: 1.4;
}

.players-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 11px;
    border-bottom: 1px solid #e8e9eb;
    font-size: 9px;
    font-weight: 800;
}

.players-sidebar .sidebar-link:last-child {
    border-bottom: 0;
}

.players-sidebar .sidebar-link:hover {
    background: #f7f7f8;
    color: #d62531;
}

@media (max-width: 1080px) {
    .players-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .players-layout {
        display: block;
    }

    .players-sidebar {
        margin-top: 15px;
    }
}

@media (max-width: 650px) {
    .players-heading h1 {
        font-size: 21px;
    }

    .players-search {
        grid-template-columns: 1fr;
    }

    .players-search button {
        width: 100%;
    }

    .players-alphabet {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .players-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .player-card {
        height: 86px;
    }
}

@media (max-width: 420px) {
    .players-grid {
        grid-template-columns: 1fr;
    }

    .player-card {
        height: 90px;
    }
}

/* Final placeholder: silhouette only, no question mark */
.player-photo-question { display: none !important; }
