/* Grid global de marcadores */
.bp-scoreboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas exactas en Escritorio */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Si solo hay un partido, lo centramos con un ancho elegante */
.bp-scoreboard-grid.single-match-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
}

/* =========================================================================
   ESTILOS PREMIUM DEL CUADRO INTERNO
   ========================================================================= */
.custom-premium-card {
    background: rgba(14, 23, 41, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
}

/* Variación visual si el partido está finalizado (un toque más sobrio) */
.custom-premium-card.card-is-finalized {
    opacity: 0.85;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.custom-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-court-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-dot-icon {
    color: #ef4444; /* Rojo vibrante en vivo */
    font-size: 9px;
}
.premium-dot-icon.dot-finalized {
    color: #64748b; /* Gris si ya terminó */
}

.pulse-active-red {
    animation: premiumRedPulse 1.8s infinite ease-in-out;
}
@keyframes premiumRedPulse {
    0% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(0.95); }
}

.custom-status-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-premium-live {
    background: rgba(163, 230, 53, 0.15);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.3);
}
.badge-premium-finalized {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table-matrix {
    padding: 24px;
}

.custom-matrix-header {
    display: grid;
    grid-template-columns: 2.4fr repeat(3, 1fr) 1fr;
    gap: 15px;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-matrix-row {
    display: grid;
    grid-template-columns: 2.4fr repeat(3, 1fr) 1fr;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
}

.border-row-sep {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cell-left { text-align: left; }
.cell-center { text-align: center; }

.custom-profile-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.custom-player-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}
.custom-player-corp {
    font-size: 0.78rem;
    color: #94a3b8;
}

.custom-score-number span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

/* El bloque oscuro especial para el Set 3 */
.score-box-dark span {
    background: rgba(0, 0, 0, 0.35) !important;
    padding: 5px 16px !important;
    border-radius: 4px !important;
    display: inline-block;
}

.text-volt-premium { color: #a3e635 !important; }
.custom-real-points {
    font-size: 1.4rem;
    font-weight: 800;
    color: #a3e635;
}

/* RESPONSIVE BREAKPOINT (MEDIANOS Y MÓVILES) */
@media (max-width: 991px) {
    .bp-scoreboard-grid {
        grid-template-columns: 1fr !important; /* Colapsa a 1 columna arriba/abajo */
        max-width: 650px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .custom-table-matrix { padding: 16px; }
    .custom-matrix-header, .custom-matrix-row {
        grid-template-columns: 2fr repeat(3, 1fr) 1fr;
        gap: 8px;
    }
    .custom-player-name { font-size: 0.95rem; }
    .custom-player-corp { font-size: 0.72rem; }
    .custom-score-number span { font-size: 1.05rem; }
    .score-box-dark span { padding: 4px 10px !important; }
    .custom-real-points { font-size: 1.2rem; }
}