/************************
CSS 2003-2026 BENGALESES.COM, EN BEISBOL INVERNAL
Todos los Derechos Reservados 
Realiza: Ãngel Matos para Bengaleses.com*/
/************************/

.matchup-cartelera-container {
    --matchup-bg-dark: #031835;
    --matchup-text-white: #ffffff;
    --matchup-text-blue: #0175ff;
    --matchup-text-hover: #64748b;
    --matchup-line-color: #64748b;
    --matchup-divider-color: #64748b;
    --matchup-arrow-color: #64748b;
    --matchup-live-color: #f59e0b;
    --matchup-final-color: #a8c7fa;

    background-color: var(--matchup-bg-dark);
    border-radius: 6px;
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
	margin-bottom: 10px;
    padding: 10px 10px;
    text-align: center;
    box-sizing: border-box;
    color: var(--matchup-text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden !important;
    overflow-y: hidden;
  }

  /* ENCABEZADO */
  .matchup-cartelera-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px !important;
    width: 100%;
  }

  h1.matchup-cartelera-title {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #a8c7fa;
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .matchup-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: -3px !important;
    padding: 0 !important;
  }

  /* LÍNEAS LATERALES DE CARTELERA */
  .matchup-line {
    flex: 1;
    height: 0 !important;
    border-bottom: 1px solid var(--matchup-line-color) !important;
    max-width: 180px;
  }

  .matchup-date {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--matchup-text-white);
    padding: 0 12px;
    text-transform: uppercase;
  }

  /* GRILLA DE ENFRENTAMIENTOS */
  .matchup-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px !important;
    margin-bottom: 8px !important;
    overflow-x: hidden !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* TARJETA INTERACTIVA */
  .matchup-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 4px 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
  }

  .matchup-card:hover {
    transform: translateY(-3px);
    opacity: 0.9;
  }

  /* DIVISOR VERTICAL ENTRE PARTIDOS (DESKTOP) */
  .matchup-card:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 55px;
    background: linear-gradient(180deg, transparent, var(--matchup-divider-color) 20%, var(--matchup-divider-color) 80%, transparent);
    pointer-events: none;
  }

  .matchup-teams {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .matchup-team-row {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .matchup-team-name-large {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: var(--matchup-text-white);
    text-transform: uppercase;
    white-space: nowrap;
  }

  .matchup-team-row-vs {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .matchup-vs-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--matchup-text-blue);
    text-transform: lowercase;
  }

  .matchup-team-name-small {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: var(--matchup-text-white);
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* FLECHITAS INDICADORAS */
  .matchup-team-arrow {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 6px solid var(--matchup-arrow-color);
    border-left: none;
    display: inline-block;
  }

  .matchup-info {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--matchup-text-white);
    text-transform: uppercase;
    opacity: 0.9;
    white-space: nowrap;
  }

  /* ESTADOS DINÁMICOS DEL JUEGO */
  .matchup-live-text {
    color: var(--matchup-live-color) !important;
    font-weight: 800;
  }

  .matchup-final-text {
    color: var(--matchup-final-color) !important;
    font-weight: 800;
  }

  .matchup-loading-msg {
    width: 100%;
    color: var(--matchup-live-color);
    font-weight: 800;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  /* PIE DE PÁGINA Y ENLACE */
  .matchup-footer {
    margin-top: 2px !important;
  }

  .matchup-calendar-link {
    color: var(--matchup-text-blue);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .matchup-calendar-link:hover {
    color: #a8c7fa !important;
    text-decoration: underline;
  }

  /* RESPONSIVO MÓVIL Y PANTALLAS PEQUEÑAS */
  @media (max-width: 1250px) {
    .matchup-grid {
      flex-direction: column !important;
      flex-wrap: wrap;
      gap: 12px !important;
    }

    .matchup-card {
      width: 100%;
      padding: 2px 0 !important;
    }

    /* DIVISOR HORIZONTAL EN MÓVIL */
    .matchup-card:not(:first-child)::before {
      left: 15%;
      top: -6px;
      width: 70%;
      height: 1px;
      transform: none;
      background: linear-gradient(90deg, transparent, var(--matchup-divider-color) 20%, var(--matchup-divider-color) 80%, transparent);
    }
  }

  @media (max-width: 768px) {
    .matchup-cartelera-container {
      margin-left: 10px !important;
      margin-right: 10px !important;
      width: calc(100% - 20px) !important;
    }
  }