/* ── 賽後陣容回顧圖（js/post-match-lineup.js）──
   球場沿用 live-match-center.css 的 .lmc-pitch / .lmc-pitch-field；這裡只加球員 pin、評分徽章、事件圖示。 */
.pml-host:empty { display: none; }
.pml-wrap { margin: 18px 0; }
.pml-note { font-size: 11.5px; color: var(--text-muted, #8a93a6); line-height: 1.55; margin: -2px 0 8px; }
.pml-note b { color: var(--text-secondary, #c9d1e0); font-weight: 700; }
.pml-loading, .pml-empty {
  padding: 18px 12px; text-align: center; font-size: 13px;
  color: var(--text-muted, #8a93a6);
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.1); border-radius: 12px;
}
.pml-pitch { margin-bottom: 10px; }
.lmc-pitch-field.pml-field { aspect-ratio: 5 / 8; max-width: 440px; }

.pml-pin {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  z-index: 2; font: inherit; color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.pml-pin:focus-visible .pml-avatar { outline: 2px solid #fff; outline-offset: 2px; }
.pml-pin-off { cursor: default; }
.pml-avatar {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.pml-pin--home .pml-avatar { background: linear-gradient(135deg, #ff9800, #f57c00); }
.pml-pin--away .pml-avatar { background: linear-gradient(135deg, #42a5f5, #1976d2); }
.pml-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; object-position: top;
  background: rgba(255,255,255,0.92); z-index: 1;
}
.pml-num { font-size: 12px; font-weight: 800; text-shadow: 0 1px 1px rgba(0,0,0,0.5); font-variant-numeric: tabular-nums; }
.pml-name {
  margin-top: 3px; max-width: 70px;
  font-size: 10px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.7);
}

/* 評分徽章：右上角；分數色階 低紅→高綠（10 分制、1–5 星 ×2）*/
.pml-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 15px; padding: 0 3px; border-radius: 4px;
  font-size: 10px; font-weight: 800; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.pml-avatar .pml-badge { position: absolute; top: -7px; right: -18px; z-index: 3; }
.pml-r1 { background: #e5484d; }
.pml-r2 { background: #f08c2e; }
.pml-r3 { background: #c9a227; }
.pml-r4 { background: #3fa45b; }
.pml-r5 { background: #1f8a70; box-shadow: 0 0 0 1px rgba(255,255,255,0.55), 0 1px 3px rgba(0,0,0,0.45); }
.pml-badge-none { min-width: 18px; background: rgba(8,14,26,0.55); color: rgba(255,255,255,0.6); box-shadow: none; }
.pml-avatar .pml-badge-none { right: -14px; }

/* 事件圖示：牌在左上、進球在左下、換下在名字旁 */
.pml-card-slot { position: absolute; top: -6px; left: -9px; z-index: 3; font-size: 11px; line-height: 1; letter-spacing: -3px; }
.pml-goal-slot { position: absolute; bottom: -5px; left: -12px; z-index: 3; display: flex; gap: 1px; }
.pml-ev-goal {
  display: inline-flex; align-items: center; font-size: 11px; line-height: 1;
  background: rgba(10,16,28,0.75); border-radius: 8px; padding: 1px 2px;
}
.pml-ev-goal b { font-size: 9px; margin-left: 1px; color: #fff; }
.pml-ev-og i { font-style: normal; font-size: 8px; color: #ff8a80; margin-left: 1px; font-weight: 800; }
.pml-ev-card { font-size: 11px; }
.pml-sub-slot { position: absolute; bottom: -5px; right: -20px; z-index: 3; }
.pml-ev-sub {
  display: inline-block; font-size: 9px; font-weight: 800; line-height: 1;
  padding: 1px 4px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.pml-ev-out { background: rgba(229,72,77,0.9); color: #fff; }

/* 替補登場 */
.pml-bench { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pml-bench-team { min-width: 0; }
.pml-bench-title { font-size: 11px; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pml-bench-title--home { color: #ffb74d; }
.pml-bench-title--away { color: #64b5f6; }
.pml-bench-row {
  display: flex; align-items: center; gap: 5px; width: 100%;
  padding: 5px 6px; margin-bottom: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
  color: var(--text-primary, #fff); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.pml-bench-row.pml-pin-off { cursor: default; }
.pml-bench-in {
  display: inline-block; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 6px;
  background: rgba(63,164,91,0.9); color: #fff; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.pml-bench-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.pml-bench-ev { display: inline-flex; gap: 2px; align-items: center; flex-shrink: 0; }
.pml-bench-ev .pml-ev-goal { background: none; padding: 0; }
.pml-legend { margin-top: 8px; font-size: 10.5px; color: var(--text-muted, #8a93a6); text-align: center; line-height: 1.8; }

@media (max-width: 560px) {
  .lmc-pitch-field.pml-field { aspect-ratio: 9 / 16; }
  .pml-avatar { width: 30px; height: 30px; }
  .pml-num { font-size: 11px; }
  .pml-name { font-size: 9.5px; max-width: 64px; }
}

/* 評分彈窗：從陣容圖點進來的那張卡亮框 */
.pr-card.pr-card-focus { outline: 2px solid #f0c040; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(240,192,64,0.15); }

/* 2026-10-02 球員個人頁入口：pin／替補列改成 <a>（照片＋名字整塊可點）*/
a.pml-pin, a.pml-bench-row { text-decoration: none; color: inherit; }
a.pml-pin { color: #fff; }
.pml-note .pml-rate-link { color: #f0c040; font-weight: 700; text-decoration: none; white-space: nowrap; }
