/**
 * PlayerInfoModal — 只读选手信息弹窗
 * 用于赛事页 / 快战页等处点击选手行弹出详情。
 */

.pinfo-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.22s ease;
}
.pinfo-overlay--show { opacity: 1; }

.pinfo-panel {
    width: min(520px, 94vw); max-height: 90vh; overflow-y: auto;
    background: linear-gradient(160deg, #1a2030 0%, #12161f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 18px 20px 14px;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
}
.pinfo-overlay--show .pinfo-panel { transform: translateY(0) scale(1); }

.pinfo__header {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pinfo__avatar { flex-shrink: 0; width: 64px; height: 64px; }
.pinfo__header-info { flex: 1; min-width: 0; }
.pinfo__name {
    font-size: 20px; font-weight: 900; color: #e8eaf0; letter-spacing: 0.5px;
}
.pinfo__sub { font-size: 12px; color: #8892a4; margin-top: 2px; }
.pinfo__tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.pinfo__tag {
    padding: 2px 8px; font-size: 11px; font-weight: 700;
    border: 1px solid; border-radius: 10px; background: rgba(255,255,255,0.02);
}
.pinfo__tag--side.pinfo__tag--my   { color: #4ea8de; border-color: #4ea8de; background: rgba(78,168,222,0.1); }
.pinfo__tag--side.pinfo__tag--opp  { color: #e76f51; border-color: #e76f51; background: rgba(231,111,81,0.1); }
.pinfo__close {
    flex-shrink: 0; width: 28px; height: 28px;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    background: rgba(255,255,255,0.04); color: #c2c8d6;
    cursor: pointer; font-size: 14px; line-height: 1; transition: all 0.15s;
}
.pinfo__close:hover { background: rgba(255,100,100,0.15); border-color: #ff7675; color: #ff7675; }

.pinfo__condition {
    margin: 12px 0;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
}
.pinfo__cond-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pinfo__cond-label { font-size: 12px; color: #c2c8d6; font-weight: 700; }
.pinfo__cond-tag { font-size: 12px; font-weight: 800; }
.pinfo__cond-bar {
    position: relative; height: 10px;
    background: rgba(0,0,0,0.4); border-radius: 5px; overflow: hidden;
}
.pinfo__cond-fill {
    height: 100%; border-radius: 5px;
    transition: width 0.35s ease;
}
.pinfo__cond-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.pinfo__cond-hint { margin-top: 6px; font-size: 11px; color: #8892a4; }

.pinfo__power {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px; margin: 10px 0;
}
.pinfo__power-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
}
.pinfo__power-item span { font-size: 10px; color: #8892a4; }
.pinfo__power-item strong { font-size: 14px; color: #e8eaf0; font-weight: 800; }

.pinfo__section-title {
    font-size: 13px; font-weight: 800; color: #f0c040;
    margin: 14px 0 8px; padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.pinfo__stats { margin-top: 6px; }
.pinfo__stat-row {
    display: flex; align-items: center; gap: 10px; padding: 4px 0;
}
.pinfo__stat-label { width: 52px; font-size: 12px; color: #c2c8d6; flex-shrink: 0; }
.pinfo__stat-bar {
    flex: 1; height: 8px; background: rgba(0,0,0,0.35);
    border-radius: 4px; overflow: hidden;
}
.pinfo__stat-fill { height: 100%; border-radius: 4px; transition: width 0.35s; }
.pinfo__stat-val { width: 32px; text-align: right; font-size: 12px; color: #e8eaf0; font-weight: 700; }

.pinfo__skills { margin-top: 6px; }
.pinfo__skill {
    padding: 6px 10px; margin-bottom: 6px;
    background: rgba(240,192,64,0.06);
    border-left: 3px solid #f0c040;
    border-radius: 4px; font-size: 12px; color: #c2c8d6;
}
.pinfo__skill strong { color: #f0c040; margin-right: 6px; }

.pinfo__footer {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: flex-end;
}
