.voice-group {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voice-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.voice-group-header:hover {
  background: #f0f0f0;
}

.voice-group-header:focus {
  outline: none;
  background: #e6f7ff;
  border-color: #4096ff;
}

.group-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(64, 150, 255, 0.1);
  transition: all 0.2s ease;
}

.voice-group-header:hover .group-icon {
  background: rgba(64, 150, 255, 0.15);
  transform: scale(1.05);
}

.group-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  line-height: 1.3;
}

.voice-count {
  font-size: 12px;
  color: #8c8c8c;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.expand-icon:hover {
  background: rgba(64, 150, 255, 0.1);
}

.voice-group-content {
  padding: 16px;
  background: white;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.no-voices-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #8c8c8c;
}

.no-voices-message .material-icons {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-voices-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
  .voice-group-header {
    padding: 12px 16px;
  }

  .group-title-container {
    gap: 8px;
  }

  .group-title {
    font-size: 16px;
  }

  .voice-count {
    font-size: 11px;
    padding: 3px 6px;
  }

  .voice-group-content {
    padding: 12px;
  }

  .voice-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .group-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .voice-count {
    align-self: flex-start;
  }
}
