.league-sidebar {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  flex-shrink: 0;
}

.league-sidebar h3 {
  color: var(--accent-primary);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1em 0;
  text-align: center;
}

.league-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  object-fit: cover;
  position: relative;
}

.league-icon:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
}

.league-icon.active {
  border-color: var(--accent-success);
  box-shadow: 0 0 20px rgba(0, 223, 196, 0.3);
}

.league-icon.has-new-messages {
  animation: pulse-glow 2s ease-in-out infinite;
}

.league-icon.has-new-messages::before {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: var(--accent-danger);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  z-index: 10;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
  }
  50% { 
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
  }
}

.league-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  color: white;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.league-icon:hover::after {
  opacity: 1;
}

@media (max-width: 1200px) {
  .league-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1em;
  }
  
  .league-sidebar h3 {
    display: none;
  }
  
  .league-icon {
    width: 48px;
    height: 48px;
  }
}