/* ==== Base wrapper / tipografía ==== */
.predictions-wrapper {
    margin: 20px auto;
    padding: 10px;
    max-width: 820px;
    background: #1f1f1f;
    border-radius: 12px;
    color: #eee;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }
  
  /* ==== H3 para el match ==== */
  .pred-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f1f1;
    margin: 0 0 6px;
    text-align: center;
  }
  
  /* fecha bajo el H3 */
  .h2h-date-time {
    font-size: 0.9rem;
    color: #bbb;
    text-align: center;
    margin-bottom: 10px;
  }
  
  /* link head to head */
  .pred-h2h {
    text-align: center;
    margin-bottom: 12px;
  }
  .pred-h2h-link {
    font-size: 0.9rem;
    color: #9ecbff;
    text-decoration: none;
    border-bottom: 1px dashed #9ecbff;
  }
  .pred-h2h-link:hover {
    color: #cce3ff;
    border-bottom-color: #cce3ff;
  }
  
  /* ==== Grid SIEMPRE 3 columnas ==== */
  .pred-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 auto 8px;
    max-width: 100%;
    overflow: hidden;
  }
  @media screen and (max-width: 768px) {
    .pred-grid { grid-template-columns: repeat(3, 1fr); }
  }
  
  /* ==== Cards ==== */
  .pred-card {
    background: #222;
    border-right: 1px solid #3a3a3a;
    padding: 14px 12px;
    text-align: center;
    min-height: 100%;
  }
  .pred-card:nth-child(3n) { border-right: none; }
  @media screen and (max-width: 768px) {
    .pred-card { padding: 12px 8px; }
  }
  
  /* encabezado de la card */
  .pred-head {
    font-size: 0.95rem;
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 8px;
  }
  @media screen and (max-width: 768px) {
    .pred-head { margin-bottom: 10px; }
  }
  
  /* cuerpo de la card */
  .pred-body {
    color: #eee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;            /* gap por defecto cuando hay logo(s) */
    flex-wrap: wrap;
  }
  
  /* —— Regla CLAVE: cuando NO hay logo, separar “label” y “%” con 28px —— */
  .pred-body.no-logo {
    gap: 28px;           /* <-- cumple tu requisito */
  }
  
  /* logos */
  .pred-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
  }
  @media screen and (min-width: 769px) { .pred-logo { height: 28px; } }
  
  .pred-logos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  /* texto y porcentaje */
  .pred-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f1f1;
    white-space: nowrap;
  }
  .pred-pct {
    font-size: 0.9rem;
    font-weight: 700;
    color: #16a34a; /* verde mate */
    white-space: nowrap;
  }
  .pred-badge {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e5e5;
  }
  
  /* ==== Detalles visuales / scrollbar opcional ==== */
  .predictions-wrapper .pred-grid + .pred-grid { margin-top: 8px; }
  .pred-grid::-webkit-scrollbar { height: 6px; }
  .pred-grid::-webkit-scrollbar-track { background: #1f1f1f; }
  .pred-grid::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
  