.batsman-ranking-widget {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0px;
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.batsman-ranking-widget h3 {
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 0px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
  color: #333;
  text-align: center;
  font-weight: 600;
}

.batsman-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  gap: 15px;
  border-radius: 8px;
  background-color: #f5f5f5;
  padding: 5px;
}

.batsman-tab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  border-radius: 6px;
  color: #555;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.batsman-tab:hover {
  background: #e9e9e9;
  color: #333;
}

.batsman-tab.batsman-active {
  background: #4CAF50;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.tab-content-batsman {
  display: none;
  padding-top: 5px;
}

.team-bar {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease-in-out;
}

.team-bar:hover {
  transform: translateY(-2px);
}

.label {
  margin-right: 20px;
  display: flex;
  align-items: center;
  color: #333;
  font-weight: bold;
  flex-shrink: 0;
}

.label .flag {
  width: 25.2px;
  height: 25.2px;
  font-size: 25.2px;
  line-height: 1;
}

.bar-container {
  background: #e9e9e9;
  border-radius: 12px;
  overflow: hidden;
  height: 28px;
  flex-grow: 1;
}

.bar {
  background: linear-gradient(to right, #66BB6A, #4CAF50);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 28px;
  transition: width 0.8s ease-out, background 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  height: 28px;
}