.bh-live-display .mini-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* === Mini Card Layout === */
.bh-live-display .mini-card {
  background: #0b1220;
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 14px;

  display: grid;
  grid-template-rows: auto 1fr auto; /* head | body | footer */
  gap: 14px;

  color: #e5e7eb;
}

/* === Header === */
.bh-live-display .mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  min-width: 0;
}

.bh-live-display .table-name {
  font-size: 16px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh-live-display .video-link {
  margin-left: auto;
  appearance: none;
  background: transparent;
  color: #bae6fd;
  border: 1px solid rgba(186,230,253,.35);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.bh-live-display .video-link:hover {
  background: rgba(186,230,253,.12);
}

.bh-live-display .mini-video-slot {
  margin-bottom: 18px;
}

.bh-live-display .mini-video-panel {
  background: #0b1220;
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 14px;
  color: #e5e7eb;
}

.bh-live-display .mini-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 900;
}

.bh-live-display .mini-video-close {
  appearance: none;
  border: 1px solid rgba(148,163,184,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #e5e7eb;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.bh-live-display .mini-video-close:hover {
  background: rgba(255,255,255,.12);
}

.bh-live-display .live-badge {
  background: #d40000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .5px;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(212,0,0,.6); }
  70% { box-shadow: 0 0 0 6px rgba(212,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,0,0,0); }
}

.bh-live-display .offline-badge {
  background: #555;
  color: #eee;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 999px;
}

/* === Body === */
.bh-live-display .mini-body {
  display: grid;
  gap: 12px;
}

.bh-live-display .player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
}

/* Player A – White */
.bh-live-display .player-a {
  background: #f9fafb;
  color: #0f172a;
}

/* Player B – Yellow */
.bh-live-display .player-b {
  background: #fde047;
  color: #422006;
}

.bh-live-display .player.turn {
  border-color: #22c55e;
}

.bh-live-display .left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bh-live-display .names {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bh-live-display .name {
  font-weight: 900;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.bh-live-display .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.bh-live-display .player-goal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 9px;
  row-gap: 2px;
  font-size: 11px;
  font-weight: 900;
  color: #475569;
}

.bh-live-display .player-goal strong {
  font-weight: 900;
}

.bh-live-display .player-b .player-goal {
  color: #713f12;
}

.bh-live-display .score {
  font-size: 38px;
  font-weight: 900;
}

@media (max-width: 480px) {
  .bh-live-display .score {
    font-size: 34px;
  }
}

.bh-live-display .mini-scoreline {
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  flex: 0 0 auto;
  gap:8px;
  min-width:82px;
}

.bh-live-display .mini-scoreline .break-points {
  color:#16a34a;
  font-size:22px;
  text-shadow:none;
}

/* Turn ball */
.bh-live-display .turn-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #94a3b8;
  opacity: .3;
}

.bh-live-display .turn-ball.on {
  background: #22c55e;
  opacity: 1;
  box-shadow: 0 0 10px #22c55e;
}

/* === MINI FOOTER – NUCLEAR FIX === */
.bh-live-display .mini-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  font-size: 12px;
  min-height: 22px;
  width: 100%;
}

.bh-live-display .mini-footer .footer-left {
  color: #cbd5e1 !important;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bh-live-display .mini-footer .footer-right {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 16px;
  white-space: nowrap;
}

.bh-live-display .lsp-video-frame{
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
}
.bh-live-display .lsp-video-frame iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.bh-live-display .mini-wall {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 380px));
}
.bh-live-display .bh-home-scoreboards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 320px));
}
.bh-live-display .bh-home-scoreboards .mini-card {
  gap: 10px;
  padding: 10px;
}
.bh-live-display .bh-home-scoreboards .mini-body { gap: 8px; }
.bh-live-display .bh-home-scoreboards .player { padding: 8px 10px; }
.bh-live-display .bh-home-scoreboards .score { font-size: 32px; }
.bh-live-display .break-points { font-weight: 900; line-height: 1; }
.bh-live-display [hidden] { display: none !important; }
.bh-live-display .turn-ball { flex: 0 0 auto; }
.bh-live-display .mini-video-slot { max-width: 680px; margin-top: 18px; }
.bh-live-display .bh-home-scoreboard-item .mini-card { flex: 1; }
.bh-live-display .bh08-filters label:first-child { flex: 1; }
.bh-live-display .bh08-filters input[type=search] { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .bh-live-display .live-badge { animation: none; }
}
.bh-live-display .mini-card,
.bh-live-display .mini-video-slot {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
