body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* prevent scrollbars */
}

#overlay,
#preview {
    display: block;
    width: 100vw;
    /* full viewport width */
    height: 100vh;
    /* full viewport height */
    object-fit: cover;
    /* scale video nicely */
    transform: translateZ(0);
    backface-visibility: hidden;
}



#scoreboard {
  font-family: system-ui, sans-serif;
  color: white;
  /* background: rgba(0, 0, 0, 0.5); */
  padding: 8px;
  position: absolute;
  left: -9999px;
  width: 100%;
  max-width: calc(100% - 40px); /* leave 20px each side */
  margin: 0 20px; /* the 20px left/right gap */
  box-sizing: border-box;
  
}

.row {
  width: 100%;
  
}




/* .team {
    height: 25px;
    
    left: 22px;
    top: 323px;
    background-color: #0080FF;
    color: #FFFFFF;
} */

.team_name {
    display: flex;
    align-items: center;
    gap: 4px;
    
}

.team_title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
    /* ⬅️ Adjust this as needed */
    display: inline-block;
}

.team_score {
    flex-shrink: 0;
    /* Prevent score from being squished */
    white-space: nowrap;
}

#overs {
    /* width: 43px; */
    height: 25px;
    background-color: #FFFFFF;
    /* background-color: black; */
    font-style: Poppins;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #000000;
    /* color: #FFFFFF; */
}

.b_team {
    width: 145px;
}

.run_rate,
.runs_needed,
.balls_left,
.b_team {

    height: 25px;
    background-color: #F9CD05;
}

.run_rate,
.runs_needed,
.balls_left,
.b_team {
    font-style: Poppins;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #000000;
}

.b_team{

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 205px;
   
    display: block;
}

.team {
  height: 25px;
  background-color: #0080FF;
  color: #FFFFFF;
  border-top-left-radius: 12px;
  white-space: nowrap;
  overflow: hidden; /* important to preserve corner if children overflow */
  text-overflow: ellipsis;
  display: block;
  padding: 0 6px; /* give some breathing room so content doesn’t butt against the radius */
  box-sizing: border-box;
  
}


#batsman1,
#batsman2,
#bowler,
#current_overs {

    height: 25px;
    background-color: #022550;
    color: #FFFFFF;
}

#batsman1,
#batsman2,
#bowler,
#current_overs {
    height: 25px;
    font-style: Poppins;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

#current_overs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 14px;
}

.ball-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #CCF0FFB5;
    color: #FFFFFF;
    font-size: 12px;
    text-align: center;
    line-height: 20px;
    font-weight: 500;
    display: flex;
    /* 🔁 enable Flexbox */
    align-items: center;
    /* ✅ vertical center */
    justify-content: center;
}

.b_team {

    border-top-right-radius: 12px;
}


#batsman1 {
    border-bottom-left-radius: 12px;
}

#current_overs {
    border-bottom-right-radius: 12px;
}