.tabla-en-forma {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 10px;
}

.tabla-en-forma .player-row {
  width: calc(50% - 10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #ffffff;
  transition: transform 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.tabla-en-forma .player-row:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tabla-en-forma .cambio-precio {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.725rem !important;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 3px;
  text-align: center;
}

.tabla-en-forma .player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabla-en-forma .player-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tabla-en-forma .position {
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
}

.tabla-en-forma .team-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
}

.tabla-en-forma .team-logo {
  width: 100%;
  height: 100%;
}

.tabla-en-forma .price {
  font-size: 0.825rem;
}

.tabla-en-forma .points {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  background: #2196f3 !important;
  padding: 5px 10px;
  border-radius: 3px;
}

.tabla-en-forma .player-images {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tabla-en-forma .player-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ddd;
  object-fit: cover;
}

.tabla-en-forma .jornadas-puntos {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}

.tabla-en-forma .jornada-puntos {
  font-size: 12px;
  font-weight: bold;
  background: #f1f1f1;
  border-radius: 3px;
  text-align: center;
  min-width: 25px;
  min-height: 25px;
  line-height: 25px;
  text-shadow: 0 0 1px #333;
}

.puntos-azules {
  background-color: #03a9f4 !important;
  color: #fff;
}

.puntos-verdes {
  background-color: #10af00 !important;
  color: #fff;
}

.puntos-naranjas {
  background-color: #ff9800 !important;
  color: #fff;
}

.puntos-rojos {
  background-color: red !important;
  color: #fff;
}

.columna-puntos.puntos-rojos {
  margin-left: -30px;
}

.puntos-grises {
  background-color: #aaa !important;
  color: #fff;
}

.puntos-pendientes {
  background-color: #d2d2d2 !important;
  color: #000;
  text-shadow: none;
}

/* Media queries */

@media (max-width: 1225px) {
  .tabla-en-forma .player-row {
    min-width: auto;
    padding: 8px;
  }
  .tabla-en-forma .player-pic {
    width: 50px;
    height: 50px;
  }
  .tabla-en-forma .team-logo-container {
    width: 25px;
    height: 25px;
  }
  .tabla-en-forma .points,
  .tabla-en-forma .position {
    font-size: 10px;
    padding: 4px 8px;
  }
  .tabla-en-forma .market-value {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .tabla-en-forma .player-info {
    flex-wrap: wrap;
    gap: 5px;
  }
  .tabla-en-forma .player-values {
    text-align: right;
    padding-right: 30px;
  }
  .tabla-en-forma .player-pic {
    width: 45px;
    height: 45px;
  }
  .tabla-en-forma .market-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 880px) {
  .tabla-en-forma {
    padding: 5px;
    gap: 5px;
  }
  .tabla-en-forma .player-pic {
    width: 30px;
    height: 30px;
  }
  .tabla-en-forma .team-logo-container {
    width: 15px;
    height: 15px;
  }
  .tabla-en-forma .jornadas-puntos {
    gap: 2px;
  }
  .tabla-en-forma .jornada-puntos {
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
    min-width: 16px;
    min-height: 16px;
    line-height: 16px;
    text-shadow: 0 0 1px #333;
  }
  .tabla-en-forma .name {
    font-size: 0.65rem;
  }
  .tabla-en-forma .points,
  .tabla-en-forma .position {
    font-size: 8px;
    padding: 2px 4px;
  }
  .tabla-en-forma .market-value {
    font-size: 0.65rem;
  }
}

@media (max-width: 782px) {
  .tabla-en-forma .player-row {
    width: 100%;
    min-width: auto;
    padding: 8px;
  }
  .tabla-en-forma .player-pic {
    width: 50px;
    height: 50px;
  }
  .tabla-en-forma .team-logo-container {
    width: 25px;
    height: 25px;
  }
  .tabla-en-forma .name {
    font-size: 0.925rem;
  }
  .tabla-en-forma .jornadas-puntos {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
  }
  .tabla-en-forma .jornada-puntos {
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
    min-width: 25px;
    min-height: 25px;
    line-height: 25px;
    text-shadow: 0 0 1px #333;
  }
  .tabla-en-forma .points,
  .tabla-en-forma .position {
    font-size: 10px;
    padding: 4px 8px;
  }
  .tabla-en-forma .market-value {
    font-size: 1rem;
  }
}

@media (max-width: 465px) {
  .tabla-en-forma {
    padding: 5px;
    gap: 5px;
  }
  .tabla-en-forma .player-pic {
    width: 50px;
    height: 50px;
  }
  .tabla-en-forma .team-logo-container {
    width: 20px;
    height: 20px;
  }
  .tabla-en-forma .name {
    font-size: 0.925rem;
    margin-bottom: -5px;
  }
  .tabla-en-forma .player-name-position {
    margin-left: 5px;
  }
  .tabla-en-forma .points,
  .tabla-en-forma .position {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .tabla-en-forma .points {
    margin-left: 5px;
  }
  .tabla-en-forma .cambio-precio {
    font-size: 0.725rem !important;
    padding: 2px 5px !important;
  }
  .tabla-en-forma .market-value {
    font-size: 1rem;
  }
  .tabla-en-forma .jornada-puntos {
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
    min-width: 20px;
    min-height: 20px;
    line-height: 20px;
    text-shadow: 0 0 1px #333;
  }
  .tabla-en-forma .jornadas-puntos {
    gap: 2px;
  }
}

@media (max-width: 415px) {
  .tabla-en-forma {
    padding: 5px;
    gap: 5px;
  }
  .tabla-en-forma .player-pic {
    width: 40px;
    height: 40px;
  }
  .tabla-en-forma .team-logo-container {
    width: 14px;
    height: 14px;
  }
  .tabla-en-forma .name {
    font-size: 0.725rem;
    margin-bottom: -2px;
  }
  .tabla-en-forma .player-name-position {
    margin-left: 2px;
  }
  .tabla-en-forma .points,
  .tabla-en-forma .position {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .tabla-en-forma .points {
    margin-left: 2px;
  }
  .tabla-en-forma .cambio-precio {
    font-size: 0.525rem !important;
    padding: 2px 4px !important;
  }
  .tabla-en-forma .market-value {
    font-size: 0.725rem;
  }
  .tabla-en-forma .jornada-puntos {
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
    min-width: 16px;
    min-height: 16px;
    line-height: 16px;
    text-shadow: 0 0 1px #333;
  }
  .tabla-en-forma .jornadas-puntos {
    gap: 2px;
  }
}

@media (max-width: 350px) {
  .tabla-en-forma {
    padding: 5px;
    gap: 5px;
  }
  .tabla-en-forma .player-pic {
    width: 25px;
    height: 25px;
  }
  .tabla-en-forma .team-logo-container {
    width: 10px;
    height: 10px;
  }
  .tabla-en-forma .name {
    font-size: 0.5rem;
  }
  .tabla-en-forma .points,
  .tabla-en-forma .position {
    font-size: 0.425rem;
    padding: 2px 4px;
  }
  .tabla-en-forma .cambio-precio {
    font-size: 0.425rem !important;
    padding: 2px 4px !important;
  }
  .tabla-en-forma .market-value {
    font-size: 0.525rem;
  }
  .tabla-en-forma .jornada-puntos {
    font-size: 8px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
    min-width: 12px;
    min-height: 12px;
    line-height: 12px;
    text-shadow: 0 0 1px #333;
  }
  .tabla-en-forma .jornadas-puntos {
    gap: 2px;
  }
}
