/* ==========================================================================
   MMO11 — CANLI MAÇ (Game/Screens/LiveMatch/) · prefix .lm-
   Kadro Paneli Çim Arkaplanı, Antrasit Cam & Orantılı Sabit Paneller
   5 Ekran: Maç (Saha + Anlatım + Top Hakimiyeti) · İstatistik · Taktik · Kadro · Destek
   Ekran kaymaz, oyun penceresine oranla ortalı sığar (grid + clamp, vh/vw yok).
   ========================================================================== */

.hub-tab-view.lm-fullview {
  --lm-bg1: #18181b;
  --lm-bg2: #121215;
  --lm-panel: rgba(24, 24, 30, 0.9);
  --lm-panel-2: rgba(34, 34, 42, 0.94);
  --lm-panel-glass: rgba(24, 24, 30, 0.78);
  --lm-line: rgba(255, 255, 255, 0.1);
  --lm-line-2: rgba(255, 255, 255, 0.18);
  --lm-text: #ffffff;
  --lm-muted: #a1a1aa;
  --lm-gold: #f5c542;
  --lm-sky: #38bdf8;
  --lm-home: #3b82f6;
  --lm-away: #ef4444;
  --lm-green: #22c55e;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 0;
  /* Kadro Paneli ile Birebir Aynı Çim Arkaplanı */
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(34, 197, 94, 0.35) 0%, rgba(4, 30, 15, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #166534 0px,
      #166534 50px,
      #14532d 50px,
      #14532d 100px
    ) !important;
  color: var(--lm-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------------------------------------------------------- shared */
.lm-panel-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; letter-spacing: 0.08em; color: #ffffff; margin-bottom: 4px; }
.lm-hint { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--lm-muted); }
.lm-box { padding: 14px 18px; border-radius: 16px; background: var(--lm-panel); border: 1px solid var(--lm-line); min-height: 0; overflow-y: auto; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55); box-sizing: border-box; }
.lm-empty { color: var(--lm-muted); font-size: 12px; font-weight: 700; text-align: center; }

.lm-btn-primary { padding: 10px 22px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 800; color: #1e1500; cursor: pointer; background: linear-gradient(135deg, #fcd34d, #f5a524); box-shadow: 0 4px 14px rgba(245, 197, 66, 0.3); transition: transform 0.12s, filter 0.12s; }
.lm-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lm-btn-primary:active { transform: translateY(0); }
.lm-btn-secondary { padding: 10px 18px; font-size: 13px; cursor: pointer; border-radius: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--lm-line-2); color: #fff; }

/* ---------------------------------------------------------------- pages (no-match / loading / result) */
.lm-page { position: absolute; inset: 0; overflow-y: auto; padding: clamp(14px, 2.5%, 36px); display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.lm-no-match { align-items: center; justify-content: center; }
.lm-no-match-card { max-width: 620px; width: 100%; padding: clamp(20px, 3.5%, 36px); border-radius: 20px; background: rgba(24, 24, 30, 0.94); border: 1px solid var(--lm-line-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65); }
.lm-nmc-icon { font-size: 44px; }
.lm-nmc-title { margin: 0; font-size: 22px; font-weight: 900; color: #fff; }
.lm-nmc-desc { margin: 0; font-size: 13px; color: var(--lm-muted); line-height: 1.5; }
.lm-nmc-info { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.lm-nmc-pill { padding: 6px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--lm-line); font-size: 12px; font-weight: 700; color: #e4e4e7; }
.lm-nmc-pill strong { color: var(--lm-gold); }
.lm-nmc-actions { display: flex; gap: 10px; margin-top: 6px; }

.lm-loading { align-items: center; justify-content: center; text-align: center; }
.lm-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--lm-gold); animation: lm-spin 0.9s linear infinite; margin-bottom: 12px; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- live frame (Ortalı ve Sabit Orantılı) */
.lm-live {
  position: absolute;
  inset: 0;
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1%, 10px);
  padding: clamp(6px, 1.1%, 12px);
  box-sizing: border-box;
  overflow: hidden;
}

/* Scoreboard */
.lm-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 16px;
  background: rgba(20, 20, 26, 0.94);
  border: 1px solid var(--lm-line-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.lm-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lm-badge { display: inline-flex; flex-shrink: 0; }
.lm-team.away { justify-content: flex-end; text-align: right; }
.lm-team-name { font-size: 18px; font-weight: 900; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-team.home .lm-team-name { color: #93c5fd; }
.lm-team.away .lm-team-name { color: #fca5a5; }
.lm-team-sub { font-size: 11px; color: var(--lm-muted); font-weight: 700; margin-top: 1px; }

.lm-score { display: flex; align-items: center; gap: 10px; padding: 2px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--lm-line); }
.lm-score-home, .lm-score-away { font-size: 32px; font-weight: 900; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.lm-score-sep { font-size: 24px; color: #71717a; font-weight: 900; }
.lm-clock-wrap { display: flex; flex-direction: column; align-items: center; margin-left: 8px; padding: 3px 10px; border-radius: 8px; background: linear-gradient(135deg, #fcd34d, #f5a524); color: #1e1500; min-width: 76px; box-shadow: 0 3px 10px rgba(245, 197, 66, 0.25); }
.lm-clock { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lm-phase { font-size: 9px; font-weight: 900; letter-spacing: 0.06em; }

/* Main Body Layout: Views + Right Action Dock */
.lm-live-body-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(8px, 1.2%, 12px);
  position: relative;
}

.lm-views-container {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Right Action Dock (5 Şeffaf Kare Buton) */
.lm-right-action-dock {
  width: 66px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 0;
}

.lm-dock-btn {
  width: 64px;
  height: 62px;
  border-radius: 14px;
  background: rgba(20, 20, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #a1a1aa;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.16s ease-out;
}

.lm-dock-btn:hover {
  background: rgba(40, 40, 52, 0.92);
  border-color: rgba(245, 197, 66, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.lm-dock-btn.active {
  background: linear-gradient(135deg, rgba(45, 45, 58, 0.95), rgba(20, 20, 26, 0.95));
  border-color: var(--lm-gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.25), inset 0 0 0 1px rgba(245, 197, 66, 0.5);
}

.lm-dock-btn.has-news::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lm-green);
  box-shadow: 0 0 0 2px #18181b, 0 0 6px #22c55e;
}

.lm-db-icon { font-size: 20px; line-height: 1; }
.lm-db-label { font-size: 10px; font-weight: 800; letter-spacing: 0.02em; }

/* View switching */
.lm-views-container > .lm-view { display: none !important; height: 100%; min-height: 0; width: 100%; }
.lm-live[data-view="match"] .lm-views-container > .lm-view-match { display: grid !important; height: auto !important; max-height: 100%; align-self: flex-start; }
.lm-live[data-view="stats"] .lm-views-container > .lm-view-stats { display: flex !important; }
.lm-live[data-view="tactics"] .lm-views-container > .lm-view-tactics { display: flex !important; }
.lm-live[data-view="squad"] .lm-views-container > .lm-view-squad { display: block !important; }
.lm-live[data-view="support"] .lm-views-container > .lm-view-support { display: flex !important; }

/* ---------------------------------------------------------------- View: Maç */
.lm-view-match {
  grid-template-columns: minmax(0, 1fr) clamp(380px, 35%, 520px);
  grid-template-rows: auto;
  gap: 12px 14px;
  align-items: start;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.lm-pitch-col {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.lm-pitch-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 560px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  background: #14532d;
  flex-shrink: 0;
}
.lm-pitch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 3D Unity Action Overlay */
.lm-3d-layer { position: absolute; inset: 0; z-index: 9990; visibility: hidden; background: #000000; overflow: hidden; }
.lm-3d-layer.is-on { visibility: visible; }
.lm-3d-stage { position: absolute; inset: 0; }
.lm-3d-hud { position: absolute; left: 2%; top: 3%; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 10px; background: rgba(20, 20, 26, 0.88); border: 1px solid rgba(255, 255, 255, 0.15); color: #f8fafc; font-size: 18px; font-weight: 800; pointer-events: none; }
.lm-3d-score { padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lm-3d-minute { margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: var(--lm-gold, #f5c542); color: #221a00; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.lm-3d-result { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); max-width: 80%; padding: 10px 30px; border-radius: 16px; text-align: center; background: rgba(20, 20, 26, 0.94); border: 2px solid rgba(255, 255, 255, 0.2); pointer-events: none; animation: lm-pop 0.25s ease-out; }
.lm-3d-result[hidden] { display: none; }
.lm-3d-result-title { font-size: 38px; font-weight: 900; letter-spacing: 0.06em; color: #ffffff; }
.lm-3d-result-text { margin-top: 2px; font-size: 15px; font-weight: 700; color: #e4e4e7; }
.lm-3d-result.is-goal { border-color: #22c55e; }
.lm-3d-result.is-goal .lm-3d-result-title { color: #4ade80; }
.lm-3d-result.is-saved .lm-3d-result-title { color: #38bdf8; }
.lm-3d-result.is-post .lm-3d-result-title { color: #f59e0b; }
.lm-card-ball { display: inline-block; animation: lm-ball-spin 1s linear infinite; }
@keyframes lm-ball-spin { to { transform: rotate(360deg); } }

.lm-pitch-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; padding: 5%; }

.lm-order-badge { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(20, 20, 26, 0.92); border: 1px solid rgba(245, 197, 66, 0.6); color: var(--lm-gold); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); pointer-events: none; }
.lm-order-badge[hidden] { display: none; }
.lm-order-ring { position: absolute; left: 3px; top: 50%; width: 38px; height: 38px; margin-top: -19px; transform: rotate(-90deg); }
.lm-order-ring circle { fill: none; stroke-width: 3; }
.lm-order-ring .bg { stroke: rgba(245, 197, 66, 0.2); }
.lm-order-ring .fg { stroke: var(--lm-gold); stroke-dasharray: 119.4; stroke-linecap: round; transition: stroke-dashoffset 0.25s linear; }
.lm-order-icon { position: relative; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(245, 197, 66, 0.15); }
.lm-order-label { font-size: 12px; font-weight: 900; color: #fde68a; letter-spacing: 0.02em; }
.lm-order-left { font-size: 13px; font-weight: 900; color: #fff; min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }

/* Match 2D Event Cards */
.lm-card { max-width: min(540px, 90%); padding: 16px 24px; border-radius: 18px; text-align: center; background: rgba(20, 20, 26, 0.95); border: 2px solid var(--lm-line-2); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6); animation: lm-pop 0.25s ease-out; }
@keyframes lm-pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lm-card-title { font-size: 28px; font-weight: 900; letter-spacing: 0.05em; color: #fff; }
.lm-card-text { margin-top: 4px; font-size: 14px; font-weight: 700; color: #d4d4d8; }
.lm-card-text b { color: var(--lm-gold); }
.lm-card-stats { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--lm-muted); font-weight: 700; }
.lm-card-stats b { color: #f8fafc; }
.lm-card-goal { border-color: var(--lm-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 14px 36px rgba(0, 0, 0, 0.6); }
.lm-card-goal .lm-card-title { color: #4ade80; }
.lm-card-saved .lm-card-title { color: var(--lm-sky); }
.lm-card-post .lm-card-title { color: #f59e0b; }
.lm-card-wide .lm-card-title, .lm-card-blocked .lm-card-title { color: #cbd5e1; }
.lm-card-info .lm-card-title { color: var(--lm-gold); font-size: 26px; }

/* Warmup Card */
.lm-warmup-card { border-color: rgba(245, 197, 66, 0.45); }
.lm-warmup-timer { margin-top: 12px; padding: 8px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--lm-line); font-size: 13px; font-weight: 800; color: #e4e4e7; display: inline-block; }
.lm-warmup-time-val { color: var(--lm-gold); font-size: 18px; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* Possession Bar (Maç Kartının Hemen Altında & Büyük Dikdörtgen) */
.lm-poss {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 8px 22px;
  border-radius: 14px;
  background: var(--lm-panel);
  border: 1.5px solid var(--lm-line-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  flex-shrink: 0;
}
.lm-poss-label { font-size: 14px; font-weight: 900; color: #ffffff; letter-spacing: 0.05em; white-space: nowrap; }
.lm-poss-home, .lm-poss-away { font-size: 20px; font-weight: 900; min-width: 52px; font-variant-numeric: tabular-nums; }
.lm-poss-home { color: #93c5fd; text-align: right; }
.lm-poss-away { color: #fca5a5; }
.lm-poss-track { position: relative; flex: 1; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #b91c1c, var(--lm-away)); overflow: visible; }
.lm-poss-fill { height: 100%; width: 50%; border-radius: 9px 0 0 9px; background: linear-gradient(90deg, #1d4ed8, var(--lm-home)); transition: width 1.1s ease-in-out; }
.lm-poss-knob { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #ffffff; border: 3.5px solid var(--lm-gold); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7); transition: left 1.1s ease-in-out; }

/* Match Feed (Maç Kartı ve Topla Oynama ile Birebir Eşit Yükseklik) */
.lm-feed {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--lm-panel);
  border: 1px solid var(--lm-line);
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.lm-feed-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; touch-action: pan-y; }
.lm-feed-item { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border-left: 3.5px solid var(--lm-home); font-size: 13px; font-weight: 600; line-height: 1.4; }
.lm-feed-item.side-away { border-left-color: var(--lm-away); }
.lm-feed-item.is-goal { background: rgba(34, 197, 94, 0.16); font-weight: 800; border-left-color: #22c55e; }
.lm-feed-item.is-card { background: rgba(250, 204, 21, 0.1); border-left-color: #facc15; }
.lm-feed-item.is-red { background: rgba(239, 68, 68, 0.16); font-weight: 800; border-left-color: #ef4444; }
.lm-feed-min { flex-shrink: 0; min-width: 26px; font-weight: 900; color: var(--lm-gold); }

/* ---------------------------------------------------------------- View: İstatistik */
.lm-view-stats { flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; }
.lm-stats-table { width: 100%; max-width: 920px; flex: none; max-height: 480px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.lm-srow { display: grid; grid-template-columns: 70px minmax(0, 1fr) 170px minmax(0, 1fr) 70px; align-items: center; gap: 10px; }
.lm-srow b { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lm-srow b.h { text-align: right; color: #93c5fd; }
.lm-srow b.a { color: #fca5a5; }
.lm-srow span { text-align: center; font-size: 12px; font-weight: 800; color: var(--lm-muted); }
.lm-srow.head { grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); padding-bottom: 6px; border-bottom: 1px solid var(--lm-line); }
.lm-srow.head b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-srow.head span { color: var(--lm-gold); font-size: 14px; font-weight: 900; }
.lm-sbar { height: 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; }
.lm-sbar.home { justify-content: flex-end; }
.lm-sbar.home i { background: linear-gradient(90deg, #1d4ed8, var(--lm-home)); }
.lm-sbar.away i { background: linear-gradient(90deg, var(--lm-away), #b91c1c); }
.lm-sbar i { display: block; height: 100%; border-radius: 5px; transition: width 0.5s ease; }

/* ---------------------------------------------------------------- View: Taktik (Sabit & Kompakt) */
.lm-view-tactics { flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; }
.lm-tactics-box { width: 100%; max-width: 920px; flex: none; max-height: 480px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.lm-section-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.lm-sh-title { font-size: 12px; font-weight: 900; letter-spacing: 0.06em; color: #ffffff; }

/* Mentalite Butonları */
.lm-mentality-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btn-mentality {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lm-line-2);
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s ease-out;
}
.btn-mentality:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-mentality.is-active {
  background: rgba(245, 197, 66, 0.15);
  border-color: var(--lm-gold);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 197, 66, 0.25);
}
.bm-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.bm-title { font-size: 13px; font-weight: 800; color: #fff; }
.btn-mentality.is-active .bm-title { color: var(--lm-gold); }

/* 4 Takım Formu Desteği (İnce Uzun Satırlar) */
.lm-orders-section { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.lm-orders-list { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow-y: auto; }
.lm-t11-order-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lm-line-2);
  height: 46px;
  box-sizing: border-box;
  transition: all 0.15s ease-out;
  cursor: pointer;
}
.lm-t11-order-card:hover:not(.is-locked):not(.is-active) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}
.lm-t11-order-card.is-active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.2);
  cursor: default;
}
.lm-t11-order-card.is-locked {
  opacity: 0.38;
  filter: grayscale(0.5);
  cursor: not-allowed;
  pointer-events: none;
}
.lm-t11-badge { width: 34px; height: 34px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.65); border: 1.5px solid var(--lm-line-2); line-height: 1; flex-shrink: 0; }
.lm-t11-badge b { font-size: 14px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.lm-t11-badge small { font-size: 8px; font-weight: 800; color: var(--lm-muted); }
.lm-t11-order-card.is-active .lm-t11-badge { border-color: var(--lm-green); }
.lm-t11-order-card.is-active .lm-t11-badge b { color: #4ade80; }
.lm-t11-text { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.lm-t11-title { font-size: 13px; font-weight: 900; color: #fff; white-space: nowrap; }
.lm-t11-desc { font-size: 11px; font-weight: 600; color: var(--lm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-t11-go { width: 34px; height: 34px; border-radius: 8px; border: 0; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #4ade80, #16a34a); color: #052e16; cursor: pointer; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3); transition: transform 0.1s, filter 0.1s; flex-shrink: 0; }
.lm-t11-go:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.lm-t11-go:active:not(:disabled) { transform: translateY(1px); }
.lm-t11-go:disabled { opacity: 0.35; cursor: default; }

/* ---------------------------------------------------------------- View: Kadro (Birebir PES Çim Saha & Net Kartlar) */
.lm-view-squad {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
}
.lm-squad-wrap {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}

.lm-view-squad .pes-main-pitch.lm-squad-pitch {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background-color: #14532d;
  background-image: 
    repeating-linear-gradient(0deg, #166534 0px, #166534 60px, #15803d 60px, #15803d 120px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 60px, transparent 60px, transparent 120px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.lm-view-squad .pes-bench-zone.lm-squad-benchzone {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.lm-view-squad .pes-cards-shelf.lm-squad-bench { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 4px 6px; justify-content: center; align-items: center; min-height: 72px; max-height: 76px; touch-action: pan-x; }
.lm-squad-hint { text-align: center; font-size: 11px; font-weight: 700; color: var(--lm-muted); margin: 0 0 2px; }

/* Birebir PES Oyuncu Kartları (İç İçe Geçme Engelli) */
.lm-view-squad .pes-player-card {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 10;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
}
.lm-view-squad .pes-player-card:active { cursor: grabbing; }
.lm-view-squad .pes-player-card:hover {
  transform: translateY(-3px) scale(1.12);
  z-index: 30;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
}
.lm-view-squad .pes-player-card.pes-pitch-card {
  position: absolute;
  transform: translate(-50%, -50%);
}
.lm-view-squad .pes-player-card.pes-pitch-card:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.lm-view-squad .pes-player-card.selected {
  transform: translate(-50%, -50%) scale(1.16);
  z-index: 35;
}
.lm-view-squad .pes-player-card.selected .pes-card-pos {
  box-shadow: 0 0 12px #38bdf8, inset 0 0 5px #38bdf8;
  border-color: #38bdf8;
}
.lm-view-squad .pes-player-card.dragging {
  opacity: 0.45;
  transform: translate(-50%, -50%) scale(0.92) !important;
  filter: grayscale(40%);
}
.lm-view-squad .pes-player-card.drag-over {
  transform: translate(-50%, -50%) scale(1.18) !important;
  z-index: 40 !important;
  filter: drop-shadow(0 0 16px #38bdf8) !important;
}

/* Canlı Maç Kadro Ekranı Taktiksel Bölge ve Sarı Konum Vurgusu */
.lm-view-squad .pes-zones-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.lm-view-squad .pes-tactical-zone {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.lm-view-squad .pes-tactical-zone .zone-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

/* Sarı / Altın Konumlar (Aktif Hedef Bölgeler) */
.lm-view-squad .pes-tactical-zone.active-target-zone {
  background: rgba(250, 204, 21, 0.38) !important;
  border: 3px solid #facc15 !important;
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.85), inset 0 0 30px rgba(250, 204, 21, 0.5) !important;
  z-index: 18;
  animation: targetZonePulse 1.2s infinite alternate ease-in-out;
}

.lm-view-squad .pes-tactical-zone.active-target-zone .zone-label {
  color: #fef08a !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  background: rgba(0, 0, 0, 0.85);
  padding: 3px 12px;
  border-radius: 6px;
  border: 1.5px solid #facc15;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.9), 0 2px 4px rgba(0, 0, 0, 0.95);
}

.lm-view-squad .pes-player-card .pes-card-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 4px rgba(0,0,0,0.95);
  margin: 0;
}
.lm-view-squad .pes-player-card .pes-card-pos {
  background: #0f172a;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 1px 6px 1px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  margin: 0;
  min-width: 42px;
  text-align: center;
  line-height: 1.2;
}
.lm-view-squad .pes-player-card .pes-card-pos::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.pes-pos-gk::before { background: #f59e0b; }
.pes-pos-def::before { background: #0284c7; }
.pes-pos-mid::before { background: #16a34a; }
.pes-pos-att::before { background: #ef4444; }

.lm-view-squad .pes-player-card .pes-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.94);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.lm-pcard .lm-energy { width: 56px; margin-top: 1px; }
.lm-energy { display: flex; align-items: center; gap: 3px; }
.lm-energy i { flex: 1; height: 3.5px; border-radius: 2px; background-color: rgba(255, 255, 255, 0.15); background-image: linear-gradient(90deg, var(--bar) 0 100%); background-repeat: no-repeat; background-size: var(--w, 100%) 100%; }
.lm-energy b { font-size: 8px; font-weight: 900; min-width: 20px; text-align: right; }
.lm-energy.hi { --bar: #22c55e; }
.lm-energy.mid { --bar: #facc15; }
.lm-energy.lo { --bar: #ef4444; }
.lm-energy.hi b { color: #4ade80; }
.lm-energy.mid b { color: #fde047; }
.lm-energy.lo b { color: #f87171; }

.lm-pcard.is-used { opacity: 0.35; pointer-events: none; }
.lm-marks { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; margin-left: 2px; pointer-events: none; z-index: 4; }
.lm-mark { position: relative; width: 26px; height: 26px; }
.lm-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.lm-mark b { position: absolute; right: -3px; bottom: -2px; min-width: 11px; padding: 0 2px; border-radius: 4px; background: #000; border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; font-size: 8px; line-height: 10px; text-align: center; }
.lm-drag-ghost { display: none !important; }

/* ---------------------------------------------------------------- View: Destek Paneli (Sabit & Kompakt) */
.lm-view-support { flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; }
.lm-support-box { width: 100%; max-width: 920px; flex: none; max-height: 480px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.lm-support-header { display: flex; flex-direction: column; gap: 2px; }
.lm-support-teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; min-height: 0; overflow-y: auto; }

.lm-sup-team-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lm-line-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-sup-team-card.is-home { border-color: rgba(59, 130, 246, 0.35); background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(24, 24, 30, 0.9) 100%); }
.lm-sup-team-card.is-away { border-color: rgba(239, 68, 68, 0.35); background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(24, 24, 30, 0.9) 100%); }

.lm-sup-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--lm-line); }
.lm-sup-team-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lm-sup-badge-wrap { display: inline-flex; flex-shrink: 0; }
.lm-sup-team-tag { font-size: 9px; font-weight: 900; letter-spacing: 0.08em; color: var(--lm-muted); }
.lm-sup-team-name { font-size: 15px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-sup-team-card.is-home .lm-sup-team-name { color: #93c5fd; }
.lm-sup-team-card.is-away .lm-sup-team-name { color: #fca5a5; }

.lm-sup-total-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid var(--lm-gold);
  line-height: 1;
  flex-shrink: 0;
}
.lm-sup-team-card.is-away .lm-sup-total-ring { border-color: rgba(255, 255, 255, 0.18); }
.lm-str-val { font-size: 16px; font-weight: 900; color: var(--lm-gold); font-variant-numeric: tabular-nums; }
.lm-sup-team-card.is-away .lm-str-val { color: #a1a1aa; }
.lm-str-lbl { font-size: 8px; font-weight: 900; letter-spacing: 0.06em; color: var(--lm-muted); margin-top: 1px; }

.lm-sup-items-list { display: flex; flex-direction: column; gap: 6px; justify-content: flex-start; }
.lm-sup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lm-sup-item-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lm-sup-item-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lm-sup-item-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lm-sup-item-title { font-size: 12px; font-weight: 900; color: #fff; }
.lm-sup-item-sub { font-size: 11px; font-weight: 600; color: var(--lm-muted); }
.lm-sup-online { color: #4ade80; font-weight: 800; }

.lm-sup-item-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.badge-green { background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.5); color: #4ade80; }
.badge-gold { background: rgba(245, 197, 66, 0.18); border: 1px solid rgba(245, 197, 66, 0.5); color: #fde68a; }
.badge-blue { background: rgba(59, 130, 246, 0.18); border: 1px solid rgba(59, 130, 246, 0.5); color: #93c5fd; }
.badge-gray { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #71717a; }
.lm-sup-empty-note { padding: 14px; text-align: center; font-size: 12px; font-weight: 700; color: var(--lm-muted); border-radius: 10px; background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 255, 255, 0.1); }

/* ---------------------------------------------------------------- Result */
.lm-res-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lm-res-outcome { font-size: 32px; font-weight: 900; letter-spacing: 0.06em; }
.lm-result-win .lm-res-outcome { color: #4ade80; }
.lm-result-draw .lm-res-outcome { color: var(--lm-gold); }
.lm-result-loss .lm-res-outcome { color: #f87171; }
.lm-res-score { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 800; }
.lm-res-score b { font-size: 40px; font-weight: 900; }
.lm-res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lm-res-box { padding: 16px; border-radius: 16px; background: var(--lm-panel); border: 1px solid var(--lm-line); }
.lm-res-stat { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--lm-line); }
.lm-res-stat span { font-size: 12px; color: var(--lm-muted); font-weight: 700; }
.lm-res-stat b { font-size: 15px; }
.lm-res-ratings { list-style: none; margin: 0; padding: 0; }
.lm-res-ratings b { margin-left: auto; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.lm-res-ratings b.hi { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
.lm-res-ratings b.lo { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.lm-res-goals { font-size: 11px; color: #4ade80; }
.lm-res-cash { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.lm-res-progress { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #cbd5e1; }
.lm-res-progress b { color: #4ade80; }
.lm-res-reward-none { color: var(--lm-muted); font-size: 13px; font-weight: 700; }
.lm-pre-actions { display: flex; justify-content: center; gap: 10px; }

/* ---------------------------------------------------------------- Narrow / Container Queries */
@container game (max-width: 900px) {
  .lm-live-body-layout { flex-direction: column; }
  .lm-right-action-dock { width: 100%; flex-direction: row; justify-content: center; height: auto; }
  .lm-dock-btn { width: 58px; height: 52px; }
  .lm-view-match { grid-template-columns: minmax(0, 1fr) clamp(160px, 28%, 220px); }
  .lm-mentality-selector { grid-template-columns: 1fr; }
  .lm-orders-list { flex-direction: column; }
  .lm-support-teams-grid { grid-template-columns: 1fr; }
  .lm-team-name { font-size: 15px; }
  .lm-score-home, .lm-score-away { font-size: 26px; }
  .lm-srow { grid-template-columns: 50px minmax(0, 1fr) 100px minmax(0, 1fr) 50px; }
  .lm-srow.head { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); }
  .lm-res-grid { grid-template-columns: 1fr; }
}

@container game (max-height: 700px) {
  .lm-live { gap: 4px; padding: 4px 8px; }
  .lm-scoreboard { padding: 4px 10px; gap: 6px; }
  .lm-badge { zoom: 0.6; }
  .lm-team-name { font-size: 14px; }
  .lm-team-sub { display: none; }
  .lm-score-home, .lm-score-away { font-size: 24px; min-width: 24px; }
  .lm-score-sep { font-size: 18px; }
  .lm-clock-wrap { min-width: 60px; padding: 2px 6px; }
  .lm-clock { font-size: 15px; }
  .lm-phase { font-size: 8px; }
  .lm-dock-btn { width: 52px; height: 50px; }
  .lm-db-icon { font-size: 16px; }
  .lm-db-label { font-size: 8px; }
  .lm-poss { padding: 2px 8px; }
  .lm-poss-label { display: none; }
  .lm-feed { padding: 6px; }
  .lm-feed-item { font-size: 10px; padding: 4px 6px; }
  .lm-panel-title { font-size: 10px; margin-bottom: 2px; }
  .lm-box { padding: 8px 10px; }
  .lm-view-squad .pes-player-card { width: 62px; }
  .lm-view-squad .pes-player-card .pes-card-ovr { font-size: 16px; }
  .lm-view-squad .pes-player-card .pes-card-pos { font-size: 9px; min-width: 34px; }
  .lm-view-squad .pes-player-card .pes-card-name { font-size: 9px; max-width: 58px; }
  .lm-pcard .lm-energy { width: 48px; }
  .lm-t11-order-card { padding: 4px 8px; height: 38px; }
  .lm-t11-badge, .lm-t11-go { width: 28px; height: 28px; }
  .lm-t11-desc { display: none; }
  .lm-order-badge { top: 4px; right: 4px; }
}

/* Global chat button overlap guard */
.live-match-mode #btnOpenGlobalChat {
  display: none !important;
}

/* official match extras under the cash: boost points and the win sponsor (liveMatch.js rewardExtrasHtml) */
.lm-res-points { margin-top: 6px; font-size: 15px; font-weight: 800; color: #0369a1; }
.lm-res-sponsor { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 800; color: #0284c7; }
.lm-res-injury { margin-top: 4px; font-size: 15px; font-weight: 800; color: #ef4444; }
